openspecui 0.6.2 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-C4zuwwt7.mjs → src-zOj7AJci.mjs} +261 -19
- package/package.json +1 -1
- package/web/assets/apl-B4CMkyY2.js +1 -0
- package/web/assets/asciiarmor-Df11BRmG.js +1 -0
- package/web/assets/asn1-EdZsLKOL.js +1 -0
- package/web/assets/asterisk-B-8jnY81.js +1 -0
- package/web/assets/brainfuck-C4LP7Hcl.js +1 -0
- package/web/assets/clike-B9uivgTg.js +1 -0
- package/web/assets/clojure-BMjYHr_A.js +1 -0
- package/web/assets/cmake-BQqOBYOt.js +1 -0
- package/web/assets/cobol-CWcv1MsR.js +1 -0
- package/web/assets/coffeescript-S37ZYGWr.js +1 -0
- package/web/assets/commonlisp-DBKNyK5s.js +1 -0
- package/web/assets/crystal-SjHAIU92.js +1 -0
- package/web/assets/css-BnMrqG3P.js +1 -0
- package/web/assets/cypher-C_CwsFkJ.js +1 -0
- package/web/assets/d-pRatUO7H.js +1 -0
- package/web/assets/diff-DbItnlRl.js +1 -0
- package/web/assets/dockerfile-BKs6k2Af.js +1 -0
- package/web/assets/dtd-DF_7sFjM.js +1 -0
- package/web/assets/dylan-DwRh75JA.js +1 -0
- package/web/assets/ebnf-CDyGwa7X.js +1 -0
- package/web/assets/ecl-Cabwm37j.js +1 -0
- package/web/assets/eiffel-CnydiIhH.js +1 -0
- package/web/assets/elm-vLlmbW-K.js +1 -0
- package/web/assets/erlang-BNw1qcRV.js +1 -0
- package/web/assets/factor-kuTfRLto.js +1 -0
- package/web/assets/fcl-Kvtd6kyn.js +1 -0
- package/web/assets/forth-Ffai-XNe.js +1 -0
- package/web/assets/fortran-DYz_wnZ1.js +1 -0
- package/web/assets/gas-Bneqetm1.js +1 -0
- package/web/assets/gherkin-heZmZLOM.js +1 -0
- package/web/assets/groovy-D9Dt4D0W.js +1 -0
- package/web/assets/haskell-Cw1EW3IL.js +1 -0
- package/web/assets/haxe-H-WmDvRZ.js +1 -0
- package/web/assets/http-DBlCnlav.js +1 -0
- package/web/assets/idl-BEugSyMb.js +1 -0
- package/web/assets/index-APzame2X.js +1 -0
- package/web/assets/index-B1Pbmlq1.js +1 -0
- package/web/assets/index-BoKKKtDW.js +3 -0
- package/web/assets/index-BwOHH22o.js +1 -0
- package/web/assets/index-C1ZWbsTE.js +2 -0
- package/web/assets/index-CMpv9Zgd.js +7 -0
- package/web/assets/index-C_FxTgV5.js +464 -0
- package/web/assets/index-Cf3kY1TW.js +1 -0
- package/web/assets/index-Cw6xDarC.js +1 -0
- package/web/assets/index-D1xpv80x.js +1 -0
- package/web/assets/index-DCT_KW6c.js +1 -0
- package/web/assets/index-DOcNLUs5.js +1 -0
- package/web/assets/index-DnE6Hes-.js +1 -0
- package/web/assets/index-Dtf1NHGX.css +1 -0
- package/web/assets/index-Jxq7Nimo.js +1 -0
- package/web/assets/index-XqFPYUCT.js +1 -0
- package/web/assets/index-kAClYiaR.js +1 -0
- package/web/assets/javascript-iXu5QeM3.js +1 -0
- package/web/assets/julia-DuME0IfC.js +1 -0
- package/web/assets/livescript-BwQOo05w.js +1 -0
- package/web/assets/lua-BgMRiT3U.js +1 -0
- package/web/assets/mathematica-DTrFuWx2.js +1 -0
- package/web/assets/mbox-CNhZ1qSd.js +1 -0
- package/web/assets/mirc-CjQqDB4T.js +1 -0
- package/web/assets/mllike-CXdrOF99.js +1 -0
- package/web/assets/modelica-Dc1JOy9r.js +1 -0
- package/web/assets/mscgen-BA5vi2Kp.js +1 -0
- package/web/assets/mumps-BT43cFF4.js +1 -0
- package/web/assets/nginx-DdIZxoE0.js +1 -0
- package/web/assets/nsis-LdVXkNf5.js +1 -0
- package/web/assets/ntriples-BfvgReVJ.js +1 -0
- package/web/assets/octave-Ck1zUtKM.js +1 -0
- package/web/assets/oz-BzwKVEFT.js +1 -0
- package/web/assets/pascal--L3eBynH.js +1 -0
- package/web/assets/perl-CdXCOZ3F.js +1 -0
- package/web/assets/pig-CevX1Tat.js +1 -0
- package/web/assets/powershell-CFHJl5sT.js +1 -0
- package/web/assets/properties-C78fOPTZ.js +1 -0
- package/web/assets/protobuf-ChK-085T.js +1 -0
- package/web/assets/pug-DeIclll2.js +1 -0
- package/web/assets/puppet-DMA9R1ak.js +1 -0
- package/web/assets/python-BuPzkPfP.js +1 -0
- package/web/assets/q-pXgVlZs6.js +1 -0
- package/web/assets/r-B6wPVr8A.js +1 -0
- package/web/assets/rpm-CTu-6PCP.js +1 -0
- package/web/assets/ruby-B2Rjki9n.js +1 -0
- package/web/assets/sas-B4kiWyti.js +1 -0
- package/web/assets/scheme-C41bIUwD.js +1 -0
- package/web/assets/shell-CjFT_Tl9.js +1 -0
- package/web/assets/sieve-C3Gn_uJK.js +1 -0
- package/web/assets/simple-mode-GW_nhZxv.js +1 -0
- package/web/assets/smalltalk-CnHTOXQT.js +1 -0
- package/web/assets/solr-DehyRSwq.js +1 -0
- package/web/assets/sparql-DkYu6x3z.js +1 -0
- package/web/assets/spreadsheet-BCZA_wO0.js +1 -0
- package/web/assets/sql-D0XecflT.js +1 -0
- package/web/assets/stex-C3f8Ysf7.js +1 -0
- package/web/assets/stylus-B533Al4x.js +1 -0
- package/web/assets/swift-BzpIVaGY.js +1 -0
- package/web/assets/tcl-DVfN8rqt.js +1 -0
- package/web/assets/textile-CnDTJFAw.js +1 -0
- package/web/assets/tiddlywiki-DO-Gjzrf.js +1 -0
- package/web/assets/tiki-DGYXhP31.js +1 -0
- package/web/assets/toml-Bm5Em-hy.js +1 -0
- package/web/assets/troff-wAsdV37c.js +1 -0
- package/web/assets/ttcn-CfJYG6tj.js +1 -0
- package/web/assets/ttcn-cfg-B9xdYoR4.js +1 -0
- package/web/assets/turtle-B1tBg_DP.js +1 -0
- package/web/assets/vb-CmGdzxic.js +1 -0
- package/web/assets/vbscript-BuJXcnF6.js +1 -0
- package/web/assets/velocity-D8B20fx6.js +1 -0
- package/web/assets/verilog-C6RDOZhf.js +1 -0
- package/web/assets/vhdl-lSbBsy5d.js +1 -0
- package/web/assets/webidl-ZXfAyPTL.js +1 -0
- package/web/assets/xquery-DzFWVndE.js +1 -0
- package/web/assets/yacas-BJ4BC0dw.js +1 -0
- package/web/assets/z80-Hz9HOZM7.js +1 -0
- package/web/index.html +29 -2
- package/web/assets/index-D-0Lh1u9.css +0 -1
- package/web/assets/index-Dqe20qIE.js +0 -369
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BdAV_C_H.js","assets/tex-CxkMU7Pf.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-CE9lU5zL.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DnHKYNfI.js","assets/vue-html-CChd_i61.js","assets/vue-vine-8moa0y9V.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var WT=Object.defineProperty;var o_=e=>{throw TypeError(e)};var eC=(e,t,n)=>t in e?WT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>eC(e,typeof t!="symbol"?t+"":t,n),Uh=(e,t,n)=>t.has(e)||o_("Cannot "+n);var M=(e,t,n)=>(Uh(e,t,"read from private field"),n?n.call(e):t.get(e)),ye=(e,t,n)=>t.has(e)?o_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,i)=>(Uh(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ae=(e,t,n)=>(Uh(e,t,"access private method"),n);var rc=(e,t,n,i)=>({set _(s){fe(e,t,s,n)},get _(){return M(e,t,i)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vh={exports:{}},Xl={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var u_;function tC(){if(u_)return Xl;u_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,o){var u=null;if(o!==void 0&&(u=""+o),s.key!==void 0&&(u=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:o}}return Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var c_;function nC(){return c_||(c_=1,Vh.exports=tC()),Vh.exports}var b=nC(),qh={exports:{}},Zl={},Hh={exports:{}},Gh={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* scheduler.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 f_;function rC(){return f_||(f_=1,(function(e){function t(q,re){var ce=q.length;q.push(re);e:for(;0<ce;){var Se=ce-1>>>1,L=q[Se];if(0<s(L,re))q[Se]=re,q[ce]=L,ce=Se;else break e}}function n(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var re=q[0],ce=q.pop();if(ce!==re){q[0]=ce;e:for(var Se=0,L=q.length,z=L>>>1;Se<z;){var H=2*(Se+1)-1,k=q[H],le=H+1,pe=q[le];if(0>s(k,ce))le<L&&0>s(pe,k)?(q[Se]=pe,q[le]=ce,Se=le):(q[Se]=k,q[H]=ce,Se=H);else if(le<L&&0>s(pe,ce))q[Se]=pe,q[le]=ce,Se=le;else break e}}return re}function s(q,re){var ce=q.sortIndex-re.sortIndex;return ce!==0?ce:q.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],h=[],y=1,p=null,v=3,_=!1,x=!1,w=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function P(q){for(var re=n(h);re!==null;){if(re.callback===null)i(h);else if(re.startTime<=q)i(h),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(h)}}function I(q){if(w=!1,P(q),!x)if(n(d)!==null)x=!0,R||(R=!0,ie());else{var re=n(h);re!==null&&ae(I,re.startTime-q)}}var R=!1,U=-1,K=5,ee=-1;function j(){return E?!0:!(e.unstable_now()-ee<K)}function Q(){if(E=!1,R){var q=e.unstable_now();ee=q;var re=!0;try{e:{x=!1,w&&(w=!1,A(U),U=-1),_=!0;var ce=v;try{t:{for(P(q),p=n(d);p!==null&&!(p.expirationTime>q&&j());){var Se=p.callback;if(typeof Se=="function"){p.callback=null,v=p.priorityLevel;var L=Se(p.expirationTime<=q);if(q=e.unstable_now(),typeof L=="function"){p.callback=L,P(q),re=!0;break t}p===n(d)&&i(d),P(q)}else i(d);p=n(d)}if(p!==null)re=!0;else{var z=n(h);z!==null&&ae(I,z.startTime-q),re=!1}}break e}finally{p=null,v=ce,_=!1}re=void 0}}finally{re?ie():R=!1}}}var ie;if(typeof N=="function")ie=function(){N(Q)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,oe=de.port2;de.port1.onmessage=Q,ie=function(){oe.postMessage(null)}}else ie=function(){T(Q,0)};function ae(q,re){U=T(function(){q(e.unstable_now())},re)}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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var re=3;break;default:re=v}var ce=v;v=re;try{return q()}finally{v=ce}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(q,re){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ce=v;v=q;try{return re()}finally{v=ce}},e.unstable_scheduleCallback=function(q,re,ce){var Se=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Se+ce:Se):ce=Se,q){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=ce+L,q={id:y++,callback:re,priorityLevel:q,startTime:ce,expirationTime:L,sortIndex:-1},ce>Se?(q.sortIndex=ce,t(h,q),n(d)===null&&q===n(h)&&(w?(A(U),U=-1):w=!0,ae(I,ce-Se))):(q.sortIndex=L,t(d,q),x||_||(x=!0,R||(R=!0,ie()))),q},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(q){var re=v;return function(){var ce=v;v=re;try{return q.apply(this,arguments)}finally{v=ce}}}})(Gh)),Gh}var d_;function iC(){return d_||(d_=1,Hh.exports=rC()),Hh.exports}var Fh={exports:{}},we={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* react.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var h_;function aC(){if(h_)return we;h_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.iterator;function _(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function T(z,H,k){this.props=z,this.context=H,this.refs=E,this.updater=k||x}T.prototype.isReactComponent={},T.prototype.setState=function(z,H){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,H,"setState")},T.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function A(){}A.prototype=T.prototype;function N(z,H,k){this.props=z,this.context=H,this.refs=E,this.updater=k||x}var P=N.prototype=new A;P.constructor=N,w(P,T.prototype),P.isPureReactComponent=!0;var I=Array.isArray;function R(){}var U={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ee(z,H,k){var le=k.ref;return{$$typeof:e,type:z,key:H,ref:le!==void 0?le:null,props:k}}function j(z,H){return ee(z.type,H,z.props)}function Q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ie(z){var H={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(k){return H[k]})}var de=/\/+/g;function oe(z,H){return typeof z=="object"&&z!==null&&z.key!=null?ie(""+z.key):H.toString(36)}function ae(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(H){z.status==="pending"&&(z.status="fulfilled",z.value=H)},function(H){z.status==="pending"&&(z.status="rejected",z.reason=H)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function q(z,H,k,le,pe){var he=typeof z;(he==="undefined"||he==="boolean")&&(z=null);var Ee=!1;if(z===null)Ee=!0;else switch(he){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(z.$$typeof){case e:case t:Ee=!0;break;case y:return Ee=z._init,q(Ee(z._payload),H,k,le,pe)}}if(Ee)return pe=pe(z),Ee=le===""?"."+oe(z,0):le,I(pe)?(k="",Ee!=null&&(k=Ee.replace(de,"$&/")+"/"),q(pe,H,k,"",function(Dt){return Dt})):pe!=null&&(Q(pe)&&(pe=j(pe,k+(pe.key==null||z&&z.key===pe.key?"":(""+pe.key).replace(de,"$&/")+"/")+Ee)),H.push(pe)),1;Ee=0;var Qe=le===""?".":le+":";if(I(z))for(var Pe=0;Pe<z.length;Pe++)le=z[Pe],he=Qe+oe(le,Pe),Ee+=q(le,H,k,he,pe);else if(Pe=_(z),typeof Pe=="function")for(z=Pe.call(z),Pe=0;!(le=z.next()).done;)le=le.value,he=Qe+oe(le,Pe++),Ee+=q(le,H,k,he,pe);else if(he==="object"){if(typeof z.then=="function")return q(ae(z),H,k,le,pe);throw H=String(z),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function re(z,H,k){if(z==null)return z;var le=[],pe=0;return q(z,le,"","",function(he){return H.call(k,he,pe++)}),le}function ce(z){if(z._status===-1){var H=z._result;H=H(),H.then(function(k){(z._status===0||z._status===-1)&&(z._status=1,z._result=k)},function(k){(z._status===0||z._status===-1)&&(z._status=2,z._result=k)}),z._status===-1&&(z._status=0,z._result=H)}if(z._status===1)return z._result.default;throw z._result}var Se=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},L={map:re,forEach:function(z,H,k){re(z,function(){H.apply(this,arguments)},k)},count:function(z){var H=0;return re(z,function(){H++}),H},toArray:function(z){return re(z,function(H){return H})||[]},only:function(z){if(!Q(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return we.Activity=p,we.Children=L,we.Component=T,we.Fragment=n,we.Profiler=s,we.PureComponent=N,we.StrictMode=i,we.Suspense=d,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,we.__COMPILER_RUNTIME={__proto__:null,c:function(z){return U.H.useMemoCache(z)}},we.cache=function(z){return function(){return z.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(z,H,k){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var le=w({},z.props),pe=z.key;if(H!=null)for(he in H.key!==void 0&&(pe=""+H.key),H)!K.call(H,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&H.ref===void 0||(le[he]=H[he]);var he=arguments.length-2;if(he===1)le.children=k;else if(1<he){for(var Ee=Array(he),Qe=0;Qe<he;Qe++)Ee[Qe]=arguments[Qe+2];le.children=Ee}return ee(z.type,pe,le)},we.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},we.createElement=function(z,H,k){var le,pe={},he=null;if(H!=null)for(le in H.key!==void 0&&(he=""+H.key),H)K.call(H,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(pe[le]=H[le]);var Ee=arguments.length-2;if(Ee===1)pe.children=k;else if(1<Ee){for(var Qe=Array(Ee),Pe=0;Pe<Ee;Pe++)Qe[Pe]=arguments[Pe+2];pe.children=Qe}if(z&&z.defaultProps)for(le in Ee=z.defaultProps,Ee)pe[le]===void 0&&(pe[le]=Ee[le]);return ee(z,he,pe)},we.createRef=function(){return{current:null}},we.forwardRef=function(z){return{$$typeof:f,render:z}},we.isValidElement=Q,we.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:ce}},we.memo=function(z,H){return{$$typeof:h,type:z,compare:H===void 0?null:H}},we.startTransition=function(z){var H=U.T,k={};U.T=k;try{var le=z(),pe=U.S;pe!==null&&pe(k,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(R,Se)}catch(he){Se(he)}finally{H!==null&&k.types!==null&&(H.types=k.types),U.T=H}},we.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},we.use=function(z){return U.H.use(z)},we.useActionState=function(z,H,k){return U.H.useActionState(z,H,k)},we.useCallback=function(z,H){return U.H.useCallback(z,H)},we.useContext=function(z){return U.H.useContext(z)},we.useDebugValue=function(){},we.useDeferredValue=function(z,H){return U.H.useDeferredValue(z,H)},we.useEffect=function(z,H){return U.H.useEffect(z,H)},we.useEffectEvent=function(z){return U.H.useEffectEvent(z)},we.useId=function(){return U.H.useId()},we.useImperativeHandle=function(z,H,k){return U.H.useImperativeHandle(z,H,k)},we.useInsertionEffect=function(z,H){return U.H.useInsertionEffect(z,H)},we.useLayoutEffect=function(z,H){return U.H.useLayoutEffect(z,H)},we.useMemo=function(z,H){return U.H.useMemo(z,H)},we.useOptimistic=function(z,H){return U.H.useOptimistic(z,H)},we.useReducer=function(z,H,k){return U.H.useReducer(z,H,k)},we.useRef=function(z){return U.H.useRef(z)},we.useState=function(z){return U.H.useState(z)},we.useSyncExternalStore=function(z,H,k){return U.H.useSyncExternalStore(z,H,k)},we.useTransition=function(){return U.H.useTransition()},we.version="19.2.0",we}var m_;function Do(){return m_||(m_=1,Fh.exports=aC()),Fh.exports}var $h={exports:{}},Mt={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var p_;function sC(){if(p_)return Mt;p_=1;var e=Do();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(d,h,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:d,containerInfo:h,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(d,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(d,h,null,y)},Mt.flushSync=function(d){var h=u.T,y=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=y,i.d.f()}},Mt.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},Mt.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},Mt.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:_}):y==="script"&&i.d.X(d,{crossOrigin:p,integrity:v,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Mt.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},Mt.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,p=f(y,h.crossOrigin);i.d.L(d,y,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Mt.preloadModule=function(d,h){if(typeof d=="string")if(h){var y=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},Mt.requestFormReset=function(d){i.d.r(d)},Mt.unstable_batchedUpdates=function(d,h){return d(h)},Mt.useFormState=function(d,h,y){return u.H.useFormState(d,h,y)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var g_;function jx(){if(g_)return $h.exports;g_=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(),$h.exports=sC(),$h.exports}/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-dom-client.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var y_;function lC(){if(y_)return Zl;y_=1;var e=iC(),t=Do(),n=jx();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(o(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,c=a;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return d(m),r;if(g===c)return d(m),a;g=g.sibling}throw Error(i(188))}if(l.return!==c.return)l=m,c=g;else{for(var S=!1,C=m.child;C;){if(C===l){S=!0,l=m,c=g;break}if(C===c){S=!0,c=m,l=g;break}C=C.sibling}if(!S){for(C=g.child;C;){if(C===l){S=!0,l=g,c=m;break}if(C===c){S=!0,c=g,l=m;break}C=C.sibling}if(!S)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),N=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function ie(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var de=Symbol.for("react.client.reference");function oe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===de?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case I:return"Suspense";case R:return"SuspenseList";case ee:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case N:return r.displayName||"Context";case A:return(r._context.displayName||"Context")+".Consumer";case P:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case U:return a=r.displayName||null,a!==null?a:oe(r.type)||"Memo";case K:a=r._payload,r=r._init;try{return oe(r(a))}catch{}}return null}var ae=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Se=[],L=-1;function z(r){return{current:r}}function H(r){0>L||(r.current=Se[L],Se[L]=null,L--)}function k(r,a){L++,Se[L]=r.current,r.current=a}var le=z(null),pe=z(null),he=z(null),Ee=z(null);function Qe(r,a){switch(k(he,a),k(pe,r),k(le,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?N0(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=N0(a),r=j0(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}H(le),k(le,r)}function Pe(){H(le),H(pe),H(he)}function Dt(r){r.memoizedState!==null&&k(Ee,r);var a=le.current,l=j0(a,r.type);a!==l&&(k(pe,r),k(le,l))}function on(r){pe.current===r&&(H(le),H(pe)),Ee.current===r&&(H(Ee),$l._currentValue=ce)}var un,Na;function Un(r){if(un===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);un=a&&a[1]||"",Na=-1<l.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+un+r+Na}var dr=!1;function $r(r,a){if(!r||dr)return"";dr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(X){var $=X}Reflect.construct(r,[],ne)}else{try{ne.call()}catch(X){$=X}r.call(ne.prototype)}}else{try{throw Error()}catch(X){$=X}(ne=r())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(X){if(X&&$&&typeof X.stack=="string")return[X.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),S=g[0],C=g[1];if(S&&C){var D=S.split(`
|
|
45
|
-
`),F=C.split(`
|
|
46
|
-
`);for(m=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;m<F.length&&!F[m].includes("DetermineComponentFrameRoot");)m++;if(c===D.length||m===F.length)for(c=D.length-1,m=F.length-1;1<=c&&0<=m&&D[c]!==F[m];)m--;for(;1<=c&&0<=m;c--,m--)if(D[c]!==F[m]){if(c!==1||m!==1)do if(c--,m--,0>m||D[c]!==F[m]){var Z=`
|
|
47
|
-
`+D[c].replace(" at new "," at ");return r.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",r.displayName)),Z}while(1<=c&&0<=m);break}}}finally{dr=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Un(l):""}function ja(r,a){switch(r.tag){case 26:case 27:case 5:return Un(r.type);case 16:return Un("Lazy");case 13:return r.child!==a&&a!==null?Un("Suspense Fallback"):Un("Suspense");case 19:return Un("SuspenseList");case 0:case 15:return $r(r.type,!1);case 11:return $r(r.type.render,!1);case 1:return $r(r.type,!0);case 31:return Un("Activity");default:return""}}function La(r){try{var a="",l=null;do a+=ja(r,l),l=r,r=r.return;while(r);return a}catch(c){return`
|
|
48
|
-
Error generating stack: `+c.message+`
|
|
49
|
-
`+c.stack}}var Vn=Object.prototype.hasOwnProperty,qn=e.unstable_scheduleCallback,Qr=e.unstable_cancelCallback,Da=e.unstable_shouldYield,Ve=e.unstable_requestPaint,Ue=e.unstable_now,Ut=e.unstable_getCurrentPriorityLevel,J=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,Re=e.unstable_LowPriority,Fe=e.unstable_IdlePriority,cn=e.log,hr=e.unstable_setDisableYieldValue,Vt=null,bt=null;function Kt(r){if(typeof cn=="function"&&hr(r),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Vt,r)}catch{}}var We=Math.clz32?Math.clz32:BE,Yr=Math.log,Hn=Math.LN2;function BE(r){return r>>>=0,r===0?32:31-(Yr(r)/Hn|0)|0}var Vo=256,qo=262144,Ho=4194304;function Ui(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Go(r,a,l){var c=r.pendingLanes;if(c===0)return 0;var m=0,g=r.suspendedLanes,S=r.pingedLanes;r=r.warmLanes;var C=c&134217727;return C!==0?(c=C&~g,c!==0?m=Ui(c):(S&=C,S!==0?m=Ui(S):l||(l=C&~r,l!==0&&(m=Ui(l))))):(C=c&~g,C!==0?m=Ui(C):S!==0?m=Ui(S):l||(l=c&~r,l!==0&&(m=Ui(l)))),m===0?0:a!==0&&a!==m&&(a&g)===0&&(g=m&-m,l=a&-a,g>=l||g===32&&(l&4194048)!==0)?a:m}function al(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function UE(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 dg(){var r=Ho;return Ho<<=1,(Ho&62914560)===0&&(Ho=4194304),r}function Af(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function sl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function VE(r,a,l,c,m,g){var S=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var C=r.entanglements,D=r.expirationTimes,F=r.hiddenUpdates;for(l=S&~l;0<l;){var Z=31-We(l),ne=1<<Z;C[Z]=0,D[Z]=-1;var $=F[Z];if($!==null)for(F[Z]=null,Z=0;Z<$.length;Z++){var X=$[Z];X!==null&&(X.lane&=-536870913)}l&=~ne}c!==0&&hg(r,c,0),g!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=g&~(S&~a))}function hg(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-We(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|l&261930}function mg(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var c=31-We(l),m=1<<c;m&a|r[c]&a&&(r[c]|=a),l&=~m}}function pg(r,a){var l=a&-a;return l=(l&42)!==0?1:Rf(l),(l&(r.suspendedLanes|a))!==0?0:l}function Rf(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Of(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function gg(){var r=re.p;return r!==0?r:(r=window.event,r===void 0?32:t_(r.type))}function yg(r,a){var l=re.p;try{return re.p=r,a()}finally{re.p=l}}var Kr=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Kr,Xt="__reactProps$"+Kr,Ma="__reactContainer$"+Kr,Nf="__reactEvents$"+Kr,qE="__reactListeners$"+Kr,HE="__reactHandles$"+Kr,vg="__reactResources$"+Kr,ll="__reactMarker$"+Kr;function jf(r){delete r[Rt],delete r[Xt],delete r[Nf],delete r[qE],delete r[HE]}function Pa(r){var a=r[Rt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Ma]||l[Rt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=B0(r);r!==null;){if(l=r[Rt])return l;r=B0(r)}return a}r=l,l=r.parentNode}return null}function za(r){if(r=r[Rt]||r[Ma]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function ol(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ia(r){var a=r[vg];return a||(a=r[vg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Tt(r){r[ll]=!0}var _g=new Set,bg={};function Vi(r,a){Ba(r,a),Ba(r+"Capture",a)}function Ba(r,a){for(bg[r]=a,r=0;r<a.length;r++)_g.add(a[r])}var GE=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]*$"),xg={},Sg={};function FE(r){return Vn.call(Sg,r)?!0:Vn.call(xg,r)?!1:GE.test(r)?Sg[r]=!0:(xg[r]=!0,!1)}function Fo(r,a,l){if(FE(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function $o(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function mr(r,a,l,c){if(c===null)r.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+c)}}function xn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Eg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function $E(r,a,l){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(S){l=""+S,g.call(this,S)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Lf(r){if(!r._valueTracker){var a=Eg(r)?"checked":"value";r._valueTracker=$E(r,a,""+r[a])}}function wg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return r&&(c=Eg(r)?r.checked?"true":"false":r.value),r=c,r!==l?(a.setValue(r),!0):!1}function Qo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var QE=/[\n"\\]/g;function Sn(r){return r.replace(QE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Df(r,a,l,c,m,g,S,C){r.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.type=S:r.removeAttribute("type"),a!=null?S==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+xn(a)):r.value!==""+xn(a)&&(r.value=""+xn(a)):S!=="submit"&&S!=="reset"||r.removeAttribute("value"),a!=null?Mf(r,S,xn(a)):l!=null?Mf(r,S,xn(l)):c!=null&&r.removeAttribute("value"),m==null&&g!=null&&(r.defaultChecked=!!g),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?r.name=""+xn(C):r.removeAttribute("name")}function Tg(r,a,l,c,m,g,S,C){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),a!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){Lf(r);return}l=l!=null?""+xn(l):"",a=a!=null?""+xn(a):l,C||a===r.value||(r.value=a),r.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=C?r.checked:!!c,r.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(r.name=S),Lf(r)}function Mf(r,a,l){a==="number"&&Qo(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Ua(r,a,l,c){if(r=r.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=a.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&c&&(r[l].defaultSelected=!0)}else{for(l=""+xn(l),a=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function Cg(r,a,l){if(a!=null&&(a=""+xn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+xn(l):""}function kg(r,a,l,c){if(a==null){if(c!=null){if(l!=null)throw Error(i(92));if(ae(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),a=l}l=xn(a),r.defaultValue=l,c=r.textContent,c===l&&c!==""&&c!==null&&(r.value=c),Lf(r)}function Va(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var YE=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 Ag(r,a,l){var c=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,l):typeof l!="number"||l===0||YE.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Rg(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&l[m]!==c&&Ag(r,m,c)}else for(var g in a)a.hasOwnProperty(g)&&Ag(r,g,a[g])}function Pf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 KE=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"]]),XE=/^[\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 Yo(r){return XE.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function pr(){}var zf=null;function If(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var qa=null,Ha=null;function Og(r){var a=za(r);if(a&&(r=a.stateNode)){var l=r[Xt]||null;e:switch(r=a.stateNode,a.type){case"input":if(Df(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Sn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==r&&c.form===r.form){var m=c[Xt]||null;if(!m)throw Error(i(90));Df(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)c=l[a],c.form===r.form&&wg(c)}break e;case"textarea":Cg(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Ua(r,!!l.multiple,a,!1)}}}var Bf=!1;function Ng(r,a,l){if(Bf)return r(a,l);Bf=!0;try{var c=r(a);return c}finally{if(Bf=!1,(qa!==null||Ha!==null)&&(Mu(),qa&&(a=qa,r=Ha,Ha=qa=null,Og(a),r)))for(a=0;a<r.length;a++)Og(r[a])}}function ul(r,a){var l=r.stateNode;if(l===null)return null;var c=l[Xt]||null;if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uf=!1;if(gr)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Uf=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Uf=!1}var Xr=null,Vf=null,Ko=null;function jg(){if(Ko)return Ko;var r,a=Vf,l=a.length,c,m="value"in Xr?Xr.value:Xr.textContent,g=m.length;for(r=0;r<l&&a[r]===m[r];r++);var S=l-r;for(c=1;c<=S&&a[l-c]===m[g-c];c++);return Ko=m.slice(r,1<c?1-c:void 0)}function Xo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Zo(){return!0}function Lg(){return!1}function Zt(r){function a(l,c,m,g,S){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var C in r)r.hasOwnProperty(C)&&(l=r[C],this[C]=l?l(g):g[C]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Zo:Lg,this.isPropagationStopped=Lg,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Zo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),a}var qi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jo=Zt(qi),fl=p({},qi,{view:0,detail:0}),ZE=Zt(fl),qf,Hf,dl,Wo=p({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ff,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==dl&&(dl&&r.type==="mousemove"?(qf=r.screenX-dl.screenX,Hf=r.screenY-dl.screenY):Hf=qf=0,dl=r),qf)},movementY:function(r){return"movementY"in r?r.movementY:Hf}}),Dg=Zt(Wo),JE=p({},Wo,{dataTransfer:0}),WE=Zt(JE),ew=p({},fl,{relatedTarget:0}),Gf=Zt(ew),tw=p({},qi,{animationName:0,elapsedTime:0,pseudoElement:0}),nw=Zt(tw),rw=p({},qi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),iw=Zt(rw),aw=p({},qi,{data:0}),Mg=Zt(aw),sw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lw={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"},ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uw(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=ow[r])?!!a[r]:!1}function Ff(){return uw}var cw=p({},fl,{key:function(r){if(r.key){var a=sw[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Xo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?lw[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ff,charCode:function(r){return r.type==="keypress"?Xo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Xo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),fw=Zt(cw),dw=p({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pg=Zt(dw),hw=p({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ff}),mw=Zt(hw),pw=p({},qi,{propertyName:0,elapsedTime:0,pseudoElement:0}),gw=Zt(pw),yw=p({},Wo,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),vw=Zt(yw),_w=p({},qi,{newState:0,oldState:0}),bw=Zt(_w),xw=[9,13,27,32],$f=gr&&"CompositionEvent"in window,hl=null;gr&&"documentMode"in document&&(hl=document.documentMode);var Sw=gr&&"TextEvent"in window&&!hl,zg=gr&&(!$f||hl&&8<hl&&11>=hl),Ig=" ",Bg=!1;function Ug(r,a){switch(r){case"keyup":return xw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ga=!1;function Ew(r,a){switch(r){case"compositionend":return Vg(a);case"keypress":return a.which!==32?null:(Bg=!0,Ig);case"textInput":return r=a.data,r===Ig&&Bg?null:r;default:return null}}function ww(r,a){if(Ga)return r==="compositionend"||!$f&&Ug(r,a)?(r=jg(),Ko=Vf=Xr=null,Ga=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return zg&&a.locale!=="ko"?null:a.data;default:return null}}var Tw={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 qg(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Tw[r.type]:a==="textarea"}function Hg(r,a,l,c){qa?Ha?Ha.push(c):Ha=[c]:qa=c,a=qu(a,"onChange"),0<a.length&&(l=new Jo("onChange","change",null,l,c),r.push({event:l,listeners:a}))}var ml=null,pl=null;function Cw(r){T0(r,0)}function eu(r){var a=ol(r);if(wg(a))return r}function Gg(r,a){if(r==="change")return a}var Fg=!1;if(gr){var Qf;if(gr){var Yf="oninput"in document;if(!Yf){var $g=document.createElement("div");$g.setAttribute("oninput","return;"),Yf=typeof $g.oninput=="function"}Qf=Yf}else Qf=!1;Fg=Qf&&(!document.documentMode||9<document.documentMode)}function Qg(){ml&&(ml.detachEvent("onpropertychange",Yg),pl=ml=null)}function Yg(r){if(r.propertyName==="value"&&eu(pl)){var a=[];Hg(a,pl,r,If(r)),Ng(Cw,a)}}function kw(r,a,l){r==="focusin"?(Qg(),ml=a,pl=l,ml.attachEvent("onpropertychange",Yg)):r==="focusout"&&Qg()}function Aw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return eu(pl)}function Rw(r,a){if(r==="click")return eu(a)}function Ow(r,a){if(r==="input"||r==="change")return eu(a)}function Nw(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var fn=typeof Object.is=="function"?Object.is:Nw;function gl(r,a){if(fn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!Vn.call(a,m)||!fn(r[m],a[m]))return!1}return!0}function Kg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Xg(r,a){var l=Kg(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=a&&c>=a)return{node:l,offset:a-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Kg(l)}}function Zg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Zg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Jg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Qo(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=Qo(r.document)}return a}function Kf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var jw=gr&&"documentMode"in document&&11>=document.documentMode,Fa=null,Xf=null,yl=null,Zf=!1;function Wg(r,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zf||Fa==null||Fa!==Qo(c)||(c=Fa,"selectionStart"in c&&Kf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),yl&&gl(yl,c)||(yl=c,c=qu(Xf,"onSelect"),0<c.length&&(a=new Jo("onSelect","select",null,a,l),r.push({event:a,listeners:c}),a.target=Fa)))}function Hi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var $a={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},Jf={},ey={};gr&&(ey=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function Gi(r){if(Jf[r])return Jf[r];if(!$a[r])return r;var a=$a[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in ey)return Jf[r]=a[l];return r}var ty=Gi("animationend"),ny=Gi("animationiteration"),ry=Gi("animationstart"),Lw=Gi("transitionrun"),Dw=Gi("transitionstart"),Mw=Gi("transitioncancel"),iy=Gi("transitionend"),ay=new Map,Wf="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(" ");Wf.push("scrollEnd");function Gn(r,a){ay.set(r,a),Vi(a,[r])}var tu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},En=[],Qa=0,ed=0;function nu(){for(var r=Qa,a=ed=Qa=0;a<r;){var l=En[a];En[a++]=null;var c=En[a];En[a++]=null;var m=En[a];En[a++]=null;var g=En[a];if(En[a++]=null,c!==null&&m!==null){var S=c.pending;S===null?m.next=m:(m.next=S.next,S.next=m),c.pending=m}g!==0&&sy(l,m,g)}}function ru(r,a,l,c){En[Qa++]=r,En[Qa++]=a,En[Qa++]=l,En[Qa++]=c,ed|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function td(r,a,l,c){return ru(r,a,l,c),iu(r)}function Fi(r,a){return ru(r,null,null,a),iu(r)}function sy(r,a,l){r.lanes|=l;var c=r.alternate;c!==null&&(c.lanes|=l);for(var m=!1,g=r.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(m=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,m&&a!==null&&(m=31-We(l),r=g.hiddenUpdates,c=r[m],c===null?r[m]=[a]:c.push(a),a.lane=l|536870912),g):null}function iu(r){if(50<Bl)throw Bl=0,ch=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ya={};function Pw(r,a,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(r,a,l,c){return new Pw(r,a,l,c)}function nd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function yr(r,a){var l=r.alternate;return l===null?(l=dn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function ly(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function au(r,a,l,c,m,g){var S=0;if(c=r,typeof r=="function")nd(r)&&(S=1);else if(typeof r=="string")S=VT(r,l,le.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ee:return r=dn(31,l,a,m),r.elementType=ee,r.lanes=g,r;case w:return $i(l.children,m,g,a);case E:S=8,m|=24;break;case T:return r=dn(12,l,a,m|2),r.elementType=T,r.lanes=g,r;case I:return r=dn(13,l,a,m),r.elementType=I,r.lanes=g,r;case R:return r=dn(19,l,a,m),r.elementType=R,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case N:S=10;break e;case A:S=9;break e;case P:S=11;break e;case U:S=14;break e;case K:S=16,c=null;break e}S=29,l=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=dn(S,l,a,m),a.elementType=r,a.type=c,a.lanes=g,a}function $i(r,a,l,c){return r=dn(7,r,c,a),r.lanes=l,r}function rd(r,a,l){return r=dn(6,r,null,a),r.lanes=l,r}function oy(r){var a=dn(18,null,null,0);return a.stateNode=r,a}function id(r,a,l){return a=dn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var uy=new WeakMap;function wn(r,a){if(typeof r=="object"&&r!==null){var l=uy.get(r);return l!==void 0?l:(a={value:r,source:a,stack:La(a)},uy.set(r,a),a)}return{value:r,source:a,stack:La(a)}}var Ka=[],Xa=0,su=null,vl=0,Tn=[],Cn=0,Zr=null,Jn=1,Wn="";function vr(r,a){Ka[Xa++]=vl,Ka[Xa++]=su,su=r,vl=a}function cy(r,a,l){Tn[Cn++]=Jn,Tn[Cn++]=Wn,Tn[Cn++]=Zr,Zr=r;var c=Jn;r=Wn;var m=32-We(c)-1;c&=~(1<<m),l+=1;var g=32-We(a)+m;if(30<g){var S=m-m%5;g=(c&(1<<S)-1).toString(32),c>>=S,m-=S,Jn=1<<32-We(a)+m|l<<m|c,Wn=g+r}else Jn=1<<g|l<<m|c,Wn=r}function ad(r){r.return!==null&&(vr(r,1),cy(r,1,0))}function sd(r){for(;r===su;)su=Ka[--Xa],Ka[Xa]=null,vl=Ka[--Xa],Ka[Xa]=null;for(;r===Zr;)Zr=Tn[--Cn],Tn[Cn]=null,Wn=Tn[--Cn],Tn[Cn]=null,Jn=Tn[--Cn],Tn[Cn]=null}function fy(r,a){Tn[Cn++]=Jn,Tn[Cn++]=Wn,Tn[Cn++]=Zr,Jn=a.id,Wn=a.overflow,Zr=r}var Ot=null,rt=null,ze=!1,Jr=null,kn=!1,ld=Error(i(519));function Wr(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(wn(a,r)),ld}function dy(r){var a=r.stateNode,l=r.type,c=r.memoizedProps;switch(a[Rt]=r,a[Xt]=c,l){case"dialog":Ne("cancel",a),Ne("close",a);break;case"iframe":case"object":case"embed":Ne("load",a);break;case"video":case"audio":for(l=0;l<Vl.length;l++)Ne(Vl[l],a);break;case"source":Ne("error",a);break;case"img":case"image":case"link":Ne("error",a),Ne("load",a);break;case"details":Ne("toggle",a);break;case"input":Ne("invalid",a),Tg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ne("invalid",a);break;case"textarea":Ne("invalid",a),kg(a,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||c.suppressHydrationWarning===!0||R0(a.textContent,l)?(c.popover!=null&&(Ne("beforetoggle",a),Ne("toggle",a)),c.onScroll!=null&&Ne("scroll",a),c.onScrollEnd!=null&&Ne("scrollend",a),c.onClick!=null&&(a.onclick=pr),a=!0):a=!1,a||Wr(r,!0)}function hy(r){for(Ot=r.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Ot=Ot.return}}function Za(r){if(r!==Ot)return!1;if(!ze)return hy(r),ze=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Th(r.type,r.memoizedProps)),l=!l),l&&rt&&Wr(r),hy(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=I0(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=I0(r)}else a===27?(a=rt,hi(r.type)?(r=Oh,Oh=null,rt=r):rt=a):rt=Ot?Rn(r.stateNode.nextSibling):null;return!0}function Qi(){rt=Ot=null,ze=!1}function od(){var r=Jr;return r!==null&&(tn===null?tn=r:tn.push.apply(tn,r),Jr=null),r}function _l(r){Jr===null?Jr=[r]:Jr.push(r)}var ud=z(null),Yi=null,_r=null;function ei(r,a,l){k(ud,a._currentValue),a._currentValue=l}function br(r){r._currentValue=ud.current,H(ud)}function cd(r,a,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===l)break;r=r.return}}function fd(r,a,l,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var g=m.dependencies;if(g!==null){var S=m.child;g=g.firstContext;e:for(;g!==null;){var C=g;g=m;for(var D=0;D<a.length;D++)if(C.context===a[D]){g.lanes|=l,C=g.alternate,C!==null&&(C.lanes|=l),cd(g.return,l,r),c||(S=null);break e}g=C.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(i(341));S.lanes|=l,g=S.alternate,g!==null&&(g.lanes|=l),cd(S,l,r),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===r){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function Ja(r,a,l,c){r=null;for(var m=a,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var C=m.type;fn(m.pendingProps.value,S.value)||(r!==null?r.push(C):r=[C])}}else if(m===Ee.current){if(S=m.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push($l):r=[$l])}m=m.return}r!==null&&fd(a,r,l,c),a.flags|=262144}function lu(r){for(r=r.firstContext;r!==null;){if(!fn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ki(r){Yi=r,_r=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Nt(r){return my(Yi,r)}function ou(r,a){return Yi===null&&Ki(r),my(r,a)}function my(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},_r===null){if(r===null)throw Error(i(308));_r=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else _r=_r.next=a;return l}var zw=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},Iw=e.unstable_scheduleCallback,Bw=e.unstable_NormalPriority,ht={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dd(){return{controller:new zw,data:new Map,refCount:0}}function bl(r){r.refCount--,r.refCount===0&&Iw(Bw,function(){r.controller.abort()})}var xl=null,hd=0,Wa=0,es=null;function Uw(r,a){if(xl===null){var l=xl=[];hd=0,Wa=gh(),es={status:"pending",value:void 0,then:function(c){l.push(c)}}}return hd++,a.then(py,py),a}function py(){if(--hd===0&&xl!==null){es!==null&&(es.status="fulfilled");var r=xl;xl=null,Wa=0,es=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Vw(r,a){var l=[],c={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),c}var gy=q.S;q.S=function(r,a){Wv=Ue(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Uw(r,a),gy!==null&&gy(r,a)};var Xi=z(null);function md(){var r=Xi.current;return r!==null?r:et.pooledCache}function uu(r,a){a===null?k(Xi,Xi.current):k(Xi,a.pool)}function yy(){var r=md();return r===null?null:{parent:ht._currentValue,pool:r}}var ts=Error(i(460)),pd=Error(i(474)),cu=Error(i(542)),fu={then:function(){}};function vy(r){return r=r.status,r==="fulfilled"||r==="rejected"}function _y(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(pr,pr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,xy(r),r;default:if(typeof a.status=="string")a.then(pr,pr);else{if(r=et,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,xy(r),r}throw Ji=a,ts}}function Zi(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ji=l,ts):l}}var Ji=null;function by(){if(Ji===null)throw Error(i(459));var r=Ji;return Ji=null,r}function xy(r){if(r===ts||r===cu)throw Error(i(483))}var ns=null,Sl=0;function du(r){var a=Sl;return Sl+=1,ns===null&&(ns=[]),_y(ns,r,a)}function El(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function hu(r,a){throw a.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Sy(r){function a(V,B){if(r){var G=V.deletions;G===null?(V.deletions=[B],V.flags|=16):G.push(B)}}function l(V,B){if(!r)return null;for(;B!==null;)a(V,B),B=B.sibling;return null}function c(V){for(var B=new Map;V!==null;)V.key!==null?B.set(V.key,V):B.set(V.index,V),V=V.sibling;return B}function m(V,B){return V=yr(V,B),V.index=0,V.sibling=null,V}function g(V,B,G){return V.index=G,r?(G=V.alternate,G!==null?(G=G.index,G<B?(V.flags|=67108866,B):G):(V.flags|=67108866,B)):(V.flags|=1048576,B)}function S(V){return r&&V.alternate===null&&(V.flags|=67108866),V}function C(V,B,G,W){return B===null||B.tag!==6?(B=rd(G,V.mode,W),B.return=V,B):(B=m(B,G),B.return=V,B)}function D(V,B,G,W){var ve=G.type;return ve===w?Z(V,B,G.props.children,W,G.key):B!==null&&(B.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===K&&Zi(ve)===B.type)?(B=m(B,G.props),El(B,G),B.return=V,B):(B=au(G.type,G.key,G.props,null,V.mode,W),El(B,G),B.return=V,B)}function F(V,B,G,W){return B===null||B.tag!==4||B.stateNode.containerInfo!==G.containerInfo||B.stateNode.implementation!==G.implementation?(B=id(G,V.mode,W),B.return=V,B):(B=m(B,G.children||[]),B.return=V,B)}function Z(V,B,G,W,ve){return B===null||B.tag!==7?(B=$i(G,V.mode,W,ve),B.return=V,B):(B=m(B,G),B.return=V,B)}function ne(V,B,G){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=rd(""+B,V.mode,G),B.return=V,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return G=au(B.type,B.key,B.props,null,V.mode,G),El(G,B),G.return=V,G;case x:return B=id(B,V.mode,G),B.return=V,B;case K:return B=Zi(B),ne(V,B,G)}if(ae(B)||ie(B))return B=$i(B,V.mode,G,null),B.return=V,B;if(typeof B.then=="function")return ne(V,du(B),G);if(B.$$typeof===N)return ne(V,ou(V,B),G);hu(V,B)}return null}function $(V,B,G,W){var ve=B!==null?B.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ve!==null?null:C(V,B,""+G,W);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case _:return G.key===ve?D(V,B,G,W):null;case x:return G.key===ve?F(V,B,G,W):null;case K:return G=Zi(G),$(V,B,G,W)}if(ae(G)||ie(G))return ve!==null?null:Z(V,B,G,W,null);if(typeof G.then=="function")return $(V,B,du(G),W);if(G.$$typeof===N)return $(V,B,ou(V,G),W);hu(V,G)}return null}function X(V,B,G,W,ve){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return V=V.get(G)||null,C(B,V,""+W,ve);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case _:return V=V.get(W.key===null?G:W.key)||null,D(B,V,W,ve);case x:return V=V.get(W.key===null?G:W.key)||null,F(B,V,W,ve);case K:return W=Zi(W),X(V,B,G,W,ve)}if(ae(W)||ie(W))return V=V.get(G)||null,Z(B,V,W,ve,null);if(typeof W.then=="function")return X(V,B,G,du(W),ve);if(W.$$typeof===N)return X(V,B,G,ou(B,W),ve);hu(B,W)}return null}function me(V,B,G,W){for(var ve=null,qe=null,ge=B,Ce=B=0,De=null;ge!==null&&Ce<G.length;Ce++){ge.index>Ce?(De=ge,ge=null):De=ge.sibling;var He=$(V,ge,G[Ce],W);if(He===null){ge===null&&(ge=De);break}r&&ge&&He.alternate===null&&a(V,ge),B=g(He,B,Ce),qe===null?ve=He:qe.sibling=He,qe=He,ge=De}if(Ce===G.length)return l(V,ge),ze&&vr(V,Ce),ve;if(ge===null){for(;Ce<G.length;Ce++)ge=ne(V,G[Ce],W),ge!==null&&(B=g(ge,B,Ce),qe===null?ve=ge:qe.sibling=ge,qe=ge);return ze&&vr(V,Ce),ve}for(ge=c(ge);Ce<G.length;Ce++)De=X(ge,V,Ce,G[Ce],W),De!==null&&(r&&De.alternate!==null&&ge.delete(De.key===null?Ce:De.key),B=g(De,B,Ce),qe===null?ve=De:qe.sibling=De,qe=De);return r&&ge.forEach(function(vi){return a(V,vi)}),ze&&vr(V,Ce),ve}function be(V,B,G,W){if(G==null)throw Error(i(151));for(var ve=null,qe=null,ge=B,Ce=B=0,De=null,He=G.next();ge!==null&&!He.done;Ce++,He=G.next()){ge.index>Ce?(De=ge,ge=null):De=ge.sibling;var vi=$(V,ge,He.value,W);if(vi===null){ge===null&&(ge=De);break}r&&ge&&vi.alternate===null&&a(V,ge),B=g(vi,B,Ce),qe===null?ve=vi:qe.sibling=vi,qe=vi,ge=De}if(He.done)return l(V,ge),ze&&vr(V,Ce),ve;if(ge===null){for(;!He.done;Ce++,He=G.next())He=ne(V,He.value,W),He!==null&&(B=g(He,B,Ce),qe===null?ve=He:qe.sibling=He,qe=He);return ze&&vr(V,Ce),ve}for(ge=c(ge);!He.done;Ce++,He=G.next())He=X(ge,V,Ce,He.value,W),He!==null&&(r&&He.alternate!==null&&ge.delete(He.key===null?Ce:He.key),B=g(He,B,Ce),qe===null?ve=He:qe.sibling=He,qe=He);return r&&ge.forEach(function(JT){return a(V,JT)}),ze&&vr(V,Ce),ve}function Je(V,B,G,W){if(typeof G=="object"&&G!==null&&G.type===w&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case _:e:{for(var ve=G.key;B!==null;){if(B.key===ve){if(ve=G.type,ve===w){if(B.tag===7){l(V,B.sibling),W=m(B,G.props.children),W.return=V,V=W;break e}}else if(B.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===K&&Zi(ve)===B.type){l(V,B.sibling),W=m(B,G.props),El(W,G),W.return=V,V=W;break e}l(V,B);break}else a(V,B);B=B.sibling}G.type===w?(W=$i(G.props.children,V.mode,W,G.key),W.return=V,V=W):(W=au(G.type,G.key,G.props,null,V.mode,W),El(W,G),W.return=V,V=W)}return S(V);case x:e:{for(ve=G.key;B!==null;){if(B.key===ve)if(B.tag===4&&B.stateNode.containerInfo===G.containerInfo&&B.stateNode.implementation===G.implementation){l(V,B.sibling),W=m(B,G.children||[]),W.return=V,V=W;break e}else{l(V,B);break}else a(V,B);B=B.sibling}W=id(G,V.mode,W),W.return=V,V=W}return S(V);case K:return G=Zi(G),Je(V,B,G,W)}if(ae(G))return me(V,B,G,W);if(ie(G)){if(ve=ie(G),typeof ve!="function")throw Error(i(150));return G=ve.call(G),be(V,B,G,W)}if(typeof G.then=="function")return Je(V,B,du(G),W);if(G.$$typeof===N)return Je(V,B,ou(V,G),W);hu(V,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,B!==null&&B.tag===6?(l(V,B.sibling),W=m(B,G),W.return=V,V=W):(l(V,B),W=rd(G,V.mode,W),W.return=V,V=W),S(V)):l(V,B)}return function(V,B,G,W){try{Sl=0;var ve=Je(V,B,G,W);return ns=null,ve}catch(ge){if(ge===ts||ge===cu)throw ge;var qe=dn(29,ge,null,V.mode);return qe.lanes=W,qe.return=V,qe}finally{}}}var Wi=Sy(!0),Ey=Sy(!1),ti=!1;function gd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yd(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ni(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ri(r,a,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ge&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=iu(r),sy(r,null,l),a}return ru(r,c,a,l),iu(r)}function wl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,mg(r,l)}}function vd(r,a){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=S:g=g.next=S,l=l.next}while(l!==null);g===null?m=g=a:g=g.next=a}else m=g=a;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var _d=!1;function Tl(){if(_d){var r=es;if(r!==null)throw r}}function Cl(r,a,l,c){_d=!1;var m=r.updateQueue;ti=!1;var g=m.firstBaseUpdate,S=m.lastBaseUpdate,C=m.shared.pending;if(C!==null){m.shared.pending=null;var D=C,F=D.next;D.next=null,S===null?g=F:S.next=F,S=D;var Z=r.alternate;Z!==null&&(Z=Z.updateQueue,C=Z.lastBaseUpdate,C!==S&&(C===null?Z.firstBaseUpdate=F:C.next=F,Z.lastBaseUpdate=D))}if(g!==null){var ne=m.baseState;S=0,Z=F=D=null,C=g;do{var $=C.lane&-536870913,X=$!==C.lane;if(X?(Le&$)===$:(c&$)===$){$!==0&&$===Wa&&(_d=!0),Z!==null&&(Z=Z.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var me=r,be=C;$=a;var Je=l;switch(be.tag){case 1:if(me=be.payload,typeof me=="function"){ne=me.call(Je,ne,$);break e}ne=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=be.payload,$=typeof me=="function"?me.call(Je,ne,$):me,$==null)break e;ne=p({},ne,$);break e;case 2:ti=!0}}$=C.callback,$!==null&&(r.flags|=64,X&&(r.flags|=8192),X=m.callbacks,X===null?m.callbacks=[$]:X.push($))}else X={lane:$,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Z===null?(F=Z=X,D=ne):Z=Z.next=X,S|=$;if(C=C.next,C===null){if(C=m.shared.pending,C===null)break;X=C,C=X.next,X.next=null,m.lastBaseUpdate=X,m.shared.pending=null}}while(!0);Z===null&&(D=ne),m.baseState=D,m.firstBaseUpdate=F,m.lastBaseUpdate=Z,g===null&&(m.shared.lanes=0),oi|=S,r.lanes=S,r.memoizedState=ne}}function wy(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Ty(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)wy(l[r],a)}var rs=z(null),mu=z(0);function Cy(r,a){r=Rr,k(mu,r),k(rs,a),Rr=r|a.baseLanes}function bd(){k(mu,Rr),k(rs,rs.current)}function xd(){Rr=mu.current,H(rs),H(mu)}var hn=z(null),An=null;function ii(r){var a=r.alternate;k(ct,ct.current&1),k(hn,r),An===null&&(a===null||rs.current!==null||a.memoizedState!==null)&&(An=r)}function Sd(r){k(ct,ct.current),k(hn,r),An===null&&(An=r)}function ky(r){r.tag===22?(k(ct,ct.current),k(hn,r),An===null&&(An=r)):ai()}function ai(){k(ct,ct.current),k(hn,hn.current)}function mn(r){H(hn),An===r&&(An=null),H(ct)}var ct=z(0);function pu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ah(l)||Rh(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var xr=0,Te=null,Xe=null,mt=null,gu=!1,is=!1,ea=!1,yu=0,kl=0,as=null,qw=0;function st(){throw Error(i(321))}function Ed(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!fn(r[l],a[l]))return!1;return!0}function wd(r,a,l,c,m,g){return xr=g,Te=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,q.H=r===null||r.memoizedState===null?cv:Bd,ea=!1,g=l(c,m),ea=!1,is&&(g=Ry(a,l,c,m)),Ay(r),g}function Ay(r){q.H=Ol;var a=Xe!==null&&Xe.next!==null;if(xr=0,mt=Xe=Te=null,gu=!1,kl=0,as=null,a)throw Error(i(300));r===null||pt||(r=r.dependencies,r!==null&&lu(r)&&(pt=!0))}function Ry(r,a,l,c){Te=r;var m=0;do{if(is&&(as=null),kl=0,is=!1,25<=m)throw Error(i(301));if(m+=1,mt=Xe=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}q.H=fv,g=a(l,c)}while(is);return g}function Hw(){var r=q.H,a=r.useState()[0];return a=typeof a.then=="function"?Al(a):a,r=r.useState()[0],(Xe!==null?Xe.memoizedState:null)!==r&&(Te.flags|=1024),a}function Td(){var r=yu!==0;return yu=0,r}function Cd(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function kd(r){if(gu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}gu=!1}xr=0,mt=Xe=Te=null,is=!1,kl=yu=0,as=null}function qt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Te.memoizedState=mt=r:mt=mt.next=r,mt}function ft(){if(Xe===null){var r=Te.alternate;r=r!==null?r.memoizedState:null}else r=Xe.next;var a=mt===null?Te.memoizedState:mt.next;if(a!==null)mt=a,Xe=r;else{if(r===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Xe=r,r={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},mt===null?Te.memoizedState=mt=r:mt=mt.next=r}return mt}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(r){var a=kl;return kl+=1,as===null&&(as=[]),r=_y(as,r,a),a=Te,(mt===null?a.memoizedState:mt.next)===null&&(a=a.alternate,q.H=a===null||a.memoizedState===null?cv:Bd),r}function _u(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Al(r);if(r.$$typeof===N)return Nt(r)}throw Error(i(438,String(r)))}function Ad(r){var a=null,l=Te.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var c=Te.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=vu(),Te.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),c=0;c<r;c++)l[c]=j;return a.index++,l}function Sr(r,a){return typeof a=="function"?a(r):a}function bu(r){var a=ft();return Rd(a,Xe,r)}function Rd(r,a,l){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var m=r.baseQueue,g=c.pending;if(g!==null){if(m!==null){var S=m.next;m.next=g.next,g.next=S}a.baseQueue=m=g,c.pending=null}if(g=r.baseState,m===null)r.memoizedState=g;else{a=m.next;var C=S=null,D=null,F=a,Z=!1;do{var ne=F.lane&-536870913;if(ne!==F.lane?(Le&ne)===ne:(xr&ne)===ne){var $=F.revertLane;if($===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ne===Wa&&(Z=!0);else if((xr&$)===$){F=F.next,$===Wa&&(Z=!0);continue}else ne={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(C=D=ne,S=g):D=D.next=ne,Te.lanes|=$,oi|=$;ne=F.action,ea&&l(g,ne),g=F.hasEagerState?F.eagerState:l(g,ne)}else $={lane:ne,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(C=D=$,S=g):D=D.next=$,Te.lanes|=ne,oi|=ne;F=F.next}while(F!==null&&F!==a);if(D===null?S=g:D.next=C,!fn(g,r.memoizedState)&&(pt=!0,Z&&(l=es,l!==null)))throw l;r.memoizedState=g,r.baseState=S,r.baseQueue=D,c.lastRenderedState=g}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Od(r){var a=ft(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,m=l.pending,g=a.memoizedState;if(m!==null){l.pending=null;var S=m=m.next;do g=r(g,S.action),S=S.next;while(S!==m);fn(g,a.memoizedState)||(pt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),l.lastRenderedState=g}return[g,c]}function Oy(r,a,l){var c=Te,m=ft(),g=ze;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=a();var S=!fn((Xe||m).memoizedState,l);if(S&&(m.memoizedState=l,pt=!0),m=m.queue,Ld(Ly.bind(null,c,m,r),[r]),m.getSnapshot!==a||S||mt!==null&&mt.memoizedState.tag&1){if(c.flags|=2048,ss(9,{destroy:void 0},jy.bind(null,c,m,l,a),null),et===null)throw Error(i(349));g||(xr&127)!==0||Ny(c,a,l)}return l}function Ny(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Te.updateQueue,a===null?(a=vu(),Te.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function jy(r,a,l,c){a.value=l,a.getSnapshot=c,Dy(a)&&My(r)}function Ly(r,a,l){return l(function(){Dy(a)&&My(r)})}function Dy(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!fn(r,l)}catch{return!0}}function My(r){var a=Fi(r,2);a!==null&&nn(a,r,2)}function Nd(r){var a=qt();if(typeof r=="function"){var l=r;if(r=l(),ea){Kt(!0);try{l()}finally{Kt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:r},a}function Py(r,a,l,c){return r.baseState=l,Rd(r,Xe,typeof c=="function"?c:Sr)}function Gw(r,a,l,c,m){if(Eu(r))throw Error(i(485));if(r=a.action,r!==null){var g={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};q.T!==null?l(!0):g.isTransition=!1,c(g),l=a.pending,l===null?(g.next=a.pending=g,zy(a,g)):(g.next=l.next,a.pending=l.next=g)}}function zy(r,a){var l=a.action,c=a.payload,m=r.state;if(a.isTransition){var g=q.T,S={};q.T=S;try{var C=l(m,c),D=q.S;D!==null&&D(S,C),Iy(r,a,C)}catch(F){jd(r,a,F)}finally{g!==null&&S.types!==null&&(g.types=S.types),q.T=g}}else try{g=l(m,c),Iy(r,a,g)}catch(F){jd(r,a,F)}}function Iy(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){By(r,a,c)},function(c){return jd(r,a,c)}):By(r,a,l)}function By(r,a,l){a.status="fulfilled",a.value=l,Uy(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,zy(r,l)))}function jd(r,a,l){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=l,Uy(a),a=a.next;while(a!==c)}r.action=null}function Uy(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Vy(r,a){return a}function qy(r,a){if(ze){var l=et.formState;if(l!==null){e:{var c=Te;if(ze){if(rt){t:{for(var m=rt,g=kn;m.nodeType!==8;){if(!g){m=null;break t}if(m=Rn(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){rt=Rn(m.nextSibling),c=m.data==="F!";break e}}Wr(c)}c=!1}c&&(a=l[0])}}return l=qt(),l.memoizedState=l.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vy,lastRenderedState:a},l.queue=c,l=lv.bind(null,Te,c),c.dispatch=l,c=Nd(!1),g=Id.bind(null,Te,!1,c.queue),c=qt(),m={state:a,dispatch:null,action:r,pending:null},c.queue=m,l=Gw.bind(null,Te,m,g,l),m.dispatch=l,c.memoizedState=r,[a,l,!1]}function Hy(r){var a=ft();return Gy(a,Xe,r)}function Gy(r,a,l){if(a=Rd(r,a,Vy)[0],r=bu(Sr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Al(a)}catch(S){throw S===ts?cu:S}else c=a;a=ft();var m=a.queue,g=m.dispatch;return l!==a.memoizedState&&(Te.flags|=2048,ss(9,{destroy:void 0},Fw.bind(null,m,l),null)),[c,g,r]}function Fw(r,a){r.action=a}function Fy(r){var a=ft(),l=Xe;if(l!==null)return Gy(a,l,r);ft(),a=a.memoizedState,l=ft();var c=l.queue.dispatch;return l.memoizedState=r,[a,c,!1]}function ss(r,a,l,c){return r={tag:r,create:l,deps:c,inst:a,next:null},a=Te.updateQueue,a===null&&(a=vu(),Te.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,a.lastEffect=r),r}function $y(){return ft().memoizedState}function xu(r,a,l,c){var m=qt();Te.flags|=r,m.memoizedState=ss(1|a,{destroy:void 0},l,c===void 0?null:c)}function Su(r,a,l,c){var m=ft();c=c===void 0?null:c;var g=m.memoizedState.inst;Xe!==null&&c!==null&&Ed(c,Xe.memoizedState.deps)?m.memoizedState=ss(a,g,l,c):(Te.flags|=r,m.memoizedState=ss(1|a,g,l,c))}function Qy(r,a){xu(8390656,8,r,a)}function Ld(r,a){Su(2048,8,r,a)}function $w(r){Te.flags|=4;var a=Te.updateQueue;if(a===null)a=vu(),Te.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function Yy(r){var a=ft().memoizedState;return $w({ref:a,nextImpl:r}),function(){if((Ge&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Ky(r,a){return Su(4,2,r,a)}function Xy(r,a){return Su(4,4,r,a)}function Zy(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Jy(r,a,l){l=l!=null?l.concat([r]):null,Su(4,4,Zy.bind(null,a,r),l)}function Dd(){}function Wy(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;return a!==null&&Ed(a,c[1])?c[0]:(l.memoizedState=[r,a],r)}function ev(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;if(a!==null&&Ed(a,c[1]))return c[0];if(c=r(),ea){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c}function Md(r,a,l){return l===void 0||(xr&1073741824)!==0&&(Le&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=t0(),Te.lanes|=r,oi|=r,l)}function tv(r,a,l,c){return fn(l,a)?l:rs.current!==null?(r=Md(r,l,c),fn(r,a)||(pt=!0),r):(xr&42)===0||(xr&1073741824)!==0&&(Le&261930)===0?(pt=!0,r.memoizedState=l):(r=t0(),Te.lanes|=r,oi|=r,a)}function nv(r,a,l,c,m){var g=re.p;re.p=g!==0&&8>g?g:8;var S=q.T,C={};q.T=C,Id(r,!1,a,l);try{var D=m(),F=q.S;if(F!==null&&F(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var Z=Vw(D,c);Rl(r,a,Z,yn(r))}else Rl(r,a,c,yn(r))}catch(ne){Rl(r,a,{then:function(){},status:"rejected",reason:ne},yn())}finally{re.p=g,S!==null&&C.types!==null&&(S.types=C.types),q.T=S}}function Qw(){}function Pd(r,a,l,c){if(r.tag!==5)throw Error(i(476));var m=rv(r).queue;nv(r,m,a,ce,l===null?Qw:function(){return iv(r),l(c)})}function rv(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:ce},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function iv(r){var a=rv(r);a.next===null&&(a=r.alternate.memoizedState),Rl(r,a.next.queue,{},yn())}function zd(){return Nt($l)}function av(){return ft().memoizedState}function sv(){return ft().memoizedState}function Yw(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=yn();r=ni(l);var c=ri(a,r,l);c!==null&&(nn(c,a,l),wl(c,a,l)),a={cache:dd()},r.payload=a;return}a=a.return}}function Kw(r,a,l){var c=yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Eu(r)?ov(a,l):(l=td(r,a,l,c),l!==null&&(nn(l,r,c),uv(l,a,c)))}function lv(r,a,l){var c=yn();Rl(r,a,l,c)}function Rl(r,a,l,c){var m={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Eu(r))ov(a,m);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var S=a.lastRenderedState,C=g(S,l);if(m.hasEagerState=!0,m.eagerState=C,fn(C,S))return ru(r,a,m,0),et===null&&nu(),!1}catch{}finally{}if(l=td(r,a,m,c),l!==null)return nn(l,r,c),uv(l,a,c),!0}return!1}function Id(r,a,l,c){if(c={lane:2,revertLane:gh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Eu(r)){if(a)throw Error(i(479))}else a=td(r,l,c,2),a!==null&&nn(a,r,2)}function Eu(r){var a=r.alternate;return r===Te||a!==null&&a===Te}function ov(r,a){is=gu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function uv(r,a,l){if((l&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,mg(r,l)}}var Ol={readContext:Nt,use:_u,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ol.useEffectEvent=st;var cv={readContext:Nt,use:_u,useCallback:function(r,a){return qt().memoizedState=[r,a===void 0?null:a],r},useContext:Nt,useEffect:Qy,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,xu(4194308,4,Zy.bind(null,a,r),l)},useLayoutEffect:function(r,a){return xu(4194308,4,r,a)},useInsertionEffect:function(r,a){xu(4,2,r,a)},useMemo:function(r,a){var l=qt();a=a===void 0?null:a;var c=r();if(ea){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c},useReducer:function(r,a,l){var c=qt();if(l!==void 0){var m=l(a);if(ea){Kt(!0);try{l(a)}finally{Kt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=Kw.bind(null,Te,r),[c.memoizedState,r]},useRef:function(r){var a=qt();return r={current:r},a.memoizedState=r},useState:function(r){r=Nd(r);var a=r.queue,l=lv.bind(null,Te,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Dd,useDeferredValue:function(r,a){var l=qt();return Md(l,r,a)},useTransition:function(){var r=Nd(!1);return r=nv.bind(null,Te,r.queue,!0,!1),qt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var c=Te,m=qt();if(ze){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),et===null)throw Error(i(349));(Le&127)!==0||Ny(c,a,l)}m.memoizedState=l;var g={value:l,getSnapshot:a};return m.queue=g,Qy(Ly.bind(null,c,g,r),[r]),c.flags|=2048,ss(9,{destroy:void 0},jy.bind(null,c,g,l,a),null),l},useId:function(){var r=qt(),a=et.identifierPrefix;if(ze){var l=Wn,c=Jn;l=(c&~(1<<32-We(c)-1)).toString(32)+l,a="_"+a+"R_"+l,l=yu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=qw++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:zd,useFormState:qy,useActionState:qy,useOptimistic:function(r){var a=qt();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Id.bind(null,Te,!0,l),l.dispatch=a,[r,a]},useMemoCache:Ad,useCacheRefresh:function(){return qt().memoizedState=Yw.bind(null,Te)},useEffectEvent:function(r){var a=qt(),l={impl:r};return a.memoizedState=l,function(){if((Ge&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Bd={readContext:Nt,use:_u,useCallback:Wy,useContext:Nt,useEffect:Ld,useImperativeHandle:Jy,useInsertionEffect:Ky,useLayoutEffect:Xy,useMemo:ev,useReducer:bu,useRef:$y,useState:function(){return bu(Sr)},useDebugValue:Dd,useDeferredValue:function(r,a){var l=ft();return tv(l,Xe.memoizedState,r,a)},useTransition:function(){var r=bu(Sr)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Al(r),a]},useSyncExternalStore:Oy,useId:av,useHostTransitionStatus:zd,useFormState:Hy,useActionState:Hy,useOptimistic:function(r,a){var l=ft();return Py(l,Xe,r,a)},useMemoCache:Ad,useCacheRefresh:sv};Bd.useEffectEvent=Yy;var fv={readContext:Nt,use:_u,useCallback:Wy,useContext:Nt,useEffect:Ld,useImperativeHandle:Jy,useInsertionEffect:Ky,useLayoutEffect:Xy,useMemo:ev,useReducer:Od,useRef:$y,useState:function(){return Od(Sr)},useDebugValue:Dd,useDeferredValue:function(r,a){var l=ft();return Xe===null?Md(l,r,a):tv(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Od(Sr)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Al(r),a]},useSyncExternalStore:Oy,useId:av,useHostTransitionStatus:zd,useFormState:Fy,useActionState:Fy,useOptimistic:function(r,a){var l=ft();return Xe!==null?Py(l,Xe,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Ad,useCacheRefresh:sv};fv.useEffectEvent=Yy;function Ud(r,a,l,c){a=r.memoizedState,l=l(c,a),l=l==null?a:p({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Vd={enqueueSetState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ni(c);m.payload=a,l!=null&&(m.callback=l),a=ri(r,m,c),a!==null&&(nn(a,r,c),wl(a,r,c))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ni(c);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=ri(r,m,c),a!==null&&(nn(a,r,c),wl(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=yn(),c=ni(l);c.tag=2,a!=null&&(c.callback=a),a=ri(r,c,l),a!==null&&(nn(a,r,l),wl(a,r,l))}};function dv(r,a,l,c,m,g,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,S):a.prototype&&a.prototype.isPureReactComponent?!gl(l,c)||!gl(m,g):!0}function hv(r,a,l,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==r&&Vd.enqueueReplaceState(a,a.state,null)}function ta(r,a){var l=a;if("ref"in a){l={};for(var c in a)c!=="ref"&&(l[c]=a[c])}if(r=r.defaultProps){l===a&&(l=p({},l));for(var m in r)l[m]===void 0&&(l[m]=r[m])}return l}function mv(r){tu(r)}function pv(r){console.error(r)}function gv(r){tu(r)}function wu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function yv(r,a,l){try{var c=r.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function qd(r,a,l){return l=ni(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(r,a)},l}function vv(r){return r=ni(r),r.tag=3,r}function _v(r,a,l,c){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;r.payload=function(){return m(g)},r.callback=function(){yv(a,l,c)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(r.callback=function(){yv(a,l,c),typeof m!="function"&&(ui===null?ui=new Set([this]):ui.add(this));var C=c.stack;this.componentDidCatch(c.value,{componentStack:C!==null?C:""})})}function Xw(r,a,l,c,m){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=l.alternate,a!==null&&Ja(a,l,m,!0),l=hn.current,l!==null){switch(l.tag){case 31:case 13:return An===null?Pu():l.alternate===null&<===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,c===fu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([c]):a.add(c),hh(r,c,m)),!1;case 22:return l.flags|=65536,c===fu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([c]):l.add(c)),hh(r,c,m)),!1}throw Error(i(435,l.tag))}return hh(r,c,m),Pu(),!1}if(ze)return a=hn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==ld&&(r=Error(i(422),{cause:c}),_l(wn(r,l)))):(c!==ld&&(a=Error(i(423),{cause:c}),_l(wn(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=wn(c,l),m=qd(r.stateNode,c,m),vd(r,m),lt!==4&&(lt=2)),!1;var g=Error(i(520),{cause:c});if(g=wn(g,l),Il===null?Il=[g]:Il.push(g),lt!==4&&(lt=2),a===null)return!0;c=wn(c,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=qd(l.stateNode,c,r),vd(l,r),!1;case 1:if(a=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ui===null||!ui.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=vv(m),_v(m,r,l,c),vd(l,m),!1}l=l.return}while(l!==null);return!1}var Hd=Error(i(461)),pt=!1;function jt(r,a,l,c){a.child=r===null?Ey(a,null,l,c):Wi(a,r.child,l,c)}function bv(r,a,l,c,m){l=l.render;var g=a.ref;if("ref"in c){var S={};for(var C in c)C!=="ref"&&(S[C]=c[C])}else S=c;return Ki(a),c=wd(r,a,l,S,g,m),C=Td(),r!==null&&!pt?(Cd(r,a,m),Er(r,a,m)):(ze&&C&&ad(a),a.flags|=1,jt(r,a,c,m),a.child)}function xv(r,a,l,c,m){if(r===null){var g=l.type;return typeof g=="function"&&!nd(g)&&g.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=g,Sv(r,a,g,c,m)):(r=au(l.type,null,c,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(g=r.child,!Zd(r,m)){var S=g.memoizedProps;if(l=l.compare,l=l!==null?l:gl,l(S,c)&&r.ref===a.ref)return Er(r,a,m)}return a.flags|=1,r=yr(g,c),r.ref=a.ref,r.return=a,a.child=r}function Sv(r,a,l,c,m){if(r!==null){var g=r.memoizedProps;if(gl(g,c)&&r.ref===a.ref)if(pt=!1,a.pendingProps=c=g,Zd(r,m))(r.flags&131072)!==0&&(pt=!0);else return a.lanes=r.lanes,Er(r,a,m)}return Gd(r,a,l,c,m)}function Ev(r,a,l,c){var m=c.children,g=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,r!==null){for(c=a.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,a.child=null;return wv(r,a,g,l,c)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&uu(a,g!==null?g.cachePool:null),g!==null?Cy(a,g):bd(),ky(a);else return c=a.lanes=536870912,wv(r,a,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(uu(a,g.cachePool),Cy(a,g),ai(),a.memoizedState=null):(r!==null&&uu(a,null),bd(),ai());return jt(r,a,m,l),a.child}function Nl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function wv(r,a,l,c,m){var g=md();return g=g===null?null:{parent:ht._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},r!==null&&uu(a,null),bd(),ky(a),r!==null&&Ja(r,a,c,!0),a.childLanes=m,null}function Tu(r,a){return a=ku({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function Tv(r,a,l){return Wi(a,r.child,null,l),r=Tu(a,a.pendingProps),r.flags|=2,mn(a),a.memoizedState=null,r}function Zw(r,a,l){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(ze){if(c.mode==="hidden")return r=Tu(a,c),a.lanes=536870912,Nl(null,r);if(Sd(a),(r=rt)?(r=z0(r,kn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Zr!==null?{id:Jn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=oy(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw Wr(a);return a.lanes=536870912,null}return Tu(a,c)}var g=r.memoizedState;if(g!==null){var S=g.dehydrated;if(Sd(a),m)if(a.flags&256)a.flags&=-257,a=Tv(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(pt||Ja(r,a,l,!1),m=(l&r.childLanes)!==0,pt||m){if(c=et,c!==null&&(S=pg(c,l),S!==0&&S!==g.retryLane))throw g.retryLane=S,Fi(r,S),nn(c,r,S),Hd;Pu(),a=Tv(r,a,l)}else r=g.treeContext,rt=Rn(S.nextSibling),Ot=a,ze=!0,Jr=null,kn=!1,r!==null&&fy(a,r),a=Tu(a,c),a.flags|=4096;return a}return r=yr(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Cu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Gd(r,a,l,c,m){return Ki(a),l=wd(r,a,l,c,void 0,m),c=Td(),r!==null&&!pt?(Cd(r,a,m),Er(r,a,m)):(ze&&c&&ad(a),a.flags|=1,jt(r,a,l,m),a.child)}function Cv(r,a,l,c,m,g){return Ki(a),a.updateQueue=null,l=Ry(a,c,l,m),Ay(r),c=Td(),r!==null&&!pt?(Cd(r,a,g),Er(r,a,g)):(ze&&c&&ad(a),a.flags|=1,jt(r,a,l,g),a.child)}function kv(r,a,l,c,m){if(Ki(a),a.stateNode===null){var g=Ya,S=l.contextType;typeof S=="object"&&S!==null&&(g=Nt(S)),g=new l(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Vd,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},gd(a),S=l.contextType,g.context=typeof S=="object"&&S!==null?Nt(S):Ya,g.state=a.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Ud(a,l,S,c),g.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&Vd.enqueueReplaceState(g,g.state,null),Cl(a,c,g,m),Tl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){g=a.stateNode;var C=a.memoizedProps,D=ta(l,C);g.props=D;var F=g.context,Z=l.contextType;S=Ya,typeof Z=="object"&&Z!==null&&(S=Nt(Z));var ne=l.getDerivedStateFromProps;Z=typeof ne=="function"||typeof g.getSnapshotBeforeUpdate=="function",C=a.pendingProps!==C,Z||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C||F!==S)&&hv(a,g,c,S),ti=!1;var $=a.memoizedState;g.state=$,Cl(a,c,g,m),Tl(),F=a.memoizedState,C||$!==F||ti?(typeof ne=="function"&&(Ud(a,l,ne,c),F=a.memoizedState),(D=ti||dv(a,l,D,c,$,F,S))?(Z||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=F),g.props=c,g.state=F,g.context=S,c=D):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,yd(r,a),S=a.memoizedProps,Z=ta(l,S),g.props=Z,ne=a.pendingProps,$=g.context,F=l.contextType,D=Ya,typeof F=="object"&&F!==null&&(D=Nt(F)),C=l.getDerivedStateFromProps,(F=typeof C=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==ne||$!==D)&&hv(a,g,c,D),ti=!1,$=a.memoizedState,g.state=$,Cl(a,c,g,m),Tl();var X=a.memoizedState;S!==ne||$!==X||ti||r!==null&&r.dependencies!==null&&lu(r.dependencies)?(typeof C=="function"&&(Ud(a,l,C,c),X=a.memoizedState),(Z=ti||dv(a,l,Z,c,$,X,D)||r!==null&&r.dependencies!==null&&lu(r.dependencies))?(F||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,X,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,X,D)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===r.memoizedProps&&$===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&$===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=X),g.props=c,g.state=X,g.context=D,c=Z):(typeof g.componentDidUpdate!="function"||S===r.memoizedProps&&$===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&$===r.memoizedState||(a.flags|=1024),c=!1)}return g=c,Cu(r,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,r!==null&&c?(a.child=Wi(a,r.child,null,m),a.child=Wi(a,null,l,m)):jt(r,a,l,m),a.memoizedState=g.state,r=a.child):r=Er(r,a,m),r}function Av(r,a,l,c){return Qi(),a.flags|=256,jt(r,a,l,c),a.child}var Fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $d(r){return{baseLanes:r,cachePool:yy()}}function Qd(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=gn),r}function Rv(r,a,l){var c=a.pendingProps,m=!1,g=(a.flags&128)!==0,S;if((S=g)||(S=r!==null&&r.memoizedState===null?!1:(ct.current&2)!==0),S&&(m=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,r===null){if(ze){if(m?ii(a):ai(),(r=rt)?(r=z0(r,kn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Zr!==null?{id:Jn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=oy(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw Wr(a);return Rh(r)?a.lanes=32:a.lanes=536870912,null}var C=c.children;return c=c.fallback,m?(ai(),m=a.mode,C=ku({mode:"hidden",children:C},m),c=$i(c,m,l,null),C.return=a,c.return=a,C.sibling=c,a.child=C,c=a.child,c.memoizedState=$d(l),c.childLanes=Qd(r,S,l),a.memoizedState=Fd,Nl(null,c)):(ii(a),Yd(a,C))}var D=r.memoizedState;if(D!==null&&(C=D.dehydrated,C!==null)){if(g)a.flags&256?(ii(a),a.flags&=-257,a=Kd(r,a,l)):a.memoizedState!==null?(ai(),a.child=r.child,a.flags|=128,a=null):(ai(),C=c.fallback,m=a.mode,c=ku({mode:"visible",children:c.children},m),C=$i(C,m,l,null),C.flags|=2,c.return=a,C.return=a,c.sibling=C,a.child=c,Wi(a,r.child,null,l),c=a.child,c.memoizedState=$d(l),c.childLanes=Qd(r,S,l),a.memoizedState=Fd,a=Nl(null,c));else if(ii(a),Rh(C)){if(S=C.nextSibling&&C.nextSibling.dataset,S)var F=S.dgst;S=F,c=Error(i(419)),c.stack="",c.digest=S,_l({value:c,source:null,stack:null}),a=Kd(r,a,l)}else if(pt||Ja(r,a,l,!1),S=(l&r.childLanes)!==0,pt||S){if(S=et,S!==null&&(c=pg(S,l),c!==0&&c!==D.retryLane))throw D.retryLane=c,Fi(r,c),nn(S,r,c),Hd;Ah(C)||Pu(),a=Kd(r,a,l)}else Ah(C)?(a.flags|=192,a.child=r.child,a=null):(r=D.treeContext,rt=Rn(C.nextSibling),Ot=a,ze=!0,Jr=null,kn=!1,r!==null&&fy(a,r),a=Yd(a,c.children),a.flags|=4096);return a}return m?(ai(),C=c.fallback,m=a.mode,D=r.child,F=D.sibling,c=yr(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,F!==null?C=yr(F,C):(C=$i(C,m,l,null),C.flags|=2),C.return=a,c.return=a,c.sibling=C,a.child=c,Nl(null,c),c=a.child,C=r.child.memoizedState,C===null?C=$d(l):(m=C.cachePool,m!==null?(D=ht._currentValue,m=m.parent!==D?{parent:D,pool:D}:m):m=yy(),C={baseLanes:C.baseLanes|l,cachePool:m}),c.memoizedState=C,c.childLanes=Qd(r,S,l),a.memoizedState=Fd,Nl(r.child,c)):(ii(a),l=r.child,r=l.sibling,l=yr(l,{mode:"visible",children:c.children}),l.return=a,l.sibling=null,r!==null&&(S=a.deletions,S===null?(a.deletions=[r],a.flags|=16):S.push(r)),a.child=l,a.memoizedState=null,l)}function Yd(r,a){return a=ku({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ku(r,a){return r=dn(22,r,null,a),r.lanes=0,r}function Kd(r,a,l){return Wi(a,r.child,null,l),r=Yd(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Ov(r,a,l){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),cd(r.return,a,l)}function Xd(r,a,l,c,m,g){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m,treeForkCount:g}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=l,S.tailMode=m,S.treeForkCount=g)}function Nv(r,a,l){var c=a.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var S=ct.current,C=(S&2)!==0;if(C?(S=S&1|2,a.flags|=128):S&=1,k(ct,S),jt(r,a,c,l),c=ze?vl:0,!C&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Ov(r,l,a);else if(r.tag===19)Ov(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)r=l.alternate,r!==null&&pu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),Xd(a,!1,m,l,g,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&pu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}Xd(a,!0,l,null,g,c);break;case"together":Xd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Er(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),oi|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Ja(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=yr(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=yr(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function Zd(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&lu(r)))}function Jw(r,a,l){switch(a.tag){case 3:Qe(a,a.stateNode.containerInfo),ei(a,ht,r.memoizedState.cache),Qi();break;case 27:case 5:Dt(a);break;case 4:Qe(a,a.stateNode.containerInfo);break;case 10:ei(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sd(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ii(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Rv(r,a,l):(ii(a),r=Er(r,a,l),r!==null?r.sibling:null);ii(a);break;case 19:var m=(r.flags&128)!==0;if(c=(l&a.childLanes)!==0,c||(Ja(r,a,l,!1),c=(l&a.childLanes)!==0),m){if(c)return Nv(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),k(ct,ct.current),c)break;return null;case 22:return a.lanes=0,Ev(r,a,l,a.pendingProps);case 24:ei(a,ht,r.memoizedState.cache)}return Er(r,a,l)}function jv(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)pt=!0;else{if(!Zd(r,l)&&(a.flags&128)===0)return pt=!1,Jw(r,a,l);pt=(r.flags&131072)!==0}else pt=!1,ze&&(a.flags&1048576)!==0&&cy(a,vl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Zi(a.elementType),a.type=r,typeof r=="function")nd(r)?(c=ta(r,c),a.tag=1,a=kv(null,a,r,c,l)):(a.tag=0,a=Gd(null,a,r,c,l));else{if(r!=null){var m=r.$$typeof;if(m===P){a.tag=11,a=bv(null,a,r,c,l);break e}else if(m===U){a.tag=14,a=xv(null,a,r,c,l);break e}}throw a=oe(r)||r,Error(i(306,a,""))}}return a;case 0:return Gd(r,a,a.type,a.pendingProps,l);case 1:return c=a.type,m=ta(c,a.pendingProps),kv(r,a,c,m,l);case 3:e:{if(Qe(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var g=a.memoizedState;m=g.element,yd(r,a),Cl(a,c,null,l);var S=a.memoizedState;if(c=S.cache,ei(a,ht,c),c!==g.cache&&fd(a,[ht],l,!0),Tl(),c=S.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=Av(r,a,c,l);break e}else if(c!==m){m=wn(Error(i(424)),a),_l(m),a=Av(r,a,c,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(rt=Rn(r.firstChild),Ot=a,ze=!0,Jr=null,kn=!0,l=Ey(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Qi(),c===m){a=Er(r,a,l);break e}jt(r,a,c,l)}a=a.child}return a;case 26:return Cu(r,a),r===null?(l=H0(a.type,null,a.pendingProps,null))?a.memoizedState=l:ze||(l=a.type,r=a.pendingProps,c=Hu(he.current).createElement(l),c[Rt]=a,c[Xt]=r,Lt(c,l,r),Tt(c),a.stateNode=c):a.memoizedState=H0(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Dt(a),r===null&&ze&&(c=a.stateNode=U0(a.type,a.pendingProps,he.current),Ot=a,kn=!0,m=rt,hi(a.type)?(Oh=m,rt=Rn(c.firstChild)):rt=m),jt(r,a,a.pendingProps.children,l),Cu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&ze&&((m=c=rt)&&(c=AT(c,a.type,a.pendingProps,kn),c!==null?(a.stateNode=c,Ot=a,rt=Rn(c.firstChild),kn=!1,m=!0):m=!1),m||Wr(a)),Dt(a),m=a.type,g=a.pendingProps,S=r!==null?r.memoizedProps:null,c=g.children,Th(m,g)?c=null:S!==null&&Th(m,S)&&(a.flags|=32),a.memoizedState!==null&&(m=wd(r,a,Hw,null,null,l),$l._currentValue=m),Cu(r,a),jt(r,a,c,l),a.child;case 6:return r===null&&ze&&((r=l=rt)&&(l=RT(l,a.pendingProps,kn),l!==null?(a.stateNode=l,Ot=a,rt=null,r=!0):r=!1),r||Wr(a)),null;case 13:return Rv(r,a,l);case 4:return Qe(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=Wi(a,null,c,l):jt(r,a,c,l),a.child;case 11:return bv(r,a,a.type,a.pendingProps,l);case 7:return jt(r,a,a.pendingProps,l),a.child;case 8:return jt(r,a,a.pendingProps.children,l),a.child;case 12:return jt(r,a,a.pendingProps.children,l),a.child;case 10:return c=a.pendingProps,ei(a,a.type,c.value),jt(r,a,c.children,l),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,Ki(a),m=Nt(m),c=c(m),a.flags|=1,jt(r,a,c,l),a.child;case 14:return xv(r,a,a.type,a.pendingProps,l);case 15:return Sv(r,a,a.type,a.pendingProps,l);case 19:return Nv(r,a,l);case 31:return Zw(r,a,l);case 22:return Ev(r,a,l,a.pendingProps);case 24:return Ki(a),c=Nt(ht),r===null?(m=md(),m===null&&(m=et,g=dd(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),a.memoizedState={parent:c,cache:m},gd(a),ei(a,ht,m)):((r.lanes&l)!==0&&(yd(r,a),Cl(a,null,null,l),Tl()),m=r.memoizedState,g=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),ei(a,ht,c)):(c=g.cache,ei(a,ht,c),c!==m.cache&&fd(a,[ht],l,!0))),jt(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function wr(r){r.flags|=4}function Jd(r,a,l,c,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(a0())r.flags|=8192;else throw Ji=fu,pd}else r.flags&=-16777217}function Lv(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Y0(a))if(a0())r.flags|=8192;else throw Ji=fu,pd}function Au(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?dg():536870912,r.lanes|=a,cs|=a)}function jl(r,a){if(!ze)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(a)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=l,a}function Ww(r,a,l){var c=a.pendingProps;switch(sd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(a),null;case 1:return it(a),null;case 3:return l=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),br(ht),Pe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Za(a)?wr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,od())),it(a),null;case 26:var m=a.type,g=a.memoizedState;return r===null?(wr(a),g!==null?(it(a),Lv(a,g)):(it(a),Jd(a,m,null,c,l))):g?g!==r.memoizedState?(wr(a),it(a),Lv(a,g)):(it(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&wr(a),it(a),Jd(a,m,r,c,l)),null;case 27:if(on(a),l=he.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}r=le.current,Za(a)?dy(a):(r=U0(m,c,l),a.stateNode=r,wr(a))}return it(a),null;case 5:if(on(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}if(g=le.current,Za(a))dy(a);else{var S=Hu(he.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?S.createElement(m,{is:c.is}):S.createElement(m)}}g[Rt]=a,g[Xt]=c;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=g;e:switch(Lt(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&wr(a)}}return it(a),Jd(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Za(a)){if(r=a.stateNode,l=a.memoizedProps,c=null,m=Ot,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[Rt]=a,r=!!(r.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||R0(r.nodeValue,l)),r||Wr(a,!0)}else r=Hu(r).createTextNode(c),r[Rt]=a,a.stateNode=r}return it(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(c=Za(a),l!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Rt]=a}else Qi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),r=!1}else l=od(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(mn(a),a):(mn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return it(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Za(a),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[Rt]=a}else Qi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),m=!1}else m=od(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(mn(a),a):(mn(a),null)}return mn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=c!==null,r=r!==null&&r.memoizedState!==null,l&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Au(a,a.updateQueue),it(a),null);case 4:return Pe(),r===null&&bh(a.stateNode.containerInfo),it(a),null;case 10:return br(a.type),it(a),null;case 19:if(H(ct),c=a.memoizedState,c===null)return it(a),null;if(m=(a.flags&128)!==0,g=c.rendering,g===null)if(m)jl(c,!1);else{if(lt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(g=pu(r),g!==null){for(a.flags|=128,jl(c,!1),r=g.updateQueue,a.updateQueue=r,Au(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)ly(l,r),l=l.sibling;return k(ct,ct.current&1|2),ze&&vr(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Ue()>Lu&&(a.flags|=128,m=!0,jl(c,!1),a.lanes=4194304)}else{if(!m)if(r=pu(g),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Au(a,r),jl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!ze)return it(a),null}else 2*Ue()-c.renderingStartTime>Lu&&l!==536870912&&(a.flags|=128,m=!0,jl(c,!1),a.lanes=4194304);c.isBackwards?(g.sibling=a.child,a.child=g):(r=c.last,r!==null?r.sibling=g:a.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Ue(),r.sibling=null,l=ct.current,k(ct,m?l&1|2:l&1),ze&&vr(a,c.treeForkCount),r):(it(a),null);case 22:case 23:return mn(a),xd(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(l&536870912)!==0&&(a.flags&128)===0&&(it(a),a.subtreeFlags&6&&(a.flags|=8192)):it(a),l=a.updateQueue,l!==null&&Au(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048),r!==null&&H(Xi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),br(ht),it(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function eT(r,a){switch(sd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return br(ht),Pe(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return on(a),null;case 31:if(a.memoizedState!==null){if(mn(a),a.alternate===null)throw Error(i(340));Qi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(mn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Qi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return H(ct),null;case 4:return Pe(),null;case 10:return br(a.type),null;case 22:case 23:return mn(a),xd(),r!==null&&H(Xi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return br(ht),null;case 25:return null;default:return null}}function Dv(r,a){switch(sd(a),a.tag){case 3:br(ht),Pe();break;case 26:case 27:case 5:on(a);break;case 4:Pe();break;case 31:a.memoizedState!==null&&mn(a);break;case 13:mn(a);break;case 19:H(ct);break;case 10:br(a.type);break;case 22:case 23:mn(a),xd(),r!==null&&H(Xi);break;case 24:br(ht)}}function Ll(r,a){try{var l=a.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&r)===r){c=void 0;var g=l.create,S=l.inst;c=g(),S.destroy=c}l=l.next}while(l!==m)}}catch(C){Ke(a,a.return,C)}}function si(r,a,l){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&r)===r){var S=c.inst,C=S.destroy;if(C!==void 0){S.destroy=void 0,m=a;var D=l,F=C;try{F()}catch(Z){Ke(m,D,Z)}}}c=c.next}while(c!==g)}}catch(Z){Ke(a,a.return,Z)}}function Mv(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Ty(a,l)}catch(c){Ke(r,r.return,c)}}}function Pv(r,a,l){l.props=ta(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(c){Ke(r,a,c)}}function Dl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof l=="function"?r.refCleanup=l(c):l.current=c}}catch(m){Ke(r,a,m)}}function er(r,a){var l=r.ref,c=r.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(m){Ke(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){Ke(r,a,m)}else l.current=null}function zv(r){var a=r.type,l=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(m){Ke(r,r.return,m)}}function Wd(r,a,l){try{var c=r.stateNode;ST(c,r.type,l,a),c[Xt]=a}catch(m){Ke(r,r.return,m)}}function Iv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hi(r.type)||r.tag===4}function eh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Iv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function th(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=pr));else if(c!==4&&(c===27&&hi(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(th(r,a,l),r=r.sibling;r!==null;)th(r,a,l),r=r.sibling}function Ru(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(c!==4&&(c===27&&hi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Ru(r,a,l),r=r.sibling;r!==null;)Ru(r,a,l),r=r.sibling}function Bv(r){var a=r.stateNode,l=r.memoizedProps;try{for(var c=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);Lt(a,c,l),a[Rt]=r,a[Xt]=l}catch(g){Ke(r,r.return,g)}}var Tr=!1,gt=!1,nh=!1,Uv=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function tT(r,a){if(r=r.containerInfo,Eh=Xu,r=Jg(r),Kf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var S=0,C=-1,D=-1,F=0,Z=0,ne=r,$=null;t:for(;;){for(var X;ne!==l||m!==0&&ne.nodeType!==3||(C=S+m),ne!==g||c!==0&&ne.nodeType!==3||(D=S+c),ne.nodeType===3&&(S+=ne.nodeValue.length),(X=ne.firstChild)!==null;)$=ne,ne=X;for(;;){if(ne===r)break t;if($===l&&++F===m&&(C=S),$===g&&++Z===c&&(D=S),(X=ne.nextSibling)!==null)break;ne=$,$=ne.parentNode}ne=X}l=C===-1||D===-1?null:{start:C,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(wh={focusedElem:r,selectionRange:l},Xu=!1,Ct=a;Ct!==null;)if(a=Ct,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Ct=r;else for(;Ct!==null;){switch(a=Ct,g=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)m=r[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,l=a,m=g.memoizedProps,g=g.memoizedState,c=l.stateNode;try{var me=ta(l.type,m);r=c.getSnapshotBeforeUpdate(me,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(be){Ke(l,l.return,be)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)kh(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":kh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Ct=r;break}Ct=a.return}}function Vv(r,a,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:kr(r,l),c&4&&Ll(5,l);break;case 1:if(kr(r,l),c&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(S){Ke(l,l.return,S)}else{var m=ta(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(S){Ke(l,l.return,S)}}c&64&&Mv(l),c&512&&Dl(l,l.return);break;case 3:if(kr(r,l),c&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Ty(r,a)}catch(S){Ke(l,l.return,S)}}break;case 27:a===null&&c&4&&Bv(l);case 26:case 5:kr(r,l),a===null&&c&4&&zv(l),c&512&&Dl(l,l.return);break;case 12:kr(r,l);break;case 31:kr(r,l),c&4&&Gv(r,l);break;case 13:kr(r,l),c&4&&Fv(r,l),c&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=cT.bind(null,l),OT(r,l))));break;case 22:if(c=l.memoizedState!==null||Tr,!c){a=a!==null&&a.memoizedState!==null||gt,m=Tr;var g=gt;Tr=c,(gt=a)&&!g?Ar(r,l,(l.subtreeFlags&8772)!==0):kr(r,l),Tr=m,gt=g}break;case 30:break;default:kr(r,l)}}function qv(r){var a=r.alternate;a!==null&&(r.alternate=null,qv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&jf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var at=null,Jt=!1;function Cr(r,a,l){for(l=l.child;l!==null;)Hv(r,a,l),l=l.sibling}function Hv(r,a,l){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Vt,l)}catch{}switch(l.tag){case 26:gt||er(l,a),Cr(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||er(l,a);var c=at,m=Jt;hi(l.type)&&(at=l.stateNode,Jt=!1),Cr(r,a,l),Hl(l.stateNode),at=c,Jt=m;break;case 5:gt||er(l,a);case 6:if(c=at,m=Jt,at=null,Cr(r,a,l),at=c,Jt=m,at!==null)if(Jt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(l.stateNode)}catch(g){Ke(l,a,g)}else try{at.removeChild(l.stateNode)}catch(g){Ke(l,a,g)}break;case 18:at!==null&&(Jt?(r=at,M0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),vs(r)):M0(at,l.stateNode));break;case 4:c=at,m=Jt,at=l.stateNode.containerInfo,Jt=!0,Cr(r,a,l),at=c,Jt=m;break;case 0:case 11:case 14:case 15:si(2,l,a),gt||si(4,l,a),Cr(r,a,l);break;case 1:gt||(er(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"&&Pv(l,a,c)),Cr(r,a,l);break;case 21:Cr(r,a,l);break;case 22:gt=(c=gt)||l.memoizedState!==null,Cr(r,a,l),gt=c;break;default:Cr(r,a,l)}}function Gv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{vs(r)}catch(l){Ke(a,a.return,l)}}}function Fv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{vs(r)}catch(l){Ke(a,a.return,l)}}function nT(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Uv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Uv),a;default:throw Error(i(435,r.tag))}}function Ou(r,a){var l=nT(r);a.forEach(function(c){if(!l.has(c)){l.add(c);var m=fT.bind(null,r,c);c.then(m,m)}})}function Wt(r,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c],g=r,S=a,C=S;e:for(;C!==null;){switch(C.tag){case 27:if(hi(C.type)){at=C.stateNode,Jt=!1;break e}break;case 5:at=C.stateNode,Jt=!1;break e;case 3:case 4:at=C.stateNode.containerInfo,Jt=!0;break e}C=C.return}if(at===null)throw Error(i(160));Hv(g,S,m),at=null,Jt=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)$v(a,r),a=a.sibling}var Fn=null;function $v(r,a){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(a,r),en(r),c&4&&(si(3,r,r.return),Ll(3,r),si(5,r,r.return));break;case 1:Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),c&64&&Tr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var m=Fn;if(Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),c&4){var g=l!==null?l.memoizedState:null;if(c=r.memoizedState,l===null)if(c===null)if(r.stateNode===null){e:{c=r.type,l=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[ll]||g[Rt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),Lt(g,c,l),g[Rt]=r,Tt(g),c=g;break e;case"link":var S=$0("link","href",m).get(c+(l.href||""));if(S){for(var C=0;C<S.length;C++)if(g=S[C],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(C,1);break t}}g=m.createElement(c),Lt(g,c,l),m.head.appendChild(g);break;case"meta":if(S=$0("meta","content",m).get(c+(l.content||""))){for(C=0;C<S.length;C++)if(g=S[C],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(C,1);break t}}g=m.createElement(c),Lt(g,c,l),m.head.appendChild(g);break;default:throw Error(i(468,c))}g[Rt]=r,Tt(g),c=g}r.stateNode=c}else Q0(m,r.type,r.stateNode);else r.stateNode=F0(m,c,r.memoizedProps);else g!==c?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,c===null?Q0(m,r.type,r.stateNode):F0(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Wd(r,r.memoizedProps,l.memoizedProps)}break;case 27:Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),l!==null&&c&4&&Wd(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),r.flags&32){m=r.stateNode;try{Va(m,"")}catch(me){Ke(r,r.return,me)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,Wd(r,m,l!==null?l.memoizedProps:m)),c&1024&&(nh=!0);break;case 6:if(Wt(a,r),en(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,l=r.stateNode;try{l.nodeValue=c}catch(me){Ke(r,r.return,me)}}break;case 3:if($u=null,m=Fn,Fn=Gu(a.containerInfo),Wt(a,r),Fn=m,en(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{vs(a.containerInfo)}catch(me){Ke(r,r.return,me)}nh&&(nh=!1,Qv(r));break;case 4:c=Fn,Fn=Gu(r.stateNode.containerInfo),Wt(a,r),en(r),Fn=c;break;case 12:Wt(a,r),en(r);break;case 31:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 13:Wt(a,r),en(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ju=Ue()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 22:m=r.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,F=Tr,Z=gt;if(Tr=F||m,gt=Z||D,Wt(a,r),gt=Z,Tr=F,en(r),c&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||D||Tr||gt||na(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){D=l=a;try{if(g=D.stateNode,m)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{C=D.stateNode;var ne=D.memoizedProps.style,$=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;C.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(me){Ke(D,D.return,me)}}}else if(a.tag===6){if(l===null){D=a;try{D.stateNode.nodeValue=m?"":D.memoizedProps}catch(me){Ke(D,D.return,me)}}}else if(a.tag===18){if(l===null){D=a;try{var X=D.stateNode;m?P0(X,!0):P0(D.stateNode,!1)}catch(me){Ke(D,D.return,me)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Ou(r,l))));break;case 19:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 30:break;case 21:break;default:Wt(a,r),en(r)}}function en(r){var a=r.flags;if(a&2){try{for(var l,c=r.return;c!==null;){if(Iv(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=eh(r);Ru(r,g,m);break;case 5:var S=l.stateNode;l.flags&32&&(Va(S,""),l.flags&=-33);var C=eh(r);Ru(r,C,S);break;case 3:case 4:var D=l.stateNode.containerInfo,F=eh(r);th(r,F,D);break;default:throw Error(i(161))}}catch(Z){Ke(r,r.return,Z)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Qv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Qv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function kr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Vv(r,a.alternate,a),a=a.sibling}function na(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:si(4,a,a.return),na(a);break;case 1:er(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Pv(a,a.return,l),na(a);break;case 27:Hl(a.stateNode);case 26:case 5:er(a,a.return),na(a);break;case 22:a.memoizedState===null&&na(a);break;case 30:na(a);break;default:na(a)}r=r.sibling}}function Ar(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=r,g=a,S=g.flags;switch(g.tag){case 0:case 11:case 15:Ar(m,g,l),Ll(4,g);break;case 1:if(Ar(m,g,l),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(F){Ke(c,c.return,F)}if(c=g,m=c.updateQueue,m!==null){var C=c.stateNode;try{var D=m.shared.hiddenCallbacks;if(D!==null)for(m.shared.hiddenCallbacks=null,m=0;m<D.length;m++)wy(D[m],C)}catch(F){Ke(c,c.return,F)}}l&&S&64&&Mv(g),Dl(g,g.return);break;case 27:Bv(g);case 26:case 5:Ar(m,g,l),l&&c===null&&S&4&&zv(g),Dl(g,g.return);break;case 12:Ar(m,g,l);break;case 31:Ar(m,g,l),l&&S&4&&Gv(m,g);break;case 13:Ar(m,g,l),l&&S&4&&Fv(m,g);break;case 22:g.memoizedState===null&&Ar(m,g,l),Dl(g,g.return);break;case 30:break;default:Ar(m,g,l)}a=a.sibling}}function rh(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&bl(l))}function ih(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&bl(r))}function $n(r,a,l,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Yv(r,a,l,c),a=a.sibling}function Yv(r,a,l,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:$n(r,a,l,c),m&2048&&Ll(9,a);break;case 1:$n(r,a,l,c);break;case 3:$n(r,a,l,c),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&bl(r)));break;case 12:if(m&2048){$n(r,a,l,c),r=a.stateNode;try{var g=a.memoizedProps,S=g.id,C=g.onPostCommit;typeof C=="function"&&C(S,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(D){Ke(a,a.return,D)}}else $n(r,a,l,c);break;case 31:$n(r,a,l,c);break;case 13:$n(r,a,l,c);break;case 23:break;case 22:g=a.stateNode,S=a.alternate,a.memoizedState!==null?g._visibility&2?$n(r,a,l,c):Ml(r,a):g._visibility&2?$n(r,a,l,c):(g._visibility|=2,ls(r,a,l,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&rh(S,a);break;case 24:$n(r,a,l,c),m&2048&&ih(a.alternate,a);break;default:$n(r,a,l,c)}}function ls(r,a,l,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=r,S=a,C=l,D=c,F=S.flags;switch(S.tag){case 0:case 11:case 15:ls(g,S,C,D,m),Ll(8,S);break;case 23:break;case 22:var Z=S.stateNode;S.memoizedState!==null?Z._visibility&2?ls(g,S,C,D,m):Ml(g,S):(Z._visibility|=2,ls(g,S,C,D,m)),m&&F&2048&&rh(S.alternate,S);break;case 24:ls(g,S,C,D,m),m&&F&2048&&ih(S.alternate,S);break;default:ls(g,S,C,D,m)}a=a.sibling}}function Ml(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,c=a,m=c.flags;switch(c.tag){case 22:Ml(l,c),m&2048&&rh(c.alternate,c);break;case 24:Ml(l,c),m&2048&&ih(c.alternate,c);break;default:Ml(l,c)}a=a.sibling}}var Pl=8192;function os(r,a,l){if(r.subtreeFlags&Pl)for(r=r.child;r!==null;)Kv(r,a,l),r=r.sibling}function Kv(r,a,l){switch(r.tag){case 26:os(r,a,l),r.flags&Pl&&r.memoizedState!==null&&qT(l,Fn,r.memoizedState,r.memoizedProps);break;case 5:os(r,a,l);break;case 3:case 4:var c=Fn;Fn=Gu(r.stateNode.containerInfo),os(r,a,l),Fn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Pl,Pl=16777216,os(r,a,l),Pl=c):os(r,a,l));break;default:os(r,a,l)}}function Xv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function zl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Ct=c,Jv(c,r)}Xv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Zv(r),r=r.sibling}function Zv(r){switch(r.tag){case 0:case 11:case 15:zl(r),r.flags&2048&&si(9,r,r.return);break;case 3:zl(r);break;case 12:zl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Nu(r)):zl(r);break;default:zl(r)}}function Nu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Ct=c,Jv(c,r)}Xv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:si(8,a,a.return),Nu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Nu(a));break;default:Nu(a)}r=r.sibling}}function Jv(r,a){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:si(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:bl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,Ct=c;else e:for(l=r;Ct!==null;){c=Ct;var m=c.sibling,g=c.return;if(qv(c),c===l){Ct=null;break e}if(m!==null){m.return=g,Ct=m;break e}Ct=g}}}var rT={getCacheForType:function(r){var a=Nt(ht),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Nt(ht).controller.signal}},iT=typeof WeakMap=="function"?WeakMap:Map,Ge=0,et=null,Oe=null,Le=0,Ye=0,pn=null,li=!1,us=!1,ah=!1,Rr=0,lt=0,oi=0,ra=0,sh=0,gn=0,cs=0,Il=null,tn=null,lh=!1,ju=0,Wv=0,Lu=1/0,Du=null,ui=null,xt=0,ci=null,fs=null,Or=0,oh=0,uh=null,e0=null,Bl=0,ch=null;function yn(){return(Ge&2)!==0&&Le!==0?Le&-Le:q.T!==null?gh():gg()}function t0(){if(gn===0)if((Le&536870912)===0||ze){var r=qo;qo<<=1,(qo&3932160)===0&&(qo=262144),gn=r}else gn=536870912;return r=hn.current,r!==null&&(r.flags|=32),gn}function nn(r,a,l){(r===et&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)&&(ds(r,0),fi(r,Le,gn,!1)),sl(r,l),((Ge&2)===0||r!==et)&&(r===et&&((Ge&2)===0&&(ra|=l),lt===4&&fi(r,Le,gn,!1)),tr(r))}function n0(r,a,l){if((Ge&6)!==0)throw Error(i(327));var c=!l&&(a&127)===0&&(a&r.expiredLanes)===0||al(r,a),m=c?lT(r,a):dh(r,a,!0),g=c;do{if(m===0){us&&!c&&fi(r,a,0,!1);break}else{if(l=r.current.alternate,g&&!aT(l)){m=dh(r,a,!1),g=!1;continue}if(m===2){if(g=a,r.errorRecoveryDisabledLanes&g)var S=0;else S=r.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var C=r;m=Il;var D=C.current.memoizedState.isDehydrated;if(D&&(ds(C,S).flags|=256),S=dh(C,S,!1),S!==2){if(ah&&!D){C.errorRecoveryDisabledLanes|=g,ra|=g,m=4;break e}g=tn,tn=m,g!==null&&(tn===null?tn=g:tn.push.apply(tn,g))}m=S}if(g=!1,m!==2)continue}}if(m===1){ds(r,0),fi(r,a,0,!0);break}e:{switch(c=r,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:fi(c,a,gn,!li);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=ju+300-Ue(),10<m)){if(fi(c,a,gn,!li),Go(c,0,!0)!==0)break e;Or=a,c.timeoutHandle=L0(r0.bind(null,c,l,tn,Du,lh,a,gn,ra,cs,li,g,"Throttled",-0,0),m);break e}r0(c,l,tn,Du,lh,a,gn,ra,cs,li,g,null,-0,0)}}break}while(!0);tr(r)}function r0(r,a,l,c,m,g,S,C,D,F,Z,ne,$,X){if(r.timeoutHandle=-1,ne=a.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pr},Kv(a,g,ne);var me=(g&62914560)===g?ju-Ue():(g&4194048)===g?Wv-Ue():0;if(me=HT(ne,me),me!==null){Or=g,r.cancelPendingCommit=me(f0.bind(null,r,a,g,l,c,m,S,C,D,Z,ne,null,$,X)),fi(r,g,S,!F);return}}f0(r,a,g,l,c,m,S,C,D)}function aT(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var m=l[c],g=m.getSnapshot;m=m.value;try{if(!fn(g(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function fi(r,a,l,c){a&=~sh,a&=~ra,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var m=a;0<m;){var g=31-We(m),S=1<<g;c[g]=-1,m&=~S}l!==0&&hg(r,l,a)}function Mu(){return(Ge&6)===0?(Ul(0),!1):!0}function fh(){if(Oe!==null){if(Ye===0)var r=Oe.return;else r=Oe,_r=Yi=null,kd(r),ns=null,Sl=0,r=Oe;for(;r!==null;)Dv(r.alternate,r),r=r.return;Oe=null}}function ds(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,TT(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Or=0,fh(),et=r,Oe=l=yr(r.current,null),Le=a,Ye=0,pn=null,li=!1,us=al(r,a),ah=!1,cs=gn=sh=ra=oi=lt=0,tn=Il=null,lh=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var m=31-We(c),g=1<<m;a|=r[m],c&=~g}return Rr=a,nu(),l}function i0(r,a){Te=null,q.H=Ol,a===ts||a===cu?(a=by(),Ye=3):a===pd?(a=by(),Ye=4):Ye=a===Hd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,pn=a,Oe===null&&(lt=1,wu(r,wn(a,r.current)))}function a0(){var r=hn.current;return r===null?!0:(Le&4194048)===Le?An===null:(Le&62914560)===Le||(Le&536870912)!==0?r===An:!1}function s0(){var r=q.H;return q.H=Ol,r===null?Ol:r}function l0(){var r=q.A;return q.A=rT,r}function Pu(){lt=4,li||(Le&4194048)!==Le&&hn.current!==null||(us=!0),(oi&134217727)===0&&(ra&134217727)===0||et===null||fi(et,Le,gn,!1)}function dh(r,a,l){var c=Ge;Ge|=2;var m=s0(),g=l0();(et!==r||Le!==a)&&(Du=null,ds(r,a)),a=!1;var S=lt;e:do try{if(Ye!==0&&Oe!==null){var C=Oe,D=pn;switch(Ye){case 8:fh(),S=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(a=!0);var F=Ye;if(Ye=0,pn=null,hs(r,C,D,F),l&&us){S=0;break e}break;default:F=Ye,Ye=0,pn=null,hs(r,C,D,F)}}sT(),S=lt;break}catch(Z){i0(r,Z)}while(!0);return a&&r.shellSuspendCounter++,_r=Yi=null,Ge=c,q.H=m,q.A=g,Oe===null&&(et=null,Le=0,nu()),S}function sT(){for(;Oe!==null;)o0(Oe)}function lT(r,a){var l=Ge;Ge|=2;var c=s0(),m=l0();et!==r||Le!==a?(Du=null,Lu=Ue()+500,ds(r,a)):us=al(r,a);e:do try{if(Ye!==0&&Oe!==null){a=Oe;var g=pn;t:switch(Ye){case 1:Ye=0,pn=null,hs(r,a,g,1);break;case 2:case 9:if(vy(g)){Ye=0,pn=null,u0(a);break}a=function(){Ye!==2&&Ye!==9||et!==r||(Ye=7),tr(r)},g.then(a,a);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:vy(g)?(Ye=0,pn=null,u0(a)):(Ye=0,pn=null,hs(r,a,g,7));break;case 5:var S=null;switch(Oe.tag){case 26:S=Oe.memoizedState;case 5:case 27:var C=Oe;if(S?Y0(S):C.stateNode.complete){Ye=0,pn=null;var D=C.sibling;if(D!==null)Oe=D;else{var F=C.return;F!==null?(Oe=F,zu(F)):Oe=null}break t}}Ye=0,pn=null,hs(r,a,g,5);break;case 6:Ye=0,pn=null,hs(r,a,g,6);break;case 8:fh(),lt=6;break e;default:throw Error(i(462))}}oT();break}catch(Z){i0(r,Z)}while(!0);return _r=Yi=null,q.H=c,q.A=m,Ge=l,Oe!==null?0:(et=null,Le=0,nu(),lt)}function oT(){for(;Oe!==null&&!Da();)o0(Oe)}function o0(r){var a=jv(r.alternate,r,Rr);r.memoizedProps=r.pendingProps,a===null?zu(r):Oe=a}function u0(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=Cv(l,a,a.pendingProps,a.type,void 0,Le);break;case 11:a=Cv(l,a,a.pendingProps,a.type.render,a.ref,Le);break;case 5:kd(a);default:Dv(l,a),a=Oe=ly(a,Rr),a=jv(l,a,Rr)}r.memoizedProps=r.pendingProps,a===null?zu(r):Oe=a}function hs(r,a,l,c){_r=Yi=null,kd(a),ns=null,Sl=0;var m=a.return;try{if(Xw(r,m,a,l,Le)){lt=1,wu(r,wn(l,r.current)),Oe=null;return}}catch(g){if(m!==null)throw Oe=m,g;lt=1,wu(r,wn(l,r.current)),Oe=null;return}a.flags&32768?(ze||c===1?r=!0:us||(Le&536870912)!==0?r=!1:(li=r=!0,(c===2||c===9||c===3||c===6)&&(c=hn.current,c!==null&&c.tag===13&&(c.flags|=16384))),c0(a,r)):zu(a)}function zu(r){var a=r;do{if((a.flags&32768)!==0){c0(a,li);return}r=a.return;var l=Ww(a.alternate,a,Rr);if(l!==null){Oe=l;return}if(a=a.sibling,a!==null){Oe=a;return}Oe=a=r}while(a!==null);lt===0&&(lt=5)}function c0(r,a){do{var l=eT(r.alternate,r);if(l!==null){l.flags&=32767,Oe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Oe=r;return}Oe=r=l}while(r!==null);lt=6,Oe=null}function f0(r,a,l,c,m,g,S,C,D){r.cancelPendingCommit=null;do Iu();while(xt!==0);if((Ge&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=ed,VE(r,l,g,S,C,D),r===et&&(Oe=et=null,Le=0),fs=a,ci=r,Or=l,oh=g,uh=m,e0=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,dT(xe,function(){return g0(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=q.T,q.T=null,m=re.p,re.p=2,S=Ge,Ge|=4;try{tT(r,a,l)}finally{Ge=S,re.p=m,q.T=c}}xt=1,d0(),h0(),m0()}}function d0(){if(xt===1){xt=0;var r=ci,a=fs,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var c=re.p;re.p=2;var m=Ge;Ge|=4;try{$v(a,r);var g=wh,S=Jg(r.containerInfo),C=g.focusedElem,D=g.selectionRange;if(S!==C&&C&&C.ownerDocument&&Zg(C.ownerDocument.documentElement,C)){if(D!==null&&Kf(C)){var F=D.start,Z=D.end;if(Z===void 0&&(Z=F),"selectionStart"in C)C.selectionStart=F,C.selectionEnd=Math.min(Z,C.value.length);else{var ne=C.ownerDocument||document,$=ne&&ne.defaultView||window;if($.getSelection){var X=$.getSelection(),me=C.textContent.length,be=Math.min(D.start,me),Je=D.end===void 0?be:Math.min(D.end,me);!X.extend&&be>Je&&(S=Je,Je=be,be=S);var V=Xg(C,be),B=Xg(C,Je);if(V&&B&&(X.rangeCount!==1||X.anchorNode!==V.node||X.anchorOffset!==V.offset||X.focusNode!==B.node||X.focusOffset!==B.offset)){var G=ne.createRange();G.setStart(V.node,V.offset),X.removeAllRanges(),be>Je?(X.addRange(G),X.extend(B.node,B.offset)):(G.setEnd(B.node,B.offset),X.addRange(G))}}}}for(ne=[],X=C;X=X.parentNode;)X.nodeType===1&&ne.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<ne.length;C++){var W=ne[C];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}Xu=!!Eh,wh=Eh=null}finally{Ge=m,re.p=c,q.T=l}}r.current=a,xt=2}}function h0(){if(xt===2){xt=0;var r=ci,a=fs,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var c=re.p;re.p=2;var m=Ge;Ge|=4;try{Vv(r,a.alternate,a)}finally{Ge=m,re.p=c,q.T=l}}xt=3}}function m0(){if(xt===4||xt===3){xt=0,Ve();var r=ci,a=fs,l=Or,c=e0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?xt=5:(xt=0,fs=ci=null,p0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ui=null),Of(l),a=a.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Vt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=q.T,m=re.p,re.p=2,q.T=null;try{for(var g=r.onRecoverableError,S=0;S<c.length;S++){var C=c[S];g(C.value,{componentStack:C.stack})}}finally{q.T=a,re.p=m}}(Or&3)!==0&&Iu(),tr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===ch?Bl++:(Bl=0,ch=r):Bl=0,Ul(0)}}function p0(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,bl(a)))}function Iu(){return d0(),h0(),m0(),g0()}function g0(){if(xt!==5)return!1;var r=ci,a=oh;oh=0;var l=Of(Or),c=q.T,m=re.p;try{re.p=32>l?32:l,q.T=null,l=uh,uh=null;var g=ci,S=Or;if(xt=0,fs=ci=null,Or=0,(Ge&6)!==0)throw Error(i(331));var C=Ge;if(Ge|=4,Zv(g.current),Yv(g,g.current,S,l),Ge=C,Ul(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Vt,g)}catch{}return!0}finally{re.p=m,q.T=c,p0(r,a)}}function y0(r,a,l){a=wn(l,a),a=qd(r.stateNode,a,2),r=ri(r,a,2),r!==null&&(sl(r,2),tr(r))}function Ke(r,a,l){if(r.tag===3)y0(r,r,l);else for(;a!==null;){if(a.tag===3){y0(a,r,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ui===null||!ui.has(c))){r=wn(l,r),l=vv(2),c=ri(a,l,2),c!==null&&(_v(l,c,a,r),sl(c,2),tr(c));break}}a=a.return}}function hh(r,a,l){var c=r.pingCache;if(c===null){c=r.pingCache=new iT;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(l)||(ah=!0,m.add(l),r=uT.bind(null,r,a,l),a.then(r,r))}function uT(r,a,l){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,et===r&&(Le&l)===l&&(lt===4||lt===3&&(Le&62914560)===Le&&300>Ue()-ju?(Ge&2)===0&&ds(r,0):sh|=l,cs===Le&&(cs=0)),tr(r)}function v0(r,a){a===0&&(a=dg()),r=Fi(r,a),r!==null&&(sl(r,a),tr(r))}function cT(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),v0(r,l)}function fT(r,a){var l=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),v0(r,l)}function dT(r,a){return qn(r,a)}var Bu=null,ms=null,mh=!1,Uu=!1,ph=!1,di=0;function tr(r){r!==ms&&r.next===null&&(ms===null?Bu=ms=r:ms=ms.next=r),Uu=!0,mh||(mh=!0,mT())}function Ul(r,a){if(!ph&&Uu){ph=!0;do for(var l=!1,c=Bu;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var S=c.suspendedLanes,C=c.pingedLanes;g=(1<<31-We(42|r)+1)-1,g&=m&~(S&~C),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,S0(c,g))}else g=Le,g=Go(c,c===et?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||al(c,g)||(l=!0,S0(c,g));c=c.next}while(l);ph=!1}}function hT(){_0()}function _0(){Uu=mh=!1;var r=0;di!==0&&wT()&&(r=di);for(var a=Ue(),l=null,c=Bu;c!==null;){var m=c.next,g=b0(c,a);g===0?(c.next=null,l===null?Bu=m:l.next=m,m===null&&(ms=l)):(l=c,(r!==0||(g&3)!==0)&&(Uu=!0)),c=m}xt!==0&&xt!==5||Ul(r),di!==0&&(di=0)}function b0(r,a){for(var l=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var S=31-We(g),C=1<<S,D=m[S];D===-1?((C&l)===0||(C&c)!==0)&&(m[S]=UE(C,a)):D<=a&&(r.expiredLanes|=C),g&=~C}if(a=et,l=Le,l=Go(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,l===0||r===a&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Qr(c),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||al(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(c!==null&&Qr(c),Of(l)){case 2:case 8:l=ue;break;case 32:l=xe;break;case 268435456:l=Fe;break;default:l=xe}return c=x0.bind(null,r),l=qn(l,c),r.callbackPriority=a,r.callbackNode=l,a}return c!==null&&c!==null&&Qr(c),r.callbackPriority=2,r.callbackNode=null,2}function x0(r,a){if(xt!==0&&xt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Iu()&&r.callbackNode!==l)return null;var c=Le;return c=Go(r,r===et?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(n0(r,c,a),b0(r,Ue()),r.callbackNode!=null&&r.callbackNode===l?x0.bind(null,r):null)}function S0(r,a){if(Iu())return null;n0(r,a,!0)}function mT(){CT(function(){(Ge&6)!==0?qn(J,hT):_0()})}function gh(){if(di===0){var r=Wa;r===0&&(r=Vo,Vo<<=1,(Vo&261888)===0&&(Vo=256)),di=r}return di}function E0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Yo(""+r)}function w0(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function pT(r,a,l,c,m){if(a==="submit"&&l&&l.stateNode===m){var g=E0((m[Xt]||null).action),S=c.submitter;S&&(a=(a=S[Xt]||null)?E0(a.formAction):S.getAttribute("formAction"),a!==null&&(g=a,S=null));var C=new Jo("action","action",null,c,m);r.push({event:C,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(di!==0){var D=S?w0(m,S):new FormData(m);Pd(l,{pending:!0,data:D,method:m.method,action:g},null,D)}}else typeof g=="function"&&(C.preventDefault(),D=S?w0(m,S):new FormData(m),Pd(l,{pending:!0,data:D,method:m.method,action:g},g,D))},currentTarget:m}]})}}for(var yh=0;yh<Wf.length;yh++){var vh=Wf[yh],gT=vh.toLowerCase(),yT=vh[0].toUpperCase()+vh.slice(1);Gn(gT,"on"+yT)}Gn(ty,"onAnimationEnd"),Gn(ny,"onAnimationIteration"),Gn(ry,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(Lw,"onTransitionRun"),Gn(Dw,"onTransitionStart"),Gn(Mw,"onTransitionCancel"),Gn(iy,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),Vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),vT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function T0(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],m=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var S=c.length-1;0<=S;S--){var C=c[S],D=C.instance,F=C.currentTarget;if(C=C.listener,D!==g&&m.isPropagationStopped())break e;g=C,m.currentTarget=F;try{g(m)}catch(Z){tu(Z)}m.currentTarget=null,g=D}else for(S=0;S<c.length;S++){if(C=c[S],D=C.instance,F=C.currentTarget,C=C.listener,D!==g&&m.isPropagationStopped())break e;g=C,m.currentTarget=F;try{g(m)}catch(Z){tu(Z)}m.currentTarget=null,g=D}}}}function Ne(r,a){var l=a[Nf];l===void 0&&(l=a[Nf]=new Set);var c=r+"__bubble";l.has(c)||(C0(a,r,2,!1),l.add(c))}function _h(r,a,l){var c=0;a&&(c|=4),C0(l,r,c,a)}var Vu="_reactListening"+Math.random().toString(36).slice(2);function bh(r){if(!r[Vu]){r[Vu]=!0,_g.forEach(function(l){l!=="selectionchange"&&(vT.has(l)||_h(l,!1,r),_h(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Vu]||(a[Vu]=!0,_h("selectionchange",!1,a))}}function C0(r,a,l,c){switch(t_(a)){case 2:var m=$T;break;case 8:m=QT;break;default:m=Mh}l=m.bind(null,a,l,r),m=void 0,!Uf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(a,l,{capture:!0,passive:m}):r.addEventListener(a,l,!0):m!==void 0?r.addEventListener(a,l,{passive:m}):r.addEventListener(a,l,!1)}function xh(r,a,l,c,m){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var C=c.stateNode.containerInfo;if(C===m)break;if(S===4)for(S=c.return;S!==null;){var D=S.tag;if((D===3||D===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;C!==null;){if(S=Pa(C),S===null)return;if(D=S.tag,D===5||D===6||D===26||D===27){c=g=S;continue e}C=C.parentNode}}c=c.return}Ng(function(){var F=g,Z=If(l),ne=[];e:{var $=ay.get(r);if($!==void 0){var X=Jo,me=r;switch(r){case"keypress":if(Xo(l)===0)break e;case"keydown":case"keyup":X=fw;break;case"focusin":me="focus",X=Gf;break;case"focusout":me="blur",X=Gf;break;case"beforeblur":case"afterblur":X=Gf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Dg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=WE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=mw;break;case ty:case ny:case ry:X=nw;break;case iy:X=gw;break;case"scroll":case"scrollend":X=ZE;break;case"wheel":X=vw;break;case"copy":case"cut":case"paste":X=iw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Pg;break;case"toggle":case"beforetoggle":X=bw}var be=(a&4)!==0,Je=!be&&(r==="scroll"||r==="scrollend"),V=be?$!==null?$+"Capture":null:$;be=[];for(var B=F,G;B!==null;){var W=B;if(G=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||G===null||V===null||(W=ul(B,V),W!=null&&be.push(ql(B,W,G))),Je)break;B=B.return}0<be.length&&($=new X($,me,null,l,Z),ne.push({event:$,listeners:be}))}}if((a&7)===0){e:{if($=r==="mouseover"||r==="pointerover",X=r==="mouseout"||r==="pointerout",$&&l!==zf&&(me=l.relatedTarget||l.fromElement)&&(Pa(me)||me[Ma]))break e;if((X||$)&&($=Z.window===Z?Z:($=Z.ownerDocument)?$.defaultView||$.parentWindow:window,X?(me=l.relatedTarget||l.toElement,X=F,me=me?Pa(me):null,me!==null&&(Je=o(me),be=me.tag,me!==Je||be!==5&&be!==27&&be!==6)&&(me=null)):(X=null,me=F),X!==me)){if(be=Dg,W="onMouseLeave",V="onMouseEnter",B="mouse",(r==="pointerout"||r==="pointerover")&&(be=Pg,W="onPointerLeave",V="onPointerEnter",B="pointer"),Je=X==null?$:ol(X),G=me==null?$:ol(me),$=new be(W,B+"leave",X,l,Z),$.target=Je,$.relatedTarget=G,W=null,Pa(Z)===F&&(be=new be(V,B+"enter",me,l,Z),be.target=G,be.relatedTarget=Je,W=be),Je=W,X&&me)t:{for(be=_T,V=X,B=me,G=0,W=V;W;W=be(W))G++;W=0;for(var ve=B;ve;ve=be(ve))W++;for(;0<G-W;)V=be(V),G--;for(;0<W-G;)B=be(B),W--;for(;G--;){if(V===B||B!==null&&V===B.alternate){be=V;break t}V=be(V),B=be(B)}be=null}else be=null;X!==null&&k0(ne,$,X,be,!1),me!==null&&Je!==null&&k0(ne,Je,me,be,!0)}}e:{if($=F?ol(F):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var qe=Gg;else if(qg($))if(Fg)qe=Ow;else{qe=Aw;var ge=kw}else X=$.nodeName,!X||X.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?F&&Pf(F.elementType)&&(qe=Gg):qe=Rw;if(qe&&(qe=qe(r,F))){Hg(ne,qe,l,Z);break e}ge&&ge(r,$,F),r==="focusout"&&F&&$.type==="number"&&F.memoizedProps.value!=null&&Mf($,"number",$.value)}switch(ge=F?ol(F):window,r){case"focusin":(qg(ge)||ge.contentEditable==="true")&&(Fa=ge,Xf=F,yl=null);break;case"focusout":yl=Xf=Fa=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,Wg(ne,l,Z);break;case"selectionchange":if(jw)break;case"keydown":case"keyup":Wg(ne,l,Z)}var Ce;if($f)e:{switch(r){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Ga?Ug(r,l)&&(De="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(De="onCompositionStart");De&&(zg&&l.locale!=="ko"&&(Ga||De!=="onCompositionStart"?De==="onCompositionEnd"&&Ga&&(Ce=jg()):(Xr=Z,Vf="value"in Xr?Xr.value:Xr.textContent,Ga=!0)),ge=qu(F,De),0<ge.length&&(De=new Mg(De,r,null,l,Z),ne.push({event:De,listeners:ge}),Ce?De.data=Ce:(Ce=Vg(l),Ce!==null&&(De.data=Ce)))),(Ce=Sw?Ew(r,l):ww(r,l))&&(De=qu(F,"onBeforeInput"),0<De.length&&(ge=new Mg("onBeforeInput","beforeinput",null,l,Z),ne.push({event:ge,listeners:De}),ge.data=Ce)),pT(ne,r,F,l,Z)}T0(ne,a)})}function ql(r,a,l){return{instance:r,listener:a,currentTarget:l}}function qu(r,a){for(var l=a+"Capture",c=[];r!==null;){var m=r,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=ul(r,l),m!=null&&c.unshift(ql(r,m,g)),m=ul(r,a),m!=null&&c.push(ql(r,m,g))),r.tag===3)return c;r=r.return}return[]}function _T(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function k0(r,a,l,c,m){for(var g=a._reactName,S=[];l!==null&&l!==c;){var C=l,D=C.alternate,F=C.stateNode;if(C=C.tag,D!==null&&D===c)break;C!==5&&C!==26&&C!==27||F===null||(D=F,m?(F=ul(l,g),F!=null&&S.unshift(ql(l,F,D))):m||(F=ul(l,g),F!=null&&S.push(ql(l,F,D)))),l=l.return}S.length!==0&&r.push({event:a,listeners:S})}var bT=/\r\n?/g,xT=/\u0000|\uFFFD/g;function A0(r){return(typeof r=="string"?r:""+r).replace(bT,`
|
|
50
|
-
`).replace(xT,"")}function R0(r,a){return a=A0(a),A0(r)===a}function Ze(r,a,l,c,m,g){switch(l){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Va(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Va(r,""+c);break;case"className":$o(r,"class",c);break;case"tabIndex":$o(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":$o(r,l,c);break;case"style":Rg(r,c,g);break;case"data":if(a!=="object"){$o(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Yo(""+c),r.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(l==="formAction"?(a!=="input"&&Ze(r,a,"name",m.name,m,null),Ze(r,a,"formEncType",m.formEncType,m,null),Ze(r,a,"formMethod",m.formMethod,m,null),Ze(r,a,"formTarget",m.formTarget,m,null)):(Ze(r,a,"encType",m.encType,m,null),Ze(r,a,"method",m.method,m,null),Ze(r,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Yo(""+c),r.setAttribute(l,c);break;case"onClick":c!=null&&(r.onclick=pr);break;case"onScroll":c!=null&&Ne("scroll",r);break;case"onScrollEnd":c!=null&&Ne("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}l=Yo(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""+c):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":c===!0?r.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,c):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(l,c):r.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(l):r.setAttribute(l,c);break;case"popover":Ne("beforetoggle",r),Ne("toggle",r),Fo(r,"popover",c);break;case"xlinkActuate":mr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":mr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":mr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":mr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":mr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":mr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":mr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":mr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":mr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Fo(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=KE.get(l)||l,Fo(r,l,c))}}function Sh(r,a,l,c,m,g){switch(l){case"style":Rg(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof c=="string"?Va(r,c):(typeof c=="number"||typeof c=="bigint")&&Va(r,""+c);break;case"onScroll":c!=null&&Ne("scroll",r);break;case"onScrollEnd":c!=null&&Ne("scrollend",r);break;case"onClick":c!=null&&(r.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),g=r[Xt]||null,g=g!=null?g[l]:null,typeof g=="function"&&r.removeEventListener(a,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,c,m);break e}l in r?r[l]=c:c===!0?r.setAttribute(l,""):Fo(r,l,c)}}}function Lt(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",r),Ne("load",r);var c=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var S=l[g];if(S!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,g,S,l,null)}}m&&Ze(r,a,"srcSet",l.srcSet,l,null),c&&Ze(r,a,"src",l.src,l,null);return;case"input":Ne("invalid",r);var C=g=S=m=null,D=null,F=null;for(c in l)if(l.hasOwnProperty(c)){var Z=l[c];if(Z!=null)switch(c){case"name":m=Z;break;case"type":S=Z;break;case"checked":D=Z;break;case"defaultChecked":F=Z;break;case"value":g=Z;break;case"defaultValue":C=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,a));break;default:Ze(r,a,c,Z,l,null)}}Tg(r,g,C,D,F,S,m,!1);return;case"select":Ne("invalid",r),c=S=g=null;for(m in l)if(l.hasOwnProperty(m)&&(C=l[m],C!=null))switch(m){case"value":g=C;break;case"defaultValue":S=C;break;case"multiple":c=C;default:Ze(r,a,m,C,l,null)}a=g,l=S,r.multiple=!!c,a!=null?Ua(r,!!c,a,!1):l!=null&&Ua(r,!!c,l,!0);return;case"textarea":Ne("invalid",r),g=m=c=null;for(S in l)if(l.hasOwnProperty(S)&&(C=l[S],C!=null))switch(S){case"value":c=C;break;case"defaultValue":m=C;break;case"children":g=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:Ze(r,a,S,C,l,null)}kg(r,c,m,g);return;case"option":for(D in l)if(l.hasOwnProperty(D)&&(c=l[D],c!=null))switch(D){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ze(r,a,D,c,l,null)}return;case"dialog":Ne("beforetoggle",r),Ne("toggle",r),Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":Ne("load",r);break;case"video":case"audio":for(c=0;c<Vl.length;c++)Ne(Vl[c],r);break;case"image":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"embed":case"source":case"link":Ne("error",r),Ne("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in l)if(l.hasOwnProperty(F)&&(c=l[F],c!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,F,c,l,null)}return;default:if(Pf(a)){for(Z in l)l.hasOwnProperty(Z)&&(c=l[Z],c!==void 0&&Sh(r,a,Z,c,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(c=l[C],c!=null&&Ze(r,a,C,c,l,null))}function ST(r,a,l,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,S=null,C=null,D=null,F=null,Z=null;for(X in l){var ne=l[X];if(l.hasOwnProperty(X)&&ne!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":D=ne;default:c.hasOwnProperty(X)||Ze(r,a,X,null,c,ne)}}for(var $ in c){var X=c[$];if(ne=l[$],c.hasOwnProperty($)&&(X!=null||ne!=null))switch($){case"type":g=X;break;case"name":m=X;break;case"checked":F=X;break;case"defaultChecked":Z=X;break;case"value":S=X;break;case"defaultValue":C=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,a));break;default:X!==ne&&Ze(r,a,$,X,c,ne)}}Df(r,S,C,D,F,Z,g,m);return;case"select":X=S=C=$=null;for(g in l)if(D=l[g],l.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":X=D;default:c.hasOwnProperty(g)||Ze(r,a,g,null,c,D)}for(m in c)if(g=c[m],D=l[m],c.hasOwnProperty(m)&&(g!=null||D!=null))switch(m){case"value":$=g;break;case"defaultValue":C=g;break;case"multiple":S=g;default:g!==D&&Ze(r,a,m,g,c,D)}a=C,l=S,c=X,$!=null?Ua(r,!!l,$,!1):!!c!=!!l&&(a!=null?Ua(r,!!l,a,!0):Ua(r,!!l,l?[]:"",!1));return;case"textarea":X=$=null;for(C in l)if(m=l[C],l.hasOwnProperty(C)&&m!=null&&!c.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Ze(r,a,C,null,c,m)}for(S in c)if(m=c[S],g=l[S],c.hasOwnProperty(S)&&(m!=null||g!=null))switch(S){case"value":$=m;break;case"defaultValue":X=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==g&&Ze(r,a,S,m,c,g)}Cg(r,$,X);return;case"option":for(var me in l)if($=l[me],l.hasOwnProperty(me)&&$!=null&&!c.hasOwnProperty(me))switch(me){case"selected":r.selected=!1;break;default:Ze(r,a,me,null,c,$)}for(D in c)if($=c[D],X=l[D],c.hasOwnProperty(D)&&$!==X&&($!=null||X!=null))switch(D){case"selected":r.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Ze(r,a,D,$,c,X)}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 be in l)$=l[be],l.hasOwnProperty(be)&&$!=null&&!c.hasOwnProperty(be)&&Ze(r,a,be,null,c,$);for(F in c)if($=c[F],X=l[F],c.hasOwnProperty(F)&&$!==X&&($!=null||X!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,a));break;default:Ze(r,a,F,$,c,X)}return;default:if(Pf(a)){for(var Je in l)$=l[Je],l.hasOwnProperty(Je)&&$!==void 0&&!c.hasOwnProperty(Je)&&Sh(r,a,Je,void 0,c,$);for(Z in c)$=c[Z],X=l[Z],!c.hasOwnProperty(Z)||$===X||$===void 0&&X===void 0||Sh(r,a,Z,$,c,X);return}}for(var V in l)$=l[V],l.hasOwnProperty(V)&&$!=null&&!c.hasOwnProperty(V)&&Ze(r,a,V,null,c,$);for(ne in c)$=c[ne],X=l[ne],!c.hasOwnProperty(ne)||$===X||$==null&&X==null||Ze(r,a,ne,$,c,X)}function O0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ET(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var m=l[c],g=m.transferSize,S=m.initiatorType,C=m.duration;if(g&&C&&O0(S)){for(S=0,C=m.responseEnd,c+=1;c<l.length;c++){var D=l[c],F=D.startTime;if(F>C)break;var Z=D.transferSize,ne=D.initiatorType;Z&&O0(ne)&&(D=D.responseEnd,S+=Z*(D<C?1:(C-F)/(D-F)))}if(--c,a+=8*(g+S)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Eh=null,wh=null;function Hu(r){return r.nodeType===9?r:r.ownerDocument}function N0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Th(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ch=null;function wT(){var r=window.event;return r&&r.type==="popstate"?r===Ch?!1:(Ch=r,!0):(Ch=null,!1)}var L0=typeof setTimeout=="function"?setTimeout:void 0,TT=typeof clearTimeout=="function"?clearTimeout:void 0,D0=typeof Promise=="function"?Promise:void 0,CT=typeof queueMicrotask=="function"?queueMicrotask:typeof D0<"u"?function(r){return D0.resolve(null).then(r).catch(kT)}:L0;function kT(r){setTimeout(function(){throw r})}function hi(r){return r==="head"}function M0(r,a){var l=a,c=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(c===0){r.removeChild(m),vs(a);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")Hl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Hl(l);for(var g=l.firstChild;g;){var S=g.nextSibling,C=g.nodeName;g[ll]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=S}}else l==="body"&&Hl(r.ownerDocument.body);l=m}while(l);vs(a)}function P0(r,a){var l=r;r=0;do{var c=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=c}while(l)}function kh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kh(l),jf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function AT(r,a,l,c){for(;r.nodeType===1;){var m=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ll])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=Rn(r.nextSibling),r===null)break}return null}function RT(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Rn(r.nextSibling),r===null))return null;return r}function z0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Rn(r.nextSibling),r===null))return null;return r}function Ah(r){return r.data==="$?"||r.data==="$~"}function Rh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function OT(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var c=function(){a(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function Rn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Oh=null;function I0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Rn(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function B0(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function U0(r,a,l){switch(a=Hu(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Hl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);jf(r)}var On=new Map,V0=new Set;function Gu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Nr=re.d;re.d={f:NT,r:jT,D:LT,C:DT,L:MT,m:PT,X:IT,S:zT,M:BT};function NT(){var r=Nr.f(),a=Mu();return r||a}function jT(r){var a=za(r);a!==null&&a.tag===5&&a.type==="form"?iv(a):Nr.r(r)}var ps=typeof document>"u"?null:document;function q0(r,a,l){var c=ps;if(c&&typeof a=="string"&&a){var m=Sn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),V0.has(m)||(V0.add(m),r={rel:r,crossOrigin:l,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),Lt(a,"link",r),Tt(a),c.head.appendChild(a)))}}function LT(r){Nr.D(r),q0("dns-prefetch",r,null)}function DT(r,a){Nr.C(r,a),q0("preconnect",r,a)}function MT(r,a,l){Nr.L(r,a,l);var c=ps;if(c&&r&&a){var m='link[rel="preload"][as="'+Sn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Sn(l.imageSizes)+'"]')):m+='[href="'+Sn(r)+'"]';var g=m;switch(a){case"style":g=gs(r);break;case"script":g=ys(r)}On.has(g)||(r=p({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),On.set(g,r),c.querySelector(m)!==null||a==="style"&&c.querySelector(Gl(g))||a==="script"&&c.querySelector(Fl(g))||(a=c.createElement("link"),Lt(a,"link",r),Tt(a),c.head.appendChild(a)))}}function PT(r,a){Nr.m(r,a);var l=ps;if(l&&r){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Sn(c)+'"][href="'+Sn(r)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=ys(r)}if(!On.has(g)&&(r=p({rel:"modulepreload",href:r},a),On.set(g,r),l.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Fl(g)))return}c=l.createElement("link"),Lt(c,"link",r),Tt(c),l.head.appendChild(c)}}}function zT(r,a,l){Nr.S(r,a,l);var c=ps;if(c&&r){var m=Ia(c).hoistableStyles,g=gs(r);a=a||"default";var S=m.get(g);if(!S){var C={loading:0,preload:null};if(S=c.querySelector(Gl(g)))C.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},l),(l=On.get(g))&&Nh(r,l);var D=S=c.createElement("link");Tt(D),Lt(D,"link",r),D._p=new Promise(function(F,Z){D.onload=F,D.onerror=Z}),D.addEventListener("load",function(){C.loading|=1}),D.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Fu(S,a,c)}S={type:"stylesheet",instance:S,count:1,state:C},m.set(g,S)}}}function IT(r,a){Nr.X(r,a);var l=ps;if(l&&r){var c=Ia(l).hoistableScripts,m=ys(r),g=c.get(m);g||(g=l.querySelector(Fl(m)),g||(r=p({src:r,async:!0},a),(a=On.get(m))&&jh(r,a),g=l.createElement("script"),Tt(g),Lt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function BT(r,a){Nr.M(r,a);var l=ps;if(l&&r){var c=Ia(l).hoistableScripts,m=ys(r),g=c.get(m);g||(g=l.querySelector(Fl(m)),g||(r=p({src:r,async:!0,type:"module"},a),(a=On.get(m))&&jh(r,a),g=l.createElement("script"),Tt(g),Lt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function H0(r,a,l,c){var m=(m=he.current)?Gu(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=gs(l.href),l=Ia(m).hoistableStyles,c=l.get(a),c||(c={type:"style",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=gs(l.href);var g=Ia(m).hoistableStyles,S=g.get(r);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,S),(g=m.querySelector(Gl(r)))&&!g._p&&(S.instance=g,S.state.loading=5),On.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},On.set(r,l),g||UT(m,r,l,S.state))),a&&c===null)throw Error(i(528,""));return S}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ys(l),l=Ia(m).hoistableScripts,c=l.get(a),c||(c={type:"script",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function gs(r){return'href="'+Sn(r)+'"'}function Gl(r){return'link[rel="stylesheet"]['+r+"]"}function G0(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function UT(r,a,l,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Lt(a,"link",l),Tt(a),r.head.appendChild(a))}function ys(r){return'[src="'+Sn(r)+'"]'}function Fl(r){return"script[async]"+r}function F0(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(c)return a.instance=c,Tt(c),c;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Tt(c),Lt(c,"style",m),Fu(c,l.precedence,r),a.instance=c;case"stylesheet":m=gs(l.href);var g=r.querySelector(Gl(m));if(g)return a.state.loading|=4,a.instance=g,Tt(g),g;c=G0(l),(m=On.get(m))&&Nh(c,m),g=(r.ownerDocument||r).createElement("link"),Tt(g);var S=g;return S._p=new Promise(function(C,D){S.onload=C,S.onerror=D}),Lt(g,"link",c),a.state.loading|=4,Fu(g,l.precedence,r),a.instance=g;case"script":return g=ys(l.src),(m=r.querySelector(Fl(g)))?(a.instance=m,Tt(m),m):(c=l,(m=On.get(g))&&(c=p({},l),jh(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),Tt(m),Lt(m,"link",c),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Fu(c,l.precedence,r));return a.instance}function Fu(r,a,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,S=0;S<c.length;S++){var C=c[S];if(C.dataset.precedence===a)g=C;else if(g!==m)break}g?g.parentNode.insertBefore(r,g.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function Nh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function jh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var $u=null;function $0(r,a,l){if($u===null){var c=new Map,m=$u=new Map;m.set(l,c)}else m=$u,c=m.get(l),c||(c=new Map,m.set(l,c));if(c.has(r))return c;for(c.set(r,null),l=l.getElementsByTagName(r),m=0;m<l.length;m++){var g=l[m];if(!(g[ll]||g[Rt]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(a)||"";S=r+S;var C=c.get(S);C?C.push(g):c.set(S,[g])}}return c}function Q0(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function VT(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Y0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function qT(r,a,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=gs(c.href),g=a.querySelector(Gl(m));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Qu.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=g,Tt(g);return}g=a.ownerDocument||a,c=G0(c),(m=On.get(m))&&Nh(c,m),g=g.createElement("link"),Tt(g);var S=g;S._p=new Promise(function(C,D){S.onload=C,S.onerror=D}),Lt(g,"link",c),l.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=Qu.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var Lh=0;function HT(r,a){return r.stylesheets&&r.count===0&&Ku(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var c=setTimeout(function(){if(r.stylesheets&&Ku(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+a);0<r.imgBytes&&Lh===0&&(Lh=62500*ET());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ku(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Lh?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Yu=null;function Ku(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Yu=new Map,a.forEach(GT,r),Yu=null,Qu.call(r))}function GT(r,a){if(!(a.state.loading&4)){var l=Yu.get(r);if(l)var c=l.get(null);else{l=new Map,Yu.set(r,l);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var S=m[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),c=S)}c&&l.set(null,c)}m=a.instance,S=m.getAttribute("data-precedence"),g=l.get(S)||c,g===c&&l.set(null,m),l.set(S,m),this.count++,c=Qu.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var $l={$$typeof:N,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function FT(r,a,l,c,m,g,S,C,D){this.tag=1,this.containerInfo=r,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=Af(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Af(0),this.hiddenUpdates=Af(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function K0(r,a,l,c,m,g,S,C,D,F,Z,ne){return r=new FT(r,a,l,S,D,F,Z,ne,C),a=1,g===!0&&(a|=24),g=dn(3,null,null,a),r.current=g,g.stateNode=r,a=dd(),a.refCount++,r.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:l,cache:a},gd(g),r}function X0(r){return r?(r=Ya,r):Ya}function Z0(r,a,l,c,m,g){m=X0(m),c.context===null?c.context=m:c.pendingContext=m,c=ni(a),c.payload={element:l},g=g===void 0?null:g,g!==null&&(c.callback=g),l=ri(r,c,a),l!==null&&(nn(l,r,a),wl(l,r,a))}function J0(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Dh(r,a){J0(r,a),(r=r.alternate)&&J0(r,a)}function W0(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&nn(a,r,67108864),Dh(r,67108864)}}function e_(r){if(r.tag===13||r.tag===31){var a=yn();a=Rf(a);var l=Fi(r,a);l!==null&&nn(l,r,a),Dh(r,a)}}var Xu=!0;function $T(r,a,l,c){var m=q.T;q.T=null;var g=re.p;try{re.p=2,Mh(r,a,l,c)}finally{re.p=g,q.T=m}}function QT(r,a,l,c){var m=q.T;q.T=null;var g=re.p;try{re.p=8,Mh(r,a,l,c)}finally{re.p=g,q.T=m}}function Mh(r,a,l,c){if(Xu){var m=Ph(c);if(m===null)xh(r,a,c,Zu,l),n_(r,c);else if(KT(m,r,a,l,c))c.stopPropagation();else if(n_(r,c),a&4&&-1<YT.indexOf(r)){for(;m!==null;){var g=za(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=Ui(g.pendingLanes);if(S!==0){var C=g;for(C.pendingLanes|=2,C.entangledLanes|=2;S;){var D=1<<31-We(S);C.entanglements[1]|=D,S&=~D}tr(g),(Ge&6)===0&&(Lu=Ue()+500,Ul(0))}}break;case 31:case 13:C=Fi(g,2),C!==null&&nn(C,g,2),Mu(),Dh(g,2)}if(g=Ph(c),g===null&&xh(r,a,c,Zu,l),g===m)break;m=g}m!==null&&c.stopPropagation()}else xh(r,a,c,null,l)}}function Ph(r){return r=If(r),zh(r)}var Zu=null;function zh(r){if(Zu=null,r=Pa(r),r!==null){var a=o(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=u(a),r!==null)return r;r=null}else if(l===31){if(r=f(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Zu=r,null}function t_(r){switch(r){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(Ut()){case J:return 2;case ue:return 8;case xe:case Re:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Ih=!1,mi=null,pi=null,gi=null,Ql=new Map,Yl=new Map,yi=[],YT="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 n_(r,a){switch(r){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":pi=null;break;case"mouseover":case"mouseout":gi=null;break;case"pointerover":case"pointerout":Ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(a.pointerId)}}function Kl(r,a,l,c,m,g){return r===null||r.nativeEvent!==g?(r={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},a!==null&&(a=za(a),a!==null&&W0(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function KT(r,a,l,c,m){switch(a){case"focusin":return mi=Kl(mi,r,a,l,c,m),!0;case"dragenter":return pi=Kl(pi,r,a,l,c,m),!0;case"mouseover":return gi=Kl(gi,r,a,l,c,m),!0;case"pointerover":var g=m.pointerId;return Ql.set(g,Kl(Ql.get(g)||null,r,a,l,c,m)),!0;case"gotpointercapture":return g=m.pointerId,Yl.set(g,Kl(Yl.get(g)||null,r,a,l,c,m)),!0}return!1}function r_(r){var a=Pa(r.target);if(a!==null){var l=o(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){r.blockedOn=a,yg(r.priority,function(){e_(l)});return}}else if(a===31){if(a=f(l),a!==null){r.blockedOn=a,yg(r.priority,function(){e_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ju(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Ph(r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);zf=c,l.target.dispatchEvent(c),zf=null}else return a=za(l),a!==null&&W0(a),r.blockedOn=l,!1;a.shift()}return!0}function i_(r,a,l){Ju(r)&&l.delete(a)}function XT(){Ih=!1,mi!==null&&Ju(mi)&&(mi=null),pi!==null&&Ju(pi)&&(pi=null),gi!==null&&Ju(gi)&&(gi=null),Ql.forEach(i_),Yl.forEach(i_)}function Wu(r,a){r.blockedOn===a&&(r.blockedOn=null,Ih||(Ih=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,XT)))}var ec=null;function a_(r){ec!==r&&(ec=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ec===r&&(ec=null);for(var a=0;a<r.length;a+=3){var l=r[a],c=r[a+1],m=r[a+2];if(typeof c!="function"){if(zh(c||l)===null)continue;break}var g=za(l);g!==null&&(r.splice(a,3),a-=3,Pd(g,{pending:!0,data:m,method:l.method,action:c},c,m))}}))}function vs(r){function a(D){return Wu(D,r)}mi!==null&&Wu(mi,r),pi!==null&&Wu(pi,r),gi!==null&&Wu(gi,r),Ql.forEach(a),Yl.forEach(a);for(var l=0;l<yi.length;l++){var c=yi[l];c.blockedOn===r&&(c.blockedOn=null)}for(;0<yi.length&&(l=yi[0],l.blockedOn===null);)r_(l),l.blockedOn===null&&yi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var m=l[c],g=l[c+1],S=m[Xt]||null;if(typeof g=="function")S||a_(l);else if(S){var C=null;if(g&&g.hasAttribute("formAction")){if(m=g,S=g[Xt]||null)C=S.formAction;else if(zh(m)!==null)continue}else C=S.action;typeof C=="function"?l[c+1]=C:(l.splice(c,3),c-=3),a_(l)}}}function s_(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Bh(r){this._internalRoot=r}tc.prototype.render=Bh.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,c=yn();Z0(l,c,r,a,null,null)},tc.prototype.unmount=Bh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Z0(r.current,2,null,r,null,null),Mu(),a[Ma]=null}};function tc(r){this._internalRoot=r}tc.prototype.unstable_scheduleHydration=function(r){if(r){var a=gg();r={blockedOn:null,target:r,priority:a};for(var l=0;l<yi.length&&a!==0&&a<yi[l].priority;l++);yi.splice(l,0,r),l===0&&r_(r)}};var l_=t.version;if(l_!=="19.2.0")throw Error(i(527,l_,"19.2.0"));re.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var ZT={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{Vt=nc.inject(ZT),bt=nc}catch{}}return Zl.createRoot=function(r,a){if(!s(r))throw Error(i(299));var l=!1,c="",m=mv,g=pv,S=gv;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=K0(r,1,!1,null,null,l,c,null,m,g,S,s_),r[Ma]=a.current,bh(r),new Bh(a)},Zl.hydrateRoot=function(r,a,l){if(!s(r))throw Error(i(299));var c=!1,m="",g=mv,S=pv,C=gv,D=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.formState!==void 0&&(D=l.formState)),a=K0(r,1,!0,a,l??null,c,m,D,g,S,C,s_),a.context=X0(null),l=a.current,c=yn(),c=Rf(c),m=ni(c),m.callback=null,ri(l,m,c),l=c,a.current.lanes=l,sl(a,l),tr(a),r[Ma]=a.current,bh(r),new tc(a)},Zl.version="19.2.0",Zl}var v_;function oC(){if(v_)return qh.exports;v_=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(),qh.exports=lC(),qh.exports}var uC=oC(),Js=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(){}},cC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xi,Sp,xx,fC=(xx=class{constructor(){ye(this,xi,cC);ye(this,Sp,!1)}setTimeoutProvider(e){fe(this,xi,e)}setTimeout(e,t){return M(this,xi).setTimeout(e,t)}clearTimeout(e){M(this,xi).clearTimeout(e)}setInterval(e,t){return M(this,xi).setInterval(e,t)}clearInterval(e){M(this,xi).clearInterval(e)}},xi=new WeakMap,Sp=new WeakMap,xx),la=new fC;function dC(e){setTimeout(e,0)}var Sa=typeof window>"u"||"Deno"in globalThis;function Ft(){}function hC(e,t){return typeof e=="function"?e(t):e}function Mm(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ni(e,t){return typeof e=="function"?e(t):e}function Dn(e,t){return typeof e=="function"?e(t):e}function __(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:u,stale:f}=e;if(u){if(i){if(t.queryHash!==wp(u,t.options))return!1}else if(!_o(t.queryKey,u))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function b_(e,t){const{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ea(t.options.mutationKey)!==Ea(o))return!1}else if(!_o(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function wp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ea)(e)}function Ea(e){return JSON.stringify(e,(t,n)=>Pm(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function _o(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_o(e[n],t[n])):!1}var mC=Object.prototype.hasOwnProperty;function Dx(e,t){if(e===t)return e;const n=x_(e)&&x_(t);if(!n&&!(Pm(e)&&Pm(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,f=n?new Array(u):{};let d=0;for(let h=0;h<u;h++){const y=n?h:o[h],p=e[y],v=t[y];if(p===v){f[y]=p,(n?h<s:mC.call(e,y))&&d++;continue}if(p===null||v===null||typeof p!="object"||typeof v!="object"){f[y]=v;continue}const _=Dx(p,v);f[y]=_,_===p&&d++}return s===u&&d===s?e:f}function Rc(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 x_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pm(e){if(!S_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!S_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function S_(e){return Object.prototype.toString.call(e)==="[object Object]"}function pC(e){return new Promise(t=>{la.setTimeout(t,e)})}function zm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Dx(e,t):t}function gC(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function yC(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Hr=Symbol();function Mx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Px(e,t){return typeof e=="function"?e(...t):!!e}var ua,Si,Ds,Sx,vC=(Sx=class extends Js{constructor(){super();ye(this,ua);ye(this,Si);ye(this,Ds);fe(this,Ds,t=>{if(!Sa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,Si)||this.setEventListener(M(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Si))==null||t.call(this),fe(this,Si,void 0))}setEventListener(t){var n;fe(this,Ds,t),(n=M(this,Si))==null||n.call(this),fe(this,Si,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){M(this,ua)!==t&&(fe(this,ua,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,ua)=="boolean"?M(this,ua):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ua=new WeakMap,Si=new WeakMap,Ds=new WeakMap,Sx),Tp=new vC;function Im(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var _C=dC;function bC(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=_C;const o=f=>{t?e.push(f):s(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||u()}return d},batchCalls:f=>(...d)=>{o(()=>{f(...d)})},schedule:o,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var Et=bC(),Ms,Ei,Ps,Ex,xC=(Ex=class extends Js{constructor(){super();ye(this,Ms,!0);ye(this,Ei);ye(this,Ps);fe(this,Ps,t=>{if(!Sa&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){M(this,Ei)||this.setEventListener(M(this,Ps))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Ei))==null||t.call(this),fe(this,Ei,void 0))}setEventListener(t){var n;fe(this,Ps,t),(n=M(this,Ei))==null||n.call(this),fe(this,Ei,t(this.setOnline.bind(this)))}setOnline(t){M(this,Ms)!==t&&(fe(this,Ms,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return M(this,Ms)}},Ms=new WeakMap,Ei=new WeakMap,Ps=new WeakMap,Ex),Oc=new xC;function SC(e){return Math.min(1e3*2**e,3e4)}function zx(e){return(e??"online")==="online"?Oc.isOnline():!0}var Bm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ix(e){let t=!1,n=0,i;const s=Im(),o=()=>s.status!=="pending",u=w=>{var E;if(!o()){const T=new Bm(w);v(T),(E=e.onCancel)==null||E.call(e,T)}},f=()=>{t=!0},d=()=>{t=!1},h=()=>Tp.isFocused()&&(e.networkMode==="always"||Oc.isOnline())&&e.canRun(),y=()=>zx(e.networkMode)&&e.canRun(),p=w=>{o()||(i==null||i(),s.resolve(w))},v=w=>{o()||(i==null||i(),s.reject(w))},_=()=>new Promise(w=>{var E;i=T=>{(o()||h())&&w(T)},(E=e.onPause)==null||E.call(e)}).then(()=>{var w;i=void 0,o()||(w=e.onContinue)==null||w.call(e)}),x=()=>{if(o())return;let w;const E=n===0?e.initialPromise:void 0;try{w=E??e.fn()}catch(T){w=Promise.reject(T)}Promise.resolve(w).then(p).catch(T=>{var R;if(o())return;const A=e.retry??(Sa?0:3),N=e.retryDelay??SC,P=typeof N=="function"?N(n,T):N,I=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,T);if(t||!I){v(T);return}n++,(R=e.onFail)==null||R.call(e,n,T),pC(P).then(()=>h()?void 0:_()).then(()=>{t?v(T):x()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:f,continueRetry:d,canStart:y,start:()=>(y()?x():_().then(x),s)}}var ca,wx,Bx=(wx=class{constructor(){ye(this,ca)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mm(this.gcTime)&&fe(this,ca,la.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sa?1/0:300*1e3))}clearGcTimeout(){M(this,ca)&&(la.clearTimeout(M(this,ca)),fe(this,ca,void 0))}},ca=new WeakMap,wx),fa,zs,Ln,da,kt,Ro,ha,Qn,Dr,Tx,EC=(Tx=class extends Bx{constructor(t){super();ye(this,Qn);ye(this,fa);ye(this,zs);ye(this,Ln);ye(this,da);ye(this,kt);ye(this,Ro);ye(this,ha);fe(this,ha,!1),fe(this,Ro,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,da,t.client),fe(this,Ln,M(this,da).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,fa,w_(this.options)),this.state=t.state??M(this,fa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,kt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,Ro),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=w_(this.options);n.data!==void 0&&(this.setState(E_(n.data,n.dataUpdatedAt)),fe(this,fa,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Ln).remove(this)}setData(t,n){const i=zm(this.state.data,t,this.options);return Ae(this,Qn,Dr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Ae(this,Qn,Dr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=M(this,kt))==null?void 0:i.promise;return(s=M(this,kt))==null||s.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,fa))}isActive(){return this.observers.some(t=>Dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ni(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Lx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Ln).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,kt)&&(M(this,ha)?M(this,kt).cancel({revert:!0}):M(this,kt).cancelRetry()),this.scheduleGc()),M(this,Ln).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,Qn,Dr).call(this,{type:"invalidate"})}async fetch(t,n){var d,h,y,p,v,_,x,w,E,T,A,N;if(this.state.fetchStatus!=="idle"&&((d=M(this,kt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,kt))return M(this,kt).continueRetry(),M(this,kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(I=>I.options.queryFn);P&&this.setOptions(P.options)}const i=new AbortController,s=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(fe(this,ha,!0),i.signal)})},o=()=>{const P=Mx(this.options,n),R=(()=>{const U={client:M(this,da),queryKey:this.queryKey,meta:this.meta};return s(U),U})();return fe(this,ha,!1),this.options.persister?this.options.persister(P,R,this):P(R)},f=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,da),state:this.state,fetchFn:o};return s(P),P})();(h=this.options.behavior)==null||h.onFetch(f,this),fe(this,zs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Ae(this,Qn,Dr).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),fe(this,kt,Ix({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:P=>{P instanceof Bm&&P.revert&&this.setState({...M(this,zs),fetchStatus:"idle"}),i.abort()},onFail:(P,I)=>{Ae(this,Qn,Dr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{Ae(this,Qn,Dr).call(this,{type:"pause"})},onContinue:()=>{Ae(this,Qn,Dr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const P=await M(this,kt).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(_=(v=M(this,Ln).config).onSuccess)==null||_.call(v,P,this),(w=(x=M(this,Ln).config).onSettled)==null||w.call(x,P,this.state.error,this),P}catch(P){if(P instanceof Bm){if(P.silent)return M(this,kt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Ae(this,Qn,Dr).call(this,{type:"error",error:P}),(T=(E=M(this,Ln).config).onError)==null||T.call(E,P,this),(N=(A=M(this,Ln).config).onSettled)==null||N.call(A,this.state.data,P,this),P}finally{this.scheduleGc()}}},fa=new WeakMap,zs=new WeakMap,Ln=new WeakMap,da=new WeakMap,kt=new WeakMap,Ro=new WeakMap,ha=new WeakMap,Qn=new WeakSet,Dr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Ux(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...E_(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return fe(this,zs,t.manual?s:void 0),s;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),Et.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),M(this,Ln).notify({query:this,type:"updated",action:t})})},Tx);function Ux(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function E_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function w_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var an,Ie,Oo,Ht,ma,Is,Mr,wi,No,Bs,Us,pa,ga,Ti,Vs,$e,so,Um,Vm,qm,Hm,Gm,Fm,$m,Vx,Cx,wC=(Cx=class extends Js{constructor(t,n){super();ye(this,$e);ye(this,an);ye(this,Ie);ye(this,Oo);ye(this,Ht);ye(this,ma);ye(this,Is);ye(this,Mr);ye(this,wi);ye(this,No);ye(this,Bs);ye(this,Us);ye(this,pa);ye(this,ga);ye(this,Ti);ye(this,Vs,new Set);this.options=n,fe(this,an,t),fe(this,wi,null),fe(this,Mr,Im()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Ie).addObserver(this),T_(M(this,Ie),this.options)?Ae(this,$e,so).call(this):this.updateResult(),Ae(this,$e,Hm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qm(M(this,Ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qm(M(this,Ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,$e,Gm).call(this),Ae(this,$e,Fm).call(this),M(this,Ie).removeObserver(this)}setOptions(t){const n=this.options,i=M(this,Ie);if(this.options=M(this,an).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,M(this,Ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,$e,$m).call(this),M(this,Ie).setOptions(this.options),n._defaulted&&!Rc(this.options,n)&&M(this,an).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Ie),observer:this});const s=this.hasListeners();s&&C_(M(this,Ie),i,this.options,n)&&Ae(this,$e,so).call(this),this.updateResult(),s&&(M(this,Ie)!==i||Dn(this.options.enabled,M(this,Ie))!==Dn(n.enabled,M(this,Ie))||Ni(this.options.staleTime,M(this,Ie))!==Ni(n.staleTime,M(this,Ie)))&&Ae(this,$e,Um).call(this);const o=Ae(this,$e,Vm).call(this);s&&(M(this,Ie)!==i||Dn(this.options.enabled,M(this,Ie))!==Dn(n.enabled,M(this,Ie))||o!==M(this,Ti))&&Ae(this,$e,qm).call(this,o)}getOptimisticResult(t){const n=M(this,an).getQueryCache().build(M(this,an),t),i=this.createResult(n,t);return CC(this,i)&&(fe(this,Ht,i),fe(this,Is,this.options),fe(this,ma,M(this,Ie).state)),i}getCurrentResult(){return M(this,Ht)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Mr).status==="pending"&&M(this,Mr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){M(this,Vs).add(t)}getCurrentQuery(){return M(this,Ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,an).defaultQueryOptions(t),i=M(this,an).getQueryCache().build(M(this,an),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Ae(this,$e,so).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ht)))}createResult(t,n){var ee;const i=M(this,Ie),s=this.options,o=M(this,Ht),u=M(this,ma),f=M(this,Is),h=t!==i?t.state:M(this,Oo),{state:y}=t;let p={...y},v=!1,_;if(n._optimisticResults){const j=this.hasListeners(),Q=!j&&T_(t,n),ie=j&&C_(t,i,n,s);(Q||ie)&&(p={...p,...Ux(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:x,errorUpdatedAt:w,status:E}=p;_=p.data;let T=!1;if(n.placeholderData!==void 0&&_===void 0&&E==="pending"){let j;o!=null&&o.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(j=o.data,T=!0):j=typeof n.placeholderData=="function"?n.placeholderData((ee=M(this,Us))==null?void 0:ee.state.data,M(this,Us)):n.placeholderData,j!==void 0&&(E="success",_=zm(o==null?void 0:o.data,j,n),v=!0)}if(n.select&&_!==void 0&&!T)if(o&&_===(u==null?void 0:u.data)&&n.select===M(this,No))_=M(this,Bs);else try{fe(this,No,n.select),_=n.select(_),_=zm(o==null?void 0:o.data,_,n),fe(this,Bs,_),fe(this,wi,null)}catch(j){fe(this,wi,j)}M(this,wi)&&(x=M(this,wi),_=M(this,Bs),w=Date.now(),E="error");const A=p.fetchStatus==="fetching",N=E==="pending",P=E==="error",I=N&&A,R=_!==void 0,K={status:E,fetchStatus:p.fetchStatus,isPending:N,isSuccess:E==="success",isError:P,isInitialLoading:I,isLoading:I,data:_,dataUpdatedAt:p.dataUpdatedAt,error:x,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:A,isRefetching:A&&!N,isLoadingError:P&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:P&&R,isStale:Cp(t,n),refetch:this.refetch,promise:M(this,Mr),isEnabled:Dn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=de=>{K.status==="error"?de.reject(K.error):K.data!==void 0&&de.resolve(K.data)},Q=()=>{const de=fe(this,Mr,K.promise=Im());j(de)},ie=M(this,Mr);switch(ie.status){case"pending":t.queryHash===i.queryHash&&j(ie);break;case"fulfilled":(K.status==="error"||K.data!==ie.value)&&Q();break;case"rejected":(K.status!=="error"||K.error!==ie.reason)&&Q();break}}return K}updateResult(){const t=M(this,Ht),n=this.createResult(M(this,Ie),this.options);if(fe(this,ma,M(this,Ie).state),fe(this,Is,this.options),M(this,ma).data!==void 0&&fe(this,Us,M(this,Ie)),Rc(n,t))return;fe(this,Ht,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!M(this,Vs).size)return!0;const u=new Set(o??M(this,Vs));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,Ht)).some(f=>{const d=f;return M(this,Ht)[d]!==t[d]&&u.has(d)})};Ae(this,$e,Vx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,$e,Hm).call(this)}},an=new WeakMap,Ie=new WeakMap,Oo=new WeakMap,Ht=new WeakMap,ma=new WeakMap,Is=new WeakMap,Mr=new WeakMap,wi=new WeakMap,No=new WeakMap,Bs=new WeakMap,Us=new WeakMap,pa=new WeakMap,ga=new WeakMap,Ti=new WeakMap,Vs=new WeakMap,$e=new WeakSet,so=function(t){Ae(this,$e,$m).call(this);let n=M(this,Ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ft)),n},Um=function(){Ae(this,$e,Gm).call(this);const t=Ni(this.options.staleTime,M(this,Ie));if(Sa||M(this,Ht).isStale||!Mm(t))return;const i=Lx(M(this,Ht).dataUpdatedAt,t)+1;fe(this,pa,la.setTimeout(()=>{M(this,Ht).isStale||this.updateResult()},i))},Vm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Ie)):this.options.refetchInterval)??!1},qm=function(t){Ae(this,$e,Fm).call(this),fe(this,Ti,t),!(Sa||Dn(this.options.enabled,M(this,Ie))===!1||!Mm(M(this,Ti))||M(this,Ti)===0)&&fe(this,ga,la.setInterval(()=>{(this.options.refetchIntervalInBackground||Tp.isFocused())&&Ae(this,$e,so).call(this)},M(this,Ti)))},Hm=function(){Ae(this,$e,Um).call(this),Ae(this,$e,qm).call(this,Ae(this,$e,Vm).call(this))},Gm=function(){M(this,pa)&&(la.clearTimeout(M(this,pa)),fe(this,pa,void 0))},Fm=function(){M(this,ga)&&(la.clearInterval(M(this,ga)),fe(this,ga,void 0))},$m=function(){const t=M(this,an).getQueryCache().build(M(this,an),this.options);if(t===M(this,Ie))return;const n=M(this,Ie);fe(this,Ie,t),fe(this,Oo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Vx=function(t){Et.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ht))}),M(this,an).getQueryCache().notify({query:M(this,Ie),type:"observerResultsUpdated"})})},Cx);function TC(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function T_(e,t){return TC(e,t)||e.state.data!==void 0&&Qm(e,t,t.refetchOnMount)}function Qm(e,t,n){if(Dn(t.enabled,e)!==!1&&Ni(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Cp(e,t)}return!1}function C_(e,t,n,i){return(e!==t||Dn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Cp(e,n)}function Cp(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Ni(t.staleTime,e))}function CC(e,t){return!Rc(e.getCurrentResult(),t)}function k_(e){return{onFetch:(t,n)=>{var y,p,v,_,x;const i=t.options,s=(v=(p=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],u=((x=t.state.data)==null?void 0:x.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let w=!1;const E=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},T=Mx(t.options,t.fetchOptions),A=async(N,P,I)=>{if(w)return Promise.reject();if(P==null&&N.pages.length)return Promise.resolve(N);const U=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:P,direction:I?"backward":"forward",meta:t.options.meta};return E(Q),Q})(),K=await T(U),{maxPages:ee}=t.options,j=I?yC:gC;return{pages:j(N.pages,K,ee),pageParams:j(N.pageParams,P,ee)}};if(s&&o.length){const N=s==="backward",P=N?kC:A_,I={pages:o,pageParams:u},R=P(i,I);f=await A(I,R,N)}else{const N=e??o.length;do{const P=d===0?u[0]??i.initialPageParam:A_(i,f);if(d>0&&P==null)break;f=await A(f,P),d++}while(d<N)}return f};t.options.persister?t.fetchFn=()=>{var w,E;return(E=(w=t.options).persister)==null?void 0:E.call(w,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function A_(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function kC(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var jo,ar,Gt,ya,sr,bi,kx,AC=(kx=class extends Bx{constructor(t){super();ye(this,sr);ye(this,jo);ye(this,ar);ye(this,Gt);ye(this,ya);fe(this,jo,t.client),this.mutationId=t.mutationId,fe(this,Gt,t.mutationCache),fe(this,ar,[]),this.state=t.state||qx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,ar).includes(t)||(M(this,ar).push(t),this.clearGcTimeout(),M(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,ar,M(this,ar).filter(n=>n!==t)),this.scheduleGc(),M(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,ar).length||(this.state.status==="pending"?this.scheduleGc():M(this,Gt).remove(this))}continue(){var t;return((t=M(this,ya))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,d,h,y,p,v,_,x,w,E,T,A,N,P,I,R,U,K,ee;const n=()=>{Ae(this,sr,bi).call(this,{type:"continue"})},i={client:M(this,jo),meta:this.options.meta,mutationKey:this.options.mutationKey};fe(this,ya,Ix({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(j,Q)=>{Ae(this,sr,bi).call(this,{type:"failed",failureCount:j,error:Q})},onPause:()=>{Ae(this,sr,bi).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Gt).canRun(this)}));const s=this.state.status==="pending",o=!M(this,ya).canStart();try{if(s)n();else{Ae(this,sr,bi).call(this,{type:"pending",variables:t,isPaused:o}),await((f=(u=M(this,Gt).config).onMutate)==null?void 0:f.call(u,t,this,i));const Q=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,t,i));Q!==this.state.context&&Ae(this,sr,bi).call(this,{type:"pending",context:Q,variables:t,isPaused:o})}const j=await M(this,ya).start();return await((p=(y=M(this,Gt).config).onSuccess)==null?void 0:p.call(y,j,t,this.state.context,this,i)),await((_=(v=this.options).onSuccess)==null?void 0:_.call(v,j,t,this.state.context,i)),await((w=(x=M(this,Gt).config).onSettled)==null?void 0:w.call(x,j,null,this.state.variables,this.state.context,this,i)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,j,null,t,this.state.context,i)),Ae(this,sr,bi).call(this,{type:"success",data:j}),j}catch(j){try{throw await((N=(A=M(this,Gt).config).onError)==null?void 0:N.call(A,j,t,this.state.context,this,i)),await((I=(P=this.options).onError)==null?void 0:I.call(P,j,t,this.state.context,i)),await((U=(R=M(this,Gt).config).onSettled)==null?void 0:U.call(R,void 0,j,this.state.variables,this.state.context,this,i)),await((ee=(K=this.options).onSettled)==null?void 0:ee.call(K,void 0,j,t,this.state.context,i)),j}finally{Ae(this,sr,bi).call(this,{type:"error",error:j})}}finally{M(this,Gt).runNext(this)}}},jo=new WeakMap,ar=new WeakMap,Gt=new WeakMap,ya=new WeakMap,sr=new WeakSet,bi=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Et.batch(()=>{M(this,ar).forEach(i=>{i.onMutationUpdate(t)}),M(this,Gt).notify({mutation:this,type:"updated",action:t})})},kx);function qx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pr,Yn,Lo,Ax,RC=(Ax=class extends Js{constructor(t={}){super();ye(this,Pr);ye(this,Yn);ye(this,Lo);this.config=t,fe(this,Pr,new Set),fe(this,Yn,new Map),fe(this,Lo,0)}build(t,n,i){const s=new AC({client:t,mutationCache:this,mutationId:++rc(this,Lo)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){M(this,Pr).add(t);const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n);i?i.push(t):M(this,Yn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,Pr).delete(t)){const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&M(this,Yn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n),s=i==null?void 0:i.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=ic(t);if(typeof n=="string"){const s=(i=M(this,Yn).get(n))==null?void 0:i.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{M(this,Pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,Pr).clear(),M(this,Yn).clear()})}getAll(){return Array.from(M(this,Pr))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>b_(n,i))}findAll(t={}){return this.getAll().filter(n=>b_(t,n))}notify(t){Et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Et.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},Pr=new WeakMap,Yn=new WeakMap,Lo=new WeakMap,Ax);function ic(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zr,Ci,sn,Ir,qr,xc,Ym,Rx,OC=(Rx=class extends Js{constructor(n,i){super();ye(this,qr);ye(this,zr);ye(this,Ci);ye(this,sn);ye(this,Ir);fe(this,zr,n),this.setOptions(i),this.bindMethods(),Ae(this,qr,xc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=M(this,zr).defaultMutationOptions(n),Rc(this.options,i)||M(this,zr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,sn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ea(i.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((s=M(this,sn))==null?void 0:s.state.status)==="pending"&&M(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=M(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){Ae(this,qr,xc).call(this),Ae(this,qr,Ym).call(this,n)}getCurrentResult(){return M(this,Ci)}reset(){var n;(n=M(this,sn))==null||n.removeObserver(this),fe(this,sn,void 0),Ae(this,qr,xc).call(this),Ae(this,qr,Ym).call(this)}mutate(n,i){var s;return fe(this,Ir,i),(s=M(this,sn))==null||s.removeObserver(this),fe(this,sn,M(this,zr).getMutationCache().build(M(this,zr),this.options)),M(this,sn).addObserver(this),M(this,sn).execute(n)}},zr=new WeakMap,Ci=new WeakMap,sn=new WeakMap,Ir=new WeakMap,qr=new WeakSet,xc=function(){var i;const n=((i=M(this,sn))==null?void 0:i.state)??qx();fe(this,Ci,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Ym=function(n){Et.batch(()=>{var i,s,o,u,f,d,h,y;if(M(this,Ir)&&this.hasListeners()){const p=M(this,Ci).variables,v=M(this,Ci).context,_={client:M(this,zr),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(i=M(this,Ir)).onSuccess)==null||s.call(i,n.data,p,v,_),(u=(o=M(this,Ir)).onSettled)==null||u.call(o,n.data,null,p,v,_)):(n==null?void 0:n.type)==="error"&&((d=(f=M(this,Ir)).onError)==null||d.call(f,n.error,p,v,_),(y=(h=M(this,Ir)).onSettled)==null||y.call(h,void 0,n.error,p,v,_))}this.listeners.forEach(p=>{p(M(this,Ci))})})},Rx),lr,Ox,NC=(Ox=class extends Js{constructor(t={}){super();ye(this,lr);this.config=t,fe(this,lr,new Map)}build(t,n,i){const s=n.queryKey,o=n.queryHash??wp(s,n);let u=this.get(o);return u||(u=new EC({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){M(this,lr).has(t.queryHash)||(M(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,lr).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,lr).get(t)}getAll(){return[...M(this,lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>__(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>__(t,i)):n}notify(t){Et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,Ox),ot,ki,Ai,qs,Hs,Ri,Gs,Fs,Nx,jC=(Nx=class{constructor(e={}){ye(this,ot);ye(this,ki);ye(this,Ai);ye(this,qs);ye(this,Hs);ye(this,Ri);ye(this,Gs);ye(this,Fs);fe(this,ot,e.queryCache||new NC),fe(this,ki,e.mutationCache||new RC),fe(this,Ai,e.defaultOptions||{}),fe(this,qs,new Map),fe(this,Hs,new Map),fe(this,Ri,0)}mount(){rc(this,Ri)._++,M(this,Ri)===1&&(fe(this,Gs,Tp.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onFocus())})),fe(this,Fs,Oc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onOnline())})))}unmount(){var e,t;rc(this,Ri)._--,M(this,Ri)===0&&((e=M(this,Gs))==null||e.call(this),fe(this,Gs,void 0),(t=M(this,Fs))==null||t.call(this),fe(this,Fs,void 0))}isFetching(e){return M(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ki).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,ot).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ni(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return M(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=M(this,ot).get(i.queryHash),o=s==null?void 0:s.state.data,u=hC(t,o);if(u!==void 0)return M(this,ot).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return Et.batch(()=>M(this,ot).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,ot);Et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,ot);return Et.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Et.batch(()=>M(this,ot).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return Et.batch(()=>(M(this,ot).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Et.batch(()=>M(this,ot).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ft)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,ot).build(this,t);return n.isStaleByTime(Ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=k_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=k_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oc.isOnline()?M(this,ki).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ot)}getMutationCache(){return M(this,ki)}getDefaultOptions(){return M(this,Ai)}setDefaultOptions(e){fe(this,Ai,e)}setQueryDefaults(e,t){M(this,qs).set(Ea(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,qs).values()],n={};return t.forEach(i=>{_o(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Hs).set(Ea(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Hs).values()],n={};return t.forEach(i=>{_o(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wp(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===Hr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ot).clear(),M(this,ki).clear()}},ot=new WeakMap,ki=new WeakMap,Ai=new WeakMap,qs=new WeakMap,Hs=new WeakMap,Ri=new WeakMap,Gs=new WeakMap,Fs=new WeakMap,Nx),Y=Do();const $s=Ep(Y);var Hx=Y.createContext(void 0),Gx=e=>{const t=Y.useContext(Hx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LC=({client:e,children:t})=>(Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(Hx.Provider,{value:e,children:t})),Fx=Y.createContext(!1),DC=()=>Y.useContext(Fx);Fx.Provider;function MC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var PC=Y.createContext(MC()),zC=()=>Y.useContext(PC),IC=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},BC=e=>{Y.useEffect(()=>{e.clearReset()},[e])},UC=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Px(n,[e.error,i])),VC=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qC=(e,t)=>e.isLoading&&e.isFetching&&!t,HC=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,R_=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function GC(e,t,n){var p,v,_,x,w;const i=DC(),s=zC(),o=Gx(),u=o.defaultQueryOptions(e);(v=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||v.call(p,u),u._optimisticResults=i?"isRestoring":"optimistic",VC(u),IC(u,s),BC(s);const f=!o.getQueryCache().get(u.queryHash),[d]=Y.useState(()=>new t(o,u)),h=d.getOptimisticResult(u),y=!i&&e.subscribed!==!1;if(Y.useSyncExternalStore(Y.useCallback(E=>{const T=y?d.subscribe(Et.batchCalls(E)):Ft;return d.updateResult(),T},[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),Y.useEffect(()=>{d.setOptions(u)},[u,d]),HC(u,h))throw R_(u,d,s);if(UC({result:h,errorResetBoundary:s,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((x=(_=o.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||x.call(_,u,h),u.experimental_prefetchInRender&&!Sa&&qC(h,i)){const E=f?R_(u,d,s):(w=o.getQueryCache().get(u.queryHash))==null?void 0:w.promise;E==null||E.catch(Ft).finally(()=>{d.updateResult()})}return u.notifyOnChangeProps?h:d.trackResult(h)}function Qh(e,t){return GC(e,wC)}function Nc(e,t){const n=Gx(),[i]=Y.useState(()=>new OC(n,e));Y.useEffect(()=>{i.setOptions(e)},[i,e]);const s=Y.useSyncExternalStore(Y.useCallback(u=>i.subscribe(Et.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=Y.useCallback((u,f)=>{i.mutate(u,f).catch(Ft)},[i]);if(s.error&&Px(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const Km=new WeakMap,FC=new WeakMap,jc={current:[]};let Yh=!1,uo=0;const lo=new Set,ac=new Map;function $x(e){for(const t of e){if(jc.current.includes(t))continue;jc.current.push(t),t.recompute();const n=FC.get(t);if(n)for(const i of n){const s=Km.get(i);s!=null&&s.length&&$x(s)}}}function $C(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function QC(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Qx(e){if(uo>0&&!ac.has(e)&&ac.set(e,e.prevState),lo.add(e),!(uo>0)&&!Yh)try{for(Yh=!0;lo.size>0;){const t=Array.from(lo);lo.clear();for(const n of t){const i=ac.get(n)??n.prevState;n.prevState=i,$C(n)}for(const n of t){const i=Km.get(n);i&&(jc.current.push(n),$x(i))}for(const n of t){const i=Km.get(n);if(i)for(const s of i)QC(s)}}}finally{Yh=!1,jc.current=[],ac.clear()}}function co(e){uo++;try{e()}finally{if(uo--,uo===0){const t=lo.values().next().value;t&&Qx(t)}}}function YC(e){return typeof e=="function"}class KC{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,o;this.listeners.add(i);const u=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,i,this);return()=>{this.listeners.delete(i),u==null||u()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):YC(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),Qx(this)}}const ji="__TSR_index",O_="popstate",N_="beforeunload";function XC(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},o=async({task:u,navigateOpts:f,...d})=>{var v,_;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const y=((v=e.getBlockers)==null?void 0:v.call(e))??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&y.length&&p)for(const x of y){const w=Lc(d.path,d.state);if(await x.blockerFn({currentLocation:t,nextLocation:w,action:d.type})){(_=e.onBlocked)==null||_.call(e);return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,f,d)=>{const h=t.state[ji];f=j_(h+1,f),o({task:()=>{e.pushState(u,f),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:u,state:f})},replace:(u,f,d)=>{const h=t.state[ji];f=j_(h,f),o({task:()=>{e.replaceState(u,f),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:u,state:f})},go:(u,f)=>{o({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{o({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{o({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[ji]!==0,createHref:u=>e.createHref(u),block:u=>{var d;if(!e.setBlockers)return()=>{};const f=((d=e.getBlockers)==null?void 0:d.call(e))??[];return e.setBlockers([...f,u]),()=>{var y,p;const h=((y=e.getBlockers)==null?void 0:y.call(e))??[];(p=e.setBlockers)==null||p.call(e,h.filter(v=>v!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function j_(e,t){t||(t={});const n=kp();return{...t,key:n,__TSR_key:n,[ji]:e}}function ZC(e){var K,ee;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const o=()=>s,u=j=>s=j,f=(j=>j),d=(()=>Lc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!((K=t.history.state)!=null&&K.__TSR_key)&&!((ee=t.history.state)!=null&&ee.key)){const j=kp();t.history.replaceState({[ji]:0,key:j,__TSR_key:j},"")}let h=d(),y,p=!1,v=!1,_=!1,x=!1;const w=()=>h;let E,T;const A=()=>{E&&(U._ignoreSubscribers=!0,(E.isPush?t.history.pushState:t.history.replaceState)(E.state,"",E.href),U._ignoreSubscribers=!1,E=void 0,T=void 0,y=void 0)},N=(j,Q,ie)=>{const de=f(Q);T||(y=h),h=Lc(Q,ie),E={href:de,state:ie,isPush:(E==null?void 0:E.isPush)||j==="push"},T||(T=Promise.resolve().then(()=>A()))},P=j=>{h=d(),U.notify({type:j})},I=async()=>{if(v){v=!1;return}const j=d(),Q=j.state[ji]-h.state[ji],ie=Q===1,de=Q===-1,oe=!ie&&!de||p;p=!1;const ae=oe?"GO":de?"BACK":"FORWARD",q=oe?{type:"GO",index:Q}:{type:de?"BACK":"FORWARD"};if(_)_=!1;else{const re=o();if(typeof document<"u"&&re.length){for(const ce of re)if(await ce.blockerFn({currentLocation:h,nextLocation:j,action:ae})){v=!0,t.history.go(1),U.notify(q);return}}}h=d(),U.notify(q)},R=j=>{if(x){x=!1;return}let Q=!1;const ie=o();if(typeof document<"u"&&ie.length)for(const de of ie){const oe=de.enableBeforeUnload??!0;if(oe===!0){Q=!0;break}if(typeof oe=="function"&&oe()===!0){Q=!0;break}}if(Q)return j.preventDefault(),j.returnValue=""},U=XC({getLocation:w,getLength:()=>t.history.length,pushState:(j,Q)=>N("push",j,Q),replaceState:(j,Q)=>N("replace",j,Q),back:j=>(j&&(_=!0),x=!0,t.history.back()),forward:j=>{j&&(_=!0),x=!0,t.history.forward()},go:j=>{p=!0,t.history.go(j)},createHref:j=>f(j),flush:A,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(N_,R,{capture:!0}),t.removeEventListener(O_,I)},onBlocked:()=>{y&&h!==y&&(h=y)},getBlockers:o,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(N_,R,{capture:!0}),t.addEventListener(O_,I),t.history.pushState=function(...j){const Q=n.apply(t.history,j);return U._ignoreSubscribers||P("PUSH"),Q},t.history.replaceState=function(...j){const Q=i.apply(t.history,j);return U._ignoreSubscribers||P("REPLACE"),Q},U}function Lc(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=kp();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[ji]:0,key:s,__TSR_key:s}}}function kp(){return(Math.random()+1).toString(36).substring(7)}function Dc(e){return e[e.length-1]}function JC(e){return typeof e=="function"}function va(e,t){return JC(e)?e(t):e}const WC=Object.prototype.hasOwnProperty;function jn(e,t){if(e===t)return e;const n=t,i=M_(e)&&M_(n);if(!i&&!(Mc(e)&&Mc(n)))return n;const s=i?e:L_(e);if(!s)return n;const o=i?n:L_(n);if(!o)return n;const u=s.length,f=o.length,d=i?new Array(f):{};let h=0;for(let y=0;y<f;y++){const p=i?y:o[y],v=e[p],_=n[p];if(v===_){d[p]=v,(i?y<u:WC.call(e,p))&&h++;continue}if(v===null||_===null||typeof v!="object"||typeof _!="object"){d[p]=_;continue}const x=jn(v,_);d[p]=x,x===v&&h++}return u===f&&h===u?e:d}function L_(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function Mc(e){if(!D_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!D_(n)||!n.hasOwnProperty("isPrototypeOf"))}function D_(e){return Object.prototype.toString.call(e)==="[object Object]"}function M_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _a(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!_a(e[i],t[i],n))return!1;return!0}if(Mc(e)&&Mc(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const u in t)if((!i||t[u]!==void 0)&&!_a(e[u],t[u],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let o=0;for(const u in t)if((!i||t[u]!==void 0)&&(o++,o>s||!_a(e[u],t[u],n)))return!1;return s===o}return!1}function Qs(e){let t,n;const i=new Promise((s,o)=>{t=s,n=o});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e==null||e(s)},i.reject=s=>{i.status="rejected",n(s)},i}function Li(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function P_(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function z_(e,t){if(!e)return e;const n=/%25|%5C/gi;let i=0,s="",o;for(;(o=n.exec(e))!==null;)s+=P_(e.slice(i,o.index))+o[0],i=n.lastIndex;return s+P_(i?e.slice(i):e)}var ek="Invariant failed";function Gr(e,t){if(!e)throw new Error(ek)}function Pc(e){const t=new Map;let n,i;const s=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,i&&(i.next=o,o.prev=i)):(o.next.prev=void 0,n=o.next,o.next=void 0,i&&(o.prev=i,i.next=o)),i=o)};return{get(o){const u=t.get(o);if(u)return s(u),u.value},set(o,u){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const f=t.get(o);if(f)f.value=u,s(f);else{const d={key:o,value:u,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(o,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ys=0,wa=1,Ta=2,bo=3,tk=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,nk=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,rk=/^([^{]*)\{\$\}([^}]*)$/;function Ap(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,o=e.substring(t,s);if(!o||!o.includes("$"))return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(o==="$"){const h=e.length;return n[0]=Ta,n[1]=t,n[2]=t,n[3]=h,n[4]=h,n[5]=h,n}if(o.charCodeAt(0)===36)return n[0]=wa,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=o.match(rk);if(u){const y=u[1].length;return n[0]=Ta,n[1]=t+y,n[2]=t+y+1,n[3]=t+y+2,n[4]=t+y+3,n[5]=e.length,n}const f=o.match(nk);if(f){const h=f[1],y=f[2],p=f[3],v=h.length;return n[0]=bo,n[1]=t+v,n[2]=t+v+3,n[3]=t+v+3+y.length,n[4]=s-p.length,n[5]=s,n}const d=o.match(tk);if(d){const h=d[1],y=d[2],p=d[3],v=h.length;return n[0]=wa,n[1]=t+v,n[2]=t+v+2,n[3]=t+v+2+y.length,n[4]=s-p.length,n[5]=s,n}return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function lf(e,t,n,i,s,o,u){var d,h,y,p,v;u==null||u(n);let f=i;{const _=n.fullPath??n.from,x=_.length,w=((d=n.options)==null?void 0:d.caseSensitive)??e;for(;f<x;){const E=Ap(_,f,t);let T;const A=f,N=E[5];switch(f=N+1,o++,E[0]){case Ys:{const I=_.substring(E[2],E[3]);if(w){const R=(h=s.static)==null?void 0:h.get(I);if(R)T=R;else{s.static??(s.static=new Map);const U=xo(n.fullPath??n.from);U.parent=s,U.depth=o,T=U,s.static.set(I,U)}}else{const R=I.toLowerCase(),U=(y=s.staticInsensitive)==null?void 0:y.get(R);if(U)T=U;else{s.staticInsensitive??(s.staticInsensitive=new Map);const K=xo(n.fullPath??n.from);K.parent=s,K.depth=o,T=K,s.staticInsensitive.set(R,K)}}break}case wa:{const I=_.substring(A,E[1]),R=_.substring(E[4],N),U=w&&!!(I||R),K=I?U?I:I.toLowerCase():void 0,ee=R?U?R:R.toLowerCase():void 0,j=(p=s.dynamic)==null?void 0:p.find(Q=>Q.caseSensitive===U&&Q.prefix===K&&Q.suffix===ee);if(j)T=j;else{const Q=Xh(wa,n.fullPath??n.from,U,K,ee);T=Q,Q.depth=o,Q.parent=s,s.dynamic??(s.dynamic=[]),s.dynamic.push(Q)}break}case bo:{const I=_.substring(A,E[1]),R=_.substring(E[4],N),U=w&&!!(I||R),K=I?U?I:I.toLowerCase():void 0,ee=R?U?R:R.toLowerCase():void 0,j=(v=s.optional)==null?void 0:v.find(Q=>Q.caseSensitive===U&&Q.prefix===K&&Q.suffix===ee);if(j)T=j;else{const Q=Xh(bo,n.fullPath??n.from,U,K,ee);T=Q,Q.parent=s,Q.depth=o,s.optional??(s.optional=[]),s.optional.push(Q)}break}case Ta:{const I=_.substring(A,E[1]),R=_.substring(E[4],N),U=w&&!!(I||R),K=I?U?I:I.toLowerCase():void 0,ee=R?U?R:R.toLowerCase():void 0,j=Xh(Ta,n.fullPath??n.from,U,K,ee);T=j,j.parent=s,j.depth=o,s.wildcard??(s.wildcard=[]),s.wildcard.push(j)}}s=T}if((n.path||!n.children)&&!n.isRoot){const E=_.endsWith("/");E||(s.notFound=n),(!s.route||!s.isIndex&&E)&&(s.route=n),s.isIndex||(s.isIndex=E)}}if(n.children)for(const _ of n.children)lf(e,t,_,f,s,o,u)}function Kh(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function sa(e){var t,n,i;if(e.static)for(const s of e.static.values())sa(s);if(e.staticInsensitive)for(const s of e.staticInsensitive.values())sa(s);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Kh);for(const s of e.dynamic)sa(s)}if((n=e.optional)!=null&&n.length){e.optional.sort(Kh);for(const s of e.optional)sa(s)}if((i=e.wildcard)!=null&&i.length){e.wildcard.sort(Kh);for(const s of e.wildcard)sa(s)}}function xo(e){return{kind:Ys,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Xh(e,t,n,i,s){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:i,suffix:s}}function ik(e,t){const n=xo("/"),i=new Uint16Array(6);for(const s of e)lf(!1,i,s,1,n,0);sa(n),t.masksTree=n,t.flatCache=Pc(1e3)}function ak(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const i=Rp(e,t.masksTree);return t.flatCache.set(e,i),i}function sk(e,t,n,i,s){e||(e="/"),i||(i="/");const o=t?`case\0${e}`:e;let u=s.singleCache.get(o);if(!u){u=xo("/");const f=new Uint16Array(6);lf(t,f,{from:e},1,u,0),s.singleCache.set(o,u)}return Rp(i,u,n)}function lk(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||(e="/");const o=Rp(e,t.segmentTree,n);return o&&(o.branch=fk(o.route)),t.matchCache.set(i,o),o}function ok(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function uk(e,t=!1,n){const i=xo(e.fullPath),s=new Uint16Array(6),o={},u={};let f=0;return lf(t,s,e,1,i,0,h=>{if(n==null||n(h,f),Gr(!(h.id in o),`Duplicate routes found with id: ${String(h.id)}`),o[h.id]=h,f!==0&&h.path){const y=ok(h.fullPath);(!u[y]||h.fullPath.endsWith("/"))&&(u[y]=h)}f++}),sa(i),{processedTree:{segmentTree:i,singleCache:Pc(1e3),matchCache:Pc(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:u}}function Rp(e,t,n=!1){const i=e.split("/"),s=hk(e,i,t,n);if(!s)return null;const o=ck(e,i,s),u="**"in s;return u&&(o["**"]=s["**"]),{route:u?s.node.notFound??s.node.route:s.node.route,params:o}}function ck(e,t,n){var u,f,d,h,y,p;const i=dk(n.node);let s=null;const o={};for(let v=0,_=0,x=0;_<i.length;v++,_++,x++){const w=i[_],E=t[v],T=x;if(E&&(x+=E.length),w.kind===wa){s??(s=n.node.fullPath.split("/"));const A=s[_],N=((u=w.prefix)==null?void 0:u.length)??0;if(A.charCodeAt(N)===123){const I=((f=w.suffix)==null?void 0:f.length)??0,R=A.substring(N+2,A.length-I-1),U=E.substring(N,E.length-I);o[R]=decodeURIComponent(U)}else{const I=A.substring(1);o[I]=decodeURIComponent(E)}}else if(w.kind===bo){if(n.skipped&1<<_){v--;continue}s??(s=n.node.fullPath.split("/"));const A=s[_],N=((d=w.prefix)==null?void 0:d.length)??0,P=((h=w.suffix)==null?void 0:h.length)??0,I=A.substring(N+3,A.length-P-1),R=w.suffix||w.prefix?E.substring(N,E.length-P):E;R&&(o[I]=decodeURIComponent(R))}else if(w.kind===Ta){const A=w,N=e.substring(T+(((y=A.prefix)==null?void 0:y.length)??0),e.length-(((p=A.suffix)==null?void 0:p.length)??0)),P=decodeURIComponent(N);o["*"]=P,o._splat=P;break}}return o}function fk(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function dk(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function hk(e,t,n,i){const s=!Dc(t),o=s&&e!=="/",u=t.length-(s?1:0),f=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let d=null,h=null,y=null;for(;f.length;){const p=f.pop();let{node:v,index:_,skipped:x,depth:w,statics:E,dynamics:T,optionals:A}=p;i&&v.notFound&&Zh(h,p)&&(h=p);const N=_===u;if(N){if(v.route&&(!o||v.isIndex)&&(Zh(y,p)&&(y=p),E===u&&v.isIndex))return y;if(!v.optional&&!v.wildcard)continue}const P=N?void 0:t[_];let I;if(v.wildcard&&Zh(d,p))for(const R of v.wildcard){const{prefix:U,suffix:K}=R;if(!(U&&(N||!(R.caseSensitive?P:I??(I=P.toLowerCase())).startsWith(U)))){if(K){if(N)continue;const ee=t.slice(_).join("/").slice(-K.length);if((R.caseSensitive?ee:ee.toLowerCase())!==K)continue}d={node:R,index:_,skipped:x,depth:w,statics:E,dynamics:T,optionals:A};break}}if(v.optional){const R=x|1<<w,U=w+1;for(let K=v.optional.length-1;K>=0;K--){const ee=v.optional[K];f.push({node:ee,index:_,skipped:R,depth:U,statics:E,dynamics:T,optionals:A})}if(!N)for(let K=v.optional.length-1;K>=0;K--){const ee=v.optional[K],{prefix:j,suffix:Q}=ee;if(j||Q){const ie=ee.caseSensitive?P:I??(I=P.toLowerCase());if(j&&!ie.startsWith(j)||Q&&!ie.endsWith(Q))continue}f.push({node:ee,index:_+1,skipped:x,depth:U,statics:E,dynamics:T,optionals:A+1})}}if(!N&&v.dynamic&&P)for(let R=v.dynamic.length-1;R>=0;R--){const U=v.dynamic[R],{prefix:K,suffix:ee}=U;if(K||ee){const j=U.caseSensitive?P:I??(I=P.toLowerCase());if(K&&!j.startsWith(K)||ee&&!j.endsWith(ee))continue}f.push({node:U,index:_+1,skipped:x,depth:w+1,statics:E,dynamics:T+1,optionals:A})}if(!N&&v.staticInsensitive){const R=v.staticInsensitive.get(I??(I=P.toLowerCase()));R&&f.push({node:R,index:_+1,skipped:x,depth:w+1,statics:E+1,dynamics:T,optionals:A})}if(!N&&v.static){const R=v.static.get(P);R&&f.push({node:R,index:_+1,skipped:x,depth:w+1,statics:E+1,dynamics:T,optionals:A})}}if(y)return y;if(d)return d;if(i&&h){let p=h.index;for(let _=0;_<h.index;_++)p+=t[_].length;const v=p===e.length?"/":e.slice(p);return{node:h.node,skipped:h.skipped,"**":decodeURIComponent(v)}}return null}function Zh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function Sc(e){return Op(e.filter(t=>t!==void 0).join("/"))}function Op(e){return e.replace(/\/{2,}/g,"/")}function Yx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ba(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Ec(e){return ba(Yx(e))}function zc(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function mk(e,t,n){return zc(e,n)===zc(t,n)}function pk({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),o=!s&&t===".";let u;if(i){u=s?t:o?e:e+"\0"+t;const p=i.get(u);if(p)return p}let f;if(o)f=e.split("/");else if(s)f=t.split("/");else{for(f=e.split("/");f.length>1&&Dc(f)==="";)f.pop();const p=t.split("/");for(let v=0,_=p.length;v<_;v++){const x=p[v];x===""?v?v===_-1&&f.push(x):f=[x]:x===".."?f.pop():x==="."||f.push(x)}}f.length>1&&(Dc(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,h="";for(let p=0;p<f.length;p++){p>0&&(h+="/");const v=f[p];if(!v)continue;d=Ap(v,0,d);const _=d[0];if(_===Ys){h+=v;continue}const x=d[5],w=v.substring(0,d[1]),E=v.substring(d[4],x),T=v.substring(d[2],d[3]);_===wa?h+=w||E?`${w}{$${T}}${E}`:`$${T}`:_===Ta?h+=w||E?`${w}{$}${E}`:"$":h+=`${w}{-$${T}}${E}`}h=Op(h);const y=h||"/";return u&&i&&i.set(u,y),y}function Jh(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):gk(i,n)}function Wh({path:e,params:t,decodeCharMap:n}){let i=!1;const s={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:i};const o=e.length;let u=0,f,d="";for(;u<o;){const y=u;f=Ap(e,y,f);const p=f[5];if(u=p+1,y===p)continue;const v=f[0];if(v===Ys){d+="/"+e.substring(y,p);continue}if(v===Ta){const _=t._splat;s._splat=_,s["*"]=_;const x=e.substring(y,f[1]),w=e.substring(f[4],p);if(!_){i=!0,(x||w)&&(d+="/"+x+w);continue}const E=Jh("_splat",t,n);d+="/"+x+E+w;continue}if(v===wa){const _=e.substring(f[2],f[3]);!i&&!(_ in t)&&(i=!0),s[_]=t[_];const x=e.substring(y,f[1]),w=e.substring(f[4],p),E=Jh(_,t,n)??"undefined";d+="/"+x+E+w;continue}if(v===bo){const _=e.substring(f[2],f[3]),x=t[_];if(x==null)continue;s[_]=x;const w=e.substring(y,f[1]),E=e.substring(f[4],p),T=Jh(_,t,n)??"";d+="/"+w+T+E;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:s,interpolatedPath:d||"/",isMissingParams:i}}function gk(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function Kx(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function zn(e){return!!(e!=null&&e.isNotFound)}function yk(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ic="tsr-scroll-restoration-v1_3",vk=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function _k(){const e=yk();if(!e)return null;const t=e.getItem(Ic);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=va(i,n)||n,e.setItem(Ic,JSON.stringify(n)))}}const sc=_k(),Xm=e=>e.state.__TSR_key||e.href;function bk(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Bc=!1;function Xx({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:o}){var h,y;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||((h=window.history.state)==null?void 0:h.__TSR_key),d=u[f];Bc=!0;e:{if(i&&d&&Object.keys(d).length>0){for(const _ in d){const x=d[_];if(_==="window")window.scrollTo({top:x.scrollY,left:x.scrollX,behavior:n});else if(_){const w=document.querySelector(_);w&&(w.scrollLeft=x.scrollX,w.scrollTop=x.scrollY)}}break e}const p=(o??window.location).hash.split("#",2)[1];if(p){const _=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(_){const x=document.getElementById(p);x&&x.scrollIntoView(_)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),s)for(const _ of s){if(_==="window")continue;const x=typeof _=="function"?_():document.querySelector(_);x&&x.scrollTo(v)}}Bc=!1}function xk(e,t){if(!sc&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!sc))return;e.isScrollRestorationSetup=!0,Bc=!1;const i=e.options.getScrollRestorationKey||Xm;window.history.scrollRestoration="manual";const s=o=>{if(Bc||!e.isScrollRestoring)return;let u="";if(o.target===document||o.target===window)u="window";else{const d=o.target.getAttribute("data-scroll-restoration-id");d?u=`[data-scroll-restoration-id="${d}"]`:u=bk(o.target)}const f=i(e.state.location);sc.set(d=>{const h=d[f]||(d[f]={}),y=h[u]||(h[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const p=document.querySelector(u);p&&(y.scrollX=p.scrollLeft||0,y.scrollY=p.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",vk(s,100),!0),e.subscribe("onRendered",o=>{const u=i(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(Xx({storageKey:Ic,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&sc.set(f=>(f[u]||(f[u]={}),f)))})}function Sk(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function Ek(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function em(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function wk(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const o=n[i];o==null?n[i]=em(s):Array.isArray(o)?o.push(em(s)):n[i]=[o,em(s)]}return n}const Tk=kk(JSON.parse),Ck=Ak(JSON.stringify,JSON.parse);function kk(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=wk(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function Ak(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const o=Ek(s,i);return o?`?${o}`:""}}const _n="__root__";function Rk(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Kn(e){return e instanceof Response&&!!e.options}const wc=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},of=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Zx=(e,t)=>{var s;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((s=e.router.options)!=null&&s.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Gr(n.options.notFoundComponent);const i=e.matches.find(o=>o.routeId===n.id);Gr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,o=>({...o,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,Zx(e,t))},Oi=(e,t,n)=>{var i,s,o;if(!(!Kn(n)&&!zn(n))){if(Kn(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(i=t._nonReactive.beforeLoadPromise)==null||i.resolve(),(s=t._nonReactive.loaderPromise)==null||s.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const u=Kn(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,f=>({...f,status:u,isFetching:!1,error:n})),zn(n)&&!n.routeId&&(n.routeId=t.routeId),(o=t._nonReactive.loadPromise)==null||o.resolve()}throw Kn(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(Zx(e,n),n)}},Jx=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Jl=(e,t,n,i)=>{var f,d;const{id:s,routeId:o}=e.matches[t],u=e.router.looseRoutesById[o];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Oi(e,e.router.getMatch(s),n);try{(d=(f=u.options).onError)==null||d.call(f,n)}catch(h){n=h,Oi(e,e.router.getMatch(s),n)}e.updateMatch(s,h=>{var y,p;return(y=h._nonReactive.beforeLoadPromise)==null||y.resolve(),h._nonReactive.beforeLoadPromise=void 0,(p=h._nonReactive.loadPromise)==null||p.resolve(),{...h,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Ok=(e,t,n,i)=>{var _;const s=e.router.getMatch(t),o=(_=e.matches[n-1])==null?void 0:_.id,u=o?e.router.getMatch(o):void 0;if(e.router.isShell()){s.ssr=i.id===_n;return}if((u==null?void 0:u.ssr)===!1){s.ssr=!1;return}const f=x=>x===!0&&(u==null?void 0:u.ssr)==="data-only"?"data-only":x,d=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=f(d);return}if(typeof i.options.ssr!="function"){s.ssr=f(i.options.ssr);return}const{search:h,params:y}=s,p={search:lc(h,s.searchError),params:lc(y,s.paramsError),location:e.location,matches:e.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:lc(x.search,x.searchError),params:lc(x.params,x.paramsError),ssr:x.ssr}))},v=i.options.ssr(p);if(Li(v))return v.then(x=>{s.ssr=f(x??d)});s.ssr=f(v??d)},Wx=(e,t,n,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!of(e,t)&&(n.options.loader||n.options.beforeLoad||n1(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent)))){const f=setTimeout(()=>{wc(e)},s);i._nonReactive.pendingTimeout=f}},Nk=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Wx(e,t,n,i);const s=()=>{const o=e.router.getMatch(t);o.preload&&(o.status==="redirected"||o.status==="notFound")&&Oi(e,o,o.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},jk=(e,t,n,i)=>{var U;const s=e.router.getMatch(t),o=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Qs(()=>{o==null||o.resolve()});const{paramsError:u,searchError:f}=s;u&&Jl(e,n,u,"PARSE_PARAMS"),f&&Jl(e,n,f,"VALIDATE_SEARCH"),Wx(e,t,i,s);const d=new AbortController,h=(U=e.matches[n-1])==null?void 0:U.id,y=h?e.router.getMatch(h):void 0,v={...(y==null?void 0:y.context)??e.router.options.context??void 0,...s.__routeContext};let _=!1;const x=()=>{_||(_=!0,e.updateMatch(t,K=>({...K,isFetching:"beforeLoad",fetchCount:K.fetchCount+1,abortController:d,context:v})))},w=()=>{var K;(K=s._nonReactive.beforeLoadPromise)==null||K.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,ee=>({...ee,isFetching:!1}))};if(!i.options.beforeLoad){co(()=>{x(),w()});return}s._nonReactive.beforeLoadPromise=Qs();const{search:E,params:T,cause:A}=s,N=of(e,t),P={search:E,abortController:d,params:T,preload:N,context:v,location:e.location,navigate:K=>e.router.navigate({...K,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:N?"preload":A,matches:e.matches,...e.router.options.additionalContext},I=K=>{if(K===void 0){co(()=>{x(),w()});return}(Kn(K)||zn(K))&&(x(),Jl(e,n,K,"BEFORE_LOAD")),co(()=>{x(),e.updateMatch(t,ee=>({...ee,__beforeLoadContext:K,context:{...ee.context,...K}})),w()})};let R;try{if(R=i.options.beforeLoad(P),Li(R))return x(),R.catch(K=>{Jl(e,n,K,"BEFORE_LOAD")}).then(I)}catch(K){x(),Jl(e,n,K,"BEFORE_LOAD")}I(R)},Lk=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],o=()=>{if(e.router.isServer){const d=Ok(e,n,t,s);if(Li(d))return d.then(f)}return f()},u=()=>jk(e,n,t,s),f=()=>{if(Jx(e,n))return;const d=Nk(e,n,s);return Li(d)?d.then(u):u()};return o()},fo=(e,t,n)=>{var o,u,f,d,h,y;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(u=(o=n.options).head)==null?void 0:u.call(o,s),(d=(f=n.options).scripts)==null?void 0:d.call(f,s),(y=(h=n.options).headers)==null?void 0:y.call(h,s)]).then(([p,v,_])=>{const x=p==null?void 0:p.meta,w=p==null?void 0:p.links,E=p==null?void 0:p.scripts,T=p==null?void 0:p.styles;return{meta:x,links:w,headScripts:E,headers:_,scripts:v,styles:T}})},e1=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:o,loaderDeps:u,abortController:f,cause:d}=e.router.getMatch(t);let h=e.router.options.context??{};for(let p=0;p<=n;p++){const v=e.matches[p];if(!v)continue;const _=e.router.getMatch(v.id);_&&(h={...h,..._.__routeContext??{},..._.__beforeLoadContext??{}})}const y=of(e,t);return{params:o,deps:u,preload:!!y,parentMatchPromise:s,abortController:f,context:h,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:y?"preload":d,route:i,...e.router.options.additionalContext}},I_=async(e,t,n,i)=>{var s,o,u,f,d,h;try{const y=e.router.getMatch(t);try{(!e.router.isServer||y.ssr===!0)&&t1(i);const p=(o=(s=i.options).loader)==null?void 0:o.call(s,e1(e,t,n,i)),v=i.options.loader&&Li(p);if(!!(v||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||y._nonReactive.minPendingPromise)&&e.updateMatch(t,T=>({...T,isFetching:"loader"})),i.options.loader){const T=v?await p:p;Oi(e,e.router.getMatch(t),T),T!==void 0&&e.updateMatch(t,A=>({...A,loaderData:T}))}i._lazyPromise&&await i._lazyPromise;const x=fo(e,t,i),w=x?await x:void 0,E=y._nonReactive.minPendingPromise;E&&await E,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,T=>({...T,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...w}))}catch(p){let v=p;const _=y._nonReactive.minPendingPromise;_&&await _,zn(p)&&await((f=(u=i.options.notFoundComponent)==null?void 0:u.preload)==null?void 0:f.call(u)),Oi(e,e.router.getMatch(t),p);try{(h=(d=i.options).onError)==null||h.call(d,p)}catch(E){v=E,Oi(e,e.router.getMatch(t),E)}const x=fo(e,t,i),w=x?await x:void 0;e.updateMatch(t,E=>({...E,error:v,status:"error",isFetching:!1,...w}))}}catch(y){const p=e.router.getMatch(t);if(p){const v=fo(e,t,i);if(v){const _=await v;e.updateMatch(t,x=>({...x,..._}))}p._nonReactive.loaderPromise=void 0}Oi(e,p,y)}},Dk=async(e,t)=>{var h,y;const{id:n,routeId:i}=e.matches[t];let s=!1,o=!1;const u=e.router.looseRoutesById[i];if(Jx(e,n)){if(e.router.isServer){const p=fo(e,n,u);if(p){const v=await p;e.updateMatch(n,_=>({..._,...v}))}return e.router.getMatch(n)}}else{const p=e.router.getMatch(n);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload)return p;await p._nonReactive.loaderPromise;const v=e.router.getMatch(n),_=v._nonReactive.error||v.error;_&&Oi(e,v,_)}else{const v=Date.now()-p.updatedAt,_=of(e,n),x=_?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,w=u.options.shouldReload,E=typeof w=="function"?w(e1(e,n,t,u)):w,T=!!_&&!e.router.state.matches.some(I=>I.id===n),A=e.router.getMatch(n);A._nonReactive.loaderPromise=Qs(),T!==A.preload&&e.updateMatch(n,I=>({...I,preload:T}));const{status:N,invalid:P}=A;if(s=N==="success"&&(P||(E??v>x)),!(_&&u.options.preload===!1))if(s&&!e.sync)o=!0,(async()=>{var I,R;try{await I_(e,n,t,u);const U=e.router.getMatch(n);(I=U._nonReactive.loaderPromise)==null||I.resolve(),(R=U._nonReactive.loadPromise)==null||R.resolve(),U._nonReactive.loaderPromise=void 0}catch(U){Kn(U)&&await e.router.navigate(U.options)}})();else if(N!=="success"||s&&e.sync)await I_(e,n,t,u);else{const I=fo(e,n,u);if(I){const R=await I;e.updateMatch(n,U=>({...U,...R}))}}}}const f=e.router.getMatch(n);o||((h=f._nonReactive.loaderPromise)==null||h.resolve(),(y=f._nonReactive.loadPromise)==null||y.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,o||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const d=o?f.isFetching:!1;return d!==f.isFetching||f.invalid!==!1?(e.updateMatch(n,p=>({...p,isFetching:d,invalid:!1})),e.router.getMatch(n)):f};async function B_(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&wc(t);try{for(let s=0;s<t.matches.length;s++){const o=Lk(t,s);Li(o)&&await o}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(Dk(t,s));await Promise.all(t.matchPromises);const i=wc(t);Li(i)&&await i}catch(n){if(zn(n)&&!t.preload){const i=wc(t);throw Li(i)&&await i,n}if(Kn(n))throw n}return t.matches}async function t1(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const s of r1){const o=(i=e.options[s])==null?void 0:i.preload;o&&n.push(o())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function lc(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function n1(e){var t;for(const n of r1)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const r1=["component","errorComponent","pendingComponent","notFoundComponent"];function Mk(e){return{input:({url:t})=>{for(const n of e)t=i1(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=a1(e[n],t);return t}}}function Pk(e){const t=Ec(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),o=e.caseSensitive?i:i.toLowerCase();return{input:({url:u})=>{const f=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===s?u.pathname="/":f.startsWith(o)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=Sc(["/",t,u.pathname]),u)}}function i1(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function a1(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function xa(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,s=(t==null?void 0:t.href)!==n.href,o=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:o}}class zk{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var v;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,s=this.basepath??(i==null?void 0:i.basepath)??"/",o=this.basepath===void 0,u=i==null?void 0:i.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(_=>[encodeURIComponent(_),_])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=ZC())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&window.origin)&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new KC(Bk(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(_=>!["redirected"].includes(_.status))}}}),xk(this));let f=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(o||s!==d||u!==h){this.basepath=d;const _=[];Ec(d)!==""&&_.push(Pk({basepath:d})),h&&_.push(h),this.rewrite=_.length===0?void 0:_.length===1?_[0]:Mk(_),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,processedTree:s}=uk(this.routeTree,this.options.caseSensitive,(u,f)=>{u.init({originalIndex:f})});this.options.routeMasks&&ik(this.options.routeMasks,s),this.routesById=n,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:d,state:h})=>{const y=new URL(d,this.origin),p=i1(this.rewrite,y),v=this.options.parseSearch(p.search),_=this.options.stringifySearch(v);p.search=_;const x=p.href.replace(p.origin,""),{pathname:w,hash:E}=p;return{href:x,publicHref:d,url:p.href,pathname:z_(w),searchStr:_,search:jn(i==null?void 0:i.search,v),hash:E.split("#").reverse()[0]??"",state:jn(i==null?void 0:i.state,h)}},o=s(n),{__tempLocation:u,__tempKey:f}=o.state;if(u&&(!f||f===this.tempLocationKey)){const d=s(u);return d.state.key=o.state.key,d.state.__TSR_key=o.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:o}}return o},this.resolvePathCache=Pc(1e3),this.resolvePathWithBase=(n,i)=>pk({base:n,to:Op(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>Uk({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(o=>o.status==="pending"),i=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=n=>{const i=(o={})=>{var j,Q;const u=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutes(u,{_buildLocation:!0}),d=Dc(f);o.from;const h=o.unsafeRelative==="path"?u.pathname:o.from??d.fullPath,y=this.resolvePathWithBase(h,"."),p=d.search,v={...d.params},_=o.to?this.resolvePathWithBase(y,`${o.to}`):this.resolvePathWithBase(y,"."),x=o.params===!1||o.params===null?{}:(o.params??!0)===!0?v:Object.assign(v,va(o.params,v)),w=Wh({path:_,params:x}).interpolatedPath,E=this.matchRoutes(w,void 0,{_buildLocation:!0}).map(ie=>this.looseRoutesById[ie.routeId]);if(Object.keys(x).length>0)for(const ie of E){const de=((j=ie.options.params)==null?void 0:j.stringify)??ie.options.stringifyParams;de&&Object.assign(x,de(x))}const T=n.leaveParams?_:z_(Wh({path:_,params:x,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let A=p;if(n._includeValidateSearch&&((Q=this.options.search)!=null&&Q.strict)){const ie={};E.forEach(de=>{if(de.options.validateSearch)try{Object.assign(ie,Zm(de.options.validateSearch,{...ie,...A}))}catch{}}),A=ie}A=Vk({search:A,dest:o,destRoutes:E,_includeValidateSearch:n._includeValidateSearch}),A=jn(p,A);const N=this.options.stringifySearch(A),P=o.hash===!0?u.hash:o.hash?va(o.hash,u.hash):void 0,I=P?`#${P}`:"";let R=o.state===!0?u.state:o.state?va(o.state,u.state):{};R=jn(u.state,R);const U=`${T}${N}${I}`,K=new URL(U,this.origin),ee=a1(this.rewrite,K);return{publicHref:ee.pathname+ee.search+ee.hash,href:U,url:ee.href,pathname:T,search:A,searchStr:N,state:R,hash:P??"",unmaskOnReload:o.unmaskOnReload}},s=(o={},u)=>{const f=i(o);let d=u?i(u):void 0;if(!d){const h={};if(this.options.routeMasks){const y=ak(f.pathname,this.processedTree);if(y){Object.assign(h,y.params);const{from:p,...v}=y.route;u={from:n.from,...v,params:h},d=i(u)}}}return d&&(f.maskedLocation=d),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const o=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(y=>{s.state[y]=this.latestLocation.state[y]});const h=_a(s.state,this.latestLocation.state);return d.forEach(y=>{delete s.state[y]}),h},u=ba(this.latestLocation.href)===ba(s.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Qs(()=>{f==null||f.resolve()}),u&&o())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...y}=s;d&&(y={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:u,href:f,...d}={})=>{if(f){const p=this.history.location.state.__TSR_index,v=Lc(f,{__TSR_index:n?p:p+1});d.to=v.pathname,d.search=this.options.parseSearch(v.search),d.hash=v.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const y=this.commitLocation({...h,viewTransition:o,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:s,...o})=>{var u;if(!i&&s)try{new URL(`${s}`),i=!0}catch{}if(i){if(s||(s=this.buildLocation({to:n,...o}).url),!o.ignoreBlocker){const f=this.history,d=((u=f.getBlockers)==null?void 0:u.call(f))??[];for(const h of d)if(h!=null&&h.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return o.replace?window.location.replace(s):window.location.href=s,Promise.resolve()}return this.buildAndCommitLocation({...o,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),s=o=>{try{return encodeURI(decodeURI(o))}catch{return o}};if(Ec(s(this.latestLocation.href))!==Ec(s(i.href))){let o=i.url;throw this.origin&&o.startsWith(this.origin)&&(o=o.replace(this.origin,"")||"/"),Rk({href:o})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(s=>!n.some(o=>o.id===s.id))}))},this.load=async n=>{let i,s,o;for(o=new Promise(f=>{this.startTransition(async()=>{var d;try{this.beforeLoad();const h=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...xa({resolvedLocation:y,location:h})}),this.emit({type:"onBeforeLoad",...xa({resolvedLocation:y,location:h})}),await B_({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],v=[],_=[];co(()=>{this.__store.setState(x=>{const w=x.matches,E=x.pendingMatches||x.matches;return p=w.filter(T=>!E.some(A=>A.id===T.id)),v=E.filter(T=>!w.some(A=>A.id===T.id)),_=E.filter(T=>w.some(A=>A.id===T.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...p.filter(T=>T.status!=="error"&&T.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[v,"onEnter"],[_,"onStay"]].forEach(([x,w])=>{x.forEach(E=>{var T,A;(A=(T=this.looseRoutesById[E.routeId].options)[w])==null||A.call(T,E)})})})})}})}catch(h){Kn(h)?(i=h,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):zn(h)&&(s=h),this.__store.setState(y=>({...y,statusCode:i?i.status:s?404:y.matches.some(p=>p.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===o&&((d=this.commitLocationPromise)==null||d.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(f=>f.status==="error")&&(u=500),u!==void 0&&this.__store.setState(f=>({...f,statusCode:u}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,u=this.state.resolvedLocation,f=typeof i.types=="function"?i.types(xa({resolvedLocation:u,location:o})):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{var o;const s=(o=this.state.pendingMatches)!=null&&o.some(u=>u.id===n)?"pendingMatches":this.state.matches.some(u=>u.id===n)?"matches":this.state.cachedMatches.some(u=>u.id===n)?"cachedMatches":"";s&&this.__store.setState(u=>{var f;return{...u,[s]:(f=u[s])==null?void 0:f.map(d=>d.id===n?i(d):d)}})})},this.getMatch=n=>{var s;const i=o=>o.id===n;return this.state.cachedMatches.find(i)??((s=this.state.pendingMatches)==null?void 0:s.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>{var o;return((o=n==null?void 0:n.filter)==null?void 0:o.call(n,s))??!0?{...s,invalid:!0,...n!=null&&n.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!i(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const o=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=o};this.clearCache({filter:n})},this.loadRouteChunk=t1,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...o,...this.state.cachedMatches.map(f=>f.id)]);co(()=>{s.forEach(f=>{u.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return s=await B_({router:this,matches:s,location:i,preload:!0,updateMatch:(f,d)=>{o.has(f)?s=s.map(h=>h.id===f?d(h):h):this.updateMatch(f,d)}}),s}catch(f){if(Kn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:i});zn(f)||console.error(f);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},o=this.buildLocation(s);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=sk(o.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!d||n.params&&!_a(d.params,n.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?_a(f.search,o.search,{partial:!0})?d.params:!1:d.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Ck,parseSearch:t.parseSearch??Tk}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:o}=i;let{matchedRoutes:u}=i,f=!1;(s?s.path!=="/"&&o["**"]:ba(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:f=!0);const d=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let p=u.length-1;p>=0;p--){const v=u[p];if(v.children)return v.id}return _n}})(),h=[],y=p=>(p==null?void 0:p.id)?p.context??this.options.context??void 0:this.options.context??void 0;return u.forEach((p,v)=>{var de,oe,ae;const _=h[v-1],[x,w,E]=(()=>{const q=(_==null?void 0:_.search)??t.search,re=(_==null?void 0:_._strictSearch)??void 0;try{const ce=Zm(p.options.validateSearch,{...q})??void 0;return[{...q,...ce},{...re,...ce},void 0]}catch(ce){let Se=ce;if(ce instanceof Uc||(Se=new Uc(ce.message,{cause:ce})),n!=null&&n.throwOnError)throw Se;return[q,{},Se]}})(),T=((oe=(de=p.options).loaderDeps)==null?void 0:oe.call(de,{search:x}))??"",A=T?JSON.stringify(T):"",{interpolatedPath:N,usedParams:P}=Wh({path:p.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),I=p.id+N+A,R=this.getMatch(I),U=this.state.matches.find(q=>q.routeId===p.id),K=(R==null?void 0:R._strictParams)??P;let ee;if(!R){const q=((ae=p.options.params)==null?void 0:ae.parse)??p.options.parseParams;if(q)try{Object.assign(K,q(K))}catch(re){if(zn(re)||Kn(re)?ee=re:ee=new Ik(re.message,{cause:re}),n!=null&&n.throwOnError)throw ee}}Object.assign(o,K);const j=U?"stay":"enter";let Q;if(R)Q={...R,cause:j,params:U?jn(U.params,o):o,_strictParams:K,search:jn(U?U.search:R.search,x),_strictSearch:w};else{const q=p.options.loader||p.options.beforeLoad||p.lazyFn||n1(p)?"pending":"success";Q={id:I,index:v,routeId:p.id,params:U?jn(U.params,o):o,_strictParams:K,pathname:N,updatedAt:Date.now(),search:U?jn(U.search,x):x,_strictSearch:w,searchError:void 0,status:q,isFetching:!1,error:void 0,paramsError:ee,__routeContext:void 0,_nonReactive:{loadPromise:Qs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:j,loaderDeps:U?jn(U.loaderDeps,T):T,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n!=null&&n.preload||(Q.globalNotFound=d===p.id),Q.searchError=E;const ie=y(_);Q.context={...ie,...Q.__routeContext,...Q.__beforeLoadContext},h.push(Q)}),h.forEach((p,v)=>{const _=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&(n==null?void 0:n._buildLocation)!==!0){const w=h[v-1],E=y(w);if(_.options.context){const T={deps:p.loaderDeps,params:p.params,context:E??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:h};p.__routeContext=_.options.context(T)??void 0}p.context={...E,...p.__routeContext,...p.__beforeLoadContext}}}),h}}class Uc extends Error{}class Ik extends Error{}function Bk(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Zm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Uc("Async validation not supported");if(n.issues)throw new Uc(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function Uk({pathname:e,routesById:t,processedTree:n}){const i={},s=ba(e);let o;const u=lk(s,n,!0);return u&&(o=u.route,Object.assign(i,u.params)),{matchedRoutes:(u==null?void 0:u.branch)||[t[_n]],routeParams:i,foundRoute:o}}function Vk({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((f,d)=>{var y;const h=[];if("search"in d.options)(y=d.options.search)!=null&&y.middlewares&&h.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const p=({search:v,next:_})=>{let x=v;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(x=d.options.preSearchFilters.reduce((E,T)=>T(E),v));const w=_(x);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((E,T)=>T(E),w):w};h.push(p)}if(i&&d.options.validateSearch){const p=({search:v,next:_})=>{const x=_(v);try{return{...x,...Zm(d.options.validateSearch,x)??void 0}}catch{return x}};h.push(p)}return f.concat(h)},[])??[],o=({search:f})=>t.search?t.search===!0?f:va(t.search,f):{};s.push(o);const u=(f,d)=>{if(f>=s.length)return d;const h=s[f];return h({search:d,next:p=>u(f+1,p)})};return u(0,e)}const qk="Error preloading route! ☝️";class s1{constructor(t){if(this.init=n=>{var h,y;this.originalIndex=n.originalIndex;const i=this.options,s=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(h=this.options).getParentRoute)==null?void 0:y.call(h),s?this._path=_n:this.parentRoute||Gr(!1);let o=s?_n:i==null?void 0:i.path;o&&o!=="/"&&(o=Yx(o));const u=(i==null?void 0:i.id)||o;let f=s?_n:Sc([this.parentRoute.id===_n?"":this.parentRoute.id,u]);o===_n&&(o="/"),f!==_n&&(f=Sc(["/",f]));const d=f===_n?"/":Sc([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=d,this._to=d},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Hk{constructor({id:t}){this.notFound=n=>Kx({routeId:this.id,...n}),this.id=t}}class Gk extends s1{constructor(t){super(t)}}function Np(e){const t=e.errorComponent??uf;return b.jsx(Fk,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?Y.createElement(t,{error:n,reset:i}):e.children})}class Fk extends Y.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function uf({error:e}){const[t,n]=Y.useState(!1);return b.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[b.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),b.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),b.jsx("div",{style:{height:".25rem"}}),t?b.jsx("div",{children:b.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?b.jsx("code",{children:e.message}):null})}):null]})}function $k({children:e,fallback:t=null}){return Qk()?b.jsx($s.Fragment,{children:e}):b.jsx($s.Fragment,{children:t})}function Qk(){return $s.useSyncExternalStore(Yk,()=>!0,()=>!1)}function Yk(){return()=>{}}var tm={exports:{}},nm={},rm={exports:{}},im={};/**
|
|
51
|
-
* @license React
|
|
52
|
-
* use-sync-external-store-shim.production.js
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var U_;function Kk(){if(U_)return im;U_=1;var e=Do();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(p,v){var _=v(),x=i({inst:{value:_,getSnapshot:v}}),w=x[0].inst,E=x[1];return o(function(){w.value=_,w.getSnapshot=v,d(w)&&E({inst:w})},[p,_,v]),s(function(){return d(w)&&E({inst:w}),p(function(){d(w)&&E({inst:w})})},[p]),u(_),_}function d(p){var v=p.getSnapshot;p=p.value;try{var _=v();return!n(p,_)}catch{return!0}}function h(p,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return im.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,im}var V_;function Xk(){return V_||(V_=1,rm.exports=Kk()),rm.exports}/**
|
|
59
|
-
* @license React
|
|
60
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
61
|
-
*
|
|
62
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var q_;function Zk(){if(q_)return nm;q_=1;var e=Do(),t=Xk();function n(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return nm.useSyncExternalStoreWithSelector=function(h,y,p,v,_){var x=o(null);if(x.current===null){var w={hasValue:!1,value:null};x.current=w}else w=x.current;x=f(function(){function T(R){if(!A){if(A=!0,N=R,R=v(R),_!==void 0&&w.hasValue){var U=w.value;if(_(U,R))return P=U}return P=R}if(U=P,i(N,R))return U;var K=v(R);return _!==void 0&&_(U,K)?(N=R,U):(N=R,P=K)}var A=!1,N,P,I=p===void 0?null:p;return[function(){return T(y())},I===null?void 0:function(){return T(I())}]},[y,p,v,_]);var E=s(h,x[0],x[1]);return u(function(){w.hasValue=!0,w.value=E},[E]),d(E),E},nm}var H_;function Jk(){return H_||(H_=1,tm.exports=Zk()),tm.exports}var Wk=Jk();function e2(e,t=i=>i,n={}){const i=n.equal??t2;return Wk.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function t2(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=G_(e);if(n.length!==G_(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function G_(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const am=Y.createContext(null);function l1(){return typeof document>"u"?am:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=am,am)}function Yt(e){const t=Y.useContext(l1());return e==null||e.warn,t}function Qt(e){const t=Yt({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=Y.useRef(void 0);return e2(n.__store,s=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const o=jn(i.current,e.select(s));return i.current=o,o}return e.select(s)}return s})}const cf=Y.createContext(void 0),n2=Y.createContext(void 0);function In(e){const t=Y.useContext(e.from?n2:cf);return Qt({select:i=>{const s=i.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Gr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function ff(e){return In({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function df(e){const{select:t,...n}=e;return In({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Ws(e){return In({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function hf(e){return In({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const oc=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function sm(e){const t=Y.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function r2(e,t,n={},i={}){Y.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([o])=>{t(o)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function i2(e){const t=Y.useRef(null);return Y.useImperativeHandle(e,()=>t.current,[]),t}function el(e){const t=Yt();return Y.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var a2=jx();function s2(e,t){const n=Yt(),[i,s]=Y.useState(!1),o=Y.useRef(!1),u=i2(t),{activeProps:f,inactiveProps:d,activeOptions:h,to:y,preload:p,preloadDelay:v,hashScrollIntoView:_,replace:x,startTransition:w,resetScroll:E,viewTransition:T,children:A,target:N,disabled:P,style:I,className:R,onClick:U,onFocus:K,onMouseEnter:ee,onMouseLeave:j,onTouchStart:Q,ignoreBlocker:ie,params:de,search:oe,hash:ae,state:q,mask:re,reloadDocument:ce,unsafeRelative:Se,from:L,_fromLocation:z,...H}=e,k=Qt({select:Ve=>Ve.location.search,structuralSharing:!0}),le=e.from,pe=Y.useMemo(()=>({...e,from:le}),[n,k,le,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=Y.useMemo(()=>n.buildLocation({...pe}),[n,pe]),Ee=Y.useMemo(()=>{if(P)return;let Ve=he.maskedLocation?he.maskedLocation.url:he.url,Ue=!1;return n.origin&&(Ve.startsWith(n.origin)?Ve=n.history.createHref(Ve.replace(n.origin,""))||"/":Ue=!0),{href:Ve,external:Ue}},[P,he.maskedLocation,he.url,n.origin,n.history]),Qe=Y.useMemo(()=>{if(Ee!=null&&Ee.external)return Ee.href;try{return new URL(y),y}catch{}},[y,Ee]),Pe=e.reloadDocument||Qe?!1:p??n.options.defaultPreload,Dt=v??n.options.defaultPreloadDelay??0,on=Qt({select:Ve=>{if(Qe)return!1;if(h!=null&&h.exact){if(!mk(Ve.location.pathname,he.pathname,n.basepath))return!1}else{const Ue=zc(Ve.location.pathname,n.basepath),Ut=zc(he.pathname,n.basepath);if(!(Ue.startsWith(Ut)&&(Ue.length===Ut.length||Ue[Ut.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!_a(Ve.location.search,he.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Ve.location.hash===he.hash:!0}}),un=Y.useCallback(()=>{n.preloadRoute({...pe}).catch(Ve=>{console.warn(Ve),console.warn(qk)})},[n,pe]),Na=Y.useCallback(Ve=>{Ve!=null&&Ve.isIntersecting&&un()},[un]);r2(u,Na,f2,{disabled:!!P||Pe!=="viewport"}),Y.useEffect(()=>{o.current||!P&&Pe==="render"&&(un(),o.current=!0)},[P,un,Pe]);const Un=Ve=>{const Ue=Ve.currentTarget.getAttribute("target"),Ut=N!==void 0?N:Ue;if(!P&&!d2(Ve)&&!Ve.defaultPrevented&&(!Ut||Ut==="_self")&&Ve.button===0){Ve.preventDefault(),a2.flushSync(()=>{s(!0)});const J=n.subscribe("onResolved",()=>{J(),s(!1)});n.navigate({...pe,replace:x,resetScroll:E,hashScrollIntoView:_,startTransition:w,viewTransition:T,ignoreBlocker:ie})}};if(Qe)return{...H,ref:u,href:Qe,...A&&{children:A},...N&&{target:N},...P&&{disabled:P},...I&&{style:I},...R&&{className:R},...U&&{onClick:U},...K&&{onFocus:K},...ee&&{onMouseEnter:ee},...j&&{onMouseLeave:j},...Q&&{onTouchStart:Q}};const dr=Ve=>{P||Pe&&un()},$r=dr,ja=Ve=>{if(!(P||!Pe))if(!Dt)un();else{const Ue=Ve.target;if(Wl.has(Ue))return;const Ut=setTimeout(()=>{Wl.delete(Ue),un()},Dt);Wl.set(Ue,Ut)}},La=Ve=>{if(P||!Pe||!Dt)return;const Ue=Ve.target,Ut=Wl.get(Ue);Ut&&(clearTimeout(Ut),Wl.delete(Ue))},Vn=on?va(f,{})??l2:lm,qn=on?lm:va(d,{})??lm,Qr=[R,Vn.className,qn.className].filter(Boolean).join(" "),Da=(I||Vn.style||qn.style)&&{...I,...Vn.style,...qn.style};return{...H,...Vn,...qn,href:Ee==null?void 0:Ee.href,ref:u,onClick:eo([U,Un]),onFocus:eo([K,dr]),onMouseEnter:eo([ee,ja]),onMouseLeave:eo([j,La]),onTouchStart:eo([Q,$r]),disabled:!!P,target:N,...Da&&{style:Da},...Qr&&{className:Qr},...P&&o2,...on&&u2,...i&&c2}}const lm={},l2={className:"active"},o2={role:"link","aria-disabled":!0},u2={"data-status":"active","aria-current":"page"},c2={"data-transitioning":"transitioning"},Wl=new WeakMap,f2={rootMargin:"100px"},eo=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},ut=Y.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,ref:o,...u}=s2(i,t),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;return n===void 0&&delete u.disabled,Y.createElement(n||"a",{...u,ref:o},f)});function d2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h2(e){return new m2({id:e})}class m2 extends Hk{constructor({id:t}){super({id:t}),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>hf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id,strict:!1}),this.useLoaderData=n=>ff({...n,from:this.id,strict:!1}),this.useNavigate=()=>{const n=Yt();return el({from:n.routesById[this.id].fullPath})},this.notFound=n=>Kx({routeId:this.id,...n}),this.Link=$s.forwardRef((n,i)=>{const o=Yt().routesById[this.id].fullPath;return b.jsx(ut,{ref:i,from:o,...n})})}}class p2 extends s1{constructor(t){super(t),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>hf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>ff({...n,from:this.id}),this.useNavigate=()=>el({from:this.fullPath}),this.Link=$s.forwardRef((n,i)=>b.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function or(e){return new p2(e)}class g2 extends Gk{constructor(t){super(t),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>hf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>ff({...n,from:this.id}),this.useNavigate=()=>el({from:this.fullPath}),this.Link=$s.forwardRef((n,i)=>b.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function y2(e){return new g2(e)}function F_(e){return typeof e=="object"?new $_(e,{silent:!0}).createRoute(e):new $_(e,{silent:!0}).createRoute}class $_{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=or(i);return s.isRoot=!1,s},this.silent=n==null?void 0:n.silent}}class Q_{constructor(t){this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>hf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>df({...n,from:this.options.id}),this.useLoaderData=n=>ff({...n,from:this.options.id}),this.useNavigate=()=>{const n=Yt();return el({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Y_(e){return typeof e=="object"?new Q_(e):t=>new Q_({id:e,...t})}function v2(){const e=Yt(),t=Y.useRef({router:e,mounted:!1}),[n,i]=Y.useState(!1),{hasPendingMatches:s,isLoading:o}=Qt({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),u=sm(o),f=o||n||s,d=sm(f),h=o||s,y=sm(h);return e.startTransition=p=>{i(!0),Y.startTransition(()=>{p(),i(!1)})},Y.useEffect(()=>{const p=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ba(e.latestLocation.href)!==ba(v.href)&&e.commitLocation({...v,replace:!0}),()=>{p()}},[e,e.history]),oc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),oc(()=>{u&&!o&&e.emit({type:"onLoad",...xa(e.state)})},[u,e,o]),oc(()=>{y&&!h&&e.emit({type:"onBeforeRouteMount",...xa(e.state)})},[h,y,e]),oc(()=>{if(d&&!f){const p=xa(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),p.hrefChanged&&Sk(e)}},[f,d,e]),null}function _2(e){const t=Qt({select:n=>`not-found-${n.location.pathname}-${n.status}`});return b.jsx(Np,{getResetKey:()=>t,onCatch:(n,i)=>{var s;if(zn(n))(s=e.onCatch)==null||s.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(zn(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function b2(){return b.jsx("p",{children:"Not Found"})}function ks(e){return b.jsx(b.Fragment,{children:e.children})}function o1(e,t,n){return t.options.notFoundComponent?b.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?b.jsx(e.options.defaultNotFoundComponent,{...n}):b.jsx(b2,{})}function x2({children:e}){var n;const t=Yt();return t.isServer?b.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function S2(){const e=Yt();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||Xm)(e.latestLocation),i=n!==Xm(e.latestLocation)?n:void 0,s={storageKey:Ic,shouldScrollRestoration:!0};return i&&(s.key=i),b.jsx(x2,{children:`(${Xx.toString()})(${JSON.stringify(s)})`})}const u1=Y.memo(function({matchId:t}){var T,A;const n=Yt(),i=Qt({select:N=>{const P=N.matches.find(I=>I.id===t);return Gr(P),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],o=s.options.pendingComponent??n.options.defaultPendingComponent,u=o?b.jsx(o,{}):null,f=s.options.errorComponent??n.options.defaultErrorComponent,d=s.options.onCatch??n.options.defaultOnCatch,h=s.isRoot?s.options.notFoundComponent??((T=n.options.notFoundRoute)==null?void 0:T.options.component):s.options.notFoundComponent,y=i.ssr===!1||i.ssr==="data-only",p=(!s.isRoot||s.options.wrapInSuspense||y)&&(s.options.wrapInSuspense??o??(((A=s.options.errorComponent)==null?void 0:A.preload)||y))?Y.Suspense:ks,v=f?Np:ks,_=h?_2:ks,x=Qt({select:N=>N.loadedAt}),w=Qt({select:N=>{var I;const P=N.matches.findIndex(R=>R.id===t);return(I=N.matches[P-1])==null?void 0:I.routeId}}),E=s.isRoot?s.options.shellComponent??ks:ks;return b.jsxs(E,{children:[b.jsx(cf.Provider,{value:t,children:b.jsx(p,{fallback:u,children:b.jsx(v,{getResetKey:()=>x,errorComponent:f||uf,onCatch:(N,P)=>{if(zn(N))throw N;d==null||d(N,P)},children:b.jsx(_,{fallback:N=>{if(!h||N.routeId&&N.routeId!==i.routeId||!N.routeId&&!s.isRoot)throw N;return Y.createElement(h,N)},children:y||i._displayPending?b.jsx($k,{fallback:u,children:b.jsx(K_,{matchId:t})}):b.jsx(K_,{matchId:t})})})})}),w===_n&&n.options.scrollRestoration?b.jsxs(b.Fragment,{children:[b.jsx(E2,{}),b.jsx(S2,{})]}):null]})});function E2(){const e=Yt(),t=Y.useRef(void 0);return b.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...xa(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const K_=Y.memo(function({matchId:t}){var d,h,y,p;const n=Yt(),{match:i,key:s,routeId:o}=Qt({select:v=>{const _=v.matches.find(A=>A.id===t),x=_.routeId,w=n.routesById[x].options.remountDeps??n.options.defaultRemountDeps,E=w==null?void 0:w({routeId:x,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:E?JSON.stringify(E):void 0,routeId:x,match:{id:_.id,status:_.status,error:_.error,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),u=n.routesById[o],f=Y.useMemo(()=>{const v=u.options.component??n.options.defaultComponent;return v?b.jsx(v,{},s):b.jsx(c1,{})},[s,u.options.component,n.options.defaultComponent]);if(i._displayPending)throw(d=n.getMatch(i.id))==null?void 0:d._nonReactive.displayPendingPromise;if(i._forcePending)throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.minPendingPromise;if(i.status==="pending"){const v=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(v){const _=n.getMatch(i.id);if(_&&!_._nonReactive.minPendingPromise&&!n.isServer){const x=Qs();_._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),_._nonReactive.minPendingPromise=void 0},v)}}throw(y=n.getMatch(i.id))==null?void 0:y._nonReactive.loadPromise}if(i.status==="notFound")return Gr(zn(i.error)),o1(n,u,i.error);if(i.status==="redirected")throw Gr(Kn(i.error)),(p=n.getMatch(i.id))==null?void 0:p._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const v=(u.options.errorComponent??n.options.defaultErrorComponent)||uf;return b.jsx(v,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return f}),c1=Y.memo(function(){const t=Yt(),n=Y.useContext(cf),i=Qt({select:h=>{var y;return(y=h.matches.find(p=>p.id===n))==null?void 0:y.routeId}}),s=t.routesById[i],o=Qt({select:h=>{const p=h.matches.find(v=>v.id===n);return Gr(p),p.globalNotFound}}),u=Qt({select:h=>{var v;const y=h.matches,p=y.findIndex(_=>_.id===n);return(v=y[p+1])==null?void 0:v.id}}),f=t.options.defaultPendingComponent?b.jsx(t.options.defaultPendingComponent,{}):null;if(o)return o1(t,s,void 0);if(!u)return null;const d=b.jsx(u1,{matchId:u});return i===_n?b.jsx(Y.Suspense,{fallback:f,children:d}):d});function w2(){const e=Yt(),n=e.routesById[_n].options.pendingComponent??e.options.defaultPendingComponent,i=n?b.jsx(n,{}):null,s=e.isServer||typeof document<"u"&&e.ssr?ks:Y.Suspense,o=b.jsxs(s,{fallback:i,children:[!e.isServer&&b.jsx(v2,{}),b.jsx(T2,{})]});return e.options.InnerWrap?b.jsx(e.options.InnerWrap,{children:o}):o}function T2(){const e=Yt(),t=Qt({select:s=>{var o;return(o=s.matches[0])==null?void 0:o.id}}),n=Qt({select:s=>s.loadedAt}),i=t?b.jsx(u1,{matchId:t}):null;return b.jsx(cf.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:b.jsx(Np,{getResetKey:()=>n,errorComponent:uf,onCatch:s=>{s.message||s.toString()},children:i})})}const C2=e=>new k2(e);class k2 extends zk{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=F_,globalThis.createLazyFileRoute=Y_):typeof window<"u"&&(window.createFileRoute=F_,window.createLazyFileRoute=Y_);function A2({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=l1(),s=b.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?b.jsx(e.options.Wrap,{children:s}):s}function R2({router:e,...t}){return b.jsx(A2,{router:e,...t,children:b.jsx(w2,{})})}var O2=Object.create,f1=Object.defineProperty,N2=Object.getOwnPropertyDescriptor,d1=Object.getOwnPropertyNames,j2=Object.getPrototypeOf,L2=Object.prototype.hasOwnProperty,ur=(e,t)=>function(){return t||(0,e[d1(e)[0]])((t={exports:{}}).exports,t),t.exports},D2=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=d1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!L2.call(e,f)&&f!==n&&f1(e,f,{get:(d=>t[d]).bind(null,f),enumerable:!(i=N2(t,f))||i.enumerable});return e},dt=(e,t,n)=>(n=e!=null?O2(j2(e)):{},D2(f1(n,"default",{value:e,enumerable:!0}),e)),h1=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),M2=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=h1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),P2=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=h1().default,i=M2();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Aa=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=P2();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zn=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Aa();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);u&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(o,h).enumerable})),f.push.apply(f,d)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(d){n(o,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(f,d))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ra(e){const t={subscribe(n){let i=null,s=!1,o=!1,u=!1;function f(){if(i===null){u=!0;return}o||(o=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(d){var h;s||(h=n.next)===null||h===void 0||h.call(n,d)},error(d){var h;s||(s=!0,(h=n.error)===null||h===void 0||h.call(n,d),f())},complete(){var d;s||(s=!0,(d=n.complete)===null||d===void 0||d.call(n),f())}}),u&&f(),{unsubscribe:f}},pipe(...n){return n.reduce(z2,t)}};return t}function z2(e,t){return t(e)}function I2(e){const t=new AbortController;return new Promise((i,s)=>{let o=!1;function u(){o||(o=!0,f.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const f=e.subscribe({next(d){o=!0,i(d),u()},error(d){s(d)},complete(){t.abort(),u()}})})}function B2(e){return t=>{let n=0,i=null;const s=[];function o(){i||(i=t.subscribe({next(f){for(const h of s){var d;(d=h.next)===null||d===void 0||d.call(h,f)}},error(f){for(const h of s){var d;(d=h.error)===null||d===void 0||d.call(h,f)}},complete(){for(const d of s){var f;(f=d.complete)===null||f===void 0||f.call(d)}}}))}function u(){if(n===0&&i){const f=i;i=null,f.unsubscribe()}}return Ra(f=>(n++,s.push(f),o(),{unsubscribe(){n--,u();const d=s.findIndex(h=>h===f);d>-1&&s.splice(d,1)}}))}}function m1(e){let t=e;const n=[],i=u=>{t!==void 0&&u.next(t),n.push(u)},s=u=>{n.splice(n.indexOf(u),1)},o=Ra(u=>(i(u),()=>{s(u)}));return o.next=u=>{if(t!==u){t=u;for(const f of n)f.next(u)}},o.get=()=>t,o}function p1(e){return Ra(t=>{function n(s=0,o=e.op){const u=e.links[s];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:o,next(d){return n(s+1,d)}})}return n().subscribe(t)})}function X_(e){return Array.isArray(e)?e:[e]}function U2(e){return t=>{const n=X_(e.true).map(s=>s(t)),i=X_(e.false).map(s=>s(t));return s=>Ra(o=>{const u=e.condition(s.op)?n:i;return p1({op:s.op,links:u}).subscribe(o)})}}function Pi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function V2(e){return typeof e=="function"}const q2=typeof Symbol=="function"&&!!Symbol.asyncIterator;function H2(e){return q2&&Pi(e)&&Symbol.asyncIterator in e}const Jm=e=>e();function Z_(e=0){return new Promise(t=>setTimeout(t,e))}var G2=Object.create,g1=Object.defineProperty,F2=Object.getOwnPropertyDescriptor,y1=Object.getOwnPropertyNames,$2=Object.getPrototypeOf,Q2=Object.prototype.hasOwnProperty,Mo=(e,t)=>function(){return t||(0,e[y1(e)[0]])((t={exports:{}}).exports,t),t.exports},Y2=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=y1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!Q2.call(e,f)&&f!==n&&g1(e,f,{get:(d=>t[d]).bind(null,f),enumerable:!(i=F2(t,f))||i.enumerable});return e},mf=(e,t,n)=>(n=e!=null?G2($2(e)):{},Y2(g1(n,"default",{value:e,enumerable:!0}),e));const v1=()=>{},J_=e=>{Object.freeze&&Object.freeze(e)};function _1(e,t,n){var i;const s=t.join(".");return(i=n[s])!==null&&i!==void 0||(n[s]=new Proxy(v1,{get(o,u){if(!(typeof u!="string"||u==="then"))return _1(e,[...t,u],n)},apply(o,u,f){const d=t[t.length-1];let h={args:f,path:t};return d==="call"?h={args:f.length>=2?[f[1]]:[],path:t.slice(0,-1)}:d==="apply"&&(h={args:f.length>=2?f[1]:[],path:t.slice(0,-1)}),J_(h.args),J_(h.path),e(h)}})),n[s]}const b1=e=>_1(e,[],Object.create(null)),K2=e=>new Proxy(v1,{get(t,n){if(n!=="then")return e(n)}});var x1=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),X2=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=x1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Z2=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=x1().default,i=X2();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),S1=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Z2();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),jp=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=S1();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);u&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(o,h).enumerable})),f.push.apply(f,d)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(d){n(o,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(f,d))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});mf(jp());var W_=mf(S1()),J2=class extends Error{};function W2(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(Pi(e))return Object.assign(new J2,e)}}var eb=class extends Error{constructor(e){var t,n,i;const s=W2(e.cause),o=(t=(n=e.message)!==null&&n!==void 0?n:s==null?void 0:s.message)!==null&&t!==void 0?t:e.code;super(o,{cause:s}),(0,W_.default)(this,"cause",void 0),(0,W_.default)(this,"code",void 0),this.code=e.code,this.name="TRPCError",(i=this.cause)!==null&&i!==void 0||(this.cause=s)}},uc=mf(jp());function eA(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:(0,uc.default)((0,uc.default)({},e),{},{error:i})}}return{ok:!0,result:(0,uc.default)((0,uc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var om=class extends Error{constructor(){super("Unable to transform response from server")}};function E1(e,t){let n;try{n=eA(e,t)}catch{throw new om}if(!n.ok&&(!Pi(n.error.error)||typeof n.error.error.code!="number"))throw new om;if(n.ok&&!Pi(n.result))throw new om;return n}mf(jp());function tA(e){return typeof e=="function"}async function nA(e,t){const{_def:n}=e;let i=n.procedures[t];for(;!i;){const s=Object.keys(n.lazy).find(u=>t.startsWith(u));if(!s)return null;await n.lazy[s].load(),i=n.procedures[t]}return i}async function rA(e){const{type:t,path:n}=e,i=await nA(e.router,n);if(!i||!tA(i)||i._def.type!==t&&!e.allowMethodOverride)throw new eb({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${n}"`});/* istanbul ignore if -- @preserve */if(i._def.type!==t&&e.allowMethodOverride&&i._def.type==="subscription")throw new eb({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return i(e)}var cc=dt(Aa()),_s=dt(Zn());function iA(e){return e instanceof Br}function aA(e){return Pi(e)&&Pi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function sA(e,t){return typeof e=="string"?e:Pi(e)&&typeof e.message=="string"?e.message:t}var Br=class Tc extends Error{constructor(t,n){var i,s;const o=n==null?void 0:n.cause;super(t,{cause:o}),(0,cc.default)(this,"cause",void 0),(0,cc.default)(this,"shape",void 0),(0,cc.default)(this,"data",void 0),(0,cc.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=o,this.shape=n==null||(i=n.result)===null||i===void 0?void 0:i.error,this.data=n==null||(s=n.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Tc.prototype)}static from(t,n={}){const i=t;return iA(i)?(n.meta&&(i.meta=(0,_s.default)((0,_s.default)({},i.meta),n.meta)),i):aA(i)?new Tc(i.error.message,(0,_s.default)((0,_s.default)({},n),{},{result:i})):new Tc(sA(i,"Unknown error"),(0,_s.default)((0,_s.default)({},n),{},{cause:i}))}};function w1(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const tb=e=>typeof e=="function";function lA(e){if(e)return e;if(typeof window<"u"&&tb(window.fetch))return window.fetch;if(typeof globalThis<"u"&&tb(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ho=dt(Zn());function oA(e){return{url:e.url.toString(),fetch:e.fetch,transformer:w1(e.transformer),methodOverride:e.methodOverride}}function uA(e){const t={};for(let n=0;n<e.length;n++){const i=e[n];t[n]=i}return t}const cA={query:"GET",mutation:"POST",subscription:"PATCH"};function T1(e){return"input"in e?e.transformer.input.serialize(e.input):uA(e.inputs.map(t=>e.transformer.input.serialize(t)))}const C1=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=T1(e);o!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return s.length&&(i+="?"+s.join("&")),i},fA=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=T1(e);return t!==void 0?JSON.stringify(t):void 0},dA=e=>gA((0,ho.default)((0,ho.default)({},e),{},{contentTypeHeader:"application/json",getUrl:C1,getBody:fA}));var hA=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const mA=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new hA};async function pA(e){var t;mA(e.signal);const n=e.getUrl(e),i=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:cA[e.type],o=await(async()=>{const f=await e.headers();return Symbol.iterator in f?Object.fromEntries(f):f})(),u=(0,ho.default)((0,ho.default)((0,ho.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return lA(e.fetch)(n,{method:s,signal:e.signal,body:i,headers:u})}async function gA(e){const t={},n=await pA(e);t.response=n;const i=await n.json();return t.responseJSON=i,{json:i,meta:t}}dt(Zn());const nb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function rb(e){let t=null,n=null;const i=()=>{clearTimeout(n),n=null,t=null};function s(f){const d=[[]];let h=0;for(;;){const v=f[h];if(!v)break;const _=d[d.length-1];if(v.aborted){var y;(y=v.reject)===null||y===void 0||y.call(v,new Error("Aborted")),h++;continue}if(e.validate(_.concat(v).map(w=>w.key))){_.push(v),h++;continue}if(_.length===0){var p;(p=v.reject)===null||p===void 0||p.call(v,new Error("Input is too big for a single dispatch")),h++;continue}d.push([])}return d}function o(){const f=s(t);i();for(const d of f){if(!d.length)continue;const h={items:d};for(const p of d)p.batch=h;e.fetch(h.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(_,x)=>{const w=h.items[x];try{var E;const A=await Promise.resolve(_);(E=w.resolve)===null||E===void 0||E.call(w,A)}catch(A){var T;(T=w.reject)===null||T===void 0||T.call(w,A)}w.batch=null,w.reject=null,w.resolve=null}));for(const _ of h.items){var v;(v=_.reject)===null||v===void 0||v.call(_,new Error("Missing result")),_.batch=null}}).catch(p=>{for(const _ of h.items){var v;(v=_.reject)===null||v===void 0||v.call(_,p),_.batch=null}})}}function u(f){var d;const h={aborted:!1,key:f,batch:null,resolve:nb,reject:nb},y=new Promise((p,v)=>{var _;h.reject=v,h.resolve=p,(_=t)!==null&&_!==void 0||(t=[]),t.push(h)});return(d=n)!==null&&d!==void 0||(n=setTimeout(o)),y}return{load:u}}function yA(...e){const t=new AbortController,n=e.length;let i=0;const s=()=>{++i===n&&t.abort()};for(const o of e)o!=null&&o.aborted?s():o==null||o.addEventListener("abort",s,{once:!0});return t.signal}var fc=dt(Zn());function vA(e){var t,n;const i=oA(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=y=>({validate(p){if(s===1/0&&o===1/0)return!0;if(p.length>o)return!1;const v=p.map(w=>w.path).join(","),_=p.map(w=>w.input);return C1((0,fc.default)((0,fc.default)({},i),{},{type:y,path:v,inputs:_,signal:null})).length<=s},async fetch(p){const v=p.map(A=>A.path).join(","),_=p.map(A=>A.input),x=yA(...p.map(A=>A.signal)),w=await dA((0,fc.default)((0,fc.default)({},i),{},{path:v,inputs:_,type:y,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:x}));return(Array.isArray(w.json)?w.json:p.map(()=>w.json)).map(A=>({meta:w.meta,json:A}))}}),f=rb(u("query")),d=rb(u("mutation")),h={query:f,mutation:d};return({op:y})=>Ra(p=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const _=h[y.type].load(y);let x;return _.then(w=>{x=w;const E=E1(w.json,i.transformer.output);if(!E.ok){p.error(Br.from(E.error,{meta:w.meta}));return}p.next({context:w.meta,result:E.result}),p.complete()}).catch(w=>{p.error(Br.from(w,{meta:x==null?void 0:x.meta}))}),()=>{}})}}dt(Zn());const _A={enabled:!1,closeMs:0},bA={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},xA=e=>e===0?0:Math.min(1e3*2**e,3e4),k1=(e,...t)=>typeof e=="function"?e(...t):e;var SA=dt(Aa()),bs=class A1 extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,A1.prototype)}},EA=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,SA.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function R1(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}async function wA(e){const t=await k1(e.url);if(!e.connectionParams)return t;const i=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+i}async function TA(e){const t={method:"connectionParams",data:await k1(e)};return JSON.stringify(t)}var ib=dt(Aa()),CA=class{constructor(){(0,ib.default)(this,"outgoingRequests",new Array),(0,ib.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:i}=R1();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),i()},error:s=>{t.error(s),i()}}}),()=>{this.delete(e.id),t.complete(),i()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},aa=dt(Aa());function kA(e){const{promise:t,resolve:n,reject:i}=R1();return e.addEventListener("open",()=>{e.removeEventListener("error",i),n()}),e.addEventListener("error",i),t}function AA(e,{intervalMs:t,pongTimeoutMs:n}){let i,s;function o(){i=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(i),o()}function f(){clearTimeout(s),u()}e.addEventListener("open",o),e.addEventListener("message",({data:d})=>{clearTimeout(i),o(),d==="PONG"&&f()}),e.addEventListener("close",()=>{clearTimeout(i),clearTimeout(s)})}var O1=class Wm{constructor(t){var n;if((0,aa.default)(this,"id",++Wm.connectCount),(0,aa.default)(this,"WebSocketPonyfill",void 0),(0,aa.default)(this,"urlOptions",void 0),(0,aa.default)(this,"keepAliveOpts",void 0),(0,aa.default)(this,"wsObservable",m1(null)),(0,aa.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Wm.connectCount;const n=wA(t.urlOptions).then(i=>new t.WebSocketPonyfill(i));t.openPromise=n.then(async i=>{t.ws=i,i.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&AA(i,t.keepAliveOpts),i.addEventListener("close",()=>{t.ws===i&&(t.ws=null)}),await kA(i),t.urlOptions.connectionParams&&i.send(await TA(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,aa.default)(O1,"connectCount",0);function RA(e){return e.isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null}var jr=dt(Aa()),xs=dt(Zn()),OA=class{constructor(e){var t;(0,jr.default)(this,"connectionState",void 0),(0,jr.default)(this,"allowReconnect",!1),(0,jr.default)(this,"requestManager",new CA),(0,jr.default)(this,"activeConnection",void 0),(0,jr.default)(this,"reconnectRetryDelay",void 0),(0,jr.default)(this,"inactivityTimeout",void 0),(0,jr.default)(this,"callbacks",void 0),(0,jr.default)(this,"lazyMode",void 0),(0,jr.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,xs.default)((0,xs.default)({},_A),e.lazy);this.inactivityTimeout=new EA(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new O1({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,xs.default)((0,xs.default)({},bA),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:i=>{i&&this.setupWebSocketListeners(i)}}),this.reconnectRetryDelay=(t=e.retryDelayMs)!==null&&t!==void 0?t:xA,this.lazyMode=n.enabled,this.connectionState=m1({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state==="idle"&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new bs({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())n.message.method==="subscription"?n.callbacks.complete():n.state==="outgoing"?n.callbacks.error(Br.from(new bs({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:i,signal:s},transformer:o,lastEventId:u}){return Ra(f=>{const d=this.batchSend({id:e,method:t,params:{input:o.input.serialize(i),path:n,lastEventId:u}},(0,xs.default)((0,xs.default)({},f),{},{next(h){const y=E1(h,o.output);if(!y.ok){f.error(Br.from(y.error));return}f.next({result:y.result})}}));return()=>{d(),t==="subscription"&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),s==null||s.removeEventListener("abort",d)}})}get connection(){return RA(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:Br.from(e)}),this.reconnecting)return;const n=async i=>{try{await Z_(t.reconnectRetryDelay(i)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:s})=>s))),t.reconnecting=null}catch{await n(i+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=i=>{const s=this.requestManager.getPendingRequests();for(const{message:o,callbacks:u}of s)o.method!=="subscription"&&(u.error(Br.from(i??new bs({message:"WebSocket closed",cause:i}))),this.requestManager.delete(o.id))};e.addEventListener("open",()=>{Jm(async()=>{var i,s;t.lazyMode&&t.inactivityTimeout.start(),(i=(s=t.callbacks).onOpen)===null||i===void 0||i.call(s),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(i=>{e.close(3e3),n(i)})}),e.addEventListener("message",({data:i})=>{if(this.inactivityTimeout.reset(),typeof i!="string"||["PING","PONG"].includes(i))return;const s=JSON.parse(i);if("method"in s){this.handleIncomingRequest(s);return}this.handleResponseMessage(s)}),e.addEventListener("close",i=>{var s,o;n(i),(s=(o=this.callbacks).onClose)===null||s===void 0||s.call(o,i),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new bs({message:"WebSocket closed",cause:i}))}),e.addEventListener("error",i=>{var s,o;n(i),(s=(o=this.callbacks).onError)===null||s===void 0||s.call(o,i),this.reconnect(new bs({message:"WebSocket closed",cause:i}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&t.message.method==="subscription"&&(e.result.type==="data"&&(t.message.params.lastEventId=e.result.id),e.result.type!=="stopped"&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method==="reconnect"&&this.reconnect(new bs({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),Jm(async()=>{n.activeConnection.isOpen()||await n.open(),await Z_(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:i})=>i))}).catch(i=>{this.requestManager.delete(e.id),t.error(Br.from(i))}),this.requestManager.register(e,t)}};function NA(e){return new OA(e)}function jA(e){const{client:t}=e,n=w1(e.transformer);return()=>({op:i})=>Ra(s=>{const o=i.type==="subscription"?t.connectionState.subscribe({next(f){s.next({result:f,context:i.context})}}):null,u=t.request({op:i,transformer:n}).subscribe(s);return()=>{u.unsubscribe(),o==null||o.unsubscribe()}})}var um=dt(Aa()),ab=dt(Zn()),N1=class{constructor(e){(0,um.default)(this,"links",void 0),(0,um.default)(this,"runtime",void 0),(0,um.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return p1({links:this.links,op:(0,ab.default)((0,ab.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(B2())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await I2(n)).result.data}catch(n){throw Br.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(s){switch(s.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,s.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:s.context});break}case"stopped":{var f;(f=n.onStopped)===null||f===void 0||f.call(n);break}case"data":case void 0:{var d;(d=n.onData)===null||d===void 0||d.call(n,s.result.data);break}}},error(s){var o;(o=n.onError)===null||o===void 0||o.call(n,s)},complete(){var s;(s=n.onComplete)===null||s===void 0||s.call(n)}})}};const j1=Symbol.for("trpc_untypedClient"),LA={query:"query",mutate:"mutation",subscribe:"subscription"},DA=e=>LA[e];function MA(e){const t=b1(({path:n,args:i})=>{const s=[...n],o=DA(s.pop()),u=s.join(".");return e[o](u,...i)});return K2(n=>n===j1?e:t[n])}function PA(e){const t=new N1(e);return MA(t)}function zA(e){return e[j1]}dt(Zn());dt(Zn());var IA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,d=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);d--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(d){return{value:d,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var d=this.s.return;return d===void 0?Promise.resolve({value:f,done:!0}):o(d.apply(this.s,arguments))},throw:function(f){var d=this.s.return;return d===void 0?Promise.reject(f):o(d.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});dt(IA());dt(Zn());var BA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var i=typeof SuppressedError=="function"?SuppressedError:function(f,d){var h=Error();return h.name="SuppressedError",h.error=f,h.suppressed=d,h},s={},o=[];function u(f,d){if(d!=null){if(Object(d)!==d)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var h=d[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(h===void 0&&(h=d[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var y=h;if(typeof h!="function")throw new TypeError("Object is not disposable.");y&&(h=function(){try{y.call(d)}catch(v){return Promise.reject(v)}}),o.push({v:d,d:h,a:f})}else f&&o.push({d,a:f});return d}return{e:s,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var d,h=this.e,y=0;function p(){for(;d=o.pop();)try{if(!d.a&&y===1)return y=0,o.push(d),Promise.resolve().then(p);if(d.d){var _=d.d.call(d.v);if(d.a)return y|=2,Promise.resolve(_).then(p,v)}else y|=1}catch(x){return v(x)}if(y===1)return h!==s?Promise.reject(h):Promise.resolve();if(h!==s)throw h}function v(_){return h=h!==s?new i(_,h):_,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),L1=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(i,s){this.v=i,this.k=s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),UA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=L1();function i(s){return new n(s,0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),VA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=L1();function i(o){return function(){return new s(o.apply(this,arguments))}}function s(o){var u,f;function d(y,p){try{var v=o[y](p),_=v.value,x=_ instanceof n;Promise.resolve(x?_.v:_).then(function(w){if(x){var E=y==="return"?"return":"next";if(!_.k||w.done)return d(E,w);w=o[E](w).value}h(v.done?"return":"normal",w)},function(w){d("throw",w)})}catch(w){h("throw",w)}}function h(y,p){switch(y){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?d(u.key,u.arg):f=null}this._invoke=function(y,p){return new Promise(function(v,_){var x={key:y,arg:p,resolve:v,reject:_,next:null};f?f=f.next=x:(u=f=x,d(y,p))})},typeof o.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(o){return this._invoke("next",o)},s.prototype.throw=function(o){return this._invoke("throw",o)},s.prototype.return=function(o){return this._invoke("return",o)},t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});dt(BA());dt(UA());dt(VA());dt(Zn());var qA=Object.create,D1=Object.defineProperty,HA=Object.getOwnPropertyDescriptor,M1=Object.getOwnPropertyNames,GA=Object.getPrototypeOf,FA=Object.prototype.hasOwnProperty,zi=(e,t)=>function(){return t||(0,e[M1(e)[0]])((t={exports:{}}).exports,t),t.exports},$A=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=M1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!FA.call(e,f)&&f!==n&&D1(e,f,{get:(d=>t[d]).bind(null,f),enumerable:!(i=HA(t,f))||i.enumerable});return e},Ii=(e,t,n)=>(n=e!=null?qA(GA(e)):{},$A(t||!e||!e.__esModule?D1(n,"default",{value:e,enumerable:!0}):n,e)),P1=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),QA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=P1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),YA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=P1().default,i=QA();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),KA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=YA();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),tl=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=KA();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);u&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(o,h).enumerable})),f.push.apply(f,d)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(d){n(o,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(f,d))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),XA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,d=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);d--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(d){return{value:d,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var d=this.s.return;return d===void 0?Promise.resolve({value:f,done:!0}):o(d.apply(this.s,arguments))},throw:function(f){var d=this.s.return;return d===void 0?Promise.reject(f):o(d.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(i,s){if(i==null)return{};var o={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(s.includes(u))continue;o[u]=i[u]}return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),JA=zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=ZA();function i(s,o){if(s==null)return{};var u,f,d=n(s,o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(s);for(f=0;f<h.length;f++)u=h[f],o.includes(u)||{}.propertyIsEnumerable.call(s,u)&&(d[u]=s[u])}return d}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),mo=Ii(tl(),1),WA=Ii(XA(),1),eR=Ii(JA(),1);const tR=["cursor","direction"];function pf(e){return{path:e.path.join(".")}}function nR(e){return e.length>=3}function z1(e){return nR(e)?{type:"prefixed",prefix:e[0],path:e[1],args:e[2]}:{type:"unprefixed",prefix:void 0,path:e[0],args:e[1]}}function Lp(e,t,n){var i;const s=z1(e);let o=(i=s.args)===null||i===void 0?void 0:i.input;if(n){var u,f;o=(0,mo.default)((0,mo.default)((0,mo.default)({},(u=(f=s.args)===null||f===void 0?void 0:f.input)!==null&&u!==void 0?u:{}),n.pageParam!==void 0?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[s.path.join("."),o,t==null?void 0:t.trpc]}async function rR(e,t,n){const s=t.getQueryCache().build(t,{queryKey:n});s.setState({data:[],status:"success"});const o=[];var u=!1,f=!1,d;try{for(var h=(0,WA.default)(e),y;u=!(y=await h.next()).done;u=!1){const p=y.value;o.push(p),s.setState({data:[...o]})}}catch(p){f=!0,d=p}finally{try{u&&h.return!=null&&await h.return()}finally{if(f)throw d}}return o}function Lr(e){const t=Jm(()=>{const{input:n,type:i}=e,s=e.path.flatMap(o=>o.split("."));if(!n&&i==="any")return s.length?[s]:[];if(i==="infinite"&&Pi(n)&&("direction"in n||"cursor"in n)){const{cursor:o,direction:u}=n,f=(0,eR.default)(n,tR);return[s,{input:f,type:"infinite"}]}return[s,(0,mo.default)((0,mo.default)({},typeof n<"u"&&n!==Hr&&{input:n}),i&&i!=="any"&&{type:i})]});return e.prefix&&t.unshift([e.prefix]),t}function I1(e){const t=[e.path.flatMap(n=>n.split("."))];return e.prefix&&t.unshift([e.prefix]),t}function Dp(e){return V2(e)?e():e}var Ss=Ii(tl());function iR(e){var t;const{input:n,query:i,path:s,queryKey:o,opts:u}=e,f=n===Hr,d=async h=>{var y;const p=(0,Ss.default)((0,Ss.default)({},u),{},{trpc:(0,Ss.default)((0,Ss.default)({},u==null?void 0:u.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:h.signal}:{signal:null})});return await i(...Lp(o,p,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Ss.default)((0,Ss.default)({},u??{}),{},{queryKey:o,queryFn:f?Hr:d,initialPageParam:(t=u==null?void 0:u.initialCursor)!==null&&t!==void 0?t:n==null?void 0:n.cursor}),{trpc:pf({path:s})})}var sb=Ii(tl());function aR(e){var t;const{mutate:n,path:i,opts:s,overrides:o}=e,u=Dp(e.queryClient),f=I1({path:i,prefix:s==null?void 0:s.keyPrefix}),d=u.defaultMutationOptions(u.getMutationDefaults(f)),h=(t=o==null?void 0:o.onSuccess)!==null&&t!==void 0?t:p=>p.originalFn(),y=async p=>await n(...Lp([...f,{input:p}],s));return(0,sb.default)((0,sb.default)({},s),{},{mutationKey:f,mutationFn:y,onSuccess(...p){var v,_;return h({originalFn:()=>{var w,E,T;return(w=s==null||(E=s.onSuccess)===null||E===void 0?void 0:E.call(s,...p))!==null&&w!==void 0?w:d==null||(T=d.onSuccess)===null||T===void 0?void 0:T.call(d,...p)},queryClient:u,meta:(v=(_=s==null?void 0:s.meta)!==null&&_!==void 0?_:d==null?void 0:d.meta)!==null&&v!==void 0?v:{}})},trpc:pf({path:i})})}var Es=Ii(tl());function sR(e){const{input:t,query:n,path:i,queryKey:s,opts:o}=e,u=Dp(e.queryClient),f=t===Hr,d=async h=>{var y;const p=(0,Es.default)((0,Es.default)({},o),{},{trpc:(0,Es.default)((0,Es.default)({},o==null?void 0:o.trpc),!(o==null||(y=o.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:h.signal}:{signal:null})}),v=h.queryKey,_=await n(...Lp(v,p));return H2(_)?rR(_,u,v):_};return Object.assign((0,Es.default)((0,Es.default)({},o),{},{queryKey:s,queryFn:f?Hr:d}),{trpc:pf({path:i})})}var lb=Ii(tl(),1);const lR=e=>{var t;const{subscribe:n,path:i,queryKey:s,opts:o={}}=e,u=(t=z1(s))===null||t===void 0||(t=t.args)===null||t===void 0?void 0:t.input,f="enabled"in o?!!o.enabled:u!==Hr,d=h=>n(i.join("."),u??void 0,h);return(0,lb.default)((0,lb.default)({},o),{},{enabled:f,subscribe:d,queryKey:s,trpc:pf({path:i})})};var ws=Ii(tl(),1);function oR(e){const t=e.keyPrefix,n=i=>(s,o,u)=>"router"in e?Promise.resolve(Dp(e.ctx)).then(d=>rA({router:e.router,path:s,getRawInput:async()=>o,ctx:d,type:i,signal:void 0})):(e.client instanceof N1?e.client:zA(e.client))[i](s,o,u);return b1(({args:i,path:s})=>{const o=[...s],u=o.pop(),[f,d]=i;return{"~types":void 0,pathKey:()=>Lr({path:o,type:"any",prefix:t}),pathFilter:()=>(0,ws.default)((0,ws.default)({},f),{},{queryKey:Lr({path:o,type:"any",prefix:t})}),queryOptions:()=>sR({input:f,opts:d,path:o,queryClient:e.queryClient,queryKey:Lr({path:o,input:f,type:"query",prefix:t}),query:n("query")}),queryKey:()=>Lr({path:o,input:f,type:"query",prefix:t}),queryFilter:()=>(0,ws.default)((0,ws.default)({},d),{},{queryKey:Lr({path:o,input:f,type:"query",prefix:t})}),infiniteQueryOptions:()=>iR({input:f,opts:d,path:o,queryKey:Lr({path:o,input:f,type:"infinite",prefix:t}),query:n("query")}),infiniteQueryKey:()=>Lr({path:o,input:f,type:"infinite",prefix:t}),infiniteQueryFilter:()=>(0,ws.default)((0,ws.default)({},d),{},{queryKey:Lr({path:o,input:f,type:"infinite",prefix:t})}),mutationOptions:()=>{var y;return aR({opts:f,path:o,queryClient:e.queryClient,mutate:n("mutation"),overrides:(y=e.overrides)===null||y===void 0?void 0:y.mutations})},mutationKey:()=>I1({path:o,prefix:t}),subscriptionOptions:()=>lR({opts:d,path:o,queryKey:Lr({path:o,input:f,type:"any",prefix:t}),subscribe:n("subscription")})}[u]()})}function Os(){const t=new URLSearchParams(window.location.search).get("api");return t?t.replace(/\/$/,""):""}function uR(){const e=Os();if(e){const n=new URL(e);return`${n.protocol==="https:"?"wss:":"ws:"}//${n.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function cR(){const e=Os();return e?`${e}/trpc`:"/trpc"}function fR(){const e=Os();return e?`${e}/api/health`:"/api/health"}const B1=new jC({defaultOptions:{queries:{staleTime:60*1e3}}}),ep=3e3,U1=NA({url:uR(),retryDelayMs:()=>ep}),_t=PA({links:[U2({condition:e=>e.type==="subscription",true:jA({client:U1}),false:vA({url:cR()})})]}),cm=oR({client:_t,queryClient:B1});function dR(e){const t=new MutationObserver(n=>{for(const i of n)i.attributeName==="class"&&e()});return t.observe(document.documentElement,{attributes:!0}),()=>t.disconnect()}function hR(){return document.documentElement.classList.contains("dark")}function mR(){return!1}function V1(){return Y.useSyncExternalStore(dR,hR,mR)}/**
|
|
67
|
-
* @license lucide-react v0.472.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const pR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
|
|
72
|
-
* @license lucide-react v0.472.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var gR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
77
|
-
* @license lucide-react v0.472.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const yR=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:u,...f},d)=>Y.createElement("svg",{ref:d,...gR,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:q1("lucide",s),...f},[...u.map(([h,y])=>Y.createElement(h,y)),...Array.isArray(o)?o:[o]]));/**
|
|
82
|
-
* @license lucide-react v0.472.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Me=(e,t)=>{const n=Y.forwardRef(({className:i,...s},o)=>Y.createElement(yR,{ref:o,iconNode:t,className:q1(`lucide-${pR(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
|
|
87
|
-
* @license lucide-react v0.472.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const vR=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Vr=Me("Archive",vR);/**
|
|
92
|
-
* @license lucide-react v0.472.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const _R=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mp=Me("ArrowLeft",_R);/**
|
|
97
|
-
* @license lucide-react v0.472.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const bR=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ob=Me("ArrowUp",bR);/**
|
|
102
|
-
* @license lucide-react v0.472.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const xR=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],SR=Me("Bot",xR);/**
|
|
107
|
-
* @license lucide-react v0.472.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const ER=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vc=Me("Check",ER);/**
|
|
112
|
-
* @license lucide-react v0.472.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const wR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],TR=Me("ChevronDown",wR);/**
|
|
117
|
-
* @license lucide-react v0.472.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const CR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Pp=Me("ChevronRight",CR);/**
|
|
122
|
-
* @license lucide-react v0.472.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const kR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],AR=Me("CircleAlert",kR);/**
|
|
127
|
-
* @license lucide-react v0.472.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const RR=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ca=Me("CircleCheckBig",RR);/**
|
|
132
|
-
* @license lucide-react v0.472.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const OR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],tp=Me("CircleX",OR);/**
|
|
137
|
-
* @license lucide-react v0.472.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const NR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jR=Me("Circle",NR);/**
|
|
142
|
-
* @license lucide-react v0.472.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const LR=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],H1=Me("Copy",LR);/**
|
|
147
|
-
* @license lucide-react v0.472.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const DR=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],MR=Me("Download",DR);/**
|
|
152
|
-
* @license lucide-react v0.472.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const PR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ks=Me("FileText",PR);/**
|
|
157
|
-
* @license lucide-react v0.472.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const zR=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],G1=Me("FolderOpen",zR);/**
|
|
162
|
-
* @license lucide-react v0.472.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const IR=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],BR=Me("FolderPlus",IR);/**
|
|
167
|
-
* @license lucide-react v0.472.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const UR=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],VR=Me("Folder",UR);/**
|
|
172
|
-
* @license lucide-react v0.472.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const qR=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],zp=Me("GitBranch",qR);/**
|
|
177
|
-
* @license lucide-react v0.472.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const HR=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],GR=Me("LayoutDashboard",HR);/**
|
|
182
|
-
* @license lucide-react v0.472.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const FR=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],$R=Me("ListTodo",FR);/**
|
|
187
|
-
* @license lucide-react v0.472.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const QR=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],ub=Me("List",QR);/**
|
|
192
|
-
* @license lucide-react v0.472.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const YR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qc=Me("LoaderCircle",YR);/**
|
|
197
|
-
* @license lucide-react v0.472.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const KR=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],XR=Me("Menu",KR);/**
|
|
202
|
-
* @license lucide-react v0.472.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const ZR=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],JR=Me("Monitor",ZR);/**
|
|
207
|
-
* @license lucide-react v0.472.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const WR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],eO=Me("Moon",WR);/**
|
|
212
|
-
* @license lucide-react v0.472.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const tO=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],nO=Me("Package",tO);/**
|
|
217
|
-
* @license lucide-react v0.472.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const rO=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],iO=Me("Pen",rO);/**
|
|
222
|
-
* @license lucide-react v0.472.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const aO=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],sO=Me("RefreshCw",aO);/**
|
|
227
|
-
* @license lucide-react v0.472.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const lO=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],oO=Me("Save",lO);/**
|
|
232
|
-
* @license lucide-react v0.472.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const uO=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],cO=Me("Settings",uO);/**
|
|
237
|
-
* @license lucide-react v0.472.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const fO=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],dO=Me("Sun",fO);/**
|
|
242
|
-
* @license lucide-react v0.472.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const hO=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],F1=Me("Terminal",hO);/**
|
|
247
|
-
* @license lucide-react v0.472.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const mO=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pO=Me("TriangleAlert",mO);/**
|
|
252
|
-
* @license lucide-react v0.472.0 - ISC
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the ISC license.
|
|
255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const gO=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$1=Me("WifiOff",gO);/**
|
|
257
|
-
* @license lucide-react v0.472.0 - ISC
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the ISC license.
|
|
260
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const yO=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Q1=Me("Wifi",yO);/**
|
|
262
|
-
* @license lucide-react v0.472.0 - ISC
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the ISC license.
|
|
265
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const vO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gf=Me("X",vO),Hc=[{to:"/",icon:GR,label:"Dashboard"},{to:"/project",icon:VR,label:"Project"},{to:"/specs",icon:Ks,label:"Specs"},{to:"/changes",icon:zp,label:"Changes"},{to:"/archive",icon:Vr,label:"Archive"}],Ns={to:"/settings",icon:cO,label:"Settings"};function _O(){const e=V1();return b.jsxs("nav",{className:"desktop-sidebar w-64 border-r border-border bg-muted/30 p-4 flex flex-col shrink-0",children:[b.jsx("div",{className:"mb-6",children:b.jsx("img",{src:e?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-6"})}),b.jsx("ul",{className:"space-y-1 flex-1",children:Hc.map(t=>b.jsx("li",{children:b.jsxs(ut,{to:t.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[b.jsx(t.icon,{className:"w-4 h-4"}),t.label]})},t.to))}),b.jsx("div",{className:"pt-4 border-t border-border",children:b.jsxs(ut,{to:Ns.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[b.jsx(Ns.icon,{className:"w-4 h-4"}),Ns.label]})})]})}function yf(){const[e,t]=Y.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null,wsState:"idle",reconnectCountdown:null}),n=Y.useRef(null),i=Y.useRef(null),s=Y.useCallback(()=>{i.current=Date.now(),n.current&&clearInterval(n.current),t(u=>({...u,reconnectCountdown:Math.ceil(ep/1e3)})),n.current=setInterval(()=>{if(i.current===null)return;const u=Date.now()-i.current,f=Math.max(0,Math.ceil((ep-u)/1e3));t(d=>({...d,reconnectCountdown:f>0?f:null})),f<=0&&n.current&&(clearInterval(n.current),n.current=null,i.current=null)},200)},[]),o=Y.useCallback(()=>{n.current&&(clearInterval(n.current),n.current=null),i.current=null,t(u=>({...u,reconnectCountdown:null}))},[]);return Y.useEffect(()=>{const u=U1.connectionState.subscribe({next:f=>{t(d=>({...d,wsState:f.state})),f.state==="connecting"&&f.error?s():o()}});return()=>{u.unsubscribe(),o()}},[s,o]),Y.useEffect(()=>{let u=!0,f;async function d(){try{const y=await fetch(fR());if(!y.ok)throw new Error(`HTTP ${y.status}`);const p=await y.json();if(u){const v=p.projectDir,_=v.split("/").pop()||v;t(x=>({...x,connected:!0,projectDir:v,dirName:_,watcherEnabled:p.watcherEnabled,error:null})),document.title=`${_} - OpenSpec UI`}}catch(y){u&&(t(p=>({...p,connected:!1,error:y instanceof Error?y.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",f=setTimeout(d,3e3))}}d();const h=setInterval(()=>{u&&d()},3e4);return()=>{u=!1,clearInterval(h),clearTimeout(f)}},[]),e}function bO(){return Y.useCallback(()=>{window.location.reload()},[])}function xO({path:e,maxWidth:t=300,duration:n=10,gap:i=20,className:s=""}){const[o,u]=Y.useState(!1),[f,d]=Y.useState(!1),h=Y.useRef(null),y=Y.useRef(null);Y.useEffect(()=>{const _=()=>{if(h.current&&y.current){const x=h.current.offsetWidth,w=y.current.scrollWidth;d(w>x)}};return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[e]);const p=Y.useCallback(async()=>{try{await navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),2e3)}catch(_){console.error("Failed to copy path:",_)}},[e]),v=typeof t=="number"?`${t}px`:t;return b.jsxs("button",{onClick:p,className:`group flex items-center gap-1.5 cursor-pointer hover:bg-muted/50 rounded transition-colors ${s}`,title:`${e}
|
|
267
|
-
|
|
268
|
-
Click to copy`,children:[b.jsx("div",{ref:h,className:"overflow-hidden whitespace-nowrap relative",style:{maxWidth:v},children:b.jsx("div",{ref:y,"data-content":e,className:`inline-block relative ${f?"animate-marquee group-hover:[animation-play-state:paused]":""}`,style:f?{"--marquee-duration":`${n}s`,"--marquee-gap":`${i}px`}:void 0,children:e})}),b.jsx("span",{className:"flex-shrink-0 text-muted-foreground group-hover:text-foreground transition-colors",children:o?b.jsx(Vc,{className:"w-3.5 h-3.5 text-green-500"}):b.jsx(H1,{className:"w-3.5 h-3.5"})})]})}function Y1(){const e=yf(),t=bO();return e.connected?b.jsxs("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:[b.jsx(Q1,{className:"w-3.5 h-3.5 text-green-500"}),b.jsx("span",{className:"status-text text-green-600",children:"Live"})]}):b.jsxs("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:[b.jsx($1,{className:"w-3.5 h-3.5 text-red-500"}),b.jsx("span",{className:"status-text text-red-600",children:"Offline"}),e.reconnectCountdown!==null&&b.jsxs("button",{onClick:t,className:"flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors cursor-pointer",title:"Click to reconnect now",children:[b.jsxs("span",{className:"text-xs",children:["(",e.reconnectCountdown,"s)"]}),b.jsx(sO,{className:"w-3 h-3"})]})]})}function SO(){const e=yf();return b.jsxs("div",{className:"desktop-status h-8 border-t border-border bg-muted/30 px-4 flex items-center justify-between text-xs text-muted-foreground",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(Y1,{}),e.projectDir&&b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(G1,{className:"w-3.5 h-3.5 flex-shrink-0"}),b.jsx(xO,{path:e.projectDir,maxWidth:300,duration:12,className:"text-xs"})]})]}),e.connected&&b.jsx("div",{className:"flex items-center gap-1.5",children:e.watcherEnabled?b.jsx("span",{className:"text-green-600",children:"Watching for changes"}):b.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}function EO(){const[e,t]=Y.useState(!1),n=V1(),s=Qt().location.pathname,o=yf(),u=Hc.find(d=>d.to==="/"?s==="/":s.startsWith(d.to)),f=(u==null?void 0:u.label)??o.dirName??"OpenSpec";return b.jsxs(b.Fragment,{children:[b.jsxs("header",{className:"mobile-header h-12 border-b border-border bg-background px-4 flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("button",{onClick:()=>t(!0),className:"p-1.5 -ml-1.5 hover:bg-muted rounded-md","aria-label":"Open menu",children:b.jsx(XR,{className:"w-5 h-5"})}),b.jsx("span",{className:"font-semibold",children:f})]}),b.jsx(Y1,{})]}),e&&b.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[b.jsx("div",{className:"absolute inset-0 bg-black/50 animate-in fade-in duration-200",onClick:()=>t(!1)}),b.jsxs("nav",{className:"relative w-64 max-w-[80vw] bg-background border-r border-border p-4 flex flex-col animate-in slide-in-from-left duration-200",children:[b.jsxs("div",{className:"flex items-center justify-between mb-6",children:[b.jsx("img",{src:n?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-5"}),b.jsx("button",{onClick:()=>t(!1),className:"p-1.5 hover:bg-muted rounded-md","aria-label":"Close menu",children:b.jsx(gf,{className:"w-5 h-5"})})]}),b.jsx("ul",{className:"space-y-1 flex-1",children:Hc.map(d=>b.jsx("li",{children:b.jsxs(ut,{to:d.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[b.jsx(d.icon,{className:"w-4 h-4"}),d.label]})},d.to))}),b.jsx("div",{className:"pt-4 border-t border-border",children:b.jsxs(ut,{to:Ns.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[b.jsx(Ns.icon,{className:"w-4 h-4"}),Ns.label]})})]})]})]})}function wO(){return b.jsx("nav",{className:"mobile-tabbar h-14 border-t border-border bg-background flex items-stretch",children:Hc.slice(0,5).map(e=>b.jsxs(ut,{to:e.to,className:"flex-1 flex flex-col items-center justify-center gap-0.5 text-muted-foreground hover:text-foreground [&.active]:text-primary",children:[b.jsx(e.icon,{className:"w-5 h-5"}),b.jsx("span",{className:"text-[10px]",children:e.label})]},e.to))})}const K1=Y.createContext(null);function TO({children:e}){const[t,n]=Y.useState({open:!1,changeId:"",changeName:""}),i=Y.useCallback((o,u)=>{n({open:!0,changeId:o,changeName:u})},[]),s=Y.useCallback(()=>{n(o=>({...o,open:!1}))},[]);return b.jsx(K1.Provider,{value:{state:t,openArchiveModal:i,closeArchiveModal:s},children:e})}function X1(){const e=Y.useContext(K1);if(!e)throw new Error("useArchiveModal must be used within ArchiveModalProvider");return e}function np({title:e,open:t,onClose:n,onSuccess:i,successConfig:s,type:o,initOptions:u,archiveOptions:f}){const[d,h]=Y.useState([]),[y,p]=Y.useState("idle"),[v,_]=Y.useState(null),x=Y.useRef(null),w=Y.useRef(null);Y.useEffect(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight)},[d]);const E=Y.useCallback(I=>{I.type==="command"&&I.data?h(R=>[...R,`\x1B[34m$ ${I.data}\x1B[0m`]):I.type==="stdout"&&I.data?h(R=>[...R,I.data]):I.type==="stderr"&&I.data?h(R=>[...R,`\x1B[31m${I.data}\x1B[0m`]):I.type==="exit"&&(_(I.exitCode??null),p(I.exitCode===0?"success":"error"))},[]),T=Y.useMemo(()=>u?JSON.stringify(u):null,[u==null?void 0:u.tools]),A=Y.useMemo(()=>f?JSON.stringify(f):null,[f==null?void 0:f.changeId,f==null?void 0:f.skipSpecs,f==null?void 0:f.noValidate]);Y.useEffect(()=>{if(t)return h([]),p("running"),_(null),o==="init"&&u?w.current=_t.cli.initStream.subscribe({tools:u.tools},{onData:E,onError:I=>{h(R=>[...R,`\x1B[31mError: ${I.message}\x1B[0m`]),p("error")}}):o==="archive"&&f?w.current=_t.cli.archiveStream.subscribe({changeId:f.changeId,skipSpecs:f.skipSpecs,noValidate:f.noValidate},{onData:E,onError:I=>{h(R=>[...R,`\x1B[31mError: ${I.message}\x1B[0m`]),p("error")}}):o==="install-global"&&(w.current=_t.cli.installGlobalCliStream.subscribe(void 0,{onData:E,onError:I=>{h(R=>[...R,`\x1B[31mError: ${I.message}\x1B[0m`]),p("error")}})),()=>{var I;(I=w.current)==null||I.unsubscribe(),w.current=null}},[t,o,T,A,E]),Y.useEffect(()=>{y==="success"&&!s&&(i==null||i())},[y,i,s]);const N=()=>{var I;(I=w.current)==null||I.unsubscribe(),w.current=null,n()};if(!t)return null;const P=y==="success"&&s;return b.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[b.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:N}),b.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-background border border-border rounded-lg shadow-xl",children:[b.jsxs("div",{className:`flex items-center justify-between px-4 py-3 border-b ${P?"border-green-500/30 bg-green-500/5":"border-border"}`,children:[b.jsxs("div",{className:"flex items-center gap-2",children:[P?b.jsx(Ca,{className:"w-5 h-5 text-green-500"}):b.jsx(F1,{className:"w-5 h-5 text-muted-foreground"}),b.jsx("h2",{className:"font-semibold",children:P?s.title:e}),y==="running"&&b.jsx(qc,{className:"w-4 h-4 animate-spin text-primary"}),y==="success"&&!s&&b.jsx(Ca,{className:"w-4 h-4 text-green-500"}),y==="error"&&b.jsx(tp,{className:"w-4 h-4 text-red-500"})]}),b.jsx("button",{onClick:N,className:"p-1 hover:bg-muted rounded",children:b.jsx(gf,{className:"w-5 h-5"})})]}),b.jsxs("div",{ref:x,className:`overflow-auto bg-zinc-900 text-zinc-100 font-mono text-sm p-4 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-zinc-700 ${P?"h-48":"h-80"}`,children:[d.length===0&&y==="running"&&b.jsx("span",{className:"text-zinc-500",children:"Starting..."}),d.map((I,R)=>b.jsx("div",{className:"whitespace-pre-wrap break-all",children:CO(I)},R)),y==="success"&&b.jsxs("div",{className:"mt-2 text-green-400",children:["Process exited with code ",v]}),y==="error"&&v!==null&&b.jsxs("div",{className:"mt-2 text-red-400",children:["Process exited with code ",v]})]}),P&&s.description&&b.jsx("div",{className:"px-4 py-3 border-t border-border bg-muted/30",children:b.jsxs("div",{className:"flex items-start gap-3",children:[b.jsx(nO,{className:"w-5 h-5 text-green-500 mt-0.5 flex-shrink-0"}),b.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]})}),b.jsx("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-border",children:P?s.actions.map((I,R)=>b.jsx("button",{onClick:I.onClick,className:I.primary?"px-4 py-2 bg-primary text-primary-foreground hover:opacity-90 rounded-md":"px-4 py-2 bg-muted hover:bg-muted/80 rounded-md",children:I.label},R)):b.jsx("button",{onClick:N,className:"px-4 py-2 bg-muted hover:bg-muted/80 rounded-md",children:y==="running"?"Cancel":"Close"})})]})]})}function CO(e){const t=[];let n=0,i=null;const s=/\x1b\[(\d+)m/g;let o;for(;(o=s.exec(e))!==null;){if(o.index>n){const f=e.slice(n,o.index);t.push(i?b.jsx("span",{className:i,children:f},n):f)}const u=parseInt(o[1],10);u===0?i=null:u===31?i="text-red-400":u===32?i="text-green-400":u===33?i="text-yellow-400":u===34&&(i="text-blue-400"),n=o.index+o[0].length}if(n<e.length){const u=e.slice(n);t.push(i?b.jsx("span",{className:i,children:u},n):u)}return t.length>0?t:e}function kO(){const e=el(),{state:t,closeArchiveModal:n}=X1(),{open:i,changeId:s,changeName:o}=t,[u,f]=Y.useState("options"),[d,h]=Y.useState(!1),[y,p]=Y.useState(!1);Y.useEffect(()=>{i&&(f("options"),h(!1),p(!1))},[i]);const v=Y.useMemo(()=>s?`${new Date().toISOString().split("T")[0]}-${s}`:"",[s]),_=Y.useCallback(()=>{f("options"),h(!1),p(!1),n()},[n]),x=Y.useCallback(()=>{f("terminal")},[]),w=Y.useMemo(()=>({title:"Archive Successful",description:`"${o}" has been archived as ${v}`,actions:[{label:"Close",onClick:_},{label:"View Archive",onClick:()=>{_(),e({to:"/archive/$changeId",params:{changeId:v}})},primary:!0}]}),[o,v,e,_]);return!i||!s?null:u==="terminal"?b.jsx(np,{title:`Archive: ${o}`,open:!0,onClose:_,successConfig:w,type:"archive",archiveOptions:{changeId:s,skipSpecs:d,noValidate:y}}):b.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[b.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:_}),b.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-background border border-border rounded-lg shadow-xl",children:[b.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Vr,{className:"w-5 h-5 text-red-500"}),b.jsx("h2",{className:"font-semibold",children:"Archive Change"})]}),b.jsx("button",{onClick:_,className:"p-1 hover:bg-muted rounded",children:b.jsx(gf,{className:"w-5 h-5"})})]}),b.jsxs("div",{className:"p-4 space-y-4",children:[b.jsxs("div",{className:"flex items-start gap-3 p-3 bg-amber-500/10 border border-amber-500/30 rounded-lg",children:[b.jsx(pO,{className:"w-5 h-5 text-amber-500 flex-shrink-0 mt-0.5"}),b.jsxs("div",{className:"text-sm",children:[b.jsx("p",{className:"font-medium text-amber-600 dark:text-amber-400",children:"This action will archive the change"}),b.jsx("p",{className:"text-muted-foreground mt-1",children:"Archiving moves the change to the archive directory and updates affected specs."})]})]}),b.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg",children:[b.jsx("p",{className:"text-sm text-muted-foreground",children:"Change to archive:"}),b.jsx("p",{className:"font-medium",children:o}),b.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["ID: ",s]})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("p",{className:"text-sm font-medium",children:"Options"}),b.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:d,onChange:E=>h(E.target.checked),className:"mt-1 w-4 h-4 rounded border-border"}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-medium",children:"Skip specs update"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:"Don't update spec files with delta changes (--skip-specs)"})]})]}),b.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:y,onChange:E=>p(E.target.checked),className:"mt-1 w-4 h-4 rounded border-border"}),b.jsxs("div",{children:[b.jsx("p",{className:"text-sm font-medium",children:"Skip validation"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:"Don't validate the change before archiving (--no-validate)"})]})]})]})]}),b.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-border",children:[b.jsx("button",{onClick:_,className:"px-4 py-2 bg-muted hover:bg-muted/80 rounded-md",children:"Cancel"}),b.jsxs("button",{onClick:x,className:"flex items-center gap-2 px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-md",children:[b.jsx(Vr,{className:"w-4 h-4"}),"Archive"]})]})]})]})}function AO(){return b.jsxs("div",{className:"fixed inset-0 @container/app",style:{containerName:"app"},children:[b.jsxs("div",{className:"app-layout h-full",children:[b.jsx(_O,{}),b.jsxs("div",{className:"app-body flex flex-col flex-1 min-h-0",children:[b.jsx(EO,{}),b.jsx("main",{className:"main-content flex flex-col",children:b.jsx(c1,{})}),b.jsx(wO,{}),b.jsx(SO,{})]})]}),b.jsx(kO,{})]})}function Bn(e,t=[]){const[n,i]=Y.useState({data:void 0,isLoading:!0,error:null}),s=Y.useRef(null);return Y.useEffect(()=>{var u;(u=s.current)==null||u.unsubscribe(),i(f=>({...f,isLoading:!0,error:null}));const o=e({onData:f=>{i({data:f,isLoading:!1,error:null})},onError:f=>{console.error("Subscription error:",f),i(d=>({...d,isLoading:!1,error:f}))}});return s.current=o,()=>{o.unsubscribe()}},t),n}function RO(){return Bn(e=>_t.dashboard.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function OO(){return Bn(e=>_t.dashboard.subscribeInitialized.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function NO(){return Bn(e=>_t.spec.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function jO(e){return Bn(t=>_t.spec.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function LO(){return Bn(e=>_t.change.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function DO(e){return Bn(t=>_t.change.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function MO(){return Bn(e=>_t.archive.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function PO(e){return Bn(t=>_t.archive.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function zO(){return Bn(e=>_t.project.subscribeProjectMd.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function IO(){return Bn(e=>_t.project.subscribeAgentsMd.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function BO(){return Bn(e=>_t.config.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function UO(){return Bn(e=>_t.cli.subscribeConfiguredTools.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function VO(){const{data:e,isLoading:t,error:n}=RO(),{data:i}=OO(),s=Y.useMemo(()=>e!=null&&e.specs?[...e.specs].sort((u,f)=>f.requirements.length-u.requirements.length):[],[e==null?void 0:e.specs]);if(t)return b.jsx("div",{className:"animate-pulse",children:"Loading dashboard..."});if(n)return b.jsxs("div",{className:"text-destructive flex items-center gap-2",children:[b.jsx(AR,{className:"w-5 h-5"}),"Error loading dashboard: ",n.message]});if(!i)return b.jsxs("div",{className:"text-center py-12",children:[b.jsx("h2",{className:"text-2xl font-bold mb-4",children:"OpenSpec Not Initialized"}),b.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),b.jsx(ut,{to:"/settings",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Initialize OpenSpec"})]});const{summary:o}=e;return b.jsxs("div",{className:"space-y-6",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[b.jsx(dc,{icon:b.jsx(Ks,{className:"w-5 h-5"}),label:"Specifications",value:o.specCount,sublabel:`${o.requirementCount} requirements`}),b.jsx(dc,{icon:b.jsx(zp,{className:"w-5 h-5"}),label:"Active Changes",value:o.activeChangeCount,sublabel:"in progress"}),b.jsx(dc,{icon:b.jsx(Vr,{className:"w-5 h-5"}),label:"Completed",value:o.archivedChangeCount,sublabel:"archived"}),b.jsx(dc,{icon:b.jsx(Ca,{className:"w-5 h-5"}),label:"Task Progress",value:`${o.completedTasks}/${o.totalTasks}`,sublabel:`${o.progressPercent}% complete`})]}),b.jsxs("section",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Active Changes"}),e.changes.length>0&&b.jsx(ut,{to:"/changes",className:"text-sm text-primary hover:underline",children:"View all"})]}),b.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e.changes.map(u=>{const f=u.progress.total>0?Math.round(u.progress.completed/u.progress.total*100):0;return b.jsxs(ut,{to:"/changes/$changeId",params:{changeId:u.id},className:"block p-4 hover:bg-muted/50",children:[b.jsxs("div",{className:"flex items-center justify-between mb-2",children:[b.jsx("div",{className:"font-medium",children:u.name}),b.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.progress.completed,"/",u.progress.total," tasks"]})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("div",{className:"flex-1 bg-muted rounded-full h-2",children:b.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),b.jsxs("span",{className:"text-sm font-medium w-12 text-right",children:[f,"%"]})]})]},u.id)}),e.changes.length===0&&b.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/changes/"})]})]})]}),b.jsxs("section",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Specifications"}),s.length>0&&b.jsx(ut,{to:"/specs",className:"text-sm text-primary hover:underline",children:"View all"})]}),b.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[s.map(u=>b.jsxs(ut,{to:"/specs/$specId",params:{specId:u.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Ks,{className:"w-4 h-4 text-muted-foreground"}),b.jsx("span",{className:"font-medium",children:u.name})]}),b.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.requirements.length," requirement",u.requirements.length!==1?"s":""]})]},u.id)),s.length===0&&b.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs yet. Create one in ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/specs/"})]})]})]})]})}function dc({icon:e,label:t,value:n,sublabel:i}){return b.jsxs("div",{className:"border border-border rounded-lg p-4",children:[b.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e,b.jsx("span",{className:"text-sm",children:t})]}),b.jsx("div",{className:"text-2xl font-bold",children:n}),b.jsx("div",{className:"text-sm text-muted-foreground",children:i})]})}function Ip(e){if(!e)return"";const n=Date.now()-e,i=Math.floor(n/1e3),s=Math.floor(i/60),o=Math.floor(s/60),u=Math.floor(o/24),f=Math.floor(u/7),d=Math.floor(u/30),h=Math.floor(u/365);return i<60?"just now":s<60?`${s}m ago`:o<24?`${o}h ago`:u<7?`${u}d ago`:f<4?`${f}w ago`:d<12?`${d}mo ago`:`${h}y ago`}function qO(){const{data:e,isLoading:t}=NO();return t?b.jsx("div",{className:"animate-pulse",children:"Loading specs..."}):b.jsxs("div",{className:"space-y-6",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Specifications"}),b.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>b.jsxs(ut,{to:"/specs/$specId",params:{specId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Ks,{className:"w-5 h-5 text-muted-foreground"}),b.jsxs("div",{children:[b.jsx("div",{className:"font-medium",children:n.name}),b.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&b.jsxs(b.Fragment,{children:[" · ",Ip(n.updatedAt)]})]})]})]}),b.jsx(Pp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&b.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs found. Create a spec in ",b.jsx("code",{children:"openspec/specs/"})]})]})]})}function Z1(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const HO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FO={};function cb(e,t){return(FO.jsx?GO:HO).test(e)}const $O=/[ \t\n\f\r]/g;function vf(e){return typeof e=="object"?e.type==="text"?fb(e.value):!1:fb(e)}function fb(e){return e.replace($O,"")===""}class Po{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Po.prototype.normal={};Po.prototype.property={};Po.prototype.space=void 0;function J1(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Po(n,i,t)}function rp(e){return e.toLowerCase()}class ln{constructor(t,n){this.attribute=n,this.property=t}}ln.prototype.attribute="";ln.prototype.booleanish=!1;ln.prototype.boolean=!1;ln.prototype.commaOrSpaceSeparated=!1;ln.prototype.commaSeparated=!1;ln.prototype.defined=!1;ln.prototype.mustUseProperty=!1;ln.prototype.number=!1;ln.prototype.overloadedBoolean=!1;ln.prototype.property="";ln.prototype.spaceSeparated=!1;ln.prototype.space=void 0;let QO=0;const ke=Oa(),yt=Oa(),ip=Oa(),se=Oa(),nt=Oa(),js=Oa(),vn=Oa();function Oa(){return 2**++QO}const ap=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:yt,commaOrSpaceSeparated:vn,commaSeparated:js,number:se,overloadedBoolean:ip,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),fm=Object.keys(ap);class Bp extends ln{constructor(t,n,i,s){let o=-1;if(super(t,n),db(this,"space",s),typeof i=="number")for(;++o<fm.length;){const u=fm[o];db(this,fm[o],(i&ap[u])===ap[u])}}}Bp.prototype.defined=!0;function db(e,t,n){n&&(e[t]=n)}function nl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const o=new Bp(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[rp(i)]=i,n[rp(o.attribute)]=i}return new Po(t,n,e.space)}const W1=nl({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:se,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:yt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function eS(e,t){return t in e?e[t]:t}function tS(e,t){return eS(e,t.toLowerCase())}const YO=nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:js,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:nt,autoFocus:ke,autoPlay:ke,blocking:nt,capture:null,charSet:null,checked:ke,cite:null,className:nt,cols:se,colSpan:null,content:null,contentEditable:yt,controls:ke,controlsList:nt,coords:se|js,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:ip,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:nt,height:se,hidden:ip,high:se,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:nt,itemRef:nt,itemScope:ke,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,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:ke,optimum:se,pattern:null,ping:nt,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:nt,required:ke,reversed:ke,rows:se,rowSpan:se,sandbox:nt,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:yt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:tS}),KO=nl({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:vn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:nt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:js,g2:js,glyphName:js,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:eS}),nS=nl({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()}}),rS=nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tS}),iS=nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),XO={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"},ZO=/[A-Z]/g,hb=/-[a-z]/g,JO=/^data[-\w.:]+$/i;function aS(e,t){const n=rp(t);let i=t,s=ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&JO.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hb,eN);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hb.test(o)){let u=o.replace(ZO,WO);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=Bp}return new s(i,t)}function WO(e){return"-"+e.toLowerCase()}function eN(e){return e.charAt(1).toUpperCase()}const sS=J1([W1,YO,nS,rS,iS],"html"),zo=J1([W1,KO,nS,rS,iS],"svg");function lS(e){return e.join(" ").trim()}var Ts={},dm,mb;function tN(){if(mb)return dm;mb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
269
|
-
`,h="/",y="*",p="",v="comment",_="declaration";function x(E,T){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];T=T||{};var A=1,N=1;function P(oe){var ae=oe.match(t);ae&&(A+=ae.length);var q=oe.lastIndexOf(d);N=~q?oe.length-q:N+oe.length}function I(){var oe={line:A,column:N};return function(ae){return ae.position=new R(oe),ee(),ae}}function R(oe){this.start=oe,this.end={line:A,column:N},this.source=T.source}R.prototype.content=E;function U(oe){var ae=new Error(T.source+":"+A+":"+N+": "+oe);if(ae.reason=oe,ae.filename=T.source,ae.line=A,ae.column=N,ae.source=E,!T.silent)throw ae}function K(oe){var ae=oe.exec(E);if(ae){var q=ae[0];return P(q),E=E.slice(q.length),ae}}function ee(){K(n)}function j(oe){var ae;for(oe=oe||[];ae=Q();)ae!==!1&&oe.push(ae);return oe}function Q(){var oe=I();if(!(h!=E.charAt(0)||y!=E.charAt(1))){for(var ae=2;p!=E.charAt(ae)&&(y!=E.charAt(ae)||h!=E.charAt(ae+1));)++ae;if(ae+=2,p===E.charAt(ae-1))return U("End of comment missing");var q=E.slice(2,ae-2);return N+=2,P(q),E=E.slice(ae),N+=2,oe({type:v,comment:q})}}function ie(){var oe=I(),ae=K(i);if(ae){if(Q(),!K(s))return U("property missing ':'");var q=K(o),re=oe({type:_,property:w(ae[0].replace(e,p)),value:q?w(q[0].replace(e,p)):p});return K(u),re}}function de(){var oe=[];j(oe);for(var ae;ae=ie();)ae!==!1&&(oe.push(ae),j(oe));return oe}return ee(),de()}function w(E){return E?E.replace(f,p):p}return dm=x,dm}var pb;function nN(){if(pb)return Ts;pb=1;var e=Ts&&Ts.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=n;const t=e(tN());function n(i,s){let o=null;if(!i||typeof i!="string")return o;const u=(0,t.default)(i),f=typeof s=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:y}=d;f?s(h,y,d):y&&(o=o||{},o[h]=y)}),o}return Ts}var to={},gb;function rN(){if(gb)return to;gb=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(h){return!h||n.test(h)||e.test(h)},u=function(h,y){return y.toUpperCase()},f=function(h,y){return"".concat(y,"-")},d=function(h,y){return y===void 0&&(y={}),o(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(s,f):h=h.replace(i,f),h.replace(t,u))};return to.camelCase=d,to}var no,yb;function iN(){if(yb)return no;yb=1;var e=no&&no.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(nN()),n=rN();function i(s,o){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(f,d){f&&d&&(u[(0,n.camelCase)(f,o)]=d)}),u}return i.default=i,no=i,no}var aN=iN();const sN=Ep(aN),oS=uS("end"),Up=uS("start");function uS(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function lN(e){const t=Up(e),n=oS(e);if(t&&n)return{start:t,end:n}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vb(e.position):"start"in e||"end"in e?vb(e):"line"in e||"column"in e?sp(e):""}function sp(e){return _b(e&&e.line)+":"+_b(e&&e.column)}function vb(e){return sp(e&&e.start)+"-"+sp(e&&e.end)}function _b(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(u=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?o.ruleId=i:(o.source=i.slice(0,d),o.ruleId=i.slice(d+1))}if(!o.place&&o.ancestors&&o.ancestors){const d=o.ancestors[o.ancestors.length-1];d&&(o.place=d.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=po(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Vp={}.hasOwnProperty,oN=new Map,uN=/[A-Z]/g,cN=new Set(["table","tbody","thead","tfoot","tr"]),fN=new Set(["td","th"]),cS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=bN(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");i=_N(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?zo:sS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=fS(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function fS(e,t,n){if(t.type==="element")return hN(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mN(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gN(e,t,n);if(t.type==="mdxjsEsm")return pN(e,t);if(t.type==="root")return yN(e,t,n);if(t.type==="text")return vN(e,t)}function hN(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=zo,e.schema=s),e.ancestors.push(t);const o=hS(e,t.tagName,!1),u=xN(e,t);let f=Hp(e,t);return cN.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!vf(d):!0})),dS(e,u,o,t),qp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function mN(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}So(e,t.position)}function pN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);So(e,t.position)}function gN(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=zo,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:hS(e,t.name,!0),u=SN(e,t),f=Hp(e,t);return dS(e,u,o,t),qp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function yN(e,t,n){const i={};return qp(i,Hp(e,t)),e.create(t,e.Fragment,i,n)}function vN(e,t){return t.value}function dS(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function qp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _N(e,t,n){return i;function i(s,o,u,f){const h=Array.isArray(u.children)?n:t;return f?h(o,u,f):h(o,u)}}function bN(e,t){return n;function n(i,s,o,u){const f=Array.isArray(o.children),d=Up(i);return t(s,o,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function xN(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Vp.call(t.properties,s)){const o=EN(e,s,t.properties[s]);if(o){const[u,f]=o;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&fN.has(t.tagName)?i=f:n[u]=f}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function SN(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else So(e,t.position);else{const s=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else So(e,t.position);else o=i.value===null?!0:i.value;n[s]=o}return n}function Hp(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:oN;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const d=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(d){const h=s.get(d)||0;u=d+"-"+h,s.set(d,h+1)}}const f=fS(e,o,u);f!==void 0&&n.push(f)}return n}function EN(e,t,n){const i=aS(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Z1(n):lS(n)),i.property==="style"){let s=typeof n=="object"?n:wN(e,String(n));return e.stylePropertyNameCase==="css"&&(s=TN(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?XO[i.property]||i.property:i.attribute,n]}}function wN(e,t){try{return sN(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=cS+"#cannot-parse-style-attribute",s}}function hS(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,u;for(;++o<s.length;){const f=cb(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}i=u}else i=cb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Vp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);So(e)}function So(e,t){const n=new Bt("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=cS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function TN(e){const t={};let n;for(n in e)Vp.call(e,n)&&(t[CN(n)]=e[n]);return t}function CN(e){let t=e.replace(uN,kN);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function kN(e){return"-"+e.toLowerCase()}const hm={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"]},AN={};function Gp(e,t){const n=AN,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mS(e,i,s)}function mS(e,t,n){if(RN(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 bb(e.children,t,n)}return Array.isArray(e)?bb(e,t,n):""}function bb(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=mS(e[s],t,n);return i.join("")}function RN(e){return!!(e&&typeof e=="object")}const xb=document.createElement("i");function Fp(e){const t="&"+e+";";xb.innerHTML=t;const n=xb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bn(e,t,n,i){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function Mn(e,t){return e.length>0?(bn(e,e.length,0,t),e):t}const Sb={}.hasOwnProperty;function pS(e){const t={};let n=-1;for(;++n<e.length;)ON(t,e[n]);return t}function ON(e,t){let n;for(n in t){const s=(Sb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){Sb.call(s,u)||(s[u]=[]);const f=o[u];NN(s[u],Array.isArray(f)?f:f?[f]:[])}}}function NN(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bn(e,0,0,i)}function gS(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 Xn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $t=Bi(/[A-Za-z]/),It=Bi(/[\dA-Za-z]/),jN=Bi(/[#-'*+\--9=?A-Z^-~]/);function Gc(e){return e!==null&&(e<32||e===127)}const lp=Bi(/\d/),LN=Bi(/[\dA-Fa-f]/),DN=Bi(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function je(e){return e===-2||e===-1||e===32}const _f=Bi(new RegExp("\\p{P}|\\p{S}","u")),ka=Bi(/\s/);function Bi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&It(e.charCodeAt(n+1))&&It(e.charCodeAt(n+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(n+1);o<56320&&f>56319&&f<57344?(u=String.fromCharCode(o,f),s=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Be(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(d){return je(d)?(e.enter(n),f(d)):t(d)}function f(d){return je(d)&&o++<s?(e.consume(d),f):(e.exit(n),t(d))}}const MN={tokenize:PN};function PN(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Be(e,t,"linePrefix")}function s(f){return e.enter("paragraph"),o(f)}function o(f){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return _e(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),u)}}const zN={tokenize:IN},Eb={tokenize:BN};function IN(e){const t=this,n=[];let i=0,s,o,u;return f;function f(N){if(i<n.length){const P=n[i];return t.containerState=P[1],e.attempt(P[0].continuation,d,h)(N)}return h(N)}function d(N){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&A();const P=t.events.length;let I=P,R;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){R=t.events[I][1].end;break}T(i);let U=P;for(;U<t.events.length;)t.events[U][1].end={...R},U++;return bn(t.events,I+1,0,t.events.slice(P)),t.events.length=U,h(N)}return f(N)}function h(N){if(i===n.length){if(!s)return v(N);if(s.currentConstruct&&s.currentConstruct.concrete)return x(N);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Eb,y,p)(N)}function y(N){return s&&A(),T(i),v(N)}function p(N){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,x(N)}function v(N){return t.containerState={},e.attempt(Eb,_,x)(N)}function _(N){return i++,n.push([t.currentConstruct,t.containerState]),v(N)}function x(N){if(N===null){s&&A(),T(0),e.consume(N);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),w(N)}function w(N){if(N===null){E(e.exit("chunkFlow"),!0),T(0),e.consume(N);return}return _e(N)?(e.consume(N),E(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(N),w)}function E(N,P){const I=t.sliceStream(N);if(P&&I.push(null),N.previous=o,o&&(o.next=N),o=N,s.defineSkip(N.start),s.write(I),t.parser.lazy[N.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<u&&(!s.events[R][1].end||s.events[R][1].end.offset>u))return;const U=t.events.length;let K=U,ee,j;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(ee){j=t.events[K][1].end;break}ee=!0}for(T(i),R=U;R<t.events.length;)t.events[R][1].end={...j},R++;bn(t.events,K+1,0,t.events.slice(U)),t.events.length=R}}function T(N){let P=n.length;for(;P-- >N;){const I=n[P];t.containerState=I[1],I[0].exit.call(t,e)}n.length=N}function A(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function BN(e,t,n){return Be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xs(e){if(e===null||tt(e)||ka(e))return 1;if(_f(e))return 2}function bf(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const op={name:"attention",resolveAll:UN,tokenize:VN};function UN(e,t){let n=-1,i,s,o,u,f,d,h,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},v={...e[n][1].start};wb(p,-d),wb(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},o={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Mn(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Mn(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),h=Mn(h,bf(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=Mn(h,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,h=Mn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,bn(e,i-1,n-i+3,h),n=i+h.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function VN(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Xs(i);let o;return u;function u(d){return o=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===o)return e.consume(d),f;const h=e.exit("attentionSequence"),y=Xs(d),p=!y||y===2&&s||n.includes(d),v=!s||s===2&&y||n.includes(i);return h._open=!!(o===42?p:p&&(s||!v)),h._close=!!(o===42?v:v&&(y||!p)),t(d)}}function wb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qN={name:"autolink",tokenize:HN};function HN(e,t,n){let i=0;return s;function s(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(_){return $t(_)?(e.consume(_),u):_===64?n(_):h(_)}function u(_){return _===43||_===45||_===46||It(_)?(i=1,f(_)):h(_)}function f(_){return _===58?(e.consume(_),i=0,d):(_===43||_===45||_===46||It(_))&&i++<32?(e.consume(_),f):(i=0,h(_))}function d(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):_===null||_===32||_===60||Gc(_)?n(_):(e.consume(_),d)}function h(_){return _===64?(e.consume(_),y):jN(_)?(e.consume(_),h):n(_)}function y(_){return It(_)?p(_):n(_)}function p(_){return _===46?(e.consume(_),i=0,y):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):v(_)}function v(_){if((_===45||It(_))&&i++<63){const x=_===45?v:p;return e.consume(_),x}return n(_)}}const Io={partial:!0,tokenize:GN};function GN(e,t,n){return i;function i(o){return je(o)?Be(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||_e(o)?t(o):n(o)}}const yS={continuation:{tokenize:$N},exit:QN,name:"blockQuote",tokenize:FN};function FN(e,t,n){const i=this;return s;function s(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return je(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function $N(e,t,n){const i=this;return s;function s(u){return je(u)?Be(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(yS,t,n)(u)}}function QN(e){e.exit("blockQuote")}const vS={name:"characterEscape",tokenize:YN};function YN(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return DN(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const _S={name:"characterReference",tokenize:KN};function KN(e,t,n){const i=this;let s=0,o,u;return f;function f(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,u=It,y(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=LN,y):(e.enter("characterReferenceValue"),o=7,u=lp,y(p))}function y(p){if(p===59&&s){const v=e.exit("characterReferenceValue");return u===It&&!Fp(i.sliceSerialize(v))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<o?(e.consume(p),y):n(p)}}const Tb={partial:!0,tokenize:ZN},Cb={concrete:!0,name:"codeFenced",tokenize:XN};function XN(e,t,n){const i=this,s={partial:!0,tokenize:I};let o=0,u=0,f;return d;function d(R){return h(R)}function h(R){const U=i.events[i.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,f=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(R)}function y(R){return R===f?(u++,e.consume(R),y):u<3?n(R):(e.exit("codeFencedFenceSequence"),je(R)?Be(e,p,"whitespace")(R):p(R))}function p(R){return R===null||_e(R)?(e.exit("codeFencedFence"),i.interrupt?t(R):e.check(Tb,w,P)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||_e(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):je(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,_,"whitespace")(R)):R===96&&R===f?n(R):(e.consume(R),v)}function _(R){return R===null||_e(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(R))}function x(R){return R===null||_e(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===f?n(R):(e.consume(R),x)}function w(R){return e.attempt(s,P,E)(R)}function E(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),T}function T(R){return o>0&&je(R)?Be(e,A,"linePrefix",o+1)(R):A(R)}function A(R){return R===null||_e(R)?e.check(Tb,w,P)(R):(e.enter("codeFlowValue"),N(R))}function N(R){return R===null||_e(R)?(e.exit("codeFlowValue"),A(R)):(e.consume(R),N)}function P(R){return e.exit("codeFenced"),t(R)}function I(R,U,K){let ee=0;return j;function j(ae){return R.enter("lineEnding"),R.consume(ae),R.exit("lineEnding"),Q}function Q(ae){return R.enter("codeFencedFence"),je(ae)?Be(R,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):ie(ae)}function ie(ae){return ae===f?(R.enter("codeFencedFenceSequence"),de(ae)):K(ae)}function de(ae){return ae===f?(ee++,R.consume(ae),de):ee>=u?(R.exit("codeFencedFenceSequence"),je(ae)?Be(R,oe,"whitespace")(ae):oe(ae)):K(ae)}function oe(ae){return ae===null||_e(ae)?(R.exit("codeFencedFence"),U(ae)):K(ae)}}}function ZN(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const mm={name:"codeIndented",tokenize:WN},JN={partial:!0,tokenize:ej};function WN(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),Be(e,o,"linePrefix",5)(h)}function o(h){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):_e(h)?e.attempt(JN,u,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||_e(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),t(h)}}function ej(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Be(e,o,"linePrefix",5)(u)}function o(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):_e(u)?s(u):n(u)}}const tj={name:"codeText",previous:rj,resolve:nj,tokenize:ij};function nj(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function rj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ij(e,t,n){let i=0,s,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),f(p)}function f(p){return p===96?(e.consume(p),i++,f):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(o=e.enter("codeTextSequence"),s=0,y(p)):_e(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||_e(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function y(p){return p===96?(e.consume(p),s++,y):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",h(p))}}class aj{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&ro(this.left,i),o.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),ro(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ro(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);ro(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ro(this.left,n.reverse())}}}function ro(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 bS(e){const t={};let n=-1,i,s,o,u,f,d,h;const y=new aj(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(i=y.get(n),n&&i[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,o=0,o<d.length&&d[o][1].type==="lineEndingBlank"&&(o+=2),o<d.length&&d[o][1].type==="content"))for(;++o<d.length&&d[o][1].type!=="content";)d[o][1].type==="chunkText"&&(d[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,sj(y,n)),n=t[n],h=!0);else if(i[1]._container){for(o=n,s=void 0;o--;)if(u=y.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...y.get(s)[1].start},f=y.slice(s,n),f.unshift(i),y.splice(s,n-s+1,f))}}return bn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function sj(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const o=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],h={};let y,p,v=-1,_=n,x=0,w=0;const E=[w];for(;_;){for(;e.get(++s)[1]!==_;);o.push(s),_._tokenizer||(y=i.sliceStream(_),_.next||y.push(null),p&&u.defineSkip(_.start),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=_,_=_.next}for(_=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(w=v+1,E.push(w),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(u.events=[],_?(_._tokenizer=void 0,_.previous=void 0):E.pop(),v=E.length;v--;){const T=f.slice(E[v],E[v+1]),A=o.pop();d.push([A,A+T.length-1]),e.splice(A,2,T)}for(d.reverse(),v=-1;++v<d.length;)h[x+d[v][0]]=x+d[v][1],x+=d[v][1]-d[v][0]-1;return h}const lj={resolve:uj,tokenize:cj},oj={partial:!0,tokenize:fj};function uj(e){return bS(e),e}function cj(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):_e(f)?e.check(oj,u,o)(f):(e.consume(f),s)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function fj(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Be(e,o,"linePrefix")}function o(u){if(u===null||_e(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function xS(e,t,n,i,s,o,u,f,d){const h=d||Number.POSITIVE_INFINITY;let y=0;return p;function p(T){return T===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(T),e.exit(o),v):T===null||T===32||T===41||Gc(T)?n(T):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),w(T))}function v(T){return T===62?(e.enter(o),e.consume(T),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),_(T))}function _(T){return T===62?(e.exit("chunkString"),e.exit(f),v(T)):T===null||T===60||_e(T)?n(T):(e.consume(T),T===92?x:_)}function x(T){return T===60||T===62||T===92?(e.consume(T),_):_(T)}function w(T){return!y&&(T===null||T===41||tt(T))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(T)):y<h&&T===40?(e.consume(T),y++,w):T===41?(e.consume(T),y--,w):T===null||T===32||T===40||Gc(T)?n(T):(e.consume(T),T===92?E:w)}function E(T){return T===40||T===41||T===92?(e.consume(T),w):w(T)}}function SS(e,t,n,i,s,o){const u=this;let f=0,d;return h;function h(_){return e.enter(i),e.enter(s),e.consume(_),e.exit(s),e.enter(o),y}function y(_){return f>999||_===null||_===91||_===93&&!d||_===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(_):_===93?(e.exit(o),e.enter(s),e.consume(_),e.exit(s),e.exit(i),t):_e(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||_===91||_===93||_e(_)||f++>999?(e.exit("chunkString"),y(_)):(e.consume(_),d||(d=!je(_)),_===92?v:p)}function v(_){return _===91||_===92||_===93?(e.consume(_),f++,p):p(_)}}function ES(e,t,n,i,s,o){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(s),e.consume(v),e.exit(s),u=v===40?41:v,d):n(v)}function d(v){return v===u?(e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):(e.enter(o),h(v))}function h(v){return v===u?(e.exit(o),d(u)):v===null?n(v):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Be(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===u||v===null||_e(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?p:y)}function p(v){return v===u||v===92?(e.consume(v),y):y(v)}}function go(e,t){let n;return i;function i(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):je(s)?Be(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const dj={name:"definition",tokenize:mj},hj={partial:!0,tokenize:pj};function mj(e,t,n){const i=this;let s;return o;function o(_){return e.enter("definition"),u(_)}function u(_){return SS.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function f(_){return s=Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),d):n(_)}function d(_){return tt(_)?go(e,h)(_):h(_)}function h(_){return xS(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function y(_){return e.attempt(hj,p,p)(_)}function p(_){return je(_)?Be(e,v,"whitespace")(_):v(_)}function v(_){return _===null||_e(_)?(e.exit("definition"),i.parser.defined.push(s),t(_)):n(_)}}function pj(e,t,n){return i;function i(f){return tt(f)?go(e,s)(f):n(f)}function s(f){return ES(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return je(f)?Be(e,u,"whitespace")(f):u(f)}function u(f){return f===null||_e(f)?t(f):n(f)}}const gj={name:"hardBreakEscape",tokenize:yj};function yj(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return _e(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const vj={name:"headingAtx",resolve:_j,tokenize:bj};function _j(e,t){let n=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bn(e,i,n-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function bj(e,t,n){let i=0;return s;function s(y){return e.enter("atxHeading"),o(y)}function o(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&i++<6?(e.consume(y),u):y===null||tt(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),d(y)):y===null||_e(y)?(e.exit("atxHeading"),t(y)):je(y)?Be(e,f,"whitespace")(y):(e.enter("atxHeadingText"),h(y))}function d(y){return y===35?(e.consume(y),d):(e.exit("atxHeadingSequence"),f(y))}function h(y){return y===null||y===35||tt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),h)}}const xj=["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"],kb=["pre","script","style","textarea"],Sj={concrete:!0,name:"htmlFlow",resolveTo:Tj,tokenize:Cj},Ej={partial:!0,tokenize:Aj},wj={partial:!0,tokenize:kj};function Tj(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 Cj(e,t,n){const i=this;let s,o,u,f,d;return h;function h(k){return y(k)}function y(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),p}function p(k){return k===33?(e.consume(k),v):k===47?(e.consume(k),o=!0,w):k===63?(e.consume(k),s=3,i.interrupt?t:L):$t(k)?(e.consume(k),u=String.fromCharCode(k),E):n(k)}function v(k){return k===45?(e.consume(k),s=2,_):k===91?(e.consume(k),s=5,f=0,x):$t(k)?(e.consume(k),s=4,i.interrupt?t:L):n(k)}function _(k){return k===45?(e.consume(k),i.interrupt?t:L):n(k)}function x(k){const le="CDATA[";return k===le.charCodeAt(f++)?(e.consume(k),f===le.length?i.interrupt?t:ie:x):n(k)}function w(k){return $t(k)?(e.consume(k),u=String.fromCharCode(k),E):n(k)}function E(k){if(k===null||k===47||k===62||tt(k)){const le=k===47,pe=u.toLowerCase();return!le&&!o&&kb.includes(pe)?(s=1,i.interrupt?t(k):ie(k)):xj.includes(u.toLowerCase())?(s=6,le?(e.consume(k),T):i.interrupt?t(k):ie(k)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(k):o?A(k):N(k))}return k===45||It(k)?(e.consume(k),u+=String.fromCharCode(k),E):n(k)}function T(k){return k===62?(e.consume(k),i.interrupt?t:ie):n(k)}function A(k){return je(k)?(e.consume(k),A):j(k)}function N(k){return k===47?(e.consume(k),j):k===58||k===95||$t(k)?(e.consume(k),P):je(k)?(e.consume(k),N):j(k)}function P(k){return k===45||k===46||k===58||k===95||It(k)?(e.consume(k),P):I(k)}function I(k){return k===61?(e.consume(k),R):je(k)?(e.consume(k),I):N(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),d=k,U):je(k)?(e.consume(k),R):K(k)}function U(k){return k===d?(e.consume(k),d=null,ee):k===null||_e(k)?n(k):(e.consume(k),U)}function K(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||tt(k)?I(k):(e.consume(k),K)}function ee(k){return k===47||k===62||je(k)?N(k):n(k)}function j(k){return k===62?(e.consume(k),Q):n(k)}function Q(k){return k===null||_e(k)?ie(k):je(k)?(e.consume(k),Q):n(k)}function ie(k){return k===45&&s===2?(e.consume(k),q):k===60&&s===1?(e.consume(k),re):k===62&&s===4?(e.consume(k),z):k===63&&s===3?(e.consume(k),L):k===93&&s===5?(e.consume(k),Se):_e(k)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(Ej,H,de)(k)):k===null||_e(k)?(e.exit("htmlFlowData"),de(k)):(e.consume(k),ie)}function de(k){return e.check(wj,oe,H)(k)}function oe(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ae}function ae(k){return k===null||_e(k)?de(k):(e.enter("htmlFlowData"),ie(k))}function q(k){return k===45?(e.consume(k),L):ie(k)}function re(k){return k===47?(e.consume(k),u="",ce):ie(k)}function ce(k){if(k===62){const le=u.toLowerCase();return kb.includes(le)?(e.consume(k),z):ie(k)}return $t(k)&&u.length<8?(e.consume(k),u+=String.fromCharCode(k),ce):ie(k)}function Se(k){return k===93?(e.consume(k),L):ie(k)}function L(k){return k===62?(e.consume(k),z):k===45&&s===2?(e.consume(k),L):ie(k)}function z(k){return k===null||_e(k)?(e.exit("htmlFlowData"),H(k)):(e.consume(k),z)}function H(k){return e.exit("htmlFlow"),t(k)}}function kj(e,t,n){const i=this;return s;function s(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function Aj(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Io,t,n)}}const Rj={name:"htmlText",tokenize:Oj};function Oj(e,t,n){const i=this;let s,o,u;return f;function f(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),h):L===47?(e.consume(L),I):L===63?(e.consume(L),N):$t(L)?(e.consume(L),K):n(L)}function h(L){return L===45?(e.consume(L),y):L===91?(e.consume(L),o=0,x):$t(L)?(e.consume(L),A):n(L)}function y(L){return L===45?(e.consume(L),_):n(L)}function p(L){return L===null?n(L):L===45?(e.consume(L),v):_e(L)?(u=p,re(L)):(e.consume(L),p)}function v(L){return L===45?(e.consume(L),_):p(L)}function _(L){return L===62?q(L):L===45?v(L):p(L)}function x(L){const z="CDATA[";return L===z.charCodeAt(o++)?(e.consume(L),o===z.length?w:x):n(L)}function w(L){return L===null?n(L):L===93?(e.consume(L),E):_e(L)?(u=w,re(L)):(e.consume(L),w)}function E(L){return L===93?(e.consume(L),T):w(L)}function T(L){return L===62?q(L):L===93?(e.consume(L),T):w(L)}function A(L){return L===null||L===62?q(L):_e(L)?(u=A,re(L)):(e.consume(L),A)}function N(L){return L===null?n(L):L===63?(e.consume(L),P):_e(L)?(u=N,re(L)):(e.consume(L),N)}function P(L){return L===62?q(L):N(L)}function I(L){return $t(L)?(e.consume(L),R):n(L)}function R(L){return L===45||It(L)?(e.consume(L),R):U(L)}function U(L){return _e(L)?(u=U,re(L)):je(L)?(e.consume(L),U):q(L)}function K(L){return L===45||It(L)?(e.consume(L),K):L===47||L===62||tt(L)?ee(L):n(L)}function ee(L){return L===47?(e.consume(L),q):L===58||L===95||$t(L)?(e.consume(L),j):_e(L)?(u=ee,re(L)):je(L)?(e.consume(L),ee):q(L)}function j(L){return L===45||L===46||L===58||L===95||It(L)?(e.consume(L),j):Q(L)}function Q(L){return L===61?(e.consume(L),ie):_e(L)?(u=Q,re(L)):je(L)?(e.consume(L),Q):ee(L)}function ie(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),s=L,de):_e(L)?(u=ie,re(L)):je(L)?(e.consume(L),ie):(e.consume(L),oe)}function de(L){return L===s?(e.consume(L),s=void 0,ae):L===null?n(L):_e(L)?(u=de,re(L)):(e.consume(L),de)}function oe(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||tt(L)?ee(L):(e.consume(L),oe)}function ae(L){return L===47||L===62||tt(L)?ee(L):n(L)}function q(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function re(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ce}function ce(L){return je(L)?Be(e,Se,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Se(L)}function Se(L){return e.enter("htmlTextData"),u(L)}}const $p={name:"labelEnd",resolveAll:Dj,resolveTo:Mj,tokenize:Pj},Nj={tokenize:zj},jj={tokenize:Ij},Lj={tokenize:Bj};function Dj(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&bn(e,0,e.length,n),e}function Mj(e,t){let n=e.length,i=0,s,o,u,f;for(;n--;)if(s=e[n][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const d={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,t],["enter",h,t]],f=Mn(f,e.slice(o+1,o+i+3)),f=Mn(f,[["enter",y,t]]),f=Mn(f,bf(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),f=Mn(f,[["exit",y,t],e[u-2],e[u-1],["exit",h,t]]),f=Mn(f,e.slice(u+1)),f=Mn(f,[["exit",d,t]]),bn(e,o,e.length,f),e}function Pj(e,t,n){const i=this;let s=i.events.length,o,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){o=i.events[s][1];break}return f;function f(v){return o?o._inactive?p(v):(u=i.parser.defined.includes(Xn(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):n(v)}function d(v){return v===40?e.attempt(Nj,y,u?y:p)(v):v===91?e.attempt(jj,y,u?h:p)(v):u?y(v):p(v)}function h(v){return e.attempt(Lj,y,p)(v)}function y(v){return t(v)}function p(v){return o._balanced=!0,n(v)}}function zj(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return tt(p)?go(e,o)(p):o(p)}function o(p){return p===41?y(p):xS(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return tt(p)?go(e,d)(p):y(p)}function f(p){return n(p)}function d(p){return p===34||p===39||p===40?ES(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function h(p){return tt(p)?go(e,y)(p):y(p)}function y(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Ij(e,t,n){const i=this;return s;function s(f){return SS.call(i,e,o,u,"reference","referenceMarker","referenceString")(f)}function o(f){return i.parser.defined.includes(Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function Bj(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Uj={name:"labelStartImage",resolveAll:$p.resolveAll,tokenize:Vj};function Vj(e,t,n){const i=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const qj={name:"labelStartLink",resolveAll:$p.resolveAll,tokenize:Hj};function Hj(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const pm={name:"lineEnding",tokenize:Gj};function Gj(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const Cc={name:"thematicBreak",tokenize:Fj};function Fj(e,t,n){let i=0,s;return o;function o(h){return e.enter("thematicBreak"),u(h)}function u(h){return s=h,f(h)}function f(h){return h===s?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||_e(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),je(h)?Be(e,f,"whitespace")(h):f(h))}}const rn={continuation:{tokenize:Kj},exit:Zj,name:"list",tokenize:Yj},$j={partial:!0,tokenize:Jj},Qj={partial:!0,tokenize:Xj};function Yj(e,t,n){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return f;function f(_){const x=i.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||_===i.containerState.marker:lp(_)){if(i.containerState.type||(i.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Cc,n,h)(_):h(_);if(!i.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(_)}return n(_)}function d(_){return lp(_)&&++u<10?(e.consume(_),d):(!i.interrupt||u<2)&&(i.containerState.marker?_===i.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),h(_)):n(_)}function h(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||_,e.check(Io,i.interrupt?n:y,e.attempt($j,v,p))}function y(_){return i.containerState.initialBlankLine=!0,o++,v(_)}function p(_){return je(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),v):n(_)}function v(_){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function Kj(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Io,s,o);function s(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(f)}function o(f){return i.containerState.furtherBlankLines||!je(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Qj,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Xj(e,t,n){const i=this;return Be(e,s,"listItemIndent",i.containerState.size+1);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):n(o)}}function Zj(e){e.exit(this.containerState.type)}function Jj(e,t,n){const i=this;return Be(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=i.events[i.events.length-1];return!je(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Ab={name:"setextUnderline",resolveTo:Wj,tokenize:eL};function Wj(e,t){let n=e.length,i,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function eL(e,t,n){const i=this;let s;return o;function o(h){let y=i.events.length,p;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){p=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===s?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),je(h)?Be(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||_e(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const tL={tokenize:nL};function nL(e){const t=this,n=e.attempt(Io,i,e.attempt(this.parser.constructs.flowInitial,s,Be(e,e.attempt(this.parser.constructs.flow,s,e.attempt(lj,s)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const rL={resolveAll:TS()},iL=wS("string"),aL=wS("text");function wS(e){return{resolveAll:TS(e==="text"?sL:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],o=n.attempt(s,u,f);return u;function u(y){return h(y)?o(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),d}function d(y){return h(y)?(n.exit("data"),o(y)):(n.consume(y),d)}function h(y){if(y===null)return!0;const p=s[y];let v=-1;if(p)for(;++v<p.length;){const _=p[v];if(!_.previous||_.previous.call(i,i.previous))return!0}return!1}}}function TS(e){return t;function t(n,i){let s=-1,o;for(;++s<=n.length;)o===void 0?n[s]&&n[s][1].type==="data"&&(o=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(n,i):n}}function sL(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 i=e[n-1][1],s=t.sliceStream(i);let o=s.length,u=-1,f=0,d;for(;o--;){const h=s[o];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(h===-2)d=!0,f++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const h={type:n===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const lL={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:yS},oL={91:dj},uL={[-2]:mm,[-1]:mm,32:mm},cL={35:vj,42:Cc,45:[Ab,Cc],60:Sj,61:Ab,95:Cc,96:Cb,126:Cb},fL={38:_S,92:vS},dL={[-5]:pm,[-4]:pm,[-3]:pm,33:Uj,38:_S,42:op,60:[qN,Rj],91:qj,92:[gj,vS],93:$p,95:op,96:tj},hL={null:[op,rL]},mL={null:[42,95]},pL={null:[]},gL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mL,contentInitial:oL,disable:pL,document:lL,flow:cL,flowInitial:uL,insideSpan:hL,string:fL,text:dL},Symbol.toStringTag,{value:"Module"}));function yL(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},o=[];let u=[],f=[];const d={attempt:U(I),check:U(R),consume:A,enter:N,exit:P,interrupt:U(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:e,previous:null,sliceSerialize:v,sliceStream:_,write:p};let y=t.tokenize.call(h,d);return t.resolveAll&&o.push(t),h;function p(Q){return u=Mn(u,Q),E(),u[u.length-1]!==null?[]:(K(t,0),h.events=bf(o,h.events,h),h.events)}function v(Q,ie){return _L(_(Q),ie)}function _(Q){return vL(u,Q)}function x(){const{_bufferIndex:Q,_index:ie,line:de,column:oe,offset:ae}=i;return{_bufferIndex:Q,_index:ie,line:de,column:oe,offset:ae}}function w(Q){s[Q.line]=Q.column,j()}function E(){let Q;for(;i._index<u.length;){const ie=u[i._index];if(typeof ie=="string")for(Q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Q&&i._bufferIndex<ie.length;)T(ie.charCodeAt(i._bufferIndex));else T(ie)}}function T(Q){y=y(Q)}function A(Q){_e(Q)?(i.line++,i.column=1,i.offset+=Q===-3?2:1,j()):Q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=Q}function N(Q,ie){const de=ie||{};return de.type=Q,de.start=x(),h.events.push(["enter",de,h]),f.push(de),de}function P(Q){const ie=f.pop();return ie.end=x(),h.events.push(["exit",ie,h]),ie}function I(Q,ie){K(Q,ie.from)}function R(Q,ie){ie.restore()}function U(Q,ie){return de;function de(oe,ae,q){let re,ce,Se,L;return Array.isArray(oe)?H(oe):"tokenize"in oe?H([oe]):z(oe);function z(he){return Ee;function Ee(Qe){const Pe=Qe!==null&&he[Qe],Dt=Qe!==null&&he.null,on=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(Dt)?Dt:Dt?[Dt]:[]];return H(on)(Qe)}}function H(he){return re=he,ce=0,he.length===0?q:k(he[ce])}function k(he){return Ee;function Ee(Qe){return L=ee(),Se=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?pe():he.tokenize.call(ie?Object.assign(Object.create(h),ie):h,d,le,pe)(Qe)}}function le(he){return Q(Se,L),ae}function pe(he){return L.restore(),++ce<re.length?k(re[ce]):q}}}function K(Q,ie){Q.resolveAll&&!o.includes(Q)&&o.push(Q),Q.resolve&&bn(h.events,ie,h.events.length-ie,Q.resolve(h.events.slice(ie),h)),Q.resolveTo&&(h.events=Q.resolveTo(h.events,h))}function ee(){const Q=x(),ie=h.previous,de=h.currentConstruct,oe=h.events.length,ae=Array.from(f);return{from:oe,restore:q};function q(){i=Q,h.previous=ie,h.currentConstruct=de,h.events.length=oe,f=ae,j()}}function j(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function vL(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,o)];else{if(u=e.slice(n,s),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function _L(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
|
|
270
|
-
`;break}case-3:{u=`\r
|
|
271
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,i.push(u)}return i.join("")}function bL(e){const i={constructs:pS([gL,...(e||{}).extensions||[]]),content:s(MN),defined:[],document:s(zN),flow:s(tL),lazy:{},string:s(iL),text:s(aL)};return i;function s(o){return u;function u(f){return yL(i,o,f)}}}function xL(e){for(;!bS(e););return e}const Rb=/[\0\t\n\r]/g;function SL(){let e=1,t="",n=!0,i;return s;function s(o,u,f){const d=[];let h,y,p,v,_;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(Rb.lastIndex=p,h=Rb.exec(o),v=h&&h.index!==void 0?h.index:o.length,_=o.charCodeAt(v),!h){t=o.slice(p);break}if(_===10&&p===v&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),p<v&&(d.push(o.slice(p,v)),e+=v-p),_){case 0:{d.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,d.push(-2);e++<y;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}p=v+1}return f&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const EL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wL(e){return e.replace(EL,TL)}function TL(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),o=s===120||s===88;return gS(n.slice(o?2:1),o?16:10)}return Fp(n)||e}const CS={}.hasOwnProperty;function CL(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kL(n)(xL(bL(n).document().write(SL()(e,t,!0))))}function kL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Vn),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:o(dr),blockQuote:o(Dt),characterEscape:ee,characterReference:ee,codeFenced:o(on),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(on,u),codeText:o(un,u),codeTextData:ee,data:ee,codeFlowValue:ee,definition:o(Na),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(Un),hardBreakEscape:o($r),hardBreakTrailing:o($r),htmlFlow:o(ja,u),htmlFlowData:ee,htmlText:o(ja,u),htmlTextData:ee,image:o(La),label:u,link:o(Vn),listItem:o(Qr),listItemValue:v,listOrdered:o(qn,p),listUnordered:o(qn),paragraph:o(Da),reference:k,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(dr),strong:o(Ve),thematicBreak:o(Ut)},exit:{atxHeading:d(),atxHeadingSequence:I,autolink:d(),autolinkEmail:Pe,autolinkProtocol:Qe,blockQuote:d(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:he,characterReference:Ee,codeFenced:d(E),codeFencedFence:w,codeFencedFenceInfo:_,codeFencedFenceMeta:x,codeFlowValue:j,codeIndented:d(T),codeText:d(ae),codeTextData:j,data:j,definition:d(),definitionDestinationString:P,definitionLabelString:A,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(ie),hardBreakTrailing:d(ie),htmlFlow:d(de),htmlFlowData:j,htmlText:d(oe),htmlTextData:j,image:d(re),label:Se,labelText:ce,lineEnding:Q,link:d(q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:le,resourceDestinationString:L,resourceTitleString:z,resource:H,setextHeading:d(K),setextHeadingLineSequence:U,setextHeadingText:R,strong:d(),thematicBreak:d()}};kS(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(J){let ue={type:"root",children:[]};const xe={stack:[ue],tokenStack:[],config:t,enter:f,exit:h,buffer:u,resume:y,data:n},Re=[];let Fe=-1;for(;++Fe<J.length;)if(J[Fe][1].type==="listOrdered"||J[Fe][1].type==="listUnordered")if(J[Fe][0]==="enter")Re.push(Fe);else{const cn=Re.pop();Fe=s(J,cn,Fe)}for(Fe=-1;++Fe<J.length;){const cn=t[J[Fe][0]];CS.call(cn,J[Fe][1].type)&&cn[J[Fe][1].type].call(Object.assign({sliceSerialize:J[Fe][2].sliceSerialize},xe),J[Fe][1])}if(xe.tokenStack.length>0){const cn=xe.tokenStack[xe.tokenStack.length-1];(cn[1]||Ob).call(xe,void 0,cn[0])}for(ue.position={start:_i(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:_i(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<t.transforms.length;)ue=t.transforms[Fe](ue)||ue;return ue}function s(J,ue,xe){let Re=ue-1,Fe=-1,cn=!1,hr,Vt,bt,Kt;for(;++Re<=xe;){const We=J[Re];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Fe++:Fe--,Kt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(hr&&!Kt&&!Fe&&!bt&&(bt=Re),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!Fe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Fe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(hr){let Yr=Re;for(Vt=void 0;Yr--;){const Hn=J[Yr];if(Hn[1].type==="lineEnding"||Hn[1].type==="lineEndingBlank"){if(Hn[0]==="exit")continue;Vt&&(J[Vt][1].type="lineEndingBlank",cn=!0),Hn[1].type="lineEnding",Vt=Yr}else if(!(Hn[1].type==="linePrefix"||Hn[1].type==="blockQuotePrefix"||Hn[1].type==="blockQuotePrefixWhitespace"||Hn[1].type==="blockQuoteMarker"||Hn[1].type==="listItemIndent"))break}bt&&(!Vt||bt<Vt)&&(hr._spread=!0),hr.end=Object.assign({},Vt?J[Vt][1].start:We[1].end),J.splice(Vt||Re,0,["exit",hr,We[2]]),Re++,xe++}if(We[1].type==="listItemPrefix"){const Yr={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};hr=Yr,J.splice(Re,0,["enter",Yr,We[2]]),Re++,xe++,bt=void 0,Kt=!0}}}return J[ue][1]._spread=cn,xe}function o(J,ue){return xe;function xe(Re){f.call(this,J(Re),Re),ue&&ue.call(this,Re)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(J,ue,xe){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ue,xe||void 0]),J.position={start:_i(ue.start),end:void 0}}function d(J){return ue;function ue(xe){J&&J.call(this,xe),h.call(this,xe)}}function h(J,ue){const xe=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==J.type&&(ue?ue.call(this,J,Re[0]):(Re[1]||Ob).call(this,J,Re[0]));else throw new Error("Cannot close `"+J.type+"` ("+po({start:J.start,end:J.end})+"): it’s not open");xe.position.end=_i(J.end)}function y(){return Gp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function _(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=J}function x(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=J}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J.replace(/(\r?\n|\r)$/g,"")}function A(J){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Xn(this.sliceSerialize(J)).toLowerCase()}function N(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.title=J}function P(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.url=J}function I(J){const ue=this.stack[this.stack.length-1];if(!ue.depth){const xe=this.sliceSerialize(J).length;ue.depth=xe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function U(J){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(J){const xe=this.stack[this.stack.length-1].children;let Re=xe[xe.length-1];(!Re||Re.type!=="text")&&(Re=Ue(),Re.position={start:_i(J.start),end:void 0},xe.push(Re)),this.stack.push(Re)}function j(J){const ue=this.stack.pop();ue.value+=this.sliceSerialize(J),ue.position.end=_i(J.end)}function Q(J){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ue.children[ue.children.length-1];xe.position.end=_i(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(ee.call(this,J),j.call(this,J))}function ie(){this.data.atHardBreak=!0}function de(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function oe(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function ae(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function q(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ue,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function re(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ue,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ce(J){const ue=this.sliceSerialize(J),xe=this.stack[this.stack.length-2];xe.label=wL(ue),xe.identifier=Xn(ue).toLowerCase()}function Se(){const J=this.stack[this.stack.length-1],ue=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Re=J.children;xe.children=Re}else xe.alt=ue}function L(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.url=J}function z(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.title=J}function H(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function le(J){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Xn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function pe(J){this.data.characterReferenceType=J.type}function he(J){const ue=this.sliceSerialize(J),xe=this.data.characterReferenceType;let Re;xe?(Re=gS(ue,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=Fp(ue);const Fe=this.stack[this.stack.length-1];Fe.value+=Re}function Ee(J){const ue=this.stack.pop();ue.position.end=_i(J.end)}function Qe(J){j.call(this,J);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(J)}function Pe(J){j.call(this,J);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(J)}function Dt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Na(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Un(){return{type:"emphasis",children:[]}}function dr(){return{type:"heading",depth:0,children:[]}}function $r(){return{type:"break"}}function ja(){return{type:"html",value:""}}function La(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function qn(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function Qr(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Da(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function Ue(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function _i(e){return{line:e.line,column:e.column,offset:e.offset}}function kS(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?kS(e,i):AL(e,i)}}function AL(e,t){let n;for(n in t)if(CS.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Ob(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+po({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is still open")}function RL(e){const t=this;t.parser=n;function n(i){return CL(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function OL(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 NL(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
272
|
-
`}]}function jL(e,t){const n=t.value?t.value+`
|
|
273
|
-
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function LL(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DL(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ML(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=rl(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function PL(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 zL(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function AS(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function IL(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return AS(e,t);const s={src:rl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function BL(e,t){const n={src:rl(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function UL(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function VL(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return AS(e,t);const s={href:rl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function qL(e,t){const n={href:rl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function HL(e,t,n){const i=e.all(t),s=n?GL(n):RS(t),o={},u=[];if(typeof t.checked=="boolean"){const y=i[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const y=i[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
274
|
-
`}),y.type==="element"&&y.tagName==="p"&&!s?u.push(...y.children):u.push(y)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
|
275
|
-
`});const h={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,h),e.applyData(t,h)}function GL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=RS(n[i])}return t}function RS(e){const t=e.spread;return t??e.children.length>1}function FL(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function $L(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QL(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function YL(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KL(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=Up(t.children[1]),d=oS(t.children[t.children.length-1]);f&&d&&(u.position={start:f,end:d}),s.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function XL(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let d=-1;const h=[];for(;++d<f;){const p=t.children[d],v={},_=u?u[d]:void 0;_&&(v.align=_);let x={type:"element",tagName:o,properties:v,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),h.push(x)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,y),e.applyData(t,y)}function ZL(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Nb=9,jb=32;function JL(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const o=[];for(;i;)o.push(Lb(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return o.push(Lb(t.slice(s),s>0,!1)),o.join("")}function Lb(e,t,n){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===Nb||o===jb;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(s-1);for(;o===Nb||o===jb;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function WL(e,t){const n={type:"text",value:JL(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const tD={blockquote:OL,break:NL,code:jL,delete:LL,emphasis:DL,footnoteReference:ML,heading:PL,html:zL,imageReference:IL,image:BL,inlineCode:UL,linkReference:VL,link:qL,listItem:HL,list:FL,paragraph:$L,root:QL,strong:YL,table:KL,tableCell:ZL,tableRow:XL,text:WL,thematicBreak:eD,toml:hc,yaml:hc,definition:hc,footnoteDefinition:hc};function hc(){}const OS=-1,xf=0,yo=1,Fc=2,Qp=3,Yp=4,Kp=5,Xp=6,NS=7,jS=8,Db=typeof self=="object"?self:globalThis,nD=(e,t)=>{const n=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,u]=t[s];switch(o){case xf:case OS:return n(u,s);case yo:{const f=n([],s);for(const d of u)f.push(i(d));return f}case Fc:{const f=n({},s);for(const[d,h]of u)f[i(d)]=i(h);return f}case Qp:return n(new Date(u),s);case Yp:{const{source:f,flags:d}=u;return n(new RegExp(f,d),s)}case Kp:{const f=n(new Map,s);for(const[d,h]of u)f.set(i(d),i(h));return f}case Xp:{const f=n(new Set,s);for(const d of u)f.add(i(d));return f}case NS:{const{name:f,message:d}=u;return n(new Db[f](d),s)}case jS:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new Db[o](u),s)};return i},Mb=e=>nD(new Map,e)(0),Cs="",{toString:rD}={},{keys:iD}=Object,io=e=>{const t=typeof e;if(t!=="object"||!e)return[xf,t];const n=rD.call(e).slice(8,-1);switch(n){case"Array":return[yo,Cs];case"Object":return[Fc,Cs];case"Date":return[Qp,Cs];case"RegExp":return[Yp,Cs];case"Map":return[Kp,Cs];case"Set":return[Xp,Cs];case"DataView":return[yo,n]}return n.includes("Array")?[yo,n]:n.includes("Error")?[NS,n]:[Fc,n]},mc=([e,t])=>e===xf&&(t==="function"||t==="symbol"),aD=(e,t,n,i)=>{const s=(u,f)=>{const d=i.push(u)-1;return n.set(f,d),d},o=u=>{if(n.has(u))return n.get(u);let[f,d]=io(u);switch(f){case xf:{let y=u;switch(d){case"bigint":f=jS,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);y=null;break;case"undefined":return s([OS],u)}return s([f,y],u)}case yo:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),s([d,[...v]],u)}const y=[],p=s([f,y],u);for(const v of u)y.push(o(v));return p}case Fc:{if(d)switch(d){case"BigInt":return s([d,u.toString()],u);case"Boolean":case"Number":case"String":return s([d,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const y=[],p=s([f,y],u);for(const v of iD(u))(e||!mc(io(u[v])))&&y.push([o(v),o(u[v])]);return p}case Qp:return s([f,u.toISOString()],u);case Yp:{const{source:y,flags:p}=u;return s([f,{source:y,flags:p}],u)}case Kp:{const y=[],p=s([f,y],u);for(const[v,_]of u)(e||!(mc(io(v))||mc(io(_))))&&y.push([o(v),o(_)]);return p}case Xp:{const y=[],p=s([f,y],u);for(const v of u)(e||!mc(io(v)))&&y.push(o(v));return p}}const{message:h}=u;return s([f,{name:d,message:h}],u)};return o},Pb=(e,{json:t,lossy:n}={})=>{const i=[];return aD(!(t||n),!!t,new Map,i)(e),i},$c=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mb(Pb(e,t)):structuredClone(e):(e,t)=>Mb(Pb(e,t));function sD(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 lD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||sD,i=e.options.footnoteBackLabel||lD,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const y=e.all(h),p=String(h.identifier).toUpperCase(),v=rl(p.toLowerCase());let _=0;const x=[],w=e.footnoteCounts.get(p);for(;w!==void 0&&++_<=w;){x.length>0&&x.push({type:"text",value:" "});let A=typeof n=="string"?n:n(d,_);typeof A=="string"&&(A={type:"text",value:A}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,_),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const E=y[y.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const A=E.children[E.children.length-1];A&&A.type==="text"?A.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...x)}else y.push(...x);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(y,!0)};e.patch(h,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$c(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
276
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
277
|
-
`}]}}const Sf=(function(e){if(e==null)return dD;if(typeof e=="function")return Ef(e);if(typeof e=="object")return Array.isArray(e)?uD(e):cD(e);if(typeof e=="string")return fD(e);throw new Error("Expected function, string, or object as test")});function uD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Sf(e[n]);return Ef(i);function i(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function cD(e){const t=e;return Ef(n);function n(i){const s=i;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function fD(e){return Ef(t);function t(n){return n&&n.type===e}}function Ef(e){return t;function t(n,i,s){return!!(hD(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function dD(){return!0}function hD(e){return e!==null&&typeof e=="object"&&"type"in e}const LS=[],mD=!0,up=!1,pD="skip";function DS(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const o=Sf(s),u=i?-1:1;f(e,void 0,[])();function f(d,h,y){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const _=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(_?"<"+_+">":""))+")"})}return v;function v(){let _=LS,x,w,E;if((!t||o(d,h,y[y.length-1]||void 0))&&(_=gD(n(d,y)),_[0]===up))return _;if("children"in d&&d.children){const T=d;if(T.children&&_[0]!==pD)for(w=(i?T.children.length:-1)+u,E=y.concat(T);w>-1&&w<T.children.length;){const A=T.children[w];if(x=f(A,w,E)(),x[0]===up)return x;w=typeof x[1]=="number"?x[1]:w+u}}return _}}}function gD(e){return Array.isArray(e)?e:typeof e=="number"?[mD,e]:e==null?LS:[e]}function Zp(e,t,n,i){let s,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,s=n):(o=t,u=n,s=i),DS(e,o,f,s);function f(d,h){const y=h[h.length-1],p=y?y.children.indexOf(d):void 0;return u(d,p,y)}}const cp={}.hasOwnProperty,yD={};function vD(e,t){const n=t||yD,i=new Map,s=new Map,o=new Map,u={...tD,...n.handlers},f={all:h,applyData:bD,definitionById:i,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:u,one:d,options:n,patch:_D,wrap:SD};return Zp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?i:s,v=String(y.identifier).toUpperCase();p.has(v)||p.set(v,y)}}),f;function d(y,p){const v=y.type,_=f.handlers[v];if(cp.call(f.handlers,v)&&_)return _(f,y,p);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:w,...E}=y,T=$c(E);return T.children=f.all(y),T}return $c(y)}return(f.options.unknownHandler||xD)(f,y,p)}function h(y){const p=[];if("children"in y){const v=y.children;let _=-1;for(;++_<v.length;){const x=f.one(v[_],y);if(x){if(_&&v[_-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=zb(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=zb(w.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function _D(e,t){e.position&&(t.position=lN(e))}function bD(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,$c(o)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function xD(e,t){const n=t.data||{},i="value"in t&&!(cp.call(n,"hProperties")||cp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function SD(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
278
|
-
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
279
|
-
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
280
|
-
`}),n}function zb(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ib(e,t){const n=vD(e,t),i=n.one(e,void 0),s=oD(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
|
|
281
|
-
`},s),o}function ED(e,t){return e&&"run"in e?async function(n,i){const s=Ib(n,{file:i,...t});await e.run(s,i)}:function(n,i){return Ib(n,{file:i,...e||t})}}function Bb(e){if(e)throw e}var gm,Ub;function wD(){if(Ub)return gm;Ub=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var y=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!p)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},u=function(h,y){n&&y.name==="__proto__"?n(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},f=function(h,y){if(y==="__proto__")if(e.call(h,y)){if(i)return i(h,y).value}else return;return h[y]};return gm=function d(){var h,y,p,v,_,x,w=arguments[0],E=1,T=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},E=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});E<T;++E)if(h=arguments[E],h!=null)for(y in h)p=f(w,y),v=f(h,y),w!==v&&(A&&v&&(o(v)||(_=s(v)))?(_?(_=!1,x=p&&s(p)?p:[]):x=p&&o(p)?p:{},u(w,{name:y,newValue:d(A,x,v)})):typeof v<"u"&&u(w,{name:y,newValue:v}));return w},gm}var TD=wD();const ym=Ep(TD);function fp(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 CD(){const e=[],t={run:n,use:i};return t;function n(...s){let o=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...s);function f(d,...h){const y=e[++o];let p=-1;if(d){u(d);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,y?kD(y,f)(...h):u(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function kD(e,t){let n;return i;function i(...u){const f=e.length>u.length;let d;f&&u.push(s);try{d=e.apply(this,u)}catch(h){const y=h;if(f&&n)throw y;return s(y)}f||(d&&d.then&&typeof d.then=="function"?d.then(o,s):d instanceof Error?s(d):o(d))}function s(u,...f){n||(n=!0,t(u,...f))}function o(u){s(null,u)}}const ir={basename:AD,dirname:RD,extname:OD,join:ND,sep:"/"};function AD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bo(e);let n=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else u<0&&(o=!0,u=s+1),f>-1&&(e.codePointAt(s)===t.codePointAt(f--)?f<0&&(i=s):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function RD(e){if(Bo(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function OD(e){Bo(e);let t=e.length,n=-1,i=0,s=-1,o=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function ND(...e){let t=-1,n;for(;++t<e.length;)Bo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":jD(n)}function jD(e){Bo(e);const t=e.codePointAt(0)===47;let n=LD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function LD(e,t){let n="",i=0,s=-1,o=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(s===u-1||o===1))if(s!==u-1&&o===2){if(n.length<2||i!==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="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length>0){n="",i=0,s=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,o=0}else f===46&&o>-1?o++:o=-1}return n}function Bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DD={cwd:MD};function MD(){return"/"}function dp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function PD(e){if(typeof e=="string")e=new URL(e);else if(!dp(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 zD(e)}function zD(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const vm=["history","path","basename","stem","extname","dirname"];class MS{constructor(t){let n;t?dp(t)?n={path:t}:typeof t=="string"||ID(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":DD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<vm.length;){const o=vm[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let s;for(s in n)vm.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){bm(t,"basename"),_m(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){Vb(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(_m(t,"extname"),Vb(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=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){dp(t)&&(t=PD(t)),bm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){bm(t,"stem"),_m(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Bt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _m(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}function bm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Vb(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ID(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const BD=(function(e){const i=this.constructor.prototype,s=i[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),UD={}.hasOwnProperty;class Jp extends BD{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=CD()}copy(){const t=new Jp;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(ym(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Em("data",this.frozen),this.namespace[t]=n,this):UD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Em("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pc(t),i=this.parser||this.Parser;return xm("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),xm("process",this.parser||this.Parser),Sm("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(o,u){const f=pc(t),d=i.parse(f);i.run(d,f,function(y,p,v){if(y||!p||!v)return h(y);const _=p,x=i.stringify(_,v);HD(x)?v.value=x:v.result=x,h(y,v)});function h(y,p){y||!p?u(y):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),xm("processSync",this.parser||this.Parser),Sm("processSync",this.compiler||this.Compiler),this.process(t,s),Hb("processSync","process",n),i;function s(o,u){n=!0,Bb(o),i=u}}run(t,n,i){qb(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(u,f){const d=pc(n);s.run(t,d,h);function h(y,p,v){const _=p||t;y?f(y):u?u(_):i(void 0,_,v)}}}runSync(t,n){let i=!1,s;return this.run(t,n,o),Hb("runSync","run",i),s;function o(u,f){Bb(u),s=f,i=!0}}stringify(t,n){this.freeze();const i=pc(n),s=this.compiler||this.Compiler;return Sm("stringify",s),qb(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Em("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...p]=h;d(y,p)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))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");f(h.plugins),h.settings&&(s.settings=ym(!0,s.settings,h.settings))}function f(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const p=h[y];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,y){let p=-1,v=-1;for(;++p<i.length;)if(i[p][0]===h){v=p;break}if(v===-1)i.push([h,...y]);else if(y.length>0){let[_,...x]=y;const w=i[v][1];fp(w)&&fp(_)&&(_=ym(!0,w,_)),i[v]=[h,_,...x]}}}}const VD=new Jp().freeze();function xm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Em(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 qb(e){if(!fp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hb(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pc(e){return qD(e)?e:new MS(e)}function qD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function HD(e){return typeof e=="string"||GD(e)}function GD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gb=[],Fb={allowDangerousHtml:!0},$D=/^(https?|ircs?|mailto|xmpp)$/i,QD=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function YD(e){const t=KD(e),n=XD(e);return ZD(t.runSync(t.parse(n),n),e)}function KD(e){const t=e.rehypePlugins||Gb,n=e.remarkPlugins||Gb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fb}:Fb;return VD().use(RL).use(n).use(ED,i).use(t)}function XD(e){const t=e.children||"",n=new MS;return typeof t=="string"&&(n.value=t),n}function ZD(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,o=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||JD;for(const y of QD)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+FD+y.id,void 0);return Zp(e,h),dN(e,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function h(y,p,v){if(y.type==="raw"&&v&&typeof p=="number")return u?v.children.splice(p,1):v.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let _;for(_ in hm)if(Object.hasOwn(hm,_)&&Object.hasOwn(y.properties,_)){const x=y.properties[_],w=hm[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(x||""),_,y))}}if(y.type==="element"){let _=n?!n.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&i&&typeof p=="number"&&(_=!i(y,p,v)),_&&v&&typeof p=="number")return f&&y.children?v.children.splice(p,1,...y.children):v.children.splice(p,1),p}}}function JD(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||$D.test(e.slice(0,t))?e:""}function Qc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function WD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function eM(e,t,n){const s=Sf((n||{}).ignore||[]),o=tM(t);let u=-1;for(;++u<o.length;)DS(e,"text",f);function f(h,y){let p=-1,v;for(;++p<y.length;){const _=y[p],x=v?v.children:void 0;if(s(_,x?x.indexOf(_):void 0,v))return;v=_}if(v)return d(h,y)}function d(h,y){const p=y[y.length-1],v=o[u][0],_=o[u][1];let x=0;const E=p.children.indexOf(h);let T=!1,A=[];v.lastIndex=0;let N=v.exec(h.value);for(;N;){const P=N.index,I={index:N.index,input:N.input,stack:[...y,h]};let R=_(...N,I);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?v.lastIndex=P+1:(x!==P&&A.push({type:"text",value:h.value.slice(x,P)}),Array.isArray(R)?A.push(...R):R&&A.push(R),x=P+N[0].length,T=!0),!v.global)break;N=v.exec(h.value)}return T?(x<h.value.length&&A.push({type:"text",value:h.value.slice(x)}),p.children.splice(E,1,...A)):A=[h],E+A.length}}function tM(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 i=-1;for(;++i<n.length;){const s=n[i];t.push([nM(s[0]),rM(s[1])])}return t}function nM(e){return typeof e=="string"?new RegExp(WD(e),"g"):e}function rM(e){return typeof e=="function"?e:function(){return e}}const wm="phrasing",Tm=["autolink","link","image","label"];function iM(){return{transforms:[fM],enter:{literalAutolink:sM,literalAutolinkEmail:Cm,literalAutolinkHttp:Cm,literalAutolinkWww:Cm},exit:{literalAutolink:cM,literalAutolinkEmail:uM,literalAutolinkHttp:lM,literalAutolinkWww:oM}}}function aM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wm,notInConstruct:Tm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wm,notInConstruct:Tm},{character:":",before:"[ps]",after:"\\/",inConstruct:wm,notInConstruct:Tm}]}}function sM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Cm(e){this.config.enter.autolinkProtocol.call(this,e)}function lM(e){this.config.exit.autolinkProtocol.call(this,e)}function oM(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 uM(e){this.config.exit.autolinkEmail.call(this,e)}function cM(e){this.exit(e)}function fM(e){eM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hM]],{ignore:["link","linkReference"]})}function dM(e,t,n,i,s){let o="";if(!PS(s)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!mM(n)))return!1;const u=pM(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function hM(e,t,n,i){return!PS(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function mM(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 pM(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=Qc(e,"(");let o=Qc(e,")");for(;i!==-1&&s>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function PS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ka(n)||_f(n))&&(!t||n!==47)}zS.peek=wM;function gM(){this.buffer()}function yM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vM(){this.buffer()}function _M(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bM(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xM(e){this.exit(e)}function SM(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function EM(e){this.exit(e)}function wM(){return"["}function zS(e,t,n,i){const s=n.createTracker(i);let o=s.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return o+=s.move(n.safe(n.associationId(e),{after:"]",before:o})),f(),u(),o+=s.move("]"),o}function TM(){return{enter:{gfmFootnoteCallString:gM,gfmFootnoteCall:yM,gfmFootnoteDefinitionLabelString:vM,gfmFootnoteDefinition:_M},exit:{gfmFootnoteCallString:bM,gfmFootnoteCall:xM,gfmFootnoteDefinitionLabelString:SM,gfmFootnoteDefinition:EM}}}function CM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:zS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,o,u){const f=o.createTracker(u);let d=f.move("[^");const h=o.enter("footnoteDefinition"),y=o.enter("label");return d+=f.move(o.safe(o.associationId(i),{before:d,after:"]"})),y(),d+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),d+=f.move((t?`
|
|
282
|
-
`:" ")+o.indentLines(o.containerFlow(i,f.current()),t?IS:kM))),h(),d}}function kM(e,t,n){return t===0?e:IS(e,t,n)}function IS(e,t,n){return(n?"":" ")+e}const AM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];BS.peek=LM;function RM(){return{canContainEols:["delete"],enter:{strikethrough:NM},exit:{strikethrough:jM}}}function OM(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:AM}],handlers:{delete:BS}}}function NM(e){this.enter({type:"delete",children:[]},e)}function jM(e){this.exit(e)}function BS(e,t,n,i){const s=n.createTracker(i),o=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),o(),u}function LM(){return"~"}function DM(e){return e.length}function MM(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||DM,o=[],u=[],f=[],d=[];let h=0,y=-1;for(;++y<e.length;){const w=[],E=[];let T=-1;for(e[y].length>h&&(h=e[y].length);++T<e[y].length;){const A=PM(e[y][T]);if(n.alignDelimiters!==!1){const N=s(A);E[T]=N,(d[T]===void 0||N>d[T])&&(d[T]=N)}w.push(A)}u[y]=w,f[y]=E}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)o[p]=$b(i[p]);else{const w=$b(i);for(;++p<h;)o[p]=w}p=-1;const v=[],_=[];for(;++p<h;){const w=o[p];let E="",T="";w===99?(E=":",T=":"):w===108?E=":":w===114&&(T=":");let A=n.alignDelimiters===!1?1:Math.max(1,d[p]-E.length-T.length);const N=E+"-".repeat(A)+T;n.alignDelimiters!==!1&&(A=E.length+A+T.length,A>d[p]&&(d[p]=A),_[p]=A),v[p]=N}u.splice(1,0,v),f.splice(1,0,_),y=-1;const x=[];for(;++y<u.length;){const w=u[y],E=f[y];p=-1;const T=[];for(;++p<h;){const A=w[p]||"";let N="",P="";if(n.alignDelimiters!==!1){const I=d[p]-(E[p]||0),R=o[p];R===114?N=" ".repeat(I):R===99?I%2?(N=" ".repeat(I/2+.5),P=" ".repeat(I/2-.5)):(N=" ".repeat(I/2),P=N):P=" ".repeat(I)}n.delimiterStart!==!1&&!p&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||p)&&T.push(" "),n.alignDelimiters!==!1&&T.push(N),T.push(A),n.alignDelimiters!==!1&&T.push(P),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&T.push("|")}x.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
|
|
283
|
-
`)}function PM(e){return e==null?"":String(e)}function $b(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}const Qb={}.hasOwnProperty;function zM(e,t){const n=t||{};function i(s,...o){let u=i.invalid;const f=i.handlers;if(s&&Qb.call(s,e)){const d=String(s[e]);u=Qb.call(f,d)?f[d]:i.unknown}if(u)return u.call(this,s,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function IM(e,t,n,i){const s=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(e,o.current()),BM);return s(),u}function BM(e,t,n){return">"+(n?"":" ")+e}function UM(e,t){return Yb(e,t.inConstruct,!0)&&!Yb(e,t.notInConstruct,!1)}function Yb(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Kb(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
284
|
-
`&&UM(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
285
|
-
`}function VM(e,t){const n=String(e);let i=n.indexOf(t),s=i,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++o>u&&(u=o):o=1,s=i+t.length,i=n.indexOf(t,s);return u}function qM(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 HM(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 GM(e,t,n,i){const s=HM(n),o=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(qM(e,n)){const p=n.enter("codeIndented"),v=n.indentLines(o,FM);return p(),v}const f=n.createTracker(i),d=s.repeat(Math.max(VM(o,s)+1,3)),h=n.enter("codeFenced");let y=f.move(d);if(e.lang){const p=n.enter(`codeFencedLang${u}`);y+=f.move(n.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);y+=f.move(" "),y+=f.move(n.safe(e.meta,{before:y,after:`
|
|
286
|
-
`,encode:["`"],...f.current()})),p()}return y+=f.move(`
|
|
287
|
-
`),o&&(y+=f.move(o+`
|
|
288
|
-
`)),y+=f.move(d),h(),y}function FM(e,t,n){return(n?"":" ")+e}function Wp(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 $M(e,t,n,i){const s=Wp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const d=n.createTracker(i);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
289
|
-
`,...d.current()}))),f(),e.title&&(f=n.enter(`title${o}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),f()),u(),h}function QM(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 Eo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Yc(e,t,n){const i=Xs(e),s=Xs(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}US.peek=YM;function US(e,t,n,i){const s=QM(n),o=n.enter("emphasis"),u=n.createTracker(i),f=u.move(s);let d=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const h=d.charCodeAt(0),y=Yc(i.before.charCodeAt(i.before.length-1),h,s);y.inside&&(d=Eo(h)+d.slice(1));const p=d.charCodeAt(d.length-1),v=Yc(i.after.charCodeAt(0),p,s);v.inside&&(d=d.slice(0,-1)+Eo(p));const _=u.move(s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+d+_}function YM(e,t,n){return n.options.emphasis||"*"}function KM(e,t){let n=!1;return Zp(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,up}),!!((!e.depth||e.depth<3)&&Gp(e)&&(t.options.setext||n))}function XM(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(KM(e,n)){const y=n.enter("headingSetext"),p=n.enter("phrasing"),v=n.containerPhrasing(e,{...o.current(),before:`
|
|
290
|
-
`,after:`
|
|
291
|
-
`});return p(),y(),v+`
|
|
292
|
-
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
293
|
-
`))+1))}const u="#".repeat(s),f=n.enter("headingAtx"),d=n.enter("phrasing");o.move(u+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
294
|
-
`,...o.current()});return/^[\t ]/.test(h)&&(h=Eo(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),f(),h}VS.peek=ZM;function VS(e){return e.value||""}function ZM(){return"<"}qS.peek=JM;function qS(e,t,n,i){const s=Wp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const d=n.createTracker(i);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=n.enter(`title${o}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),f()),h+=d.move(")"),u(),h}function JM(){return"!"}HS.peek=WM;function HS(e,t,n,i){const s=e.referenceType,o=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let d=f.move("![");const h=n.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!h||h!==p?d+=f.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function WM(){return"!"}GS.peek=eP;function GS(e,t,n){let i=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const u=n.unsafe[o],f=n.compilePattern(u);let d;if(u.atBreak)for(;d=f.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return s+i+s}function eP(){return"`"}function FS(e,t){const n=Gp(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))}$S.peek=tP;function $S(e,t,n,i){const s=Wp(n),o=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,d;if(FS(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),f(),n.stack=y,p}f=n.enter("link"),d=n.enter("label");let h=u.move("[");return h+=u.move(n.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(d=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=n.enter(`title${o}`),h+=u.move(" "+s),h+=u.move(n.safe(e.title,{before:h,after:s,...u.current()})),h+=u.move(s),d()),h+=u.move(")"),f(),h}function tP(e,t,n){return FS(e,n)?"<":"["}QS.peek=nP;function QS(e,t,n,i){const s=e.referenceType,o=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let d=f.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!h||h!==p?d+=f.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function nP(){return"["}function eg(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 rP(e){const t=eg(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 iP(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 YS(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 aP(e,t,n,i){const s=n.enter("list"),o=n.bulletCurrent;let u=e.ordered?iP(n):eg(n);const f=e.ordered?u==="."?")":".":rP(n);let d=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.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),YS(n)===u&&y){let p=-1;for(;++p<e.children.length;){const v=e.children[p];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=f),n.bulletCurrent=u;const h=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=o,s(),h}function sP(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 lP(e,t,n,i){const s=sP(n);let o=n.bulletCurrent||eg(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(o+" ".repeat(u-o.length)),f.shift(u);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,f.current()),y);return d(),h;function y(p,v,_){return v?(_?"":" ".repeat(u))+p:(_?o:o+" ".repeat(u-o.length))+p}}function oP(e,t,n,i){const s=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(e,i);return o(),s(),u}const uP=Sf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cP(e,t,n,i){return(e.children.some(function(u){return uP(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function fP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}KS.peek=dP;function KS(e,t,n,i){const s=fP(n),o=n.enter("strong"),u=n.createTracker(i),f=u.move(s+s);let d=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const h=d.charCodeAt(0),y=Yc(i.before.charCodeAt(i.before.length-1),h,s);y.inside&&(d=Eo(h)+d.slice(1));const p=d.charCodeAt(d.length-1),v=Yc(i.after.charCodeAt(0),p,s);v.inside&&(d=d.slice(0,-1)+Eo(p));const _=u.move(s+s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+d+_}function dP(e,t,n){return n.options.strong||"*"}function hP(e,t,n,i){return n.safe(e.value,i)}function mP(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 pP(e,t,n){const i=(YS(n)+(n.options.ruleSpaces?" ":"")).repeat(mP(n));return n.options.ruleSpaces?i.slice(0,-1):i}const XS={blockquote:IM,break:Kb,code:GM,definition:$M,emphasis:US,hardBreak:Kb,heading:XM,html:VS,image:qS,imageReference:HS,inlineCode:GS,link:$S,linkReference:QS,list:aP,listItem:lP,paragraph:oP,root:cP,strong:KS,text:hP,thematicBreak:pP};function gP(){return{enter:{table:yP,tableData:Xb,tableHeader:Xb,tableRow:_P},exit:{codeText:bP,table:vP,tableData:km,tableHeader:km,tableRow:km}}}function yP(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 vP(e){this.exit(e),this.data.inTable=void 0}function _P(e){this.enter({type:"tableRow",children:[]},e)}function km(e){this.exit(e)}function Xb(e){this.enter({type:"tableCell",children:[]},e)}function bP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xP));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function xP(e,t){return t==="|"?t:e}function SP(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
295
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:d,tableRow:f}};function u(_,x,w,E){return h(y(_,w,E),_.align)}function f(_,x,w,E){const T=p(_,w,E),A=h([T]);return A.slice(0,A.indexOf(`
|
|
296
|
-
`))}function d(_,x,w,E){const T=w.enter("tableCell"),A=w.enter("phrasing"),N=w.containerPhrasing(_,{...E,before:o,after:o});return A(),T(),N}function h(_,x){return MM(_,{align:x,alignDelimiters:i,padding:n,stringLength:s})}function y(_,x,w){const E=_.children;let T=-1;const A=[],N=x.enter("table");for(;++T<E.length;)A[T]=p(E[T],x,w);return N(),A}function p(_,x,w){const E=_.children;let T=-1;const A=[],N=x.enter("tableRow");for(;++T<E.length;)A[T]=d(E[T],_,x,w);return N(),A}function v(_,x,w){let E=XS.inlineCode(_,x,w);return w.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function EP(){return{exit:{taskListCheckValueChecked:Zb,taskListCheckValueUnchecked:Zb,paragraph:TP}}}function wP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:CP}}}function Zb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function TP(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 i=n.children[0];if(i&&i.type==="text"){const s=t.children;let o=-1,u;for(;++o<s.length;){const f=s[o];if(f.type==="paragraph"){u=f;break}}u===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function CP(e,t,n,i){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);o&&f.move(u);let d=XS.listItem(e,t,n,{...i,...f.current()});return o&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(y){return y+u}}function kP(){return[iM(),TM(),RM(),gP(),EP()]}function AP(e){return{extensions:[aM(),CM(e),OM(),SP(e),wP()]}}const RP={tokenize:MP,partial:!0},ZS={tokenize:PP,partial:!0},JS={tokenize:zP,partial:!0},WS={tokenize:IP,partial:!0},OP={tokenize:BP,partial:!0},eE={name:"wwwAutolink",tokenize:LP,previous:nE},tE={name:"protocolAutolink",tokenize:DP,previous:rE},Fr={name:"emailAutolink",tokenize:jP,previous:iE},cr={};function NP(){return{text:cr}}let ia=48;for(;ia<123;)cr[ia]=Fr,ia++,ia===58?ia=65:ia===91&&(ia=97);cr[43]=Fr;cr[45]=Fr;cr[46]=Fr;cr[95]=Fr;cr[72]=[Fr,tE];cr[104]=[Fr,tE];cr[87]=[Fr,eE];cr[119]=[Fr,eE];function jP(e,t,n){const i=this;let s,o;return u;function u(p){return!hp(p)||!iE.call(i,i.previous)||tg(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(p))}function f(p){return hp(p)?(e.consume(p),f):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(OP,y,h)(p):p===45||p===95||It(p)?(o=!0,e.consume(p),d):y(p)}function h(p){return e.consume(p),s=!0,d}function y(p){return o&&s&&$t(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function LP(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!nE.call(i,i.previous)||tg(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(RP,e.attempt(ZS,e.attempt(JS,o),n),n)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function DP(e,t,n){const i=this;let s="",o=!1;return u;function u(p){return(p===72||p===104)&&rE.call(i,i.previous)&&!tg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),f):n(p)}function f(p){if($t(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),f;if(p===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),o?h:(o=!0,d)):n(p)}function h(p){return p===null||Gc(p)||tt(p)||ka(p)||_f(p)?n(p):e.attempt(ZS,e.attempt(JS,y),n)(p)}function y(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function MP(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),o):n(u)}function o(u){return u===null?n(u):t(u)}}function PP(e,t,n){let i,s,o;return u;function u(h){return h===46||h===95?e.check(WS,d,f)(h):h===null||tt(h)||ka(h)||h!==45&&_f(h)?d(h):(o=!0,e.consume(h),u)}function f(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),u}function d(h){return s||i||!o?n(h):t(h)}}function zP(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<n?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(WS,t,o)(u):u===null||tt(u)||ka(u)?t(u):(e.consume(u),s)}function o(u){return u===41&&i++,e.consume(u),s}}function IP(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),o):f===93?(e.consume(f),s):f===60||f===null||tt(f)||ka(f)?t(f):n(f)}function s(f){return f===null||f===40||f===91||tt(f)||ka(f)?t(f):i(f)}function o(f){return $t(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):$t(f)?(e.consume(f),u):n(f)}}function BP(e,t,n){return i;function i(o){return e.consume(o),s}function s(o){return It(o)?n(o):t(o)}}function nE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function rE(e){return!$t(e)}function iE(e){return!(e===47||hp(e))}function hp(e){return e===43||e===45||e===46||e===95||It(e)}function tg(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const UP={tokenize:YP,partial:!0};function VP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FP,continuation:{tokenize:$P},exit:QP}},text:{91:{name:"gfmFootnoteCall",tokenize:GP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qP,resolveTo:HP}}}}function qP(e,t,n){const i=this;let s=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const d=i.events[s][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!u||!u._balanced)return n(d);const h=Xn(i.sliceSerialize({start:u.end,end:i.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function HP(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 i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function GP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return f;function f(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(o>999||p===93&&!u||p===null||p===91||tt(p))return n(p);if(p===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Xn(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return tt(p)||(u=!0),o++,e.consume(p),p===92?y:h}function y(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function FP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,f;return d;function d(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(x)}function y(x){if(u>999||x===93&&!f||x===null||x===91||tt(x))return n(x);if(x===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Xn(i.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return tt(x)||(f=!0),u++,e.consume(x),x===92?p:y}function p(x){return x===91||x===92||x===93?(e.consume(x),u++,y):y(x)}function v(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),s.includes(o)||s.push(o),Be(e,_,"gfmFootnoteDefinitionWhitespace")):n(x)}function _(x){return t(x)}}function $P(e,t,n){return e.check(Io,t,e.attempt(UP,t,n))}function QP(e){e.exit("gfmFootnoteDefinition")}function YP(e,t,n){const i=this;return Be(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):n(o)}}function KP(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(u,f){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let h=d;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[d][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[d][1].end)},p={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[d][1].start)},v=[["enter",y,f],["enter",u[h][1],f],["exit",u[h][1],f],["enter",p,f]],_=f.parser.constructs.insideSpan.null;_&&bn(v,v.length,0,bf(_,u.slice(h+1,d),f)),bn(v,v.length,0,[["exit",p,f],["enter",u[d][1],f],["exit",u[d][1],f],["exit",y,f]]),bn(u,h-1,d-h+3,v),d=h+v.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function o(u,f,d){const h=this.previous,y=this.events;let p=0;return v;function v(x){return h===126&&y[y.length-1][1].type!=="characterEscape"?d(x):(u.enter("strikethroughSequenceTemporary"),_(x))}function _(x){const w=Xs(h);if(x===126)return p>1?d(x):(u.consume(x),p++,_);if(p<2&&!n)return d(x);const E=u.exit("strikethroughSequenceTemporary"),T=Xs(x);return E._open=!T||T===2&&!!w,E._close=!w||w===2&&!!T,f(x)}}}class XP{constructor(){this.map=[]}add(t,n,i){ZP(this,t,n,i)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const o of s)t.push(o);s=i.pop()}this.map.length=0}}function ZP(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function JP(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function WP(){return{flow:{null:{name:"table",tokenize:e3,resolveAll:t3}}}}function e3(e,t,n){const i=this;let s=0,o=0,u;return f;function f(j){let Q=i.events.length-1;for(;Q>-1;){const oe=i.events[Q][1].type;if(oe==="lineEnding"||oe==="linePrefix")Q--;else break}const ie=Q>-1?i.events[Q][1].type:null,de=ie==="tableHead"||ie==="tableRow"?R:d;return de===R&&i.parser.lazy[i.now().line]?n(j):de(j)}function d(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(u=!0,o+=1),y(j)}function y(j){return j===null?n(j):_e(j)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),_):n(j):je(j)?Be(e,y,"whitespace")(j):(o+=1,u&&(u=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),p(j)))}function p(j){return j===null||j===124||tt(j)?(e.exit("data"),y(j)):(e.consume(j),j===92?v:p)}function v(j){return j===92||j===124?(e.consume(j),p):p(j)}function _(j){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(j):(e.enter("tableDelimiterRow"),u=!1,je(j)?Be(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):x(j))}function x(j){return j===45||j===58?E(j):j===124?(u=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),w):I(j)}function w(j){return je(j)?Be(e,E,"whitespace")(j):E(j)}function E(j){return j===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),T):j===45?(o+=1,T(j)):j===null||_e(j)?P(j):I(j)}function T(j){return j===45?(e.enter("tableDelimiterFiller"),A(j)):I(j)}function A(j){return j===45?(e.consume(j),A):j===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(j))}function N(j){return je(j)?Be(e,P,"whitespace")(j):P(j)}function P(j){return j===124?x(j):j===null||_e(j)?!u||s!==o?I(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):I(j)}function I(j){return n(j)}function R(j){return e.enter("tableRow"),U(j)}function U(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),U):j===null||_e(j)?(e.exit("tableRow"),t(j)):je(j)?Be(e,U,"whitespace")(j):(e.enter("data"),K(j))}function K(j){return j===null||j===124||tt(j)?(e.exit("data"),U(j)):(e.consume(j),j===92?ee:K)}function ee(j){return j===92||j===124?(e.consume(j),K):K(j)}}function t3(e,t){let n=-1,i=!0,s=0,o=[0,0,0,0],u=[0,0,0,0],f=!1,d=0,h,y,p;const v=new XP;for(;++n<e.length;){const _=e[n],x=_[1];_[0]==="enter"?x.type==="tableHead"?(f=!1,d!==0&&(Jb(v,t,d,h,y),y=void 0,d=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(n,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(n,0,[["enter",y,t]])),s=x.type==="tableDelimiterRow"?2:y?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=gc(v,t,o,s,void 0,p),o=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=gc(v,t,o,s,void 0,p)),o=u,u=[o[1],n,0,0])):x.type==="tableHead"?(f=!0,d=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(d=n,o[1]!==0?(u[0]=u[1],p=gc(v,t,o,s,n,p)):u[1]!==0&&(p=gc(v,t,u,s,n,p)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&Jb(v,t,d,h,y),v.consume(t.events),n=-1;++n<t.events.length;){const _=t.events[n];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=JP(t.events,n))}return e}function gc(e,t,n,i,s,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(o.end=Object.assign({},As(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const d=As(t.events,n[1]);if(o={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const h=As(t.events,n[2]),y=As(t.events,n[3]),p={type:f,start:Object.assign({},h),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const v=t.events[n[2]],_=t.events[n[3]];if(v[1].end=Object.assign({},_[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,w=n[3]-n[2]-1;e.add(x,w,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},As(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Jb(e,t,n,i,s){const o=[],u=As(t.events,n);s&&(s.end=Object.assign({},u),o.push(["exit",s,t])),i.end=Object.assign({},u),o.push(["exit",i,t]),e.add(n+1,0,o)}function As(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const n3={name:"tasklistCheck",tokenize:i3};function r3(){return{text:{91:n3}}}function i3(e,t,n){const i=this;return s;function s(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),o)}function o(d){return tt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):n(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(d)}function f(d){return _e(d)?t(d):je(d)?e.check({tokenize:a3},t,n)(d):n(d)}}function a3(e,t,n){return Be(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function s3(e){return pS([NP(),VP(),KP(e),WP(),r3()])}const l3={};function o3(e){const t=this,n=e||l3,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(s3(n)),o.push(kP()),u.push(AP(n))}const u3="modulepreload",c3=function(e){return"/"+e},Wb={},O=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=u(n.map(h=>{if(h=c3(h),h in Wb)return;Wb[h]=!0;const y=h.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":u3,y||(v.as="script"),v.crossOrigin="",v.href=h,d&&v.setAttribute("nonce",d),document.head.appendChild(v),y)return new Promise((_,x)=>{v.addEventListener("load",_),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})};let vt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function f3(e){return ng(e)}function ng(e){return Array.isArray(e)?d3(e):e instanceof RegExp?e:typeof e=="object"?h3(e):e}function d3(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=ng(e[n]);return t}function h3(e){let t={};for(let n in e)t[n]=ng(e[n]);return t}function aE(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function sE(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?sE(e.substring(0,e.length-1)):e.substr(~t+1)}var Am=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,yc=class{static hasCaptures(e){return e===null?!1:(Am.lastIndex=0,Am.test(e))}static replaceCaptures(e,t,n){return e.replace(Am,(i,s,o,u)=>{let f=n[parseInt(s||o,10)];if(f){let d=t.substring(f.start,f.end);for(;d[0]===".";)d=d.substring(1);switch(u){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return i})}};function lE(e,t){return e<t?-1:e>t?1:0}function oE(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let s=0;s<n;s++){let o=lE(e[s],t[s]);if(o!==0)return o}return 0}return n-i}function ex(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 uE(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var cE=class{constructor(e){te(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Kc=class{constructor(e,t,n){te(this,"_cachedMatchRoot",new cE(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(g3(e),t)}static createFromParsedTheme(e,t){return v3(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(s=>m3(e.parent,s.parentScopes));return i?new fE(i.fontStyle,i.foreground,i.background):null}},Rm=class kc{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new kc(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new kc(n,t[i]);return n}push(t){return new kc(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 i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function m3(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],s=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],s=!0}for(;e&&!p3(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function p3(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var fE=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function g3(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let s=0,o=t.length;s<o;s++){let u=t[s];if(!u.settings)continue;let f;if(typeof u.scope=="string"){let p=u.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),f=p.split(",")}else Array.isArray(u.scope)?f=u.scope:f=[""];let d=-1;if(typeof u.settings.fontStyle=="string"){d=0;let p=u.settings.fontStyle.split(" ");for(let v=0,_=p.length;v<_;v++)switch(p[v]){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 h=null;typeof u.settings.foreground=="string"&&ex(u.settings.foreground)&&(h=u.settings.foreground);let y=null;typeof u.settings.background=="string"&&ex(u.settings.background)&&(y=u.settings.background);for(let p=0,v=f.length;p<v;p++){let x=f[p].trim().split(" "),w=x[x.length-1],E=null;x.length>1&&(E=x.slice(0,x.length-1),E.reverse()),n[i++]=new y3(w,E,s,d,h,y)}}return n}var y3=class{constructor(e,t,n,i,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=s,this.background=o}},zt=(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))(zt||{});function v3(e,t){e.sort((d,h)=>{let y=lE(d.scope,h.scope);return y!==0||(y=oE(d.parentScopes,h.parentScopes),y!==0)?y:d.index-h.index});let n=0,i="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(s=d.background)}let o=new _3(t),u=new fE(n,o.getId(i),o.getId(s)),f=new x3(new mp(0,null,-1,0,0),[]);for(let d=0,h=e.length;d<h;d++){let y=e[d];f.insert(0,y.scope,y.parentScopes,y.fontStyle,o.getId(y.foreground),o.getId(y.background))}return new Kc(o,u,f)}var _3=class{constructor(e){te(this,"_isFrozen");te(this,"_lastColorId");te(this,"_id2color");te(this,"_color2id");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)}},b3=Object.freeze([]),mp=class dE{constructor(t,n,i,s,o){te(this,"scopeDepth");te(this,"parentScopes");te(this,"fontStyle");te(this,"foreground");te(this,"background");this.scopeDepth=t,this.parentScopes=n||b3,this.fontStyle=i,this.foreground=s,this.background=o}clone(){return new dE(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,s=t.length;i<s;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),s!==0&&(this.background=s)}},x3=class pp{constructor(t,n=[],i={}){te(this,"_rulesWithParentScopes");this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,s=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[s]===">"&&s++,!(i>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[i].length;if(o!==0)return o;i++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),s,o;if(i===-1?(s=t,o=""):(s=t.substring(0,i),o=t.substring(i+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(pp._cmpBySpecificity),n}insert(t,n,i,s,o,u){if(n===""){this._doInsertHere(t,i,s,o,u);return}let f=n.indexOf("."),d,h;f===-1?(d=n,h=""):(d=n.substring(0,f),h=n.substring(f+1));let y;this._children.hasOwnProperty(d)?y=this._children[d]:(y=new pp(this._mainRule.clone(),mp.cloneArr(this._rulesWithParentScopes)),this._children[d]=y),y.insert(t+1,h,i,s,o,u)}_doInsertHere(t,n,i,s,o){if(n===null){this._mainRule.acceptOverwrite(t,i,s,o);return}for(let u=0,f=this._rulesWithParentScopes.length;u<f;u++){let d=this._rulesWithParentScopes[u];if(oE(d.parentScopes,n)===0){d.acceptOverwrite(t,i,s,o);return}}i===-1&&(i=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new mp(t,n,i,s,o))}},Zs=class Nn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Nn.getLanguageId(t),i=Nn.getTokenType(t),s=Nn.getFontStyle(t),o=Nn.getForeground(t),u=Nn.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:s,foreground:o,background:u})}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,i,s,o,u,f){let d=Nn.getLanguageId(t),h=Nn.getTokenType(t),y=Nn.containsBalancedBrackets(t)?1:0,p=Nn.getFontStyle(t),v=Nn.getForeground(t),_=Nn.getBackground(t);return n!==0&&(d=n),i!==8&&(h=i),s!==null&&(y=s?1:0),o!==-1&&(p=o),u!==0&&(v=u),f!==0&&(_=f),(d<<0|h<<8|y<<10|p<<11|v<<15|_<<24)>>>0}};function Xc(e,t){const n=[],i=S3(e);let s=i.next();for(;s!==null;){let d=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let h=u();if(n.push({matcher:h,priority:d}),s!==",")break;s=i.next()}return n;function o(){if(s==="-"){s=i.next();const d=o();return h=>!!d&&!d(h)}if(s==="("){s=i.next();const d=f();return s===")"&&(s=i.next()),d}if(tx(s)){const d=[];do d.push(s),s=i.next();while(tx(s));return h=>t(d,h)}return null}function u(){const d=[];let h=o();for(;h;)d.push(h),h=o();return y=>d.every(p=>p(y))}function f(){const d=[];let h=u();for(;h&&(d.push(h),s==="|"||s===",");){do s=i.next();while(s==="|"||s===",");h=u()}return y=>d.some(p=>p(y))}}function tx(e){return!!e&&!!e.match(/[\w\.:]+/)}function S3(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function hE(e){typeof e.dispose=="function"&&e.dispose()}var wo=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},E3=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},w3=class{constructor(){te(this,"_references",[]);te(this,"_seenReferenceKeys",new Set);te(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},T3=class{constructor(e,t){te(this,"seenFullScopeRequests",new Set);te(this,"seenPartialScopeRequests",new Set);te(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new wo(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new w3;for(const n of e)C3(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof wo){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 C3(e,t,n,i){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof wo?Ac({baseGrammar:o,selfGrammar:s},i):gp(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},i);const u=n.injections(e.scopeName);if(u)for(const f of u)i.add(new wo(f))}function gp(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];Zc([i],t,n)}}function Ac(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Zc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Zc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Zc(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const s=i.repository?aE({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&Zc(i.patterns,{...t,repository:s},n);const o=i.include;if(!o)continue;const u=mE(o);switch(u.kind){case 0:Ac({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ac(t,n);break;case 2:gp(u.ruleName,{...t,repository:s},n);break;case 3:case 4:const f=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const d={baseGrammar:t.baseGrammar,selfGrammar:f,repository:s};u.kind===4?gp(u.ruleName,d,n):Ac(d,n)}else u.kind===4?n.add(new E3(u.scopeName,u.ruleName)):n.add(new wo(u.scopeName));break}}}var k3=class{constructor(){te(this,"kind",0)}},A3=class{constructor(){te(this,"kind",1)}},R3=class{constructor(e){te(this,"kind",2);this.ruleName=e}},O3=class{constructor(e){te(this,"kind",3);this.scopeName=e}},N3=class{constructor(e,t){te(this,"kind",4);this.scopeName=e,this.ruleName=t}};function mE(e){if(e==="$base")return new k3;if(e==="$self")return new A3;const t=e.indexOf("#");if(t===-1)return new O3(e);if(t===0)return new R3(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new N3(n,i)}}var j3=/\\(\d+)/,nx=/\\(\d+)/g,L3=-1,pE=-2;var Uo=class{constructor(e,t,n,i){te(this,"$location");te(this,"id");te(this,"_nameIsCapturing");te(this,"_name");te(this,"_contentNameIsCapturing");te(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=yc.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=yc.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${sE(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:yc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:yc.replaceCaptures(this._contentName,e,t)}},D3=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,s);te(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,i,s){throw new Error("Not supported!")}},M3=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,null);te(this,"_match");te(this,"captures");te(this,"_cachedCompiledPatterns");this._match=new To(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rx=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,s);te(this,"hasMissingPatterns");te(this,"patterns");te(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const i of this.patterns)t.getRule(i).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yp=class extends Uo{constructor(t,n,i,s,o,u,f,d,h,y){super(t,n,i,s);te(this,"_begin");te(this,"beginCaptures");te(this,"_end");te(this,"endHasBackReferences");te(this,"endCaptures");te(this,"applyEndPatternLast");te(this,"hasMissingPatterns");te(this,"patterns");te(this,"_cachedCompiledPatterns");this._begin=new To(o,this.id),this.beginCaptures=u,this._end=new To(f||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=h||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.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(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,i,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const i of this.patterns)t.getRule(i).collectPatterns(t,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Jc=class extends Uo{constructor(t,n,i,s,o,u,f,d,h){super(t,n,i,s);te(this,"_begin");te(this,"beginCaptures");te(this,"whileCaptures");te(this,"_while");te(this,"whileHasBackReferences");te(this,"hasMissingPatterns");te(this,"patterns");te(this,"_cachedCompiledPatterns");te(this,"_cachedCompiledWhilePatterns");this._begin=new To(o,this.id),this.beginCaptures=u,this.whileCaptures=d,this._while=new To(f,pE),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.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(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,i,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,i,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Co,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},gE=class Pt{static createCaptureRule(t,n,i,s,o){return t.registerRule(u=>new D3(n,u,i,s,o))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new M3(t.$vscodeTextmateLocation,t.id,t.name,t.match,Pt._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=aE({},i,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new rx(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Pt._compilePatterns(o,n,i))}return t.while?new Jc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,Pt._compileCaptures(t.whileCaptures||t.captures,n,i),Pt._compilePatterns(t.patterns,n,i)):new yp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,Pt._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,Pt._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let s=[];if(t){let o=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);f>o&&(o=f)}for(let u=0;u<=o;u++)s[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);let d=0;t[u].patterns&&(d=Pt.getCompiledRuleId(t[u],n,i)),s[f]=Pt.createCaptureRule(n,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,d)}}return s}static _compilePatterns(t,n,i){let s=[];if(t)for(let o=0,u=t.length;o<u;o++){const f=t[o];let d=-1;if(f.include){const h=mE(f.include);switch(h.kind){case 0:case 1:d=Pt.getCompiledRuleId(i[f.include],n,i);break;case 2:let y=i[h.ruleName];y&&(d=Pt.getCompiledRuleId(y,n,i));break;case 3:case 4:const p=h.scopeName,v=h.kind===4?h.ruleName:null,_=n.getExternalGrammar(p,i);if(_)if(v){let x=_.repository[v];x&&(d=Pt.getCompiledRuleId(x,n,_.repository))}else d=Pt.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else d=Pt.getCompiledRuleId(f,n,i);if(d!==-1){const h=n.getRule(d);let y=!1;if((h instanceof rx||h instanceof yp||h instanceof Jc)&&h.hasMissingPatterns&&h.patterns.length===0&&(y=!0),y)continue;s.push(d)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},To=class yE{constructor(t,n){te(this,"source");te(this,"ruleId");te(this,"hasAnchor");te(this,"hasBackReferences");te(this,"_anchorCache");if(t&&typeof t=="string"){const i=t.length;let s=0,o=[],u=!1;for(let f=0;f<i;f++)if(t.charAt(f)==="\\"&&f+1<i){const h=t.charAt(f+1);h==="z"?(o.push(t.substring(s,f)),o.push("$(?!\\n)(?<!\\n)"),s=f+2):(h==="A"||h==="G")&&(u=!0),f++}this.hasAnchor=u,s===0?this.source=t:(o.push(t.substring(s,i)),this.source=o.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=j3.test(this.source):this.hasBackReferences=!1}clone(){return new yE(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 i=n.map(s=>t.substring(s.start,s.end));return nx.lastIndex=0,this.source.replace(nx,(s,o)=>uE(i[parseInt(o,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=[],i=[],s=[],o,u,f,d;for(o=0,u=this.source.length;o<u;o++)f=this.source.charAt(o),t[o]=f,n[o]=f,i[o]=f,s[o]=f,f==="\\"&&o+1<u&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",i[o+1]="A",s[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",i[o+1]="",s[o+1]="G"):(t[o+1]=d,n[o+1]=d,i[o+1]=d,s[o+1]=d),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:s.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}},Co=class{constructor(){te(this,"_items");te(this,"_hasAnchors");te(this,"_cached");te(this,"_anchorCache");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 ix(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 i=this._items.map(s=>s.resolveAnchors(t,n));return new ix(e,i,this._items.map(s=>s.ruleId))}},ix=class{constructor(e,t,n){te(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}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(`
|
|
297
|
-
`)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Om=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ur,P3=(Ur=class{constructor(t,n){te(this,"_defaultAttributes");te(this,"_embeddedLanguagesMatcher");te(this,"_getBasicScopeAttributes",new cE(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new Om(n,i)}));this._defaultAttributes=new Om(t,8),this._embeddedLanguagesMatcher=new z3(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ur._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ur.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!")}},te(Ur,"_NULL_SCOPE_METADATA",new Om(0,0)),te(Ur,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ur),z3=class{constructor(e){te(this,"values");te(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>uE(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])}},ax=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function vE(e,t,n,i,s,o,u,f){const d=t.content.length;let h=!1,y=-1;if(u){const _=I3(e,t,n,i,s,o);s=_.stack,i=_.linePos,n=_.isFirstLine,y=_.anchorPosition}const p=Date.now();for(;!h;){if(f!==0&&Date.now()-p>f)return new ax(s,!0);v()}return new ax(s,!1);function v(){const _=B3(e,t,n,i,s,y);if(!_){o.produce(s,d),h=!0;return}const x=_.captureIndices,w=_.matchedRuleId,E=x&&x.length>0?x[0].end>i:!1;if(w===L3){const T=s.getRule(e);o.produce(s,x[0].start),s=s.withContentNameScopesList(s.nameScopesList),oo(e,t,n,s,o,T.endCaptures,x),o.produce(s,x[0].end);const A=s;if(s=s.parent,y=A.getAnchorPos(),!E&&A.getEnterPos()===i){s=A,o.produce(s,d),h=!0;return}}else{const T=e.getRule(w);o.produce(s,x[0].start);const A=s,N=T.getName(t.content,x),P=s.contentNameScopesList.pushAttributed(N,e);if(s=s.push(w,i,y,x[0].end===d,null,P,P),T instanceof yp){const I=T;oo(e,t,n,s,o,I.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const R=I.getContentName(t.content,x),U=P.pushAttributed(R,e);if(s=s.withContentNameScopesList(U),I.endHasBackReferences&&(s=s.withEndRule(I.getEndWithResolvedBackReferences(t.content,x))),!E&&A.hasSameRuleAs(s)){s=s.pop(),o.produce(s,d),h=!0;return}}else if(T instanceof Jc){const I=T;oo(e,t,n,s,o,I.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const R=I.getContentName(t.content,x),U=P.pushAttributed(R,e);if(s=s.withContentNameScopesList(U),I.whileHasBackReferences&&(s=s.withEndRule(I.getWhileWithResolvedBackReferences(t.content,x))),!E&&A.hasSameRuleAs(s)){s=s.pop(),o.produce(s,d),h=!0;return}}else if(oo(e,t,n,s,o,T.captures,x),o.produce(s,x[0].end),s=s.pop(),!E){s=s.safePop(),o.produce(s,d),h=!0;return}}x[0].end>i&&(i=x[0].end,n=!1)}}function I3(e,t,n,i,s,o){let u=s.beginRuleCapturedEOL?0:-1;const f=[];for(let d=s;d;d=d.pop()){const h=d.getRule(e);h instanceof Jc&&f.push({rule:h,stack:d})}for(let d=f.pop();d;d=f.pop()){const{ruleScanner:h,findOptions:y}=q3(d.rule,e,d.stack.endRule,n,i===u),p=h.findNextMatchSync(t,i,y);if(p){if(p.ruleId!==pE){s=d.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(d.stack,p.captureIndices[0].start),oo(e,t,n,d.stack,o,d.rule.whileCaptures,p.captureIndices),o.produce(d.stack,p.captureIndices[0].end),u=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,n=!1))}else{s=d.stack.pop();break}}return{stack:s,linePos:i,anchorPosition:u,isFirstLine:n}}function B3(e,t,n,i,s,o){const u=U3(e,t,n,i,s,o),f=e.getInjections();if(f.length===0)return u;const d=V3(f,e,t,n,i,s,o);if(!d)return u;if(!u)return d;const h=u.captureIndices[0].start,y=d.captureIndices[0].start;return y<h||d.priorityMatch&&y===h?d:u}function U3(e,t,n,i,s,o){const u=s.getRule(e),{ruleScanner:f,findOptions:d}=_E(u,e,s.endRule,n,i===o),h=f.findNextMatchSync(t,i,d);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function V3(e,t,n,i,s,o,u){let f=Number.MAX_VALUE,d=null,h,y=0;const p=o.contentNameScopesList.getScopeNames();for(let v=0,_=e.length;v<_;v++){const x=e[v];if(!x.matcher(p))continue;const w=t.getRule(x.ruleId),{ruleScanner:E,findOptions:T}=_E(w,t,null,i,s===u),A=E.findNextMatchSync(n,s,T);if(!A)continue;const N=A.captureIndices[0].start;if(!(N>=f)&&(f=N,d=A.captureIndices,h=A.ruleId,y=x.priority,f===s))break}return d?{priorityMatch:y===-1,captureIndices:d,matchedRuleId:h}:null}function _E(e,t,n,i,s){return{ruleScanner:e.compileAG(t,n,i,s),findOptions:0}}function q3(e,t,n,i,s){return{ruleScanner:e.compileWhileAG(t,n,i,s),findOptions:0}}function oo(e,t,n,i,s,o,u){if(o.length===0)return;const f=t.content,d=Math.min(o.length,u.length),h=[],y=u[0].end;for(let p=0;p<d;p++){const v=o[p];if(v===null)continue;const _=u[p];if(_.length===0)continue;if(_.start>y)break;for(;h.length>0&&h[h.length-1].endPos<=_.start;)s.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?s.produceFromScopes(h[h.length-1].scopes,_.start):s.produce(i,_.start),v.retokenizeCapturedWithRuleId){const w=v.getName(f,u),E=i.contentNameScopesList.pushAttributed(w,e),T=v.getContentName(f,u),A=E.pushAttributed(T,e),N=i.push(v.retokenizeCapturedWithRuleId,_.start,-1,!1,null,E,A),P=e.createOnigString(f.substring(0,_.end));vE(e,P,n&&_.start===0,_.start,N,s,!1,0),hE(P);continue}const x=v.getName(f,u);if(x!==null){const E=(h.length>0?h[h.length-1].scopes:i.contentNameScopesList).pushAttributed(x,e);h.push(new H3(E,_.end))}}for(;h.length>0;)s.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var H3=class{constructor(e,t){te(this,"scopes");te(this,"endPos");this.scopes=e,this.endPos=t}};function G3(e,t,n,i,s,o,u,f){return new $3(e,t,n,i,s,o,u,f)}function sx(e,t,n,i,s){const o=Xc(t,Wc),u=gE.getCompiledRuleId(n,i,s.repository);for(const f of o)e.push({debugSelector:t,matcher:f.matcher,ruleId:u,grammar:s,priority:f.priority})}function Wc(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let s=n;s<t.length;s++)if(F3(t[s],i))return n=s+1,!0;return!1})}function F3(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 $3=class{constructor(e,t,n,i,s,o,u,f){te(this,"_rootId");te(this,"_lastRuleId");te(this,"_ruleId2desc");te(this,"_includedGrammars");te(this,"_grammarRepository");te(this,"_grammar");te(this,"_injections");te(this,"_basicScopeAttributesProvider");te(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=f,this._basicScopeAttributesProvider=new P3(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=lx(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const d of Object.keys(s)){const h=Xc(d,Wc);for(const y of h)this._tokenTypeMatchers.push({matcher:y.matcher,type:s[d]})}}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:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const s=i.injections;if(s)for(let u in s)sx(t,u,s[u],this,i);const o=this._grammarRepository.injections(n);o&&o.forEach(u=>{const f=this.getExternalGrammar(u);if(f){const d=f.injectionSelector;d&&sx(t,d,f,this,f)}})}return t.sort((s,o)=>s.priority-o.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]=lx(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=gE.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===vp.NULL){s=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),p=Zs.set(0,h.languageId,h.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),v=this.getRule(this._rootId).getName(null,null);let _;v?_=vo.createRootAndLookUpScopeName(v,p,this):_=vo.createRoot("unknown",p),t=new vp(null,this._rootId,-1,-1,!1,null,_,_)}else s=!1,t.reset();e=e+`
|
|
298
|
-
`;const o=this.createOnigString(e),u=o.content.length,f=new Y3(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=vE(this,o,s,0,t,f,!0,i);return hE(o),{lineLength:u,lineTokens:f,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function lx(e,t){return e=f3(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 vo=class nr{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Rm.push(s,o.scopeNames),i=new nr(i,s,o.encodedTokenAttributes);return i}static createRoot(t,n){return new nr(null,new Rm(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const s=i.getMetadataForScope(t),o=new Rm(null,t),u=i.themeProvider.themeMatch(o),f=nr.mergeAttributes(n,s,u);return new nr(null,o,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return nr.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,i){let s=-1,o=0,u=0;return i!==null&&(s=i.fontStyle,o=i.foregroundId,u=i.backgroundId),Zs.set(t,n.languageId,n.tokenType,null,s,o,u)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return nr._pushAttributed(this,t,n);const i=t.split(/ /g);let s=this;for(const o of i)s=nr._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,i){const s=i.getMetadataForScope(n),o=t.scopePath.push(n),u=i.themeProvider.themeMatch(o),f=nr.mergeAttributes(t.tokenAttributes,s,u);return new nr(t,o,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((s=i.parent)==null?void 0:s.scopePath)??null)}),i=i.parent;return i===t?n.reverse():void 0}},Pn,vp=(Pn=class{constructor(t,n,i,s,o,u,f,d){te(this,"_stackElementBrand");te(this,"_enterPos");te(this,"_anchorPos");te(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=u,this.nameScopesList=f,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=s}equals(t){return t===null?!1:Pn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?vo.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(){Pn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,s,o,u,f){return new Pn(this,t,n,i,s,o,u,f)}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){var i,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.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 Pn(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(){var t,n,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const i=vo.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Pn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,vo.fromExtension(i,n.contentNameScopesList))}},te(Pn,"NULL",new Pn(null,0,0,0,!1,null,null,null)),Pn),Q3=class{constructor(e,t){te(this,"balancedBracketScopes");te(this,"unbalancedBracketScopes");te(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Xc(n,Wc).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Xc(n,Wc).map(i=>i.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}},Y3=class{constructor(e,t,n,i){te(this,"_emitBinaryTokens");te(this,"_lineText");te(this,"_tokens");te(this,"_binaryTokens");te(this,"_lastTokenEndIndex");te(this,"_tokenTypeOverrides");this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var i;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const f of this._tokenTypeOverrides)f.matcher(u)&&(s=Zs.set(s,0,f.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(u))}if(o&&(s=Zs.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0: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 i=0,s=this._binaryTokens.length;i<s;i++)n[i]=this._binaryTokens[i];return n}},K3=class{constructor(e,t){te(this,"_grammars",new Map);te(this,"_rawGrammars",new Map);te(this,"_injectionGrammars",new Map);te(this,"_theme");this._onigLib=t,this._theme=e}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,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,G3(e,o,t,n,i,s,this,this._onigLib))}return this._grammars.get(e)}},X3=class{constructor(t){te(this,"_options");te(this,"_syncRegistry");te(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new K3(Kc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Kc.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new Q3(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,s,o){const u=new T3(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(f=>this._loadSingleGrammar(f.scopeName)),u.processQueue();return this._grammarForScopeName(t,n,i,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,s)}_grammarForScopeName(t,n=0,i=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,i,s,o)}},_p=vp.NULL;const Z3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],J3=/["&'<>`]/g,W3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e4=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,t4=/[|\\{}()[\]^$+*?.]/g,ox=new WeakMap;function n4(e,t){if(e=e.replace(t.subset?r4(t.subset):J3,i),t.subset||t.escapeOnly)return e;return e.replace(W3,n).replace(e4,i);function n(s,o,u){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,u.charCodeAt(o+2),t)}function i(s,o,u){return t.format(s.charCodeAt(0),u.charCodeAt(o+1),t)}}function r4(e){let t=ox.get(e);return t||(t=i4(e),ox.set(e,t)),t}function i4(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(t4,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const a4=/[\dA-Fa-f]/;function s4(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!a4.test(String.fromCharCode(t))?i:i+";"}const l4=/\d/;function o4(e,t,n){const i="&#"+String(e);return n&&t&&!l4.test(String.fromCharCode(t))?i:i+";"}const u4=["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"],Nm={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:"€"},c4=["cent","copy","divide","gt","lt","not","para","times"],bE={}.hasOwnProperty,bp={};let vc;for(vc in Nm)bE.call(Nm,vc)&&(bp[Nm[vc]]=vc);const f4=/[^\dA-Za-z]/;function d4(e,t,n,i){const s=String.fromCharCode(e);if(bE.call(bp,s)){const o=bp[s],u="&"+o;return n&&u4.includes(o)&&!c4.includes(o)&&(!i||t&&t!==61&&f4.test(String.fromCharCode(t)))?u:u+";"}return""}function h4(e,t,n){let i=s4(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=d4(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=o4(e,t,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return s&&(!n.useShortestReferences||s.length<i.length)?s:i}function Ls(e,t){return n4(e,Object.assign({format:h4},t))}const m4=/^>|^->|<!--|-->|--!>|<!-$/g,p4=[">"],g4=["<",">"];function y4(e,t,n,i){return i.settings.bogusComments?"<?"+Ls(e.value,Object.assign({},i.settings.characterReferences,{subset:p4}))+">":"<!--"+e.value.replace(m4,s)+"-->";function s(o){return Ls(o,Object.assign({},i.settings.characterReferences,{subset:g4}))}}function v4(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const wt=SE(1),xE=SE(-1),_4=[];function SE(e){return t;function t(n,i,s){const o=n?n.children:_4;let u=(i||0)+e,f=o[u];if(!s)for(;f&&vf(f);)u+=e,f=o[u];return f}}const b4={}.hasOwnProperty;function EE(e){return t;function t(n,i,s){return b4.call(e,n.tagName)&&e[n.tagName](n,i,s)}}const rg=EE({body:S4,caption:jm,colgroup:jm,dd:C4,dt:T4,head:jm,html:x4,li:w4,optgroup:k4,option:A4,p:E4,rp:ux,rt:ux,tbody:O4,td:cx,tfoot:N4,th:cx,thead:R4,tr:j4});function jm(e,t,n){const i=wt(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&vf(i.value.charAt(0)))}function x4(e,t,n){const i=wt(n,t);return!i||i.type!=="comment"}function S4(e,t,n){const i=wt(n,t);return!i||i.type!=="comment"}function E4(e,t,n){const i=wt(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.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 w4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="li"}function T4(e,t,n){const i=wt(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function C4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ux(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function k4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function A4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function R4(e,t,n){const i=wt(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function O4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function N4(e,t,n){return!wt(n,t)}function j4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function cx(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const L4=EE({body:P4,colgroup:z4,head:M4,html:D4,tbody:I4});function D4(e){const t=wt(e,-1);return!t||t.type!=="comment"}function M4(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function P4(e){const t=wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vf(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function z4(e,t,n){const i=xE(n,t),s=wt(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&rg(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function I4(e,t,n){const i=xE(n,t),s=wt(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&rg(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const _c={name:[[`
|
|
299
|
-
\f\r &/=>`.split(""),`
|
|
300
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
301
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
302
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
303
|
-
\f\r &>`.split(""),`\0
|
|
304
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
305
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
306
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function B4(e,t,n,i){const s=i.schema,o=s.space==="svg"?!1:i.settings.omitOptionalTags;let u=s.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const f=[];let d;s.space==="html"&&e.tagName==="svg"&&(i.schema=zo);const h=U4(i,e.properties),y=i.all(s.space==="html"&&e.tagName==="template"?e.content:e);return i.schema=s,y&&(u=!1),(h||!o||!L4(e,t,n))&&(f.push("<",e.tagName,h?" "+h:""),u&&(s.space==="svg"||i.settings.closeSelfClosing)&&(d=h.charAt(h.length-1),(!i.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(y),!u&&(!o||!rg(e,t,n))&&f.push("</"+e.tagName+">"),f.join("")}function U4(e,t){const n=[];let i=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=V4(e,s,t[s]);o&&n.push(o)}}for(;++i<n.length;){const o=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&o!=='"'&&o!=="'"&&(n[i]+=" ")}return n.join("")}function V4(e,t,n){const i=aS(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;if(i.overloadedBoolean&&(n===i.attribute||n==="")?n=!0:(i.boolean||i.overloadedBoolean)&&(typeof n!="string"||n===i.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Ls(i.attribute,Object.assign({},e.settings.characterReferences,{subset:_c.name[s][o]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?Z1:lS)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(f=Ls(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_c.unquoted[s][o]}))),f!==n&&(e.settings.quoteSmart&&Qc(n,u)>Qc(n,e.alternative)&&(u=e.alternative),f=u+Ls(n,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?_c.single:_c.double)[s][o],attribute:!0}))+u),d+(f&&"="+f))}const q4=["<","&"];function wE(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ls(e.value,Object.assign({},i.settings.characterReferences,{subset:q4}))}function H4(e,t,n,i){return i.settings.allowDangerousHtml?e.value:wE(e,t,n,i)}function G4(e,t,n,i){return i.all(e)}const F4=zM("type",{invalid:$4,unknown:Q4,handlers:{comment:y4,doctype:v4,element:B4,raw:H4,root:G4,text:wE}});function $4(e){throw new Error("Expected node, not `"+e+"`")}function Q4(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Y4={},K4={},X4=[];function Z4(e,t){const n=t||Y4,i=n.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:J4,all:W4,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||Z3,characterReferences:n.characterReferences||K4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?zo:sS,quote:i,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function J4(e,t,n){return F4(e,t,n,this)}function W4(e){const t=[],n=e&&e.children||X4;let i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function ef(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===i&&Object.assign(n,o);return n}function Di(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function ez(e){return Array.isArray(e)?e:[e]}async function TE(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ig(e){return!e||["plaintext","txt","text","plain"].includes(e)}function CE(e){return e==="ansi"||ig(e)}function ag(e){return e==="none"}function kE(e){return ag(e)}function AE(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.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 s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function wf(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let i=0;const s=[];for(let u=0;u<n.length;u+=2){const f=t?n[u]+(n[u+1]||""):n[u];s.push([f,i]),i+=n[u].length,i+=((o=n[u+1])==null?void 0:o.length)||0}return s}function tz(e){const t=wf(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,u=0;for(const f of t){if(o<f.length)break;o-=f.length,u++}return{line:u,character:o}}function i(s,o){let u=0;for(let f=0;f<s;f++)u+=t[f].length;return u+=o,u}return{lines:t,indexToPos:n,posToIndex:i}}function nz(e,t,n){const i=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))i.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))i.add(o[1]);if(!n)return Array.from(i);const s=n.getBundledLanguages();return Array.from(i).filter(o=>o&&s[o])}const sg="light-dark()",rz=["color","background-color"];function iz(e,t){let n=0;const i=[];for(const s of t)s>n&&i.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function az(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((i,s)=>i-s);return n.length?e.map(i=>i.flatMap(s=>{const o=n.filter(u=>s.offset<u&&u<s.offset+s.content.length).map(u=>u-s.offset).sort((u,f)=>u-f);return o.length?iz(s,o):s})):e}function sz(e,t,n,i,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(y=>tf(e.variants[y])),f=new Set(u.flatMap(y=>Object.keys(y))),d={},h=(y,p)=>{const v=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+t[y]+(p==="color"?"":v)};return u.forEach((y,p)=>{for(const v of f){const _=y[v]||"inherit";if(p===0&&i&&rz.includes(v))if(i===sg&&u.length>1){const x=t.findIndex(A=>A==="light"),w=t.findIndex(A=>A==="dark");if(x===-1||w===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const E=u[x][v]||"inherit",T=u[w][v]||"inherit";d[v]=`light-dark(${E}, ${T})`,s==="css-vars"&&(d[h(p,v)]=_)}else d[v]=_;else s==="css-vars"&&(d[h(p,v)]=_)}}),o.htmlStyle=d,o}function tf(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zt.Italic&&(t["font-style"]="italic"),e.fontStyle&zt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&zt.Underline&&n.push("underline"),e.fontStyle&zt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function xp(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const RE=new WeakMap;function Tf(e,t){RE.set(e,t)}function ko(e){return RE.get(e)}class il{constructor(...t){te(this,"_stacks",{});te(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,s]=t;this.lang=i,this._stacks={[s]:n}}}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 il(Object.fromEntries(ez(n).map(i=>[i,_p])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return lz(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function lz(e){const t=[],n=new Set;function i(s){var u;if(n.has(s))return;n.add(s);const o=(u=s==null?void 0:s.nameScopesList)==null?void 0:u.scopeName;o&&t.push(o),s.parent&&i(s.parent)}return i(e),t}function oz(e,t){if(!(e instanceof il))throw new vt("Invalid grammar state");return e.getInternalStack(t)}function uz(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(u){if(typeof u=="number"){if(u<0||u>n.source.length)throw new vt(`Invalid decoration offset: ${u}. Code length: ${n.source.length}`);return{...s.indexToPos(u),offset:u}}else{const f=s.lines[u.line];if(f===void 0)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Lines length: ${s.lines.length}`);let d=u.character;if(d<0&&(d=f.length+d),d<0||d>f.length)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Line ${u.line} length: ${f.length}`);return{...u,character:d,offset:s.posToIndex(u.line,d)}}};const s=tz(n.source),o=(n.options.decorations||[]).map(u=>({...u,start:i(u.start),end:i(u.end)}));cz(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const s=t(this).decorations.flatMap(f=>[f.start.offset,f.end.offset]);return az(n,s)},code(n){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const i=t(this),s=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(s.length!==i.converter.lines.length)throw new vt(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(p,v,_,x){const w=s[p];let E="",T=-1,A=-1;if(v===0&&(T=0),_===0&&(A=0),_===Number.POSITIVE_INFINITY&&(A=w.children.length),T===-1||A===-1)for(let P=0;P<w.children.length;P++)E+=OE(w.children[P]),T===-1&&E.length===v&&(T=P+1),A===-1&&E.length===_&&(A=P+1);if(T===-1)throw new vt(`Failed to find start index for decoration ${JSON.stringify(x.start)}`);if(A===-1)throw new vt(`Failed to find end index for decoration ${JSON.stringify(x.end)}`);const N=w.children.slice(T,A);if(!x.alwaysWrap&&N.length===w.children.length)f(w,x,"line");else if(!x.alwaysWrap&&N.length===1&&N[0].type==="element")f(N[0],x,"token");else{const P={type:"element",tagName:"span",properties:{},children:N};f(P,x,"wrapper"),w.children.splice(T,N.length,P)}}function u(p,v){s[p]=f(s[p],v,"line")}function f(p,v,_){var E;const x=v.properties||{},w=v.transform||(T=>T);return p.tagName=v.tagName||"span",p.properties={...p.properties,...x,class:p.properties.class},(E=v.properties)!=null&&E.class&&AE(p,v.properties.class),p=w(p,_)||p,p}const d=[],h=i.decorations.sort((p,v)=>v.start.offset-p.start.offset||p.end.offset-v.end.offset);for(const p of h){const{start:v,end:_}=p;if(v.line===_.line)o(v.line,v.character,_.character,p);else if(v.line<_.line){o(v.line,v.character,Number.POSITIVE_INFINITY,p);for(let x=v.line+1;x<_.line;x++)d.unshift(()=>u(x,p));o(_.line,0,_.character,p)}}d.forEach(p=>p())}}}function cz(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const s=e[i],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,u=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,f=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,d=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||u||f||d){if(o&&u||f&&d||f&&n.start.offset===n.end.offset||u&&s.start.offset===s.end.offset)continue;throw new vt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function OE(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(OE).join(""):""}const fz=[uz()];function nf(e){const t=dz(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...fz]}function dz(e){const t=[],n=[],i=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:i.push(s)}return{pre:t,post:n,normal:i}}var oa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Lm={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function hz(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function fx(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function mz(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)Lm[i]&&t.push({type:"setDecoration",value:Lm[i]});else if(i<=29){const s=Lm[i-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:oa[i-30]}});else if(i===38){const s=fx(e);s&&t.push({type:"setForegroundColor",value:s})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:oa[i-40]}});else if(i===48){const s=fx(e);s&&t.push({type:"setBackgroundColor",value:s})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:oa[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:oa[i-100+8]}})}return t}function pz(){let e=null,t=null,n=new Set;return{parse(i){const s=[];let o=0;do{const u=hz(i,o),f=u.sequence?i.substring(o,u.startPosition):i.substring(o);if(f.length>0&&s.push({value:f,foreground:e,background:t,decorations:new Set(n)}),u.sequence){const d=mz(u.sequence);for(const h of d)h.type==="resetAll"?(e=null,t=null,n.clear()):h.type==="resetForegroundColor"?e=null:h.type==="resetBackgroundColor"?t=null:h.type==="resetDecoration"&&n.delete(h.value);for(const h of d)h.type==="setForegroundColor"?e=h.value:h.type==="setBackgroundColor"?t=h.value:h.type==="setDecoration"&&n.add(h.value)}o=u.position}while(o<i.length);return s}}}var gz={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 yz(e=gz){function t(f){return e[f]}function n(f){return`#${f.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let i;function s(){if(i)return i;i=[];for(let h=0;h<oa.length;h++)i.push(t(oa[h]));let f=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let y=0;y<6;y++)for(let p=0;p<6;p++)i.push(n([f[h],f[y],f[p]]));let d=8;for(let h=0;h<24;h++,d+=10)i.push(n([d,d,d]));return i}function o(f){return s()[f]}function u(f){switch(f.type){case"named":return t(f.name);case"rgb":return n(f.rgb);case"table":return o(f.index)}}return{value:u}}const vz={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function _z(e,t,n){const i=ef(e,n),s=wf(t),o=Object.fromEntries(oa.map(d=>{var p;const h=`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`,y=(p=e.colors)==null?void 0:p[h];return[d,y||vz[d]]})),u=yz(o),f=pz();return s.map(d=>f.parse(d[0]).map(h=>{let y,p;h.decorations.has("reverse")?(y=h.background?u.value(h.background):e.bg,p=h.foreground?u.value(h.foreground):e.fg):(y=h.foreground?u.value(h.foreground):e.fg,p=h.background?u.value(h.background):void 0),y=Di(y,i),p=Di(p,i),h.decorations.has("dim")&&(y=bz(y));let v=zt.None;return h.decorations.has("bold")&&(v|=zt.Bold),h.decorations.has("italic")&&(v|=zt.Italic),h.decorations.has("underline")&&(v|=zt.Underline),h.decorations.has("strikethrough")&&(v|=zt.Strikethrough),{content:h.value,offset:d[1],color:y,bgColor:p,fontStyle:v}}))}function bz(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const i=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${i}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(i=>`${i}${i}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function lg(e,t,n={}){const{lang:i="text",theme:s=e.getLoadedThemes()[0]}=n;if(ig(i)||ag(s))return wf(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:o,colorMap:u}=e.setTheme(s);if(i==="ansi")return _z(o,t,n);const f=e.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new vt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(o.name))throw new vt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Sz(t,f,o,u,n)}function xz(...e){if(e.length===2)return ko(e[1]);const[t,n,i={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=i;if(ig(s)||ag(o))throw new vt("Plain language does not have grammar state");if(s==="ansi")throw new vt("ANSI language does not have grammar state");const{theme:u,colorMap:f}=t.setTheme(o),d=t.getLanguage(s);return new il(rf(n,d,u,f,i).stateStack,d.name,u.name)}function Sz(e,t,n,i,s){const o=rf(e,t,n,i,s),u=new il(rf(e,t,n,i,s).stateStack,t.name,n.name);return Tf(o.tokens,u),o.tokens}function rf(e,t,n,i,s){const o=ef(n,s),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:f=500}=s,d=wf(e);let h=s.grammarState?oz(s.grammarState,n.name)??_p:s.grammarContextCode!=null?rf(s.grammarContextCode,t,n,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:_p,y=[];const p=[];for(let v=0,_=d.length;v<_;v++){const[x,w]=d[v];if(x===""){y=[],p.push([]);continue}if(u>0&&x.length>=u){y=[],p.push([{content:x,offset:w,color:"",fontStyle:0}]);continue}let E,T,A;s.includeExplanation&&(E=t.tokenizeLine(x,h,f),T=E.tokens,A=0);const N=t.tokenizeLine2(x,h,f),P=N.tokens.length/2;for(let I=0;I<P;I++){const R=N.tokens[2*I],U=I+1<P?N.tokens[2*I+2]:x.length;if(R===U)continue;const K=N.tokens[2*I+1],ee=Di(i[Zs.getForeground(K)],o),j=Zs.getFontStyle(K),Q={content:x.substring(R,U),offset:w+R,color:ee,fontStyle:j};if(s.includeExplanation){const ie=[];if(s.includeExplanation!=="scopeName")for(const oe of n.settings){let ae;switch(typeof oe.scope){case"string":ae=oe.scope.split(/,/).map(q=>q.trim());break;case"object":ae=oe.scope;break;default:continue}ie.push({settings:oe,selectors:ae.map(q=>q.split(/ /))})}Q.explanation=[];let de=0;for(;R+de<U;){const oe=T[A],ae=x.substring(oe.startIndex,oe.endIndex);de+=ae.length,Q.explanation.push({content:ae,scopes:s.includeExplanation==="scopeName"?Ez(oe.scopes):wz(ie,oe.scopes)}),A+=1}}y.push(Q)}p.push(y),y=[],h=N.ruleStack}return{tokens:p,stateStack:h}}function Ez(e){return e.map(t=>({scopeName:t}))}function wz(e,t){const n=[];for(let i=0,s=t.length;i<s;i++){const o=t[i];n[i]={scopeName:o,themeMatches:Cz(e,o,t.slice(0,i))}}return n}function dx(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Tz(e,t,n){if(!dx(e[e.length-1],t))return!1;let i=e.length-2,s=n.length-1;for(;i>=0&&s>=0;)dx(e[i],n[s])&&(i-=1),s-=1;return i===-1}function Cz(e,t,n){const i=[];for(const{selectors:s,settings:o}of e)for(const u of s)if(Tz(u,t,n)){i.push(o);break}return i}function NE(e,t,n){const i=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),s=i.map(d=>{const h=lg(e,t,{...n,theme:d.theme}),y=ko(h),p=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:h,state:y,theme:p}}),o=kz(...s.map(d=>d.tokens)),u=o[0].map((d,h)=>d.map((y,p)=>{const v={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=y.explanation),o.forEach((_,x)=>{const{content:w,explanation:E,offset:T,...A}=_[h][p];v.variants[i[x].color]=A}),v})),f=s[0].state?new il(Object.fromEntries(s.map(d=>{var h;return[d.theme,(h=d.state)==null?void 0:h.getInternalStack(d.theme)]})),s[0].state.lang):void 0;return f&&Tf(u,f),u}function kz(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(d=>d[i]),o=t.map(()=>[]);t.forEach((d,h)=>d.push(o[h]));const u=s.map(()=>0),f=s.map(d=>d[0]);for(;f.every(d=>d);){const d=Math.min(...f.map(h=>h.content.length));for(let h=0;h<n;h++){const y=f[h];y.content.length===d?(o[h].push(y),u[h]+=1,f[h]=s[h][u[h]]):(o[h].push({...y,content:y.content.slice(0,d)}),f[h]={...y,content:y.content.slice(d),offset:y.offset+d})}}}return t}function af(e,t,n){let i,s,o,u,f,d;if("themes"in n){const{defaultColor:h="light",cssVariablePrefix:y="--shiki-",colorsRendering:p="css-vars"}=n,v=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,A)=>T.color===h?-1:A.color===h?1:0);if(v.length===0)throw new vt("`themes` option must not be empty");const _=NE(e,t,n);if(d=ko(_),h&&sg!==h&&!v.find(T=>T.color===h))throw new vt(`\`themes\` option must contain the defaultColor key \`${h}\``);const x=v.map(T=>e.getTheme(T.theme)),w=v.map(T=>T.color);o=_.map(T=>T.map(A=>sz(A,w,y,h,p))),d&&Tf(o,d);const E=v.map(T=>ef(T.theme,n));s=hx(v,x,E,y,h,"fg",p),i=hx(v,x,E,y,h,"bg",p),u=`shiki-themes ${x.map(T=>T.name).join(" ")}`,f=h?void 0:[s,i].join(";")}else if("theme"in n){const h=ef(n.theme,n);o=lg(e,t,n);const y=e.getTheme(n.theme);i=Di(y.bg,h),s=Di(y.fg,h),u=y.name,d=ko(o)}else throw new vt("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:i,themeName:u,rootStyle:f,grammarState:d}}function hx(e,t,n,i,s,o,u){return e.map((f,d)=>{const h=Di(t[d][o],n[d])||"inherit",y=`${i+f.color}${o==="bg"?"-bg":""}:${h}`;if(d===0&&s){if(s===sg&&e.length>1){const p=e.findIndex(w=>w.color==="light"),v=e.findIndex(w=>w.color==="dark");if(p===-1||v===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=Di(t[p][o],n[p])||"inherit",x=Di(t[v][o],n[v])||"inherit";return`light-dark(${_}, ${x});${y}`}return h}return u==="css-vars"?y:null}).filter(f=>!!f).join(";")}function sf(e,t,n,i={meta:{},options:n,codeToHast:(s,o)=>sf(e,s,o),codeToTokens:(s,o)=>af(e,s,o)}){var x,w;let s=t;for(const E of nf(n))s=((x=E.preprocess)==null?void 0:x.call(i,s,n))||s;let{tokens:o,fg:u,bg:f,themeName:d,rootStyle:h,grammarState:y}=af(e,s,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:v=!1}=n;p===!0?o=Rz(o):p==="never"&&(o=Oz(o)),v&&(o=Nz(o));const _={...i,get source(){return s}};for(const E of nf(n))o=((w=E.tokens)==null?void 0:w.call(_,o))||o;return Az(o,{...n,fg:u,bg:f,themeName:d,rootStyle:h},_,y)}function Az(e,t,n,i=ko(e)){var x,w,E,T;const s=nf(t),o=[],u={type:"root",children:[]},{structure:f="classic",tabindex:d="0"}=t;let h={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(([A])=>!A.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:o};const p=[],v={...n,structure:f,addClassToHast:AE,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return h},get code(){return y},get lines(){return p}};if(e.forEach((A,N)=>{var R,U;N&&(f==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&o.push({type:"text",value:`
|
|
307
|
-
`}));let P={type:"element",tagName:"span",properties:{class:"line"},children:[]},I=0;for(const K of A){let ee={type:"element",tagName:"span",properties:{...K.htmlAttrs},children:[{type:"text",value:K.content}]};const j=xp(K.htmlStyle||tf(K));j&&(ee.properties.style=j);for(const Q of s)ee=((R=Q==null?void 0:Q.span)==null?void 0:R.call(v,ee,N+1,I,P,K))||ee;f==="inline"?u.children.push(ee):f==="classic"&&P.children.push(ee),I+=K.content.length}if(f==="classic"){for(const K of s)P=((U=K==null?void 0:K.line)==null?void 0:U.call(v,P,N+1))||P;p.push(P),o.push(P)}else f==="inline"&&p.push(P)}),f==="classic"){for(const A of s)y=((x=A==null?void 0:A.code)==null?void 0:x.call(v,y))||y;h.children.push(y);for(const A of s)h=((w=A==null?void 0:A.pre)==null?void 0:w.call(v,h))||h;u.children.push(h)}else if(f==="inline"){const A=[];let N={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const R of u.children)R.type==="element"&&R.tagName==="br"?(A.push(N),N={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(R.type==="element"||R.type==="text")&&N.children.push(R);A.push(N);let I={type:"element",tagName:"code",properties:{},children:A};for(const R of s)I=((E=R==null?void 0:R.code)==null?void 0:E.call(v,I))||I;u.children=[];for(let R=0;R<I.children.length;R++){R>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const U=I.children[R];U.type==="element"&&u.children.push(...U.children)}}let _=u;for(const A of s)_=((T=A==null?void 0:A.root)==null?void 0:T.call(v,_))||_;return i&&Tf(_,i),_}function Rz(e){return e.map(t=>{const n=[];let i="",s=0;return t.forEach((o,u)=>{const d=!(o.fontStyle&&(o.fontStyle&zt.Underline||o.fontStyle&zt.Strikethrough));d&&o.content.match(/^\s+$/)&&t[u+1]?(s||(s=o.offset),i+=o.content):i?(d?n.push({...o,offset:s,content:i+o.content}):n.push({content:i,offset:s},o),s=0,i=""):n.push(o)}),n})}function Oz(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,s,o,u]=i;if(!s&&!u)return n;const f=[{...n,offset:n.offset+s.length,content:o}];return s&&f.unshift({content:s,offset:n.offset}),u&&f.push({content:u,offset:n.offset+s.length+o.length}),f}))}function Nz(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const s=n[n.length-1],o=xp(s.htmlStyle||tf(s)),u=xp(i.htmlStyle||tf(i)),f=s.fontStyle&&(s.fontStyle&zt.Underline||s.fontStyle&zt.Strikethrough),d=i.fontStyle&&(i.fontStyle&zt.Underline||i.fontStyle&zt.Strikethrough);!f&&!d&&o===u?s.content+=i.content:n.push({...i})}return n})}const jz=Z4;function Lz(e,t,n){var o;const i={meta:{},options:n,codeToHast:(u,f)=>sf(e,u,f),codeToTokens:(u,f)=>af(e,u,f)};let s=jz(sf(e,t,n,i));for(const u of nf(n))s=((o=u.postprocess)==null?void 0:o.call(i,s,n))||s;return s}const mx={light:"#333333",dark:"#bbbbbb"},px={light:"#fffffe",dark:"#1e1e1e"},gx="__shiki_resolved";function og(e){var f,d,h,y,p;if(e!=null&&e[gx])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const v=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(f=v==null?void 0:v.settings)!=null&&f.foreground&&(i=v.settings.foreground),(d=v==null?void 0:v.settings)!=null&&d.background&&(n=v.settings.background),!i&&((h=t==null?void 0:t.colors)!=null&&h["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((y=t==null?void 0:t.colors)!=null&&y["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?mx.light:mx.dark),n||(n=t.type==="light"?px.light:px.dark),t.fg=i,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 s=0;const o=new Map;function u(v){var x;if(o.has(v))return o.get(v);s+=1;const _=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(x=t.colorReplacements)!=null&&x[`#${_}`]?u(v):(o.set(v,_),_)}t.settings=t.settings.map(v=>{var E,T;const _=((E=v.settings)==null?void 0:E.foreground)&&!v.settings.foreground.startsWith("#"),x=((T=v.settings)==null?void 0:T.background)&&!v.settings.background.startsWith("#");if(!_&&!x)return v;const w={...v,settings:{...v.settings}};if(_){const A=u(v.settings.foreground);t.colorReplacements[A]=v.settings.foreground,w.settings.foreground=A}if(x){const A=u(v.settings.background);t.colorReplacements[A]=v.settings.background,w.settings.background=A}return w});for(const v of Object.keys(t.colors||{}))if((v==="editor.foreground"||v==="editor.background"||v.startsWith("terminal.ansi"))&&!((p=t.colors[v])!=null&&p.startsWith("#"))){const _=u(t.colors[v]);t.colorReplacements[_]=t.colors[v],t.colors[v]=_}return Object.defineProperty(t,gx,{enumerable:!1,writable:!1,value:!0}),t}async function jE(e){return Array.from(new Set((await Promise.all(e.filter(t=>!CE(t)).map(async t=>await TE(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function LE(e){return(await Promise.all(e.map(async n=>kE(n)?null:og(await TE(n))))).filter(n=>!!n)}let Dz=3;function Mz(e,t=3){t>Dz||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Rs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Pz extends X3{constructor(n,i,s,o={}){super(n);te(this,"_resolvedThemes",new Map);te(this,"_resolvedGrammars",new Map);te(this,"_langMap",new Map);te(this,"_langGraph",new Map);te(this,"_textmateThemeCache",new WeakMap);te(this,"_loadedThemesCache",null);te(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=i,this._langs=s,this._alias=o,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const i=og(n);return i.name&&(this._resolvedThemes.set(i.name,i),this._loadedThemesCache=null),i}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let i=this._textmateThemeCache.get(n);i||(i=Kc.createFromRawTheme(n),this._textmateThemeCache.set(n,i)),this._syncRegistry.setTheme(i)}getGrammar(n){if(this._alias[n]){const i=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],i.has(n))throw new Rs(`Circular alias \`${Array.from(i).join(" -> ")} -> ${n}\``);i.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var u,f,d,h;if(this.getGrammar(n.name))return;const i=new Set([...this._langMap.values()].filter(y=>{var p;return(p=y.embeddedLangsLazy)==null?void 0:p.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(y=>{this._alias[y]=n.name}),this._loadedLanguagesCache=null,i.size)for(const y of i)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(f=(u=this._syncRegistry)==null?void 0:u._injectionGrammars)==null||f.delete(y.scopeName),(h=(d=this._syncRegistry)==null?void 0:d._grammars)==null||h.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const i=Array.from(this._langGraph.entries()),s=i.filter(([o,u])=>!u);if(s.length){const o=i.filter(([u,f])=>{var d;return f&&((d=f.embeddedLangs)==null?void 0:d.some(h=>s.map(([y])=>y).includes(h)))}).filter(u=>!s.includes(u));throw new Rs(`Missing languages ${s.map(([u])=>`\`${u}\``).join(", ")}, required by ${o.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[o,u]of i)this._resolver.addLanguage(u);for(const[o,u]of i)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const i=n.embeddedLanguages??n.embeddedLangs;if(i)for(const s of i)this._langGraph.set(s,this._langMap.get(s))}}class zz{constructor(t,n){te(this,"_langs",new Map);te(this,"_scopeToLang",new Map);te(this,"_injections",new Map);te(this,"_onigLib");this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}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 i=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let ao=0;function Iz(e){ao+=1,e.warnings!==!1&&ao>=10&&ao%10===0&&console.warn(`[Shiki] ${ao} 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 Rs("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(og),s=new zz(e.engine,n),o=new Pz(s,i,n,e.langAlias);let u;function f(A){E();const N=o.getGrammar(typeof A=="string"?A:A.name);if(!N)throw new Rs(`Language \`${A}\` not found, you may need to load it first`);return N}function d(A){if(A==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const N=o.getTheme(A);if(!N)throw new Rs(`Theme \`${A}\` not found, you may need to load it first`);return N}function h(A){E();const N=d(A);u!==A&&(o.setTheme(N),u=A);const P=o.getColorMap();return{theme:N,colorMap:P}}function y(){return E(),o.getLoadedThemes()}function p(){return E(),o.getLoadedLanguages()}function v(...A){E(),o.loadLanguages(A.flat(1))}async function _(...A){return v(await jE(A))}function x(...A){E();for(const N of A.flat(1))o.loadTheme(N)}async function w(...A){return E(),x(await LE(A))}function E(){if(t)throw new Rs("Shiki instance has been disposed")}function T(){t||(t=!0,o.dispose(),ao-=1)}return{setTheme:h,getTheme:d,getLanguage:f,getLoadedThemes:y,getLoadedLanguages:p,loadLanguage:_,loadLanguageSync:v,loadTheme:w,loadThemeSync:x,dispose:T,[Symbol.dispose]:T}}async function Bz(e){e.engine||Mz("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([LE(e.themes||[]),jE(e.langs||[]),e.engine]);return Iz({...e,themes:t,langs:n,engine:i})}async function Uz(e){const t=await Bz(e);return{getLastGrammarState:(...n)=>xz(t,...n),codeToTokensBase:(n,i)=>lg(t,n,i),codeToTokensWithThemes:(n,i)=>NE(t,n,i),codeToTokens:(n,i)=>af(t,n,i),codeToHast:(n,i)=>sf(t,n,i),codeToHtml:(n,i)=>Lz(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Vz(e){const t=e.langs,n=e.themes,i=e.engine;async function s(o){function u(p){var v;if(typeof p=="string"){if(CE(p))return[];p=((v=o.langAlias)==null?void 0:v[p])||p;const _=t[p];if(!_)throw new vt(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return _}return p}function f(p){if(kE(p))return"none";if(typeof p=="string"){const v=n[p];if(!v)throw new vt(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}const d=(o.themes??[]).map(p=>f(p)),h=(o.langs??[]).map(p=>u(p)),y=await Uz({engine:o.engine??i(),...o,themes:d,langs:h});return{...y,loadLanguage(...p){return y.loadLanguage(...p.map(u))},loadTheme(...p){return y.loadTheme(...p.map(f))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s}function qz(e){let t;async function n(i={}){if(t){const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}else{t=e({...i,themes:[],langs:[]});const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}}return n}function Hz(e,t){const n=qz(e);async function i(s,o){var d;const u=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),f=await((d=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:d.call(t,s,o.lang,u));return f&&await u.loadLanguage(...f),u}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await i(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await i(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await i(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await i(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await i(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}const DE=[{id:"abap",name:"ABAP",import:(()=>O(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>O(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>O(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>O(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>O(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>O(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>O(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>O(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>O(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>O(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>O(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>O(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>O(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>O(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>O(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>O(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>O(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>O(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>O(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>O(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>O(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>O(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>O(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>O(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>O(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>O(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>O(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>O(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>O(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>O(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>O(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>O(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>O(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>O(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>O(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>O(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>O(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>O(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>O(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>O(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>O(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>O(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>O(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>O(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>O(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>O(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>O(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>O(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>O(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>O(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>O(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>O(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>O(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>O(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>O(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>O(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>O(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>O(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>O(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>O(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>O(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>O(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>O(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>O(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>O(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>O(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>O(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>O(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>O(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>O(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>O(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>O(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>O(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>O(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>O(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>O(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>O(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>O(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>O(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>O(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>O(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>O(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>O(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>O(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>O(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>O(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>O(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>O(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>O(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>O(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>O(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>O(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>O(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>O(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>O(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>O(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>O(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>O(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>O(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>O(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>O(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>O(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>O(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>O(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>O(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>O(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>O(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>O(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>O(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>O(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>O(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>O(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>O(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>O(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>O(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>O(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>O(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>O(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>O(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>O(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>O(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>O(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>O(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>O(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>O(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>O(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>O(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>O(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>O(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>O(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>O(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>O(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>O(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>O(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>O(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>O(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>O(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>O(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>O(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>O(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>O(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>O(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>O(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>O(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>O(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>O(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>O(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>O(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>O(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>O(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>O(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>O(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>O(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>O(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>O(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>O(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>O(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>O(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>O(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>O(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>O(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>O(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>O(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>O(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>O(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>O(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>O(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>O(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>O(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>O(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>O(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>O(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>O(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>O(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>O(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>O(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>O(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>O(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>O(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>O(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>O(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>O(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>O(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>O(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>O(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>O(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>O(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>O(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>O(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>O(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>O(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>O(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>O(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>O(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>O(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>O(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>O(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>O(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>O(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>O(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>O(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>O(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>O(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>O(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>O(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>O(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>O(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>O(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>O(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>O(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>O(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>O(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>O(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>O(()=>import("./vue-vine-8moa0y9V.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>O(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>O(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>O(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>O(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>O(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>O(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>O(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>O(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>O(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>O(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>O(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>O(()=>import("./zig-VOosw3JB.js"),[]))}],Gz=Object.fromEntries(DE.map(e=>[e.id,e.import])),Fz=Object.fromEntries(DE.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),$z={...Gz,...Fz},Qz=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>O(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>O(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>O(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>O(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>O(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>O(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>O(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>O(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>O(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>O(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>O(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>O(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>O(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>O(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>O(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>O(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>O(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>O(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>O(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>O(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>O(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>O(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>O(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>O(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>O(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>O(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>O(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>O(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>O(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>O(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>O(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>O(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>O(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>O(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>O(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>O(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>O(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>O(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>O(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>O(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>O(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>O(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>O(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>O(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>O(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>O(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>O(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>O(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>O(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>O(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>O(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>O(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>O(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>O(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>O(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>O(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>O(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>O(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>O(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>O(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Yz=Object.fromEntries(Qz.map(e=>[e.id,e.import]));class ug extends Error{constructor(t){super(t),this.name="ShikiError"}}function Kz(){return 2147483648}function Xz(){return typeof performance<"u"?performance.now():Date.now()}const Zz=(e,t)=>e+(t-e%t)%t;async function Jz(e){let t,n;const i={};function s(_){n=_,i.HEAPU8=new Uint8Array(_),i.HEAPU32=new Uint32Array(_)}function o(_,x,w){i.HEAPU8.copyWithin(_,x,x+w)}function u(_){try{return t.grow(_-n.byteLength+65535>>>16),s(t.buffer),1}catch{}}function f(_){const x=i.HEAPU8.length;_=_>>>0;const w=Kz();if(_>w)return!1;for(let E=1;E<=4;E*=2){let T=x*(1+.2/E);T=Math.min(T,_+100663296);const A=Math.min(w,Zz(Math.max(_,T),65536));if(u(A))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(_,x,w=1024){const E=x+w;let T=x;for(;_[T]&&!(T>=E);)++T;if(T-x>16&&_.buffer&&d)return d.decode(_.subarray(x,T));let A="";for(;x<T;){let N=_[x++];if(!(N&128)){A+=String.fromCharCode(N);continue}const P=_[x++]&63;if((N&224)===192){A+=String.fromCharCode((N&31)<<6|P);continue}const I=_[x++]&63;if((N&240)===224?N=(N&15)<<12|P<<6|I:N=(N&7)<<18|P<<12|I<<6|_[x++]&63,N<65536)A+=String.fromCharCode(N);else{const R=N-65536;A+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return A}function y(_,x){return _?h(i.HEAPU8,_,x):""}const p={emscripten_get_now:Xz,emscripten_memcpy_big:o,emscripten_resize_heap:f,fd_write:()=>0};async function v(){const x=await e({env:p,wasi_snapshot_preview1:p});t=x.memory,s(t.buffer),Object.assign(i,x),i.UTF8ToString=y}return await v(),i}var Wz=Object.defineProperty,eI=(e,t,n)=>t in e?Wz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t,n)=>eI(e,typeof t!="symbol"?t+"":t,n);let At=null;function tI(e){throw new ug(e.UTF8ToString(e.getLastOnigError()))}class Cf{constructor(t){St(this,"utf16Length"),St(this,"utf8Length"),St(this,"utf16Value"),St(this,"utf8Value"),St(this,"utf16OffsetToUtf8"),St(this,"utf8OffsetToUtf16");const n=t.length,i=Cf._utf8ByteLength(t),s=i!==n,o=s?new Uint32Array(n+1):null;s&&(o[n]=i);const u=s?new Uint32Array(i+1):null;s&&(u[i]=n);const f=new Uint8Array(i);let d=0;for(let h=0;h<n;h++){const y=t.charCodeAt(h);let p=y,v=!1;if(y>=55296&&y<=56319&&h+1<n){const _=t.charCodeAt(h+1);_>=56320&&_<=57343&&(p=(y-55296<<10)+65536|_-56320,v=!0)}s&&(o[h]=d,v&&(o[h+1]=d),p<=127?u[d+0]=h:p<=2047?(u[d+0]=h,u[d+1]=h):p<=65535?(u[d+0]=h,u[d+1]=h,u[d+2]=h):(u[d+0]=h,u[d+1]=h,u[d+2]=h,u[d+3]=h)),p<=127?f[d++]=p:p<=2047?(f[d++]=192|(p&1984)>>>6,f[d++]=128|(p&63)>>>0):p<=65535?(f[d++]=224|(p&61440)>>>12,f[d++]=128|(p&4032)>>>6,f[d++]=128|(p&63)>>>0):(f[d++]=240|(p&1835008)>>>18,f[d++]=128|(p&258048)>>>12,f[d++]=128|(p&4032)>>>6,f[d++]=128|(p&63)>>>0),v&&h++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=f,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,s=t.length;i<s;i++){const o=t.charCodeAt(i);let u=o,f=!1;if(o>=55296&&o<=56319&&i+1<s){const d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(u=(o-55296<<10)+65536|d-56320,f=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,f&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const kf=class rr{constructor(t){if(St(this,"id",++rr.LAST_ID),St(this,"_onigBinding"),St(this,"content"),St(this,"utf16Length"),St(this,"utf8Length"),St(this,"utf16OffsetToUtf8"),St(this,"utf8OffsetToUtf16"),St(this,"ptr"),!At)throw new ug("Must invoke loadWasm first.");this._onigBinding=At,this.content=t;const n=new Cf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!rr._sharedPtrInUse?(rr._sharedPtr||(rr._sharedPtr=At.omalloc(1e4)),rr._sharedPtrInUse=!0,At.HEAPU8.set(n.utf8Value,rr._sharedPtr),this.ptr=rr._sharedPtr):this.ptr=n.createString(At)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===rr._sharedPtr?rr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};St(kf,"LAST_ID",0);St(kf,"_sharedPtr",0);St(kf,"_sharedPtrInUse",!1);let ME=kf;class nI{constructor(t){if(St(this,"_onigBinding"),St(this,"_ptr"),!At)throw new ug("Must invoke loadWasm first.");const n=[],i=[];for(let f=0,d=t.length;f<d;f++){const h=new Cf(t[f]);n[f]=h.createString(At),i[f]=h.utf8Length}const s=At.omalloc(4*t.length);At.HEAPU32.set(n,s/4);const o=At.omalloc(4*t.length);At.HEAPU32.set(i,o/4);const u=At.createOnigScanner(s,o,t.length);for(let f=0,d=t.length;f<d;f++)At.ofree(n[f]);At.ofree(o),At.ofree(s),u===0&&tI(At),this._onigBinding=At,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let s=0;if(typeof i=="number"&&(s=i),typeof t=="string"){t=new ME(t);const o=this._findNextMatchSync(t,n,!1,s);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,s)}_findNextMatchSync(t,n,i,s){const o=this._onigBinding,u=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),s);if(u===0)return null;const f=o.HEAPU32;let d=u/4;const h=f[d++],y=f[d++],p=[];for(let v=0;v<y;v++){const _=t.convertUtf8OffsetToUtf16(f[d++]),x=t.convertUtf8OffsetToUtf16(f[d++]);p[v]={start:_,end:x,length:x-_}}return{index:h,captureIndices:p}}}function rI(e){return typeof e.instantiator=="function"}function iI(e){return typeof e.default=="function"}function aI(e){return typeof e.data<"u"}function sI(e){return typeof Response<"u"&&e instanceof Response}function lI(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let bc;function oI(e){if(bc)return bc;async function t(){At=await Jz(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),rI(i)?i=await i.instantiator(n):iI(i)?i=await i.default(n):(aI(i)&&(i=i.data),sI(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await uI(i)(n):i=await cI(i)(n):lI(i)?i=await Dm(i)(n):i instanceof WebAssembly.Module?i=await Dm(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Dm(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return bc=t(),bc}function Dm(e){return t=>WebAssembly.instantiate(e,t)}function uI(e){return t=>WebAssembly.instantiateStreaming(e,t)}function cI(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function fI(e){return e&&await oI(e),{createScanner(t){return new nI(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ME(t)}}}const dI=Vz({langs:$z,themes:Yz,engine:()=>fI(O(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:yx}=Hz(dI,{guessEmbeddedLanguages:nz});function Ao({children:e,className:t="",components:n}){return b.jsx("div",{className:`markdown-content ${t} scroll-smooth`,children:b.jsx(YD,{remarkPlugins:[o3],components:{code:hI,pre:({children:i})=>b.jsx(b.Fragment,{children:i}),...n},children:e})})}function hI({children:e,className:t}){const[n,i]=Y.useState(null),s=String(e).replace(/\n$/,""),o=/language-(\w+)/.exec(t||""),u=o?o[1]:void 0,f=!u&&!s.includes(`
|
|
308
|
-
`);return Y.useEffect(()=>{if(f)return;let d=!0;return(async()=>{try{const y=await yx(s,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}});d&&i(y)}catch{const y=await yx(s,{lang:"text",themes:{light:"github-light",dark:"github-dark"}});d&&i(y)}})(),()=>{d=!1}},[s,u,f]),f?b.jsx("code",{className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm",children:s}):n?b.jsx("div",{className:"shiki-wrapper overflow-x-auto rounded-md text-sm [&_pre]:m-0 [&_pre]:bg-transparent [&_pre]:p-4",dangerouslySetInnerHTML:{__html:n}}):b.jsx("pre",{className:"bg-muted/50 border-border overflow-x-auto rounded-md border p-4",children:b.jsx("code",{className:"text-foreground font-mono text-sm",children:s})})}function cg({items:e,defaultCollapsed:t=!0,className:n=""}){const[i,s]=Y.useState(t);return e.length===0?b.jsx("aside",{className:`hidden ${n}`}):b.jsxs("aside",{className:`toc-root scrollbar-none sticky top-0 z-10 max-h-[calc(100cqh-3rem)] self-start overflow-y-auto ${n}`,children:[b.jsx("style",{children:yI}),b.jsxs("div",{className:"toc-narrow border-border bg-background overflow-hidden rounded border",children:[b.jsxs("button",{onClick:()=>s(!i),className:`text-foreground flex w-full items-center gap-2 px-3 py-2 ${i?"":"border-border border-b"}`,"aria-label":i?"Show table of contents":"Hide table of contents",children:[b.jsx(ub,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Contents"}),b.jsx(TR,{className:`ml-auto h-4 w-4 transition-transform ${i?"":"rotate-180"}`})]}),!i&&b.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent max-h-[300px] overflow-y-auto p-2",children:b.jsx(vx,{items:e})})]}),b.jsxs("nav",{className:"toc-wide flex flex-col",children:[b.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs font-medium uppercase tracking-wide",children:[b.jsx(ub,{className:"h-3.5 w-3.5"}),b.jsx("span",{children:"On this page"})]}),b.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent min-h-0 flex-1 overflow-y-auto p-2",children:b.jsx(vx,{items:e})})]})]})}function mI(e){let t=e.parentElement;for(;t;){const{overflowY:n}=getComputedStyle(t);if(n==="auto"||n==="scroll")return t;t=t.parentElement}return null}function pI(e){const t=mI(e);if(!t)return;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=n.top-i.top,o=n.bottom-i.top;s<0?t.scrollTo({top:t.scrollTop+s,behavior:"smooth"}):o>i.height&&t.scrollTo({top:t.scrollTop+o-i.height,behavior:"smooth"})}function vx({items:e}){const t=Y.useCallback(n=>{n.animationName==="toc-activate"&&pI(n.currentTarget)},[]);return b.jsx(b.Fragment,{children:e.map((n,i)=>b.jsx("a",{href:`#${n.id}`,className:"toc-link text-muted-foreground hover:text-foreground block overflow-hidden text-ellipsis whitespace-nowrap border-l-2 border-transparent px-3 py-1 text-[13px]",style:{"--target":`--toc-${i}`,paddingLeft:n.level===2?"1rem":n.level===3?"1.25rem":"0.75rem",fontSize:(n.level||1)>1?"12px":"13px"},title:n.label,onAnimationStart:t,children:n.label},n.id))})}const gI=String.raw,yI=gI`
|
|
309
|
-
/* Default: narrow mode (collapsible) */
|
|
310
|
-
.toc-narrow {
|
|
311
|
-
display: block;
|
|
312
|
-
}
|
|
313
|
-
.toc-wide {
|
|
314
|
-
display: none;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/* Wide container: show sidebar mode */
|
|
318
|
-
@container (min-width: 768px) {
|
|
319
|
-
.toc-narrow {
|
|
320
|
-
display: none;
|
|
321
|
-
}
|
|
322
|
-
.toc-wide {
|
|
323
|
-
display: block;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/* Scroll-driven ToC highlighting animation */
|
|
328
|
-
@keyframes toc-activate {
|
|
329
|
-
0%,
|
|
330
|
-
100% {
|
|
331
|
-
color: var(--muted-foreground);
|
|
332
|
-
border-left-color: transparent;
|
|
333
|
-
}
|
|
334
|
-
1%,
|
|
335
|
-
99% {
|
|
336
|
-
color: var(--foreground);
|
|
337
|
-
border-left-color: var(--primary);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
.toc-link {
|
|
341
|
-
animation-timeline: var(--target);
|
|
342
|
-
animation-name: toc-activate;
|
|
343
|
-
animation-fill-mode: both;
|
|
344
|
-
animation-range: cover 0% cover 100%;
|
|
345
|
-
}
|
|
346
|
-
`;function vI(e){return e.map((t,n)=>`--toc-${n}`).join(", ")}function Mi({id:e,index:t,children:n,className:i="",as:s="section"}){return b.jsx(s,{id:e,className:i,style:{viewTimelineName:`--toc-${t}`},children:n})}function fg({markdown:e,children:t,toc:n,tocItems:i,className:s=""}){const[o,u]=Y.useState([]),f=Y.useRef([]),d=Y.useRef(0);f.current=[],d.current=0;const h=Y.useMemo(()=>{const x=w=>{const E=`h${w}`;return function({children:A}){const N=d.current++,P=String(A),R=P.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g,"-").replace(/^-|-$/g,"")||`heading-${N}`;return f.current.push({id:R,label:P,level:w}),b.jsx(E,{id:R,style:{viewTimelineName:`--toc-${N}`},children:A})}};return{h1:x(1),h2:x(2),h3:x(3),h4:x(4),h5:x(5),h6:x(6)}},[]);Y.useEffect(()=>{if(n)return;const x=f.current;if(x.length===0)return;(x.length!==o.length||x.some((E,T)=>{var A,N;return E.id!==((A=o[T])==null?void 0:A.id)||E.label!==((N=o[T])==null?void 0:N.label)}))&&u([...x])},[e,n,o]);const y=i??o,p=Y.useMemo(()=>vI(y),[y]),v=n??b.jsx(cg,{items:o,className:"viewer-toc"}),_=e?b.jsx(Ao,{className:"viewer-content min-w-0",components:h,children:e}):b.jsx("div",{className:"viewer-content min-w-0",children:t});return b.jsxs("div",{className:`@container-[size] h-full ${s}`,children:[b.jsx("style",{children:xI}),b.jsxs(_I,{className:"viewer-layout gap-6",timelineScope:p,children:[v,_]})]})}function _I({children:e,className:t="",timelineScope:n}){return b.jsx("div",{className:`scrollbar-thin scrollbar-track-transparent h-full overflow-auto scroll-smooth p-6 ${t}`,style:n?{timelineScope:n}:void 0,children:e})}const bI=String.raw,xI=bI`
|
|
347
|
-
/* Container query based layout */
|
|
348
|
-
.viewer-layout {
|
|
349
|
-
display: block;
|
|
350
|
-
}
|
|
351
|
-
.viewer-toc {
|
|
352
|
-
margin-bottom: 1rem;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/* Wide container: grid layout with ToC on right */
|
|
356
|
-
@container (min-width: 768px) {
|
|
357
|
-
.viewer-layout {
|
|
358
|
-
display: grid;
|
|
359
|
-
grid-template-columns: 1fr 180px;
|
|
360
|
-
}
|
|
361
|
-
.viewer-toc {
|
|
362
|
-
order: 2;
|
|
363
|
-
margin-bottom: 0;
|
|
364
|
-
}
|
|
365
|
-
.viewer-content {
|
|
366
|
-
order: 1;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
`;function SI(){const{specId:e}=Ws({from:"/specs/$specId"}),{data:t,isLoading:n}=jO(e),i=null,s=Y.useMemo(()=>{if(!t)return[];const o=[{id:"overview",label:"Overview",level:1}];if(t.requirements.length>0){o.push({id:"requirements",label:"Requirements",level:1});for(const u of t.requirements){const f=u.text.length>30?`${u.text.slice(0,30)}…`:u.text;o.push({id:`req-${u.id}`,label:f,level:2})}}return o},[t]);return n?b.jsx("div",{className:"animate-pulse",children:"Loading spec..."}):t?b.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(ut,{to:"/specs",className:"hover:bg-muted rounded-md p-2",children:b.jsx(Mp,{className:"h-5 w-5"})}),b.jsxs("div",{children:[b.jsx("h1",{className:"text-2xl font-bold",children:t.name}),b.jsxs("p",{className:"text-muted-foreground",children:["ID: ",t.id]})]})]}),i,b.jsx(fg,{toc:b.jsx(cg,{items:s,className:"viewer-toc"}),tocItems:s,className:"min-h-0 flex-1",children:b.jsxs("div",{className:"space-y-6",children:[b.jsxs(Mi,{id:"overview",index:0,children:[b.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Overview"}),b.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:t.overview?b.jsx(Ao,{children:t.overview}):b.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),b.jsxs(Mi,{id:"requirements",index:1,children:[b.jsxs("h2",{className:"mb-3 text-lg font-semibold",children:["Requirements (",t.requirements.length,")"]}),b.jsxs("div",{className:"space-y-4",children:[t.requirements.map((o,u)=>b.jsxs(Mi,{id:`req-${o.id}`,index:2+u,as:"div",className:"border-border rounded-lg border p-4",children:[b.jsx("div",{className:"mb-2 font-medium",children:o.text}),o.scenarios.length>0&&b.jsxs("div",{className:"mt-3",children:[b.jsxs("div",{className:"text-muted-foreground mb-2 text-sm font-medium",children:["Scenarios (",o.scenarios.length,")"]}),o.scenarios.map((f,d)=>{const h=f.rawText.replace(/^---\n?/,"").replace(/\n?---$/,"").trim();return b.jsx("div",{className:"bg-muted/50 rounded-md p-3",children:b.jsx(Ao,{children:h})},d)})]})]},o.id)),t.requirements.length===0&&b.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]})})]}):b.jsx("div",{className:"text-red-600",children:"Spec not found"})}function EI(){const{data:e,isLoading:t}=LO();return t?b.jsx("div",{className:"animate-pulse",children:"Loading changes..."}):b.jsxs("div",{className:"space-y-6",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Changes"}),b.jsxs("p",{className:"text-muted-foreground",children:["Active change proposals. Completed changes are moved to"," ",b.jsx(ut,{to:"/archive",className:"text-primary hover:underline",children:"Archive"}),"."]}),b.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>b.jsxs(ut,{to:"/changes/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(zp,{className:"w-5 h-5 text-muted-foreground"}),b.jsxs("div",{children:[b.jsx("div",{className:"font-medium",children:n.name}),b.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.progress.completed,"/",n.progress.total," tasks",n.updatedAt>0&&b.jsxs(b.Fragment,{children:[" · ",Ip(n.updatedAt)]})]})]})]}),b.jsx(Pp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&b.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",b.jsx("code",{children:"openspec/changes/"})]})]})]})}function PE(e){const t=new Map;for(const n of e){const i=n.section||"General",s=t.get(i)||[];s.push(n),t.set(i,s)}return Array.from(t.entries()).map(([n,i])=>({section:n,tasks:i,completed:i.filter(s=>s.completed).length,total:i.length}))}function zE(e){return`section-${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`}function wI(e){return e.map(t=>({id:zE(t.section),label:`${t.section} (${t.completed}/${t.total})`,level:2}))}const TI=Y.memo(function({task:t,taskIndex:n,isToggling:i,onToggle:s,readonly:o}){const u=b.jsxs(b.Fragment,{children:[i?b.jsx(qc,{className:"w-5 h-5 text-primary shrink-0 animate-spin"}):t.completed?b.jsx(Ca,{className:"w-5 h-5 text-green-500 shrink-0"}):b.jsx(jR,{className:"w-5 h-5 text-muted-foreground shrink-0 group-hover:text-primary"}),b.jsx("span",{className:t.completed?"line-through text-muted-foreground":"",children:t.text})]});return o||!s?b.jsx("div",{className:"w-full p-3 flex items-center gap-3 text-left",children:u}):b.jsx("button",{onClick:()=>s(n,!t.completed),className:"group w-full p-3 flex items-center gap-3 hover:bg-muted/50 transition-colors text-left",children:u})},(e,t)=>e.task.id===t.task.id&&e.task.completed===t.task.completed&&e.isToggling===t.isToggling&&e.readonly===t.readonly);function IE({tasks:e,progress:t,onToggleTask:n,togglingIndex:i=null,tocBaseIndex:s=0,readonly:o=!1}){const u=Y.useMemo(()=>PE(e),[e]),f=t.total>0?Math.round(t.completed/t.total*100):0,d=(h,y)=>{let p=0;for(let v=0;v<h;v++)p+=u[v].tasks.length;return p+y+1};return b.jsxs(Mi,{id:"tasks",index:s,children:[b.jsxs("div",{className:"flex items-center justify-between mb-3",children:[b.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",t.completed,"/",t.total,")"]}),b.jsxs("span",{className:"text-sm text-muted-foreground",children:[f,"%"]})]}),b.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-4",children:b.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),b.jsxs("div",{className:"space-y-6",children:[u.map((h,y)=>{const p=zE(h.section),v=h.total>0?Math.round(h.completed/h.total*100):0;return b.jsxs(Mi,{id:p,index:s+1+y,as:"div",children:[b.jsxs("div",{className:"flex items-center justify-between mb-2",children:[b.jsx("h3",{className:"font-medium text-foreground",children:h.section}),b.jsxs("span",{className:"text-xs text-muted-foreground",children:[h.completed,"/",h.total," (",v,"%)"]})]}),b.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:h.tasks.map((_,x)=>{const w=d(y,x);return b.jsx(TI,{task:_,taskIndex:w,isToggling:i===w,onToggle:n,readonly:o},_.id)})})]},h.section)}),u.length===0&&b.jsx("div",{className:"p-4 text-muted-foreground text-center border border-border rounded-lg",children:"No tasks defined"})]})]})}function CI(e){return Y.useMemo(()=>PE(e),[e])}function kI(){var w;const{changeId:e}=Ws({from:"/changes/$changeId"}),t=el(),{openArchiveModal:n,state:i}=X1(),{data:s,isLoading:o}=DO(e),u=Y.useRef((s==null?void 0:s.name)??e);s!=null&&s.name&&(u.current=s.name),Y.useEffect(()=>{!o&&!s&&i.open&&t({to:"/changes"})},[o,s,i.open,t]);const f=null,d=Nc({mutationFn:E=>_t.change.toggleTask.mutate({changeId:e,taskIndex:E.taskIndex,completed:E.completed})}),h=Y.useCallback((E,T)=>{d.mutate({taskIndex:E,completed:T})},[d]),y=d.isPending?((w=d.variables)==null?void 0:w.taskIndex)??null:null,p=CI((s==null?void 0:s.tasks)??[]),v=Y.useMemo(()=>{if(!s)return[];const E=[{id:"why",label:"Why",level:1},{id:"what-changes",label:"What Changes",level:1}];return s.deltas.length>0&&E.push({id:"affected-specs",label:"Affected Specs",level:1}),E.push({id:"tasks",label:"Tasks",level:1}),E.push(...wI(p)),E},[s,p]),_=Y.useCallback(()=>{n(e,u.current)},[e,n]),x=s?s.deltas.length>0?3:2:0;return o?b.jsx("div",{className:"animate-pulse",children:"Loading change..."}):s?b.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(ut,{to:"/changes",className:"p-2 hover:bg-muted rounded-md",children:b.jsx(Mp,{className:"w-5 h-5"})}),b.jsxs("div",{children:[b.jsx("h1",{className:"text-2xl font-bold",children:s.name}),b.jsxs("p",{className:"text-muted-foreground",children:["ID: ",s.id]})]})]}),b.jsxs("button",{onClick:_,className:"flex items-center gap-2 px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-md",children:[b.jsx(Vr,{className:"w-4 h-4"}),"Archive"]})]}),f,b.jsx(fg,{toc:b.jsx(cg,{items:v,className:"viewer-toc"}),tocItems:v,className:"min-h-0 flex-1",children:b.jsxs("div",{className:"space-y-6",children:[b.jsxs(Mi,{id:"why",index:0,children:[b.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Why"}),b.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:s.why?b.jsx(Ao,{children:s.why}):b.jsx("span",{className:"text-muted-foreground",children:"No description"})})]}),b.jsxs(Mi,{id:"what-changes",index:1,children:[b.jsx("h2",{className:"text-lg font-semibold mb-2",children:"What Changes"}),b.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:s.whatChanges?b.jsx(Ao,{children:s.whatChanges}):b.jsx("span",{className:"text-muted-foreground",children:"No changes listed"})})]}),s.deltas.length>0&&b.jsxs(Mi,{id:"affected-specs",index:2,children:[b.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Affected Specs (",s.deltas.length,")"]}),b.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:s.deltas.map((E,T)=>b.jsxs("div",{className:"p-3 flex items-center justify-between",children:[b.jsx(ut,{to:"/specs/$specId",params:{specId:E.spec},className:"font-medium hover:underline",children:E.spec}),b.jsx("span",{className:"text-sm px-2 py-1 bg-muted rounded",children:E.operation})]},T))})]}),b.jsx(IE,{tasks:s.tasks,progress:s.progress,onToggleTask:h,togglingIndex:y,tocBaseIndex:x})]})})]}):null}function AI(){const{data:e,isLoading:t}=MO();return t?b.jsx("div",{className:"animate-pulse",children:"Loading archived changes..."}):b.jsxs("div",{className:"space-y-6",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Vr,{className:"w-6 h-6"}),b.jsx("h1",{className:"text-2xl font-bold",children:"Archive"})]}),b.jsx("p",{className:"text-muted-foreground",children:"Completed changes that have been archived after implementation."}),b.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>b.jsxs(ut,{to:"/archive/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Vr,{className:"w-5 h-5 text-muted-foreground"}),b.jsxs("div",{children:[b.jsx("div",{className:"font-medium",children:n.name}),b.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&b.jsxs(b.Fragment,{children:[" · ",Ip(n.updatedAt)]})]})]})]}),b.jsx(Pp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&b.jsxs("div",{className:"p-8 text-center text-muted-foreground",children:[b.jsx(Vr,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),b.jsx("p",{children:"No archived changes yet."}),b.jsxs("p",{className:"text-sm mt-2",children:["Changes are archived after implementation using"," ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec archive"})]})]})]})]})}function RI({tabs:e,defaultTab:t,className:n=""}){var o;const[i,s]=Y.useState(t||((o=e[0])==null?void 0:o.id));return e.length===0?null:b.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${n}`,children:[b.jsx("div",{className:"z-2 flex gap-1",children:e.map(u=>b.jsxs("button",{onClick:()=>s(u.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${i===u.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[u.icon,u.label]},u.id))}),b.jsx("div",{className:"min-h-0 flex-1",children:e.map(u=>b.jsx(Y.Activity,{mode:i===u.id?"visible":"hidden",children:b.jsx(b.Fragment,{children:u.content})},u.id))})]})}const OI=h2("/archive/$changeId");function NI(){const{changeId:e}=OI.useParams(),{data:t,isLoading:n}=PO(e),s=Y.useMemo(()=>{const o=[{id:"proposal",label:"proposal.md",icon:b.jsx(Ks,{className:"w-4 h-4"}),content:b.jsx("div",{className:"p-8 text-center text-muted-foreground border border-border rounded-lg",children:b.jsx("p",{children:"proposal.md not found."})})}];return t!=null&&t.tasks&&t.tasks.length>0&&o.push({id:"tasks",label:"Tasks",icon:b.jsx($R,{className:"w-4 h-4"}),content:b.jsx("div",{className:"h-full border border-border rounded-lg p-4 overflow-auto",children:b.jsx(IE,{tasks:t.tasks,progress:t.progress,readonly:!0})})}),o},[null,t]);return n?b.jsx("div",{className:"animate-pulse",children:"Loading archived change..."}):t?b.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(ut,{to:"/archive",className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Back to Archive",children:b.jsx(Mp,{className:"w-5 h-5"})}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Vr,{className:"w-6 h-6 text-muted-foreground"}),b.jsxs("div",{children:[b.jsx("h1",{className:"text-2xl font-bold",children:t.name}),b.jsx("p",{className:"text-sm text-muted-foreground",children:e})]})]})]}),b.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[b.jsx(Ca,{className:"w-4 h-4 text-green-500"}),b.jsxs("span",{className:"text-green-600",children:["Completed: ",t.progress.completed,"/",t.progress.total," tasks"]})]}),b.jsx(RI,{tabs:s,defaultTab:"proposal"})]}):b.jsxs("div",{className:"text-center py-12",children:[b.jsxs("p",{className:"text-muted-foreground",children:["Archived change not found: ",e]}),b.jsx(ut,{to:"/archive",className:"text-primary hover:underline mt-4 inline-block",children:"Back to Archive"})]})}function jI(){const[e,t]=Y.useState("project"),[n,i]=Y.useState(null),[s,o]=Y.useState(""),{data:u,isLoading:f}=zO(),{data:d,isLoading:h}=IO(),y=Nc({mutationFn:P=>_t.project.saveProjectMd.mutate({content:P}),onSuccess:()=>{i(null)}}),p=Nc({mutationFn:P=>_t.project.saveAgentsMd.mutate({content:P}),onSuccess:()=>{i(null)}}),v=e==="project"?u:d,_=e==="project"?y:p,x=n===e,w=()=>{o(v||""),i(e)},E=()=>{_.mutate(s)},T=()=>{i(null),o("")},A=[{id:"project",label:"project.md",icon:b.jsx(Ks,{className:"w-4 h-4"})},{id:"agents",label:"AGENTS.md",icon:b.jsx(SR,{className:"w-4 h-4"})}],N={project:b.jsxs("p",{children:[b.jsx("strong",{children:"project.md"})," defines project context, tech stack, and conventions for AI assistants."]}),agents:b.jsxs("p",{children:[b.jsx("strong",{children:"AGENTS.md"})," provides workflow instructions for AI coding assistants using OpenSpec."]})};return b.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Project"}),!x&&v&&b.jsxs("button",{onClick:w,className:"border-border flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm hover:bg-muted",children:[b.jsx(iO,{className:"h-4 w-4"}),"Edit"]})]}),b.jsx("div",{className:"border-border flex gap-1 border-b",children:A.map(P=>b.jsxs("button",{onClick:()=>t(P.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${e===P.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[P.icon,P.label]},P.id))}),b.jsxs("div",{className:"border-border min-h-0 flex-1 overflow-hidden rounded-lg border",children:[b.jsx(Y.Activity,{mode:e==="project"?"visible":"hidden",children:b.jsx(_x,{content:u,isLoading:f,isEditing:n==="project",editContent:s,setEditContent:o,onCancel:T,onSave:E,savePending:y.isPending,tabName:"project.md",defaultContent:"# Project Context\\n\\n## Purpose\\n\\n## Tech Stack\\n\\n## Conventions\\n",onStartEdit:()=>{o(u||""),i("project")}})}),b.jsx(Y.Activity,{mode:e==="agents"?"visible":"hidden",children:b.jsx(_x,{content:d,isLoading:h,isEditing:n==="agents",editContent:s,setEditContent:o,onCancel:T,onSave:E,savePending:p.isPending,tabName:"AGENTS.md",defaultContent:"# AI Agent Instructions\\n\\n## Workflow\\n\\n## Commands\\n",onStartEdit:()=>{o(d||""),i("agents")}})})]}),b.jsx("div",{className:"text-muted-foreground text-sm",children:N[e]})]})}function _x({content:e,isLoading:t,isEditing:n,editContent:i,setEditContent:s,onCancel:o,onSave:u,savePending:f,tabName:d,defaultContent:h,onStartEdit:y}){return t?b.jsx("div",{className:"animate-pulse p-4",children:"Loading..."}):e?n?b.jsxs("div",{className:"flex h-full flex-col",children:[b.jsxs("div",{className:"border-border bg-muted/30 flex items-center justify-between border-b p-2",children:[b.jsxs("span",{className:"px-2 text-sm font-medium",children:["Editing ",d]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsxs("button",{onClick:o,className:"border-border flex items-center gap-1 rounded border px-3 py-1 text-sm hover:bg-muted",children:[b.jsx(gf,{className:"h-3 w-3"}),"Cancel"]}),b.jsxs("button",{onClick:u,disabled:f,className:"bg-primary text-primary-foreground flex items-center gap-1 rounded px-3 py-1 text-sm hover:opacity-90 disabled:opacity-50",children:[b.jsx(oO,{className:"h-3 w-3"}),f?"Saving...":"Save"]})]})]}),b.jsx("textarea",{value:i,onChange:p=>s(p.target.value),className:"bg-background flex-1 resize-none p-4 font-mono text-sm focus:outline-none",spellCheck:!1})]}):b.jsx(fg,{markdown:e}):b.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[b.jsxs("p",{className:"mb-4",children:[d," not found."]}),b.jsxs("button",{onClick:()=>{s(h),y()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:["Create ",d]})]})}function LI({path:e,className:t=""}){const[n,i]=Y.useState(!1),s=Y.useCallback(async()=>{try{await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3)}catch(o){console.error("Failed to copy path:",o)}},[e]);return b.jsxs("button",{onClick:s,className:`group flex items-start gap-2 text-left cursor-pointer hover:bg-muted/50 rounded p-2 -m-2 transition-colors ${t}`,title:"Click to copy",children:[b.jsx("code",{className:"flex-1 text-sm font-mono break-all bg-muted px-2 py-1 rounded",children:e}),b.jsx("span",{className:"flex-shrink-0 mt-1 text-muted-foreground group-hover:text-foreground transition-colors",children:n?b.jsx(Vc,{className:"w-4 h-4 text-green-500"}):b.jsx(H1,{className:"w-4 h-4"})})]})}function DI(){const e=localStorage.getItem("theme");return e==="light"||e==="dark"||e==="system"?e:"system"}function bx(e){const t=document.documentElement;if(e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)}else t.classList.toggle("dark",e==="dark")}function MI(){var Se,L,z;const[e,t]=Y.useState(DI),[n,i]=Y.useState(Os()||""),[s,o]=Y.useState(""),[u,f]=Y.useState([]),[d,h]=Y.useState(!1),[y,p]=Y.useState(!1),[v,_]=Y.useState("none"),x=yf(),{data:w}=BO(),{data:E,isLoading:T,refetch:A}=Qh({...cm.cli.sniffGlobalCli.queryOptions(),staleTime:0,gcTime:0}),{data:N,isLoading:P,refetch:I}=Qh(cm.cli.checkAvailability.queryOptions()),{data:R}=Qh(cm.cli.getAllTools.queryOptions()),U=(R==null?void 0:R.filter(H=>H.available))??[],K=(R==null?void 0:R.filter(H=>!H.available))??[],{data:ee}=UO();Y.useEffect(()=>{var H;(H=w==null?void 0:w.cli)!=null&&H.command?o(w.cli.command):o("")},[(Se=w==null?void 0:w.cli)==null?void 0:Se.command]);const j=Y.useCallback(()=>{A(),I(),p(!1)},[A,I]),Q=E!=null&&E.hasGlobal?`openspec (v${E.version||"detected"})`:"npx @fission-ai/openspec";Y.useEffect(()=>{ee&&ee.length>0&&f(ee)},[ee]);const ie=H=>{_(H),h(!0)},de=H=>(ee==null?void 0:ee.includes(H))??!1,oe=H=>{de(H)||f(k=>k.includes(H)?k.filter(le=>le!==H):[...k,H])},ae=()=>{if(!R)return;const H=R.map(pe=>pe.value),le=H.filter(pe=>!de(pe)).every(pe=>u.includes(pe));f(le?ee??[]:[...H])},q=u.filter(H=>!de(H)).length,re=Nc({mutationFn:H=>_t.config.setCliCommand.mutate({command:H}),onSuccess:()=>{I()}});Y.useEffect(()=>{bx(e),localStorage.setItem("theme",e)},[e]),Y.useEffect(()=>{if(e!=="system")return;const H=window.matchMedia("(prefers-color-scheme: dark)"),k=()=>bx("system");return H.addEventListener("change",k),()=>H.removeEventListener("change",k)},[e]);const ce=()=>{const H=new URL(window.location.href);n?H.searchParams.set("api",n):H.searchParams.delete("api"),window.location.href=H.toString()};return b.jsxs("div",{className:"space-y-8 max-w-2xl",children:[b.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Appearance"}),b.jsxs("div",{className:"border border-border rounded-lg p-4",children:[b.jsx("label",{className:"text-sm font-medium mb-3 block",children:"Theme"}),b.jsxs("div",{className:"flex gap-2",children:[b.jsxs("button",{onClick:()=>t("light"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="light"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[b.jsx(dO,{className:"w-4 h-4"}),"Light"]}),b.jsxs("button",{onClick:()=>t("dark"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="dark"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[b.jsx(eO,{className:"w-4 h-4"}),"Dark"]}),b.jsxs("button",{onClick:()=>t("system"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="system"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[b.jsx(JR,{className:"w-4 h-4"}),"System"]})]})]})]}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Project Directory"}),b.jsx("div",{className:"border border-border rounded-lg p-4",children:b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsx(G1,{className:"w-4 h-4 mt-1 text-muted-foreground flex-shrink-0"}),x.projectDir?b.jsx(LI,{path:x.projectDir,className:"flex-1"}):b.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})]}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"CLI Configuration"}),b.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-4",children:[b.jsxs("div",{children:[b.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Global CLI Detection"}),b.jsx("div",{className:"flex items-center gap-2 mb-2",children:T?b.jsxs("span",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[b.jsx(qc,{className:"w-4 h-4 animate-spin"}),"Detecting global openspec command..."]}):E!=null&&E.hasGlobal?b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsxs("span",{className:"flex items-center gap-2 text-sm text-green-600",children:[b.jsx(Ca,{className:"w-4 h-4"}),"Global CLI installed: ",b.jsxs("code",{className:"bg-muted px-1 rounded",children:["openspec ",E.version]})]}),E.hasUpdate&&E.latestVersion&&b.jsxs("span",{className:"flex items-center gap-2 text-sm text-amber-600",children:[b.jsx(ob,{className:"w-4 h-4"}),"Update available: ",b.jsxs("code",{className:"bg-muted px-1 rounded",children:["v",E.latestVersion]})]})]}):b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsxs("span",{className:"flex items-center gap-2 text-sm text-yellow-600",children:[b.jsx(tp,{className:"w-4 h-4"}),"Global CLI not found"]}),(E==null?void 0:E.latestVersion)&&b.jsxs("span",{className:"text-xs text-muted-foreground",children:["Latest version: ",b.jsxs("code",{className:"bg-muted px-1 rounded",children:["v",E.latestVersion]})]})]})}),!T&&(!(E!=null&&E.hasGlobal)||(E==null?void 0:E.hasUpdate))&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("button",{onClick:()=>p(!0),className:"flex items-center gap-2 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-md hover:opacity-90",children:E!=null&&E.hasUpdate?b.jsxs(b.Fragment,{children:[b.jsx(ob,{className:"w-4 h-4"}),"Update to v",E.latestVersion]}):b.jsxs(b.Fragment,{children:[b.jsx(MR,{className:"w-4 h-4"}),"Install Globally"]})}),b.jsxs("span",{className:"text-xs text-muted-foreground",children:["Run: ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"npm install -g @fission-ai/openspec"})]})]}),(E==null?void 0:E.error)&&b.jsxs("p",{className:"text-sm text-red-500 mt-1",children:["Detection error: ",E.error]})]}),b.jsxs("div",{className:"pt-3 border-t border-border",children:[b.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Custom CLI Command (Optional)"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Override the auto-detected CLI command. Leave empty to use the detected default."}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:s,onChange:H=>o(H.target.value),placeholder:Q,className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground font-mono text-sm"}),b.jsx("button",{onClick:()=>re.mutate(s),disabled:re.isPending||s===(((L=w==null?void 0:w.cli)==null?void 0:L.command)??""),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:re.isPending?"Saving...":"Save"})]}),((z=w==null?void 0:w.cli)==null?void 0:z.command)&&b.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Currently using custom command: ",b.jsx("code",{className:"bg-muted px-1 rounded",children:w.cli.command})]})]}),b.jsxs("div",{className:"pt-3 border-t border-border",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(F1,{className:"w-4 h-4 text-muted-foreground"}),b.jsx("span",{className:"text-sm font-medium",children:"CLI Status:"}),P?b.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[b.jsx(qc,{className:"w-4 h-4 animate-spin"}),"Checking..."]}):N!=null&&N.available?b.jsxs("span",{className:"flex items-center gap-1 text-sm text-green-600",children:[b.jsx(Ca,{className:"w-4 h-4"}),"Available ",N.version&&`(${N.version})`]}):b.jsxs("span",{className:"flex items-center gap-1 text-sm text-red-600",children:[b.jsx(tp,{className:"w-4 h-4"}),"Not available"]})]}),N&&!N.available&&N.error&&b.jsx("p",{className:"text-sm text-muted-foreground mt-1 ml-6",children:N.error})]})]})]}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"API Configuration"}),b.jsx("div",{className:"border border-border rounded-lg p-4 space-y-4",children:b.jsxs("div",{children:[b.jsx("label",{className:"text-sm font-medium mb-2 block",children:"API Server URL"}),b.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Leave empty for same-origin requests. Set a custom URL to connect to a different server."}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:n,onChange:H=>i(H.target.value),placeholder:window.location.origin,className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground"}),b.jsx("button",{onClick:ce,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Apply"})]}),Os()&&b.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Current: ",b.jsx("code",{className:"bg-muted px-1 rounded",children:Os()})]})]})})]}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"File Watcher"}),b.jsxs("div",{className:"border border-border rounded-lg p-4",children:[b.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"File watcher is configured on the server side. Check the status bar at the bottom of the page to see if file watching is enabled."}),b.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[b.jsx(Q1,{className:"w-4 h-4 text-green-500"}),b.jsx("span",{children:"Enabled: Real-time updates when files change"})]}),b.jsxs("div",{className:"flex items-center gap-2 text-sm mt-2",children:[b.jsx($1,{className:"w-4 h-4 text-yellow-500"}),b.jsx("span",{children:"Disabled: Manual refresh required"})]}),b.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["To disable file watching, restart the server with"," ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"--no-watch"})," flag."]})]})]}),b.jsxs("section",{className:"space-y-4",children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Initialize OpenSpec"}),b.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-4",children:[b.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create the OpenSpec directory structure in the current project. This will create"," ",b.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/"})," with specs, changes, and archive directories."]}),b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("label",{className:"text-sm font-medium",children:"AI Tools Configuration"}),b.jsx("button",{onClick:ae,className:"text-xs text-primary hover:underline",children:R&&u.length===R.length?"Deselect All":"Select All"})]}),b.jsx("p",{className:"text-sm text-muted-foreground",children:"Select which AI tools to configure. Already configured tools cannot be deselected."}),b.jsxs("div",{children:[b.jsx("p",{className:"text-xs text-muted-foreground mb-2 font-medium",children:"Natively supported providers (✔ OpenSpec custom slash commands available)"}),b.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2",children:U.map(H=>{const k=de(H.value),le=u.includes(H.value);return b.jsxs("button",{onClick:()=>oe(H.value),disabled:k,title:k?"Already configured":H.name,className:`flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded border transition-colors text-left ${k?"border-green-500/50 bg-green-500/10 text-green-600 cursor-not-allowed":le?"border-primary bg-primary/10 text-primary":"border-border hover:bg-muted"}`,children:[(k||le)&&b.jsx(Vc,{className:`w-3 h-3 flex-shrink-0 ${k?"text-green-600":""}`}),b.jsx("span",{className:"truncate",children:H.name})]},H.value)})})]}),K.length>0&&b.jsxs("div",{children:[b.jsx("p",{className:"text-xs text-muted-foreground mb-2 font-medium",children:"Other tools (use Universal AGENTS.md for Amp, VS Code, GitHub Copilot, …)"}),b.jsx("div",{className:"flex flex-wrap gap-2",children:K.map(H=>{const k=de(H.value),le=u.includes(H.value),pe=H.value==="agents"?"Universal AGENTS.md":H.name,he=H.value==="agents"?"always available":void 0;return b.jsxs("button",{onClick:()=>oe(H.value),disabled:k,title:k?"Already configured":H.name,className:`flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded border transition-colors ${k?"border-green-500/50 bg-green-500/10 text-green-600 cursor-not-allowed":le?"border-primary bg-primary/10 text-primary":"border-border hover:bg-muted"}`,children:[(k||le)&&b.jsx(Vc,{className:`w-3 h-3 flex-shrink-0 ${k?"text-green-600":""}`}),b.jsx("span",{children:pe}),he&&b.jsxs("span",{className:"text-muted-foreground",children:["(",he,")"]})]},H.value)})})]}),ee&&ee.length>0&&b.jsx("p",{className:"text-xs text-muted-foreground",children:b.jsxs("span",{className:"inline-flex items-center gap-1",children:[b.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500/50"}),ee.length," tool",ee.length>1?"s":""," already configured"]})})]}),b.jsxs("div",{className:"flex flex-wrap gap-2 pt-2 border-t border-border",children:[b.jsxs("button",{onClick:()=>ie(u.length>0?u:"none"),className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:[b.jsx(BR,{className:"w-4 h-4"}),q>0?`Add ${q} new tool${q>1?"s":""}`:u.length>0?"Refresh configuration":"Initialize (no tools)"]}),b.jsx("button",{onClick:()=>ie("all"),className:"px-4 py-2 border border-border rounded-md hover:bg-muted",children:"Initialize with All Tools"})]})]})]}),b.jsx(np,{title:"Initialize OpenSpec",open:d,onClose:()=>h(!1),type:"init",initOptions:{tools:v}}),b.jsx(np,{title:E!=null&&E.hasUpdate?"Update OpenSpec CLI":"Install OpenSpec CLI Globally",open:y,onClose:()=>p(!1),type:"install-global",successConfig:{title:E!=null&&E.hasUpdate?"Update Complete":"Installation Complete",description:E!=null&&E.hasUpdate?`OpenSpec CLI has been updated to v${E.latestVersion}. You can now use the latest features.`:'OpenSpec CLI has been installed globally. You can now use the "openspec" command from anywhere.',actions:[{label:"Close",onClick:()=>p(!1)},{label:"Re-detect CLI",onClick:j,primary:!0}]}})]})}const fr=y2({component:AO}),PI=or({getParentRoute:()=>fr,path:"/",component:VO}),zI=or({getParentRoute:()=>fr,path:"/project",component:jI}),II=or({getParentRoute:()=>fr,path:"/specs",component:qO}),BI=or({getParentRoute:()=>fr,path:"/specs/$specId",component:SI}),UI=or({getParentRoute:()=>fr,path:"/changes",component:EI}),VI=or({getParentRoute:()=>fr,path:"/changes/$changeId",component:kI}),qI=or({getParentRoute:()=>fr,path:"/archive",component:AI}),HI=or({getParentRoute:()=>fr,path:"/archive/$changeId",component:NI}),GI=or({getParentRoute:()=>fr,path:"/settings",component:MI}),FI=fr.addChildren([PI,zI,II,BI,UI,VI,qI,HI,GI]),$I=C2({routeTree:FI});function QI(){return b.jsx(LC,{client:B1,children:b.jsx(TO,{children:b.jsx(R2,{router:$I})})})}uC.createRoot(document.getElementById("root")).render(b.jsx(QI,{}));
|