xonecode 0.35.0 → 0.36.3
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/THIRD_PARTY_NOTICES.md +30 -0
- package/apps/web/dist/assets/{EditorDeFichero-CGZ6uZPa.js → EditorDeFichero-B9EyiuM6.js} +1 -1
- package/apps/web/dist/assets/index-C6MsC7A5.js +506 -0
- package/apps/web/dist/assets/index-DRNhZyYF.css +1 -0
- package/apps/web/dist/assets/{php-DTPkbJvq.js → php-DCP5mtTp.js} +1 -1
- package/apps/web/dist/assets/{ruby-D1wBOK7G.js → ruby-B41ayseU.js} +1 -1
- package/apps/web/dist/index.html +2 -2
- package/dist/agent/config/settingsEnDisco.js +30 -0
- package/dist/agent/config/settingsEnDisco.js.map +1 -1
- package/dist/agent/dispositivos/instalacionEnMaquina.js +13 -0
- package/dist/agent/dispositivos/instalacionEnMaquina.js.map +1 -1
- package/dist/agent/motores/trueforge/sesionTrueforge.js +39 -1
- package/dist/agent/motores/trueforge/sesionTrueforge.js.map +1 -1
- package/dist/agent/remoto/ngrokEnMaquina.js +113 -0
- package/dist/agent/remoto/ngrokEnMaquina.js.map +1 -0
- package/dist/agent/remoto/puenteWebSocket.js +175 -0
- package/dist/agent/remoto/puenteWebSocket.js.map +1 -0
- package/dist/agent/remoto/tunelNgrok.js +245 -0
- package/dist/agent/remoto/tunelNgrok.js.map +1 -0
- package/dist/core/dispositivos.js +53 -0
- package/dist/core/dispositivos.js.map +1 -1
- package/dist/core/idiomaDeLaRespuesta.js +38 -0
- package/dist/core/idiomaDeLaRespuesta.js.map +1 -0
- package/dist/core/panorama.js +93 -0
- package/dist/core/panorama.js.map +1 -0
- package/dist/core/ports.js +100 -0
- package/dist/core/ports.js.map +1 -1
- package/dist/core/remoto.js +117 -0
- package/dist/core/remoto.js.map +1 -0
- package/dist/core/settings.js +83 -0
- package/dist/core/settings.js.map +1 -1
- package/dist/core/tunel.js +92 -0
- package/dist/core/tunel.js.map +1 -0
- package/dist/web/servidor/arranque.js +597 -72
- package/dist/web/servidor/arranque.js.map +1 -1
- package/dist/web/servidor/consolaWeb.js +52 -2
- package/dist/web/servidor/consolaWeb.js.map +1 -1
- package/dist/web/servidor/puenteRemoto.js +272 -0
- package/dist/web/servidor/puenteRemoto.js.map +1 -0
- package/dist/web/servidor/transporte.js.map +1 -1
- package/dist/web/servidor/vestibulo.js +39 -1
- package/dist/web/servidor/vestibulo.js.map +1 -1
- package/node_modules/@xone/xonecode-remoto/dist/base64url.d.ts +2 -0
- package/node_modules/@xone/xonecode-remoto/dist/base64url.js +19 -0
- package/node_modules/@xone/xonecode-remoto/dist/cifrado.d.ts +25 -0
- package/node_modules/@xone/xonecode-remoto/dist/cifrado.js +75 -0
- package/node_modules/@xone/xonecode-remoto/dist/contenido.d.ts +121 -0
- package/node_modules/@xone/xonecode-remoto/dist/contenido.js +191 -0
- package/node_modules/@xone/xonecode-remoto/dist/index.d.ts +6 -0
- package/node_modules/@xone/xonecode-remoto/dist/index.js +6 -0
- package/node_modules/@xone/xonecode-remoto/dist/servidor/salas.d.ts +46 -0
- package/node_modules/@xone/xonecode-remoto/dist/servidor/salas.js +128 -0
- package/node_modules/@xone/xonecode-remoto/dist/servidor/servidor.d.ts +31 -0
- package/node_modules/@xone/xonecode-remoto/dist/servidor/servidor.js +198 -0
- package/node_modules/@xone/xonecode-remoto/dist/sobre.d.ts +53 -0
- package/node_modules/@xone/xonecode-remoto/dist/sobre.js +69 -0
- package/node_modules/@xone/xonecode-remoto/dist/url.d.ts +12 -0
- package/node_modules/@xone/xonecode-remoto/dist/url.js +35 -0
- package/node_modules/@xone/xonecode-remoto/dist/version.d.ts +2 -0
- package/node_modules/@xone/xonecode-remoto/dist/version.js +2 -0
- package/node_modules/@xone/xonecode-remoto/package.json +41 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/index-Bfa2gK3J.css +1 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/index-qBo9eRDN.js +77 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/node_modules/@xone/xonecode-remoto/web/index.html +14 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/node_modules/ws/lib/receiver.js +743 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1407 -0
- package/node_modules/ws/package.json +74 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/package.json +6 -1
- package/apps/web/dist/assets/index-BBQH-l_3.css +0 -1
- package/apps/web/dist/assets/index-DqYXrrxo.js +0 -499
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ruby-D1wBOK7G.js","./html-CfGypltT.js","./css-CLj8gQPS.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-CRqJ_cUM.js","./cpp-DddhVWhK.js","./c-BIGW1oBm.js","./lua-BaeVxFsk.js","./yaml-Buea-lGh.js","./php-DTPkbJvq.js","./scss-D5BDwBP9.js","./EditorDeFichero-CGZ6uZPa.js","./EditorDeFichero-BX_LfESa.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var G9=Object.defineProperty;var W9=Object.getPrototypeOf;var Z9=Reflect.get;var Gg=e=>{throw TypeError(e)};var Q9=(e,t,n)=>t in e?G9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ce=(e,t,n)=>Q9(e,typeof t!="symbol"?t+"":t,n),nh=(e,t,n)=>t.has(e)||Gg("Cannot "+n);var Xr=(e,t,n)=>(nh(e,t,"read from private field"),n?n.call(e):t.get(e)),Cl=(e,t,n)=>t.has(e)?Gg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Mo=(e,t,n,r)=>(nh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),rh=(e,t,n)=>(nh(e,t,"access private method"),n);var Wg=(e,t,n)=>Z9(W9(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();var ah={exports:{}},c0={},oh={exports:{}},yt={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its 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 Zg;function X9(){if(Zg)return yt;Zg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;function b(q){return q===null||typeof q!="object"?null:(q=h&&q[h]||q["@@iterator"],typeof q=="function"?q:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function C(q,ee,z){this.props=q,this.context=ee,this.refs=_,this.updater=z||y}C.prototype.isReactComponent={},C.prototype.setState=function(q,ee){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,ee,"setState")},C.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function k(){}k.prototype=C.prototype;function S(q,ee,z){this.props=q,this.context=ee,this.refs=_,this.updater=z||y}var A=S.prototype=new k;A.constructor=S,g(A,C.prototype),A.isPureReactComponent=!0;var I=Array.isArray,M=Object.prototype.hasOwnProperty,L={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function G(q,ee,z){var ke,pe={},Me=null,ge=null;if(ee!=null)for(ke in ee.ref!==void 0&&(ge=ee.ref),ee.key!==void 0&&(Me=""+ee.key),ee)M.call(ee,ke)&&!F.hasOwnProperty(ke)&&(pe[ke]=ee[ke]);var ze=arguments.length-2;if(ze===1)pe.children=z;else if(1<ze){for(var Pe=Array(ze),qe=0;qe<ze;qe++)Pe[qe]=arguments[qe+2];pe.children=Pe}if(q&&q.defaultProps)for(ke in ze=q.defaultProps,ze)pe[ke]===void 0&&(pe[ke]=ze[ke]);return{$$typeof:e,type:q,key:Me,ref:ge,props:pe,_owner:L.current}}function O(q,ee){return{$$typeof:e,type:q.type,key:ee,ref:q.ref,props:q.props,_owner:q._owner}}function B(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function W(q){var ee={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(z){return ee[z]})}var re=/\/+/g;function fe(q,ee){return typeof q=="object"&&q!==null&&q.key!=null?W(""+q.key):ee.toString(36)}function he(q,ee,z,ke,pe){var Me=typeof q;(Me==="undefined"||Me==="boolean")&&(q=null);var ge=!1;if(q===null)ge=!0;else switch(Me){case"string":case"number":ge=!0;break;case"object":switch(q.$$typeof){case e:case t:ge=!0}}if(ge)return ge=q,pe=pe(ge),q=ke===""?"."+fe(ge,0):ke,I(pe)?(z="",q!=null&&(z=q.replace(re,"$&/")+"/"),he(pe,ee,z,"",function(qe){return qe})):pe!=null&&(B(pe)&&(pe=O(pe,z+(!pe.key||ge&&ge.key===pe.key?"":(""+pe.key).replace(re,"$&/")+"/")+q)),ee.push(pe)),1;if(ge=0,ke=ke===""?".":ke+":",I(q))for(var ze=0;ze<q.length;ze++){Me=q[ze];var Pe=ke+fe(Me,ze);ge+=he(Me,ee,z,Pe,pe)}else if(Pe=b(q),typeof Pe=="function")for(q=Pe.call(q),ze=0;!(Me=q.next()).done;)Me=Me.value,Pe=ke+fe(Me,ze++),ge+=he(Me,ee,z,Pe,pe);else if(Me==="object")throw ee=String(q),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return ge}function ne(q,ee,z){if(q==null)return q;var ke=[],pe=0;return he(q,ke,"","",function(Me){return ee.call(z,Me,pe++)}),ke}function we(q){if(q._status===-1){var ee=q._result;ee=ee(),ee.then(function(z){(q._status===0||q._status===-1)&&(q._status=1,q._result=z)},function(z){(q._status===0||q._status===-1)&&(q._status=2,q._result=z)}),q._status===-1&&(q._status=0,q._result=ee)}if(q._status===1)return q._result.default;throw q._result}var je={current:null},J={transition:null},oe={ReactCurrentDispatcher:je,ReactCurrentBatchConfig:J,ReactCurrentOwner:L};function R(){throw Error("act(...) is not supported in production builds of React.")}return yt.Children={map:ne,forEach:function(q,ee,z){ne(q,function(){ee.apply(this,arguments)},z)},count:function(q){var ee=0;return ne(q,function(){ee++}),ee},toArray:function(q){return ne(q,function(ee){return ee})||[]},only:function(q){if(!B(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},yt.Component=C,yt.Fragment=n,yt.Profiler=a,yt.PureComponent=S,yt.StrictMode=r,yt.Suspense=d,yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,yt.act=R,yt.cloneElement=function(q,ee,z){if(q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var ke=g({},q.props),pe=q.key,Me=q.ref,ge=q._owner;if(ee!=null){if(ee.ref!==void 0&&(Me=ee.ref,ge=L.current),ee.key!==void 0&&(pe=""+ee.key),q.type&&q.type.defaultProps)var ze=q.type.defaultProps;for(Pe in ee)M.call(ee,Pe)&&!F.hasOwnProperty(Pe)&&(ke[Pe]=ee[Pe]===void 0&&ze!==void 0?ze[Pe]:ee[Pe])}var Pe=arguments.length-2;if(Pe===1)ke.children=z;else if(1<Pe){ze=Array(Pe);for(var qe=0;qe<Pe;qe++)ze[qe]=arguments[qe+2];ke.children=ze}return{$$typeof:e,type:q.type,key:pe,ref:Me,props:ke,_owner:ge}},yt.createContext=function(q){return q={$$typeof:i,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},q.Provider={$$typeof:l,_context:q},q.Consumer=q},yt.createElement=G,yt.createFactory=function(q){var ee=G.bind(null,q);return ee.type=q,ee},yt.createRef=function(){return{current:null}},yt.forwardRef=function(q){return{$$typeof:u,render:q}},yt.isValidElement=B,yt.lazy=function(q){return{$$typeof:f,_payload:{_status:-1,_result:q},_init:we}},yt.memo=function(q,ee){return{$$typeof:m,type:q,compare:ee===void 0?null:ee}},yt.startTransition=function(q){var ee=J.transition;J.transition={};try{q()}finally{J.transition=ee}},yt.unstable_act=R,yt.useCallback=function(q,ee){return je.current.useCallback(q,ee)},yt.useContext=function(q){return je.current.useContext(q)},yt.useDebugValue=function(){},yt.useDeferredValue=function(q){return je.current.useDeferredValue(q)},yt.useEffect=function(q,ee){return je.current.useEffect(q,ee)},yt.useId=function(){return je.current.useId()},yt.useImperativeHandle=function(q,ee,z){return je.current.useImperativeHandle(q,ee,z)},yt.useInsertionEffect=function(q,ee){return je.current.useInsertionEffect(q,ee)},yt.useLayoutEffect=function(q,ee){return je.current.useLayoutEffect(q,ee)},yt.useMemo=function(q,ee){return je.current.useMemo(q,ee)},yt.useReducer=function(q,ee,z){return je.current.useReducer(q,ee,z)},yt.useRef=function(q){return je.current.useRef(q)},yt.useState=function(q){return je.current.useState(q)},yt.useSyncExternalStore=function(q,ee,z){return je.current.useSyncExternalStore(q,ee,z)},yt.useTransition=function(){return je.current.useTransition()},yt.version="18.3.1",yt}var Qg;function y2(){return Qg||(Qg=1,oh.exports=X9()),oh.exports}/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its 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 Xg;function Y9(){if(Xg)return c0;Xg=1;var e=y2(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(u,d,m){var f,h={},b=null,y=null;m!==void 0&&(b=""+m),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(y=d.ref);for(f in d)r.call(d,f)&&!l.hasOwnProperty(f)&&(h[f]=d[f]);if(u&&u.defaultProps)for(f in d=u.defaultProps,d)h[f]===void 0&&(h[f]=d[f]);return{$$typeof:t,type:u,key:b,ref:y,props:h,_owner:a.current}}return c0.Fragment=n,c0.jsx=i,c0.jsxs=i,c0}var Yg;function K9(){return Yg||(Yg=1,ah.exports=Y9()),ah.exports}var o=K9(),$=y2(),tp={},sh={exports:{}},ma={},ih={exports:{}},lh={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its 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 Kg;function J9(){return Kg||(Kg=1,(function(e){function t(J,oe){var R=J.length;J.push(oe);e:for(;0<R;){var q=R-1>>>1,ee=J[q];if(0<a(ee,oe))J[q]=oe,J[R]=ee,R=q;else break e}}function n(J){return J.length===0?null:J[0]}function r(J){if(J.length===0)return null;var oe=J[0],R=J.pop();if(R!==oe){J[0]=R;e:for(var q=0,ee=J.length,z=ee>>>1;q<z;){var ke=2*(q+1)-1,pe=J[ke],Me=ke+1,ge=J[Me];if(0>a(pe,R))Me<ee&&0>a(ge,pe)?(J[q]=ge,J[Me]=R,q=Me):(J[q]=pe,J[ke]=R,q=ke);else if(Me<ee&&0>a(ge,R))J[q]=ge,J[Me]=R,q=Me;else break e}}return oe}function a(J,oe){var R=J.sortIndex-oe.sortIndex;return R!==0?R:J.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var d=[],m=[],f=1,h=null,b=3,y=!1,g=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(J){for(var oe=n(m);oe!==null;){if(oe.callback===null)r(m);else if(oe.startTime<=J)r(m),oe.sortIndex=oe.expirationTime,t(d,oe);else break;oe=n(m)}}function I(J){if(_=!1,A(J),!g)if(n(d)!==null)g=!0,we(M);else{var oe=n(m);oe!==null&&je(I,oe.startTime-J)}}function M(J,oe){g=!1,_&&(_=!1,k(G),G=-1),y=!0;var R=b;try{for(A(oe),h=n(d);h!==null&&(!(h.expirationTime>oe)||J&&!W());){var q=h.callback;if(typeof q=="function"){h.callback=null,b=h.priorityLevel;var ee=q(h.expirationTime<=oe);oe=e.unstable_now(),typeof ee=="function"?h.callback=ee:h===n(d)&&r(d),A(oe)}else r(d);h=n(d)}if(h!==null)var z=!0;else{var ke=n(m);ke!==null&&je(I,ke.startTime-oe),z=!1}return z}finally{h=null,b=R,y=!1}}var L=!1,F=null,G=-1,O=5,B=-1;function W(){return!(e.unstable_now()-B<O)}function re(){if(F!==null){var J=e.unstable_now();B=J;var oe=!0;try{oe=F(!0,J)}finally{oe?fe():(L=!1,F=null)}}else L=!1}var fe;if(typeof S=="function")fe=function(){S(re)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ne=he.port2;he.port1.onmessage=re,fe=function(){ne.postMessage(null)}}else fe=function(){C(re,0)};function we(J){F=J,L||(L=!0,fe())}function je(J,oe){G=C(function(){J(e.unstable_now())},oe)}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(J){J.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,we(M))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(J){switch(b){case 1:case 2:case 3:var oe=3;break;default:oe=b}var R=b;b=oe;try{return J()}finally{b=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,oe){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var R=b;b=J;try{return oe()}finally{b=R}},e.unstable_scheduleCallback=function(J,oe,R){var q=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?q+R:q):R=q,J){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=R+ee,J={id:f++,callback:oe,priorityLevel:J,startTime:R,expirationTime:ee,sortIndex:-1},R>q?(J.sortIndex=R,t(m,J),n(d)===null&&J===n(m)&&(_?(k(G),G=-1):_=!0,je(I,R-q))):(J.sortIndex=ee,t(d,J),g||y||(g=!0,we(M))),J},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(J){var oe=b;return function(){var R=b;b=oe;try{return J.apply(this,arguments)}finally{b=R}}}})(lh)),lh}var Jg;function ey(){return Jg||(Jg=1,ih.exports=J9()),ih.exports}/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its 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 e3;function ty(){if(e3)return ma;e3=1;var e=y2(),t=ey();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(s,c){i(s,c),i(s+"Capture",c)}function i(s,c){for(a[s]=c,s=0;s<c.length;s++)r.add(c[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,m=/^[: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]*$/,f={},h={};function b(s){return d.call(h,s)?!0:d.call(f,s)?!1:m.test(s)?h[s]=!0:(f[s]=!0,!1)}function y(s,c,p,v){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return v?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function g(s,c,p,v){if(c===null||typeof c>"u"||y(s,c,p,v))return!0;if(v)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function _(s,c,p,v,x,j,T){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=j,this.removeEmptyString=T}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){C[s]=new _(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];C[c]=new _(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){C[s]=new _(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){C[s]=new _(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){C[s]=new _(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){C[s]=new _(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){C[s]=new _(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){C[s]=new _(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){C[s]=new _(s,5,!1,s.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function S(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(k,S);C[c]=new _(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(k,S);C[c]=new _(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(k,S);C[c]=new _(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){C[s]=new _(s,1,!1,s.toLowerCase(),null,!1,!1)}),C.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){C[s]=new _(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,c,p,v){var x=C.hasOwnProperty(c)?C[c]:null;(x!==null?x.type!==0:v||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(g(c,p,x,v)&&(p=null),v||x===null?b(c)&&(p===null?s.removeAttribute(c):s.setAttribute(c,""+p)):x.mustUseProperty?s[x.propertyName]=p===null?x.type===3?!1:"":p:(c=x.attributeName,v=x.attributeNamespace,p===null?s.removeAttribute(c):(x=x.type,p=x===3||x===4&&p===!0?"":""+p,v?s.setAttributeNS(v,c,p):s.setAttribute(c,p))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),L=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),W=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),J=Symbol.iterator;function oe(s){return s===null||typeof s!="object"?null:(s=J&&s[J]||s["@@iterator"],typeof s=="function"?s:null)}var R=Object.assign,q;function ee(s){if(q===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);q=c&&c[1]||""}return`
|
|
35
|
-
`+q+s}var z=!1;function ke(s,c){if(!s||z)return"";z=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(ie){var v=ie}Reflect.construct(s,[],c)}else{try{c.call()}catch(ie){v=ie}s.call(c.prototype)}else{try{throw Error()}catch(ie){v=ie}s()}}catch(ie){if(ie&&v&&typeof ie.stack=="string"){for(var x=ie.stack.split(`
|
|
36
|
-
`),j=v.stack.split(`
|
|
37
|
-
`),T=x.length-1,H=j.length-1;1<=T&&0<=H&&x[T]!==j[H];)H--;for(;1<=T&&0<=H;T--,H--)if(x[T]!==j[H]){if(T!==1||H!==1)do if(T--,H--,0>H||x[T]!==j[H]){var Q=`
|
|
38
|
-
`+x[T].replace(" at new "," at ");return s.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",s.displayName)),Q}while(1<=T&&0<=H);break}}}finally{z=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?ee(s):""}function pe(s){switch(s.tag){case 5:return ee(s.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return s=ke(s.type,!1),s;case 11:return s=ke(s.type.render,!1),s;case 1:return s=ke(s.type,!0),s;default:return""}}function Me(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case F:return"Fragment";case L:return"Portal";case O:return"Profiler";case G:return"StrictMode";case fe:return"Suspense";case he:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case W:return(s.displayName||"Context")+".Consumer";case B:return(s._context.displayName||"Context")+".Provider";case re:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ne:return c=s.displayName||null,c!==null?c:Me(s.type)||"Memo";case we:c=s._payload,s=s._init;try{return Me(s(c))}catch{}}return null}function ge(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Me(c);case 8:return c===G?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function ze(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Pe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function qe(s){var c=Pe(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),v=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,j=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(T){v=""+T,j.call(this,T)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return v},setValue:function(T){v=""+T},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Nt(s){s._valueTracker||(s._valueTracker=qe(s))}function Kt(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),v="";return s&&(v=Pe(s)?s.checked?"true":"false":s.value),s=v,s!==p?(c.setValue(s),!0):!1}function Ut(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Rn(s,c){var p=c.checked;return R({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function Wn(s,c){var p=c.defaultValue==null?"":c.defaultValue,v=c.checked!=null?c.checked:c.defaultChecked;p=ze(c.value!=null?c.value:p),s._wrapperState={initialChecked:v,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function $n(s,c){c=c.checked,c!=null&&A(s,"checked",c,!1)}function wr(s,c){$n(s,c);var p=ze(c.value),v=c.type;if(p!=null)v==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(v==="submit"||v==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?aa(s,c.type,p):c.hasOwnProperty("defaultValue")&&aa(s,c.type,ze(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function mn(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var v=c.type;if(!(v!=="submit"&&v!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function aa(s,c,p){(c!=="number"||Ut(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var nn=Array.isArray;function An(s,c,p,v){if(s=s.options,c){c={};for(var x=0;x<p.length;x++)c["$"+p[x]]=!0;for(p=0;p<s.length;p++)x=c.hasOwnProperty("$"+s[p].value),s[p].selected!==x&&(s[p].selected=x),x&&v&&(s[p].defaultSelected=!0)}else{for(p=""+ze(p),c=null,x=0;x<s.length;x++){if(s[x].value===p){s[x].selected=!0,v&&(s[x].defaultSelected=!0);return}c!==null||s[x].disabled||(c=s[x])}c!==null&&(c.selected=!0)}}function qr(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return R({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Rr(s,c){var p=c.value;if(p==null){if(p=c.children,c=c.defaultValue,p!=null){if(c!=null)throw Error(n(92));if(nn(p)){if(1<p.length)throw Error(n(93));p=p[0]}c=p}c==null&&(c=""),p=c}s._wrapperState={initialValue:ze(p)}}function hn(s,c){var p=ze(c.value),v=ze(c.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),c.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),v!=null&&(s.defaultValue=""+v)}function ba(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function le(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ce(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?le(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Ze,st=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,p,v,x){MSApp.execUnsafeLocalFunction(function(){return s(c,p,v,x)})}:s})(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(Ze=Ze||document.createElement("div"),Ze.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Ze.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function vt(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var Pt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jr=["Webkit","ms","Moz","O"];Object.keys(Pt).forEach(function(s){jr.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Pt[c]=Pt[s]})});function Pn(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Pt.hasOwnProperty(s)&&Pt[s]?(""+c).trim():c+"px"}function oa(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var v=p.indexOf("--")===0,x=Pn(p,c[p],v);p==="float"&&(p="cssFloat"),v?s.setProperty(p,x):s[p]=x}}var En=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(s,c){if(c){if(En[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function $t(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Dn=null;function Pr(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Fr=null,Cr=null,ya=null;function on(s){if(s=hi(s)){if(typeof Fr!="function")throw Error(n(280));var c=s.stateNode;c&&(c=pl(c),Fr(s.stateNode,s.type,c))}}function Bi(s){Cr?ya?ya.push(s):ya=[s]:Cr=s}function Hi(){if(Cr){var s=Cr,c=ya;if(ya=Cr=null,on(s),c)for(s=0;s<c.length;s++)on(c[s])}}function xa(s,c){return s(c)}function _a(){}var ms=!1;function hs(s,c,p){if(ms)return s(c,p);ms=!0;try{return xa(s,c,p)}finally{ms=!1,(Cr!==null||ya!==null)&&(_a(),Hi())}}function Pa(s,c){var p=s.stateNode;if(p===null)return null;var v=pl(p);if(v===null)return null;p=v[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(s=s.type,v=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!v;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(n(231,c,typeof p));return p}var Fa=!1;if(u)try{var wa={};Object.defineProperty(wa,"passive",{get:function(){Fa=!0}}),window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Fa=!1}function ar(s,c,p,v,x,j,T,H,Q){var ie=Array.prototype.slice.call(arguments,3);try{c.apply(p,ie)}catch(ye){this.onError(ye)}}var Oa=!1,fs=null,sn=!1,ja=null,ti={onError:function(s){Oa=!0,fs=s}};function sa(s,c,p,v,x,j,T,H,Q){Oa=!1,fs=null,ar.apply(ti,arguments)}function Ui(s,c,p,v,x,j,T,H,Q){if(sa.apply(this,arguments),Oa){if(Oa){var ie=fs;Oa=!1,fs=null}else throw Error(n(198));sn||(sn=!0,ja=ie)}}function Or(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function Br(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function zn(s){if(Or(s)!==s)throw Error(n(188))}function Ho(s){var c=s.alternate;if(!c){if(c=Or(s),c===null)throw Error(n(188));return c!==s?null:s}for(var p=s,v=c;;){var x=p.return;if(x===null)break;var j=x.alternate;if(j===null){if(v=x.return,v!==null){p=v;continue}break}if(x.child===j.child){for(j=x.child;j;){if(j===p)return zn(x),s;if(j===v)return zn(x),c;j=j.sibling}throw Error(n(188))}if(p.return!==v.return)p=x,v=j;else{for(var T=!1,H=x.child;H;){if(H===p){T=!0,p=x,v=j;break}if(H===v){T=!0,v=x,p=j;break}H=H.sibling}if(!T){for(H=j.child;H;){if(H===p){T=!0,p=j,v=x;break}if(H===v){T=!0,v=j,p=x;break}H=H.sibling}if(!T)throw Error(n(189))}}if(p.alternate!==v)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?s:c}function Vi(s){return s=Ho(s),s!==null?Uo(s):null}function Uo(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=Uo(s);if(c!==null)return c;s=s.sibling}return null}var gs=t.unstable_scheduleCallback,Gi=t.unstable_cancelCallback,Jl=t.unstable_shouldYield,ec=t.unstable_requestPaint,Ft=t.unstable_now,Wi=t.unstable_getCurrentPriorityLevel,ia=t.unstable_ImmediatePriority,vs=t.unstable_UserBlockingPriority,mo=t.unstable_NormalPriority,tc=t.unstable_LowPriority,nc=t.unstable_IdlePriority,Hr=null,Fn=null;function ho(s){if(Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(Hr,s,void 0,(s.current.flags&128)===128)}catch{}}var Wt=Math.clz32?Math.clz32:ys,bs=Math.log,Vo=Math.LN2;function ys(s){return s>>>=0,s===0?32:31-(bs(s)/Vo|0)|0}var fo=64,Ba=4194304;function Ha(s){switch(s&-s){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: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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Ua(s,c){var p=s.pendingLanes;if(p===0)return 0;var v=0,x=s.suspendedLanes,j=s.pingedLanes,T=p&268435455;if(T!==0){var H=T&~x;H!==0?v=Ha(H):(j&=T,j!==0&&(v=Ha(j)))}else T=p&~x,T!==0?v=Ha(T):j!==0&&(v=Ha(j));if(v===0)return 0;if(c!==0&&c!==v&&(c&x)===0&&(x=v&-v,j=c&-c,x>=j||x===16&&(j&4194240)!==0))return c;if((v&4)!==0&&(v|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=v;0<c;)p=31-Wt(c),x=1<<p,v|=s[p],c&=~x;return v}function Va(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function go(s,c){for(var p=s.suspendedLanes,v=s.pingedLanes,x=s.expirationTimes,j=s.pendingLanes;0<j;){var T=31-Wt(j),H=1<<T,Q=x[T];Q===-1?((H&p)===0||(H&v)!==0)&&(x[T]=Va(H,c)):Q<=c&&(s.expiredLanes|=H),j&=~H}}function Ca(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function rc(){var s=fo;return fo<<=1,(fo&4194240)===0&&(fo=64),s}function Go(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function xt(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Wt(c),s[c]=p}function vo(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var v=s.eventTimes;for(s=s.expirationTimes;0<p;){var x=31-Wt(p),j=1<<x;c[x]=0,v[x]=-1,s[x]=-1,p&=~j}}function Zi(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var v=31-Wt(p),x=1<<v;x&c|s[v]&c&&(s[v]|=c),p&=~x}}var _t=0;function xs(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Wo,ni,_s,ws,Zo,dr=!1,Ur=[],Vr=null,Gr=null,wn=null,bo=new Map,Ga=new Map,pr=[],Qi="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 submit".split(" ");function Xi(s,c){switch(s){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":bo.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(c.pointerId)}}function js(s,c,p,v,x,j){return s===null||s.nativeEvent!==j?(s={blockedOn:c,domEventName:p,eventSystemFlags:v,nativeEvent:j,targetContainers:[x]},c!==null&&(c=hi(c),c!==null&&ni(c)),s):(s.eventSystemFlags|=v,c=s.targetContainers,x!==null&&c.indexOf(x)===-1&&c.push(x),s)}function ac(s,c,p,v,x){switch(c){case"focusin":return Vr=js(Vr,s,c,p,v,x),!0;case"dragenter":return Gr=js(Gr,s,c,p,v,x),!0;case"mouseover":return wn=js(wn,s,c,p,v,x),!0;case"pointerover":var j=x.pointerId;return bo.set(j,js(bo.get(j)||null,s,c,p,v,x)),!0;case"gotpointercapture":return j=x.pointerId,Ga.set(j,js(Ga.get(j)||null,s,c,p,v,x)),!0}return!1}function yo(s){var c=Xo(s.target);if(c!==null){var p=Or(c);if(p!==null){if(c=p.tag,c===13){if(c=Br(p),c!==null){s.blockedOn=c,Zo(s.priority,function(){_s(p)});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function mr(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=ai(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var v=new p.constructor(p.type,p);Dn=v,p.target.dispatchEvent(v),Dn=null}else return c=hi(p),c!==null&&ni(c),s.blockedOn=p,!1;c.shift()}return!0}function Cs(s,c,p){mr(s)&&p.delete(c)}function kr(){dr=!1,Vr!==null&&mr(Vr)&&(Vr=null),Gr!==null&&mr(Gr)&&(Gr=null),wn!==null&&mr(wn)&&(wn=null),bo.forEach(Cs),Ga.forEach(Cs)}function Wa(s,c){s.blockedOn===c&&(s.blockedOn=null,dr||(dr=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kr)))}function Qo(s){function c(x){return Wa(x,s)}if(0<Ur.length){Wa(Ur[0],s);for(var p=1;p<Ur.length;p++){var v=Ur[p];v.blockedOn===s&&(v.blockedOn=null)}}for(Vr!==null&&Wa(Vr,s),Gr!==null&&Wa(Gr,s),wn!==null&&Wa(wn,s),bo.forEach(c),Ga.forEach(c),p=0;p<pr.length;p++)v=pr[p],v.blockedOn===s&&(v.blockedOn=null);for(;0<pr.length&&(p=pr[0],p.blockedOn===null);)yo(p),p.blockedOn===null&&pr.shift()}var Za=I.ReactCurrentBatchConfig,xo=!0;function oc(s,c,p,v){var x=_t,j=Za.transition;Za.transition=null;try{_t=1,ri(s,c,p,v)}finally{_t=x,Za.transition=j}}function Qa(s,c,p,v){var x=_t,j=Za.transition;Za.transition=null;try{_t=4,ri(s,c,p,v)}finally{_t=x,Za.transition=j}}function ri(s,c,p,v){if(xo){var x=ai(s,c,p,v);if(x===null)vc(s,c,v,_o,p),Xi(s,v);else if(ac(x,s,c,p,v))v.stopPropagation();else if(Xi(s,v),c&4&&-1<Qi.indexOf(s)){for(;x!==null;){var j=hi(x);if(j!==null&&Wo(j),j=ai(s,c,p,v),j===null&&vc(s,c,v,_o,p),j===x)break;x=j}x!==null&&v.stopPropagation()}else vc(s,c,v,null,p)}}var _o=null;function ai(s,c,p,v){if(_o=null,s=Pr(v),s=Xo(s),s!==null)if(c=Or(s),c===null)s=null;else if(p=c.tag,p===13){if(s=Br(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return _o=s,null}function Y(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wi()){case ia:return 1;case vs:return 4;case mo:case tc:return 16;case nc:return 536870912;default:return 16}default:return 16}}var Oe=null,bt=null,hr=null;function Tn(){if(hr)return hr;var s,c=bt,p=c.length,v,x="value"in Oe?Oe.value:Oe.textContent,j=x.length;for(s=0;s<p&&c[s]===x[s];s++);var T=p-s;for(v=1;v<=T&&c[p-v]===x[j-v];v++);return hr=x.slice(s,1<v?1-v:void 0)}function ka(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function it(){return!0}function Mt(){return!1}function Qe(s){function c(p,v,x,j,T){this._reactName=p,this._targetInst=x,this.type=v,this.nativeEvent=j,this.target=T,this.currentTarget=null;for(var H in s)s.hasOwnProperty(H)&&(p=s[H],this[H]=p?p(j):j[H]);return this.isDefaultPrevented=(j.defaultPrevented!=null?j.defaultPrevented:j.returnValue===!1)?it:Mt,this.isPropagationStopped=Mt,this}return R(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=it)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=it)},persist:function(){},isPersistent:it}),c}var Lt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},On=Qe(Lt),Zn=R({},Lt,{view:0,detail:0}),Nr=Qe(Zn),Yi,lu,Ki,cu=R({},Zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fu,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Ki&&(Ki&&s.type==="mousemove"?(Yi=s.screenX-Ki.screenX,lu=s.screenY-Ki.screenY):lu=Yi=0,Ki=s),Yi)},movementY:function(s){return"movementY"in s?s.movementY:lu}}),uu=Qe(cu),du=R({},cu,{dataTransfer:0}),Gm=Qe(du),Ji=R({},Zn,{relatedTarget:0}),la=Qe(Ji),b4=R({},Lt,{animationName:0,elapsedTime:0,pseudoElement:0}),pu=Qe(b4),mu=R({},Lt,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),sc=Qe(mu),Y0=R({},Lt,{data:0}),wo=Qe(Y0),hu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={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"},jo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zm(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=jo[s])?!!c[s]:!1}function fu(){return Zm}var gu=R({},Zn,{key:function(s){if(s.key){var c=hu[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=ka(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Wm[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fu,charCode:function(s){return s.type==="keypress"?ka(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?ka(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),ks=Qe(gu),Xa=R({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oi=Qe(Xa),ic=R({},Zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fu}),Qm=Qe(ic),K0=R({},Lt,{propertyName:0,elapsedTime:0,pseudoElement:0}),J0=Qe(K0),vu=R({},cu,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),bu=Qe(vu),Xm=[9,13,27,32],yu=u&&"CompositionEvent"in window,el=null;u&&"documentMode"in document&&(el=document.documentMode);var si=u&&"TextEvent"in window&&!el,tl=u&&(!yu||el&&8<el&&11>=el),ed=" ",nl=!1;function xu(s,c){switch(s){case"keyup":return Xm.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _u(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ii=!1;function Ym(s,c){switch(s){case"compositionend":return _u(c);case"keypress":return c.which!==32?null:(nl=!0,ed);case"textInput":return s=c.data,s===ed&&nl?null:s;default:return null}}function Km(s,c){if(ii)return s==="compositionend"||!yu&&xu(s,c)?(s=Tn(),hr=bt=Oe=null,ii=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return tl&&c.locale!=="ko"?null:c.data;default:return null}}var Jm={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 td(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!Jm[s.type]:c==="textarea"}function rl(s,c,p,v){Bi(v),c=cl(c,"onChange"),0<c.length&&(p=new On("onChange","change",null,p,v),s.push({event:p,listeners:c}))}var al=null,Sr=null;function e1(s){Pu(s,0)}function ol(s){var c=Es(s);if(Kt(c))return s}function nd(s,c){if(s==="change")return c}var wu=!1;if(u){var lc;if(u){var cc="oninput"in document;if(!cc){var ju=document.createElement("div");ju.setAttribute("oninput","return;"),cc=typeof ju.oninput=="function"}lc=cc}else lc=!1;wu=lc&&(!document.documentMode||9<document.documentMode)}function Cu(){al&&(al.detachEvent("onpropertychange",ku),Sr=al=null)}function ku(s){if(s.propertyName==="value"&&ol(Sr)){var c=[];rl(c,Sr,s,Pr(s)),hs(e1,c)}}function rd(s,c,p){s==="focusin"?(Cu(),al=c,Sr=p,al.attachEvent("onpropertychange",ku)):s==="focusout"&&Cu()}function ad(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return ol(Sr)}function od(s,c){if(s==="click")return ol(c)}function sd(s,c){if(s==="input"||s==="change")return ol(c)}function id(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var ca=typeof Object.is=="function"?Object.is:id;function li(s,c){if(ca(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),v=Object.keys(c);if(p.length!==v.length)return!1;for(v=0;v<p.length;v++){var x=p[v];if(!d.call(c,x)||!ca(s[x],c[x]))return!1}return!0}function Nu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Su(s,c){var p=Nu(s);s=0;for(var v;p;){if(p.nodeType===3){if(v=s+p.textContent.length,s<=c&&v>=c)return{node:p,offset:c-s};s=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Nu(p)}}function $u(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?$u(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Au(){for(var s=window,c=Ut();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Ut(s.document)}return c}function uc(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function ld(s){var c=Au(),p=s.focusedElem,v=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&$u(p.ownerDocument.documentElement,p)){if(v!==null&&uc(p)){if(c=v.start,s=v.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var x=p.textContent.length,j=Math.min(v.start,x);v=v.end===void 0?j:Math.min(v.end,x),!s.extend&&j>v&&(x=v,v=j,j=x),x=Su(p,j);var T=Su(p,v);x&&T&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==T.node||s.focusOffset!==T.offset)&&(c=c.createRange(),c.setStart(x.node,x.offset),s.removeAllRanges(),j>v?(s.addRange(c),s.extend(T.node,T.offset)):(c.setEnd(T.node,T.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<c.length;p++)s=c[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var cd=u&&"documentMode"in document&&11>=document.documentMode,Ns=null,dc=null,ci=null,pc=!1;function Eu(s,c,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;pc||Ns==null||Ns!==Ut(v)||(v=Ns,"selectionStart"in v&&uc(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),ci&&li(ci,v)||(ci=v,v=cl(dc,"onSelect"),0<v.length&&(c=new On("onSelect","select",null,c,p),s.push({event:c,listeners:v}),c.target=Ns)))}function sl(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var Ss={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionend:sl("Transition","TransitionEnd")},mc={},Du={};u&&(Du=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);function il(s){if(mc[s])return mc[s];if(!Ss[s])return s;var c=Ss[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in Du)return mc[s]=c[p];return s}var zu=il("animationend"),Tu=il("animationiteration"),Mu=il("animationstart"),Lu=il("transitionend"),Iu=new Map,qu="abort auxClick 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(" ");function Co(s,c){Iu.set(s,c),l(c,[s])}for(var hc=0;hc<qu.length;hc++){var fc=qu[hc],ud=fc.toLowerCase(),dd=fc[0].toUpperCase()+fc.slice(1);Co(ud,"on"+dd)}Co(zu,"onAnimationEnd"),Co(Tu,"onAnimationIteration"),Co(Mu,"onAnimationStart"),Co("dblclick","onDoubleClick"),Co("focusin","onFocus"),Co("focusout","onBlur"),Co(Lu,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),pd=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function Ru(s,c,p){var v=s.type||"unknown-event";s.currentTarget=p,Ui(v,c,void 0,s),s.currentTarget=null}function Pu(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var v=s[p],x=v.event;v=v.listeners;e:{var j=void 0;if(c)for(var T=v.length-1;0<=T;T--){var H=v[T],Q=H.instance,ie=H.currentTarget;if(H=H.listener,Q!==j&&x.isPropagationStopped())break e;Ru(x,H,ie),j=Q}else for(T=0;T<v.length;T++){if(H=v[T],Q=H.instance,ie=H.currentTarget,H=H.listener,Q!==j&&x.isPropagationStopped())break e;Ru(x,H,ie),j=Q}}}if(sn)throw s=ja,sn=!1,ja=null,s}function Vt(s,c){var p=c[jc];p===void 0&&(p=c[jc]=new Set);var v=s+"__bubble";p.has(v)||(Fu(c,s,2,!1),p.add(v))}function gc(s,c,p){var v=0;c&&(v|=4),Fu(p,s,v,c)}var ll="_reactListening"+Math.random().toString(36).slice(2);function di(s){if(!s[ll]){s[ll]=!0,r.forEach(function(p){p!=="selectionchange"&&(pd.has(p)||gc(p,!1,s),gc(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[ll]||(c[ll]=!0,gc("selectionchange",!1,c))}}function Fu(s,c,p,v){switch(Y(c)){case 1:var x=oc;break;case 4:x=Qa;break;default:x=ri}p=x.bind(null,c,p,s),x=void 0,!Fa||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(x=!0),v?x!==void 0?s.addEventListener(c,p,{capture:!0,passive:x}):s.addEventListener(c,p,!0):x!==void 0?s.addEventListener(c,p,{passive:x}):s.addEventListener(c,p,!1)}function vc(s,c,p,v,x){var j=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var T=v.tag;if(T===3||T===4){var H=v.stateNode.containerInfo;if(H===x||H.nodeType===8&&H.parentNode===x)break;if(T===4)for(T=v.return;T!==null;){var Q=T.tag;if((Q===3||Q===4)&&(Q=T.stateNode.containerInfo,Q===x||Q.nodeType===8&&Q.parentNode===x))return;T=T.return}for(;H!==null;){if(T=Xo(H),T===null)return;if(Q=T.tag,Q===5||Q===6){v=j=T;continue e}H=H.parentNode}}v=v.return}hs(function(){var ie=j,ye=Pr(p),_e=[];e:{var be=Iu.get(s);if(be!==void 0){var Fe=On,Ve=s;switch(s){case"keypress":if(ka(p)===0)break e;case"keydown":case"keyup":Fe=ks;break;case"focusin":Ve="focus",Fe=la;break;case"focusout":Ve="blur",Fe=la;break;case"beforeblur":case"afterblur":Fe=la;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Fe=uu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Fe=Gm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Fe=Qm;break;case zu:case Tu:case Mu:Fe=pu;break;case Lu:Fe=J0;break;case"scroll":Fe=Nr;break;case"wheel":Fe=bu;break;case"copy":case"cut":case"paste":Fe=sc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Fe=oi}var Ge=(c&4)!==0,Mn=!Ge&&s==="scroll",ae=Ge?be!==null?be+"Capture":null:be;Ge=[];for(var te=ie,se;te!==null;){se=te;var Ae=se.stateNode;if(se.tag===5&&Ae!==null&&(se=Ae,ae!==null&&(Ae=Pa(te,ae),Ae!=null&&Ge.push(pi(te,Ae,se)))),Mn)break;te=te.return}0<Ge.length&&(be=new Fe(be,Ve,null,p,ye),_e.push({event:be,listeners:Ge}))}}if((c&7)===0){e:{if(be=s==="mouseover"||s==="pointerover",Fe=s==="mouseout"||s==="pointerout",be&&p!==Dn&&(Ve=p.relatedTarget||p.fromElement)&&(Xo(Ve)||Ve[Ya]))break e;if((Fe||be)&&(be=ye.window===ye?ye:(be=ye.ownerDocument)?be.defaultView||be.parentWindow:window,Fe?(Ve=p.relatedTarget||p.toElement,Fe=ie,Ve=Ve?Xo(Ve):null,Ve!==null&&(Mn=Or(Ve),Ve!==Mn||Ve.tag!==5&&Ve.tag!==6)&&(Ve=null)):(Fe=null,Ve=ie),Fe!==Ve)){if(Ge=uu,Ae="onMouseLeave",ae="onMouseEnter",te="mouse",(s==="pointerout"||s==="pointerover")&&(Ge=oi,Ae="onPointerLeave",ae="onPointerEnter",te="pointer"),Mn=Fe==null?be:Es(Fe),se=Ve==null?be:Es(Ve),be=new Ge(Ae,te+"leave",Fe,p,ye),be.target=Mn,be.relatedTarget=se,Ae=null,Xo(ye)===ie&&(Ge=new Ge(ae,te+"enter",Ve,p,ye),Ge.target=se,Ge.relatedTarget=Mn,Ae=Ge),Mn=Ae,Fe&&Ve)t:{for(Ge=Fe,ae=Ve,te=0,se=Ge;se;se=$s(se))te++;for(se=0,Ae=ae;Ae;Ae=$s(Ae))se++;for(;0<te-se;)Ge=$s(Ge),te--;for(;0<se-te;)ae=$s(ae),se--;for(;te--;){if(Ge===ae||ae!==null&&Ge===ae.alternate)break t;Ge=$s(Ge),ae=$s(ae)}Ge=null}else Ge=null;Fe!==null&&Ou(_e,be,Fe,Ge,!1),Ve!==null&&Mn!==null&&Ou(_e,Mn,Ve,Ge,!0)}}e:{if(be=ie?Es(ie):window,Fe=be.nodeName&&be.nodeName.toLowerCase(),Fe==="select"||Fe==="input"&&be.type==="file")var Ye=nd;else if(td(be))if(wu)Ye=sd;else{Ye=ad;var rt=rd}else(Fe=be.nodeName)&&Fe.toLowerCase()==="input"&&(be.type==="checkbox"||be.type==="radio")&&(Ye=od);if(Ye&&(Ye=Ye(s,ie))){rl(_e,Ye,p,ye);break e}rt&&rt(s,be,ie),s==="focusout"&&(rt=be._wrapperState)&&rt.controlled&&be.type==="number"&&aa(be,"number",be.value)}switch(rt=ie?Es(ie):window,s){case"focusin":(td(rt)||rt.contentEditable==="true")&&(Ns=rt,dc=ie,ci=null);break;case"focusout":ci=dc=Ns=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,Eu(_e,p,ye);break;case"selectionchange":if(cd)break;case"keydown":case"keyup":Eu(_e,p,ye)}var at;if(yu)e:{switch(s){case"compositionstart":var ct="onCompositionStart";break e;case"compositionend":ct="onCompositionEnd";break e;case"compositionupdate":ct="onCompositionUpdate";break e}ct=void 0}else ii?xu(s,p)&&(ct="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(ct="onCompositionStart");ct&&(tl&&p.locale!=="ko"&&(ii||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&ii&&(at=Tn()):(Oe=ye,bt="value"in Oe?Oe.value:Oe.textContent,ii=!0)),rt=cl(ie,ct),0<rt.length&&(ct=new wo(ct,s,null,p,ye),_e.push({event:ct,listeners:rt}),at?ct.data=at:(at=_u(p),at!==null&&(ct.data=at)))),(at=si?Ym(s,p):Km(s,p))&&(ie=cl(ie,"onBeforeInput"),0<ie.length&&(ye=new wo("onBeforeInput","beforeinput",null,p,ye),_e.push({event:ye,listeners:ie}),ye.data=at))}Pu(_e,c)})}function pi(s,c,p){return{instance:s,listener:c,currentTarget:p}}function cl(s,c){for(var p=c+"Capture",v=[];s!==null;){var x=s,j=x.stateNode;x.tag===5&&j!==null&&(x=j,j=Pa(s,p),j!=null&&v.unshift(pi(s,j,x)),j=Pa(s,c),j!=null&&v.push(pi(s,j,x))),s=s.return}return v}function $s(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Ou(s,c,p,v,x){for(var j=c._reactName,T=[];p!==null&&p!==v;){var H=p,Q=H.alternate,ie=H.stateNode;if(Q!==null&&Q===v)break;H.tag===5&&ie!==null&&(H=ie,x?(Q=Pa(p,j),Q!=null&&T.unshift(pi(p,Q,H))):x||(Q=Pa(p,j),Q!=null&&T.push(pi(p,Q,H)))),p=p.return}T.length!==0&&s.push({event:c,listeners:T})}var md=/\r\n?/g,hd=/\u0000|\uFFFD/g;function Bu(s){return(typeof s=="string"?s:""+s).replace(md,`
|
|
39
|
-
`).replace(hd,"")}function ul(s,c,p){if(c=Bu(c),Bu(s)!==c&&p)throw Error(n(425))}function dl(){}var bc=null,yc=null;function xc(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var _c=typeof setTimeout=="function"?setTimeout:void 0,fd=typeof clearTimeout=="function"?clearTimeout:void 0,Hu=typeof Promise=="function"?Promise:void 0,gd=typeof queueMicrotask=="function"?queueMicrotask:typeof Hu<"u"?function(s){return Hu.resolve(null).then(s).catch(vd)}:_c;function vd(s){setTimeout(function(){throw s})}function wc(s,c){var p=c,v=0;do{var x=p.nextSibling;if(s.removeChild(p),x&&x.nodeType===8)if(p=x.data,p==="/$"){if(v===0){s.removeChild(x),Qo(c);return}v--}else p!=="$"&&p!=="$?"&&p!=="$!"||v++;p=x}while(p);Qo(c)}function ko(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Uu(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}var As=Math.random().toString(36).slice(2),Na="__reactFiber$"+As,mi="__reactProps$"+As,Ya="__reactContainer$"+As,jc="__reactEvents$"+As,bd="__reactListeners$"+As,yd="__reactHandles$"+As;function Xo(s){var c=s[Na];if(c)return c;for(var p=s.parentNode;p;){if(c=p[Ya]||p[Na]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=Uu(s);s!==null;){if(p=s[Na])return p;s=Uu(s)}return c}s=p,p=s.parentNode}return null}function hi(s){return s=s[Na]||s[Ya],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Es(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function pl(s){return s[mi]||null}var Cc=[],Ds=-1;function No(s){return{current:s}}function Gt(s){0>Ds||(s.current=Cc[Ds],Cc[Ds]=null,Ds--)}function Ot(s,c){Ds++,Cc[Ds]=s.current,s.current=c}var So={},Qn=No(So),fr=No(!1),Yo=So;function zs(s,c){var p=s.type.contextTypes;if(!p)return So;var v=s.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===c)return v.__reactInternalMemoizedMaskedChildContext;var x={},j;for(j in p)x[j]=c[j];return v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=x),x}function gr(s){return s=s.childContextTypes,s!=null}function ml(){Gt(fr),Gt(Qn)}function Vu(s,c,p){if(Qn.current!==So)throw Error(n(168));Ot(Qn,c),Ot(fr,p)}function Gu(s,c,p){var v=s.stateNode;if(c=c.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var x in v)if(!(x in c))throw Error(n(108,ge(s)||"Unknown",x));return R({},p,v)}function hl(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||So,Yo=Qn.current,Ot(Qn,s),Ot(fr,fr.current),!0}function Wu(s,c,p){var v=s.stateNode;if(!v)throw Error(n(169));p?(s=Gu(s,c,Yo),v.__reactInternalMemoizedMergedChildContext=s,Gt(fr),Gt(Qn),Ot(Qn,s)):Gt(fr),Ot(fr,p)}var Ka=null,fl=!1,kc=!1;function Zu(s){Ka===null?Ka=[s]:Ka.push(s)}function xd(s){fl=!0,Zu(s)}function $o(){if(!kc&&Ka!==null){kc=!0;var s=0,c=_t;try{var p=Ka;for(_t=1;s<p.length;s++){var v=p[s];do v=v(!0);while(v!==null)}Ka=null,fl=!1}catch(x){throw Ka!==null&&(Ka=Ka.slice(s+1)),gs(ia,$o),x}finally{_t=c,kc=!1}}return null}var Ts=[],Ms=0,E=null,Z=0,ue=[],De=0,Jt=null,jn=1,Wr="";function Sa(s,c){Ts[Ms++]=Z,Ts[Ms++]=E,E=s,Z=c}function _d(s,c,p){ue[De++]=jn,ue[De++]=Wr,ue[De++]=Jt,Jt=s;var v=jn;s=Wr;var x=32-Wt(v)-1;v&=~(1<<x),p+=1;var j=32-Wt(c)+x;if(30<j){var T=x-x%5;j=(v&(1<<T)-1).toString(32),v>>=T,x-=T,jn=1<<32-Wt(c)+x|p<<x|v,Wr=j+s}else jn=1<<j|p<<x|v,Wr=s}function t1(s){s.return!==null&&(Sa(s,1),_d(s,1,0))}function n1(s){for(;s===E;)E=Ts[--Ms],Ts[Ms]=null,Z=Ts[--Ms],Ts[Ms]=null;for(;s===Jt;)Jt=ue[--De],ue[De]=null,Wr=ue[--De],ue[De]=null,jn=ue[--De],ue[De]=null}var $a=null,Aa=null,ln=!1,Ao=null;function y4(s,c){var p=no(5,null,null,0);p.elementType="DELETED",p.stateNode=c,p.return=s,c=s.deletions,c===null?(s.deletions=[p],s.flags|=16):c.push(p)}function x4(s,c){switch(s.tag){case 5:var p=s.type;return c=c.nodeType!==1||p.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,$a=s,Aa=ko(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,$a=s,Aa=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=Jt!==null?{id:jn,overflow:Wr}:null,s.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=no(18,null,null,0),p.stateNode=c,p.return=s,s.child=p,$a=s,Aa=null,!0):!1;default:return!1}}function r1(s){return(s.mode&1)!==0&&(s.flags&128)===0}function a1(s){if(ln){var c=Aa;if(c){var p=c;if(!x4(s,c)){if(r1(s))throw Error(n(418));c=ko(p.nextSibling);var v=$a;c&&x4(s,c)?y4(v,p):(s.flags=s.flags&-4097|2,ln=!1,$a=s)}}else{if(r1(s))throw Error(n(418));s.flags=s.flags&-4097|2,ln=!1,$a=s}}}function _4(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;$a=s}function wd(s){if(s!==$a)return!1;if(!ln)return _4(s),ln=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!xc(s.type,s.memoizedProps)),c&&(c=Aa)){if(r1(s))throw w4(),Error(n(418));for(;c;)y4(s,c),c=ko(c.nextSibling)}if(_4(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(c===0){Aa=ko(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}s=s.nextSibling}Aa=null}}else Aa=$a?ko(s.stateNode.nextSibling):null;return!0}function w4(){for(var s=Aa;s;)s=ko(s.nextSibling)}function Nc(){Aa=$a=null,ln=!1}function o1(s){Ao===null?Ao=[s]:Ao.push(s)}var p9=I.ReactCurrentBatchConfig;function Qu(s,c,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var v=p.stateNode}if(!v)throw Error(n(147,s));var x=v,j=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===j?c.ref:(c=function(T){var H=x.refs;T===null?delete H[j]:H[j]=T},c._stringRef=j,c)}if(typeof s!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,s))}return s}function jd(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function j4(s){var c=s._init;return c(s._payload)}function C4(s){function c(ae,te){if(s){var se=ae.deletions;se===null?(ae.deletions=[te],ae.flags|=16):se.push(te)}}function p(ae,te){if(!s)return null;for(;te!==null;)c(ae,te),te=te.sibling;return null}function v(ae,te){for(ae=new Map;te!==null;)te.key!==null?ae.set(te.key,te):ae.set(te.index,te),te=te.sibling;return ae}function x(ae,te){return ae=wi(ae,te),ae.index=0,ae.sibling=null,ae}function j(ae,te,se){return ae.index=se,s?(se=ae.alternate,se!==null?(se=se.index,se<te?(ae.flags|=2,te):se):(ae.flags|=2,te)):(ae.flags|=1048576,te)}function T(ae){return s&&ae.alternate===null&&(ae.flags|=2),ae}function H(ae,te,se,Ae){return te===null||te.tag!==6?(te=X1(se,ae.mode,Ae),te.return=ae,te):(te=x(te,se),te.return=ae,te)}function Q(ae,te,se,Ae){var Ye=se.type;return Ye===F?ye(ae,te,se.props.children,Ae,se.key):te!==null&&(te.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===we&&j4(Ye)===te.type)?(Ae=x(te,se.props),Ae.ref=Qu(ae,te,se),Ae.return=ae,Ae):(Ae=Wd(se.type,se.key,se.props,null,ae.mode,Ae),Ae.ref=Qu(ae,te,se),Ae.return=ae,Ae)}function ie(ae,te,se,Ae){return te===null||te.tag!==4||te.stateNode.containerInfo!==se.containerInfo||te.stateNode.implementation!==se.implementation?(te=Y1(se,ae.mode,Ae),te.return=ae,te):(te=x(te,se.children||[]),te.return=ae,te)}function ye(ae,te,se,Ae,Ye){return te===null||te.tag!==7?(te=jl(se,ae.mode,Ae,Ye),te.return=ae,te):(te=x(te,se),te.return=ae,te)}function _e(ae,te,se){if(typeof te=="string"&&te!==""||typeof te=="number")return te=X1(""+te,ae.mode,se),te.return=ae,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case M:return se=Wd(te.type,te.key,te.props,null,ae.mode,se),se.ref=Qu(ae,null,te),se.return=ae,se;case L:return te=Y1(te,ae.mode,se),te.return=ae,te;case we:var Ae=te._init;return _e(ae,Ae(te._payload),se)}if(nn(te)||oe(te))return te=jl(te,ae.mode,se,null),te.return=ae,te;jd(ae,te)}return null}function be(ae,te,se,Ae){var Ye=te!==null?te.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return Ye!==null?null:H(ae,te,""+se,Ae);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case M:return se.key===Ye?Q(ae,te,se,Ae):null;case L:return se.key===Ye?ie(ae,te,se,Ae):null;case we:return Ye=se._init,be(ae,te,Ye(se._payload),Ae)}if(nn(se)||oe(se))return Ye!==null?null:ye(ae,te,se,Ae,null);jd(ae,se)}return null}function Fe(ae,te,se,Ae,Ye){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return ae=ae.get(se)||null,H(te,ae,""+Ae,Ye);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case M:return ae=ae.get(Ae.key===null?se:Ae.key)||null,Q(te,ae,Ae,Ye);case L:return ae=ae.get(Ae.key===null?se:Ae.key)||null,ie(te,ae,Ae,Ye);case we:var rt=Ae._init;return Fe(ae,te,se,rt(Ae._payload),Ye)}if(nn(Ae)||oe(Ae))return ae=ae.get(se)||null,ye(te,ae,Ae,Ye,null);jd(te,Ae)}return null}function Ve(ae,te,se,Ae){for(var Ye=null,rt=null,at=te,ct=te=0,ir=null;at!==null&&ct<se.length;ct++){at.index>ct?(ir=at,at=null):ir=at.sibling;var At=be(ae,at,se[ct],Ae);if(At===null){at===null&&(at=ir);break}s&&at&&At.alternate===null&&c(ae,at),te=j(At,te,ct),rt===null?Ye=At:rt.sibling=At,rt=At,at=ir}if(ct===se.length)return p(ae,at),ln&&Sa(ae,ct),Ye;if(at===null){for(;ct<se.length;ct++)at=_e(ae,se[ct],Ae),at!==null&&(te=j(at,te,ct),rt===null?Ye=at:rt.sibling=at,rt=at);return ln&&Sa(ae,ct),Ye}for(at=v(ae,at);ct<se.length;ct++)ir=Fe(at,ae,ct,se[ct],Ae),ir!==null&&(s&&ir.alternate!==null&&at.delete(ir.key===null?ct:ir.key),te=j(ir,te,ct),rt===null?Ye=ir:rt.sibling=ir,rt=ir);return s&&at.forEach(function(ji){return c(ae,ji)}),ln&&Sa(ae,ct),Ye}function Ge(ae,te,se,Ae){var Ye=oe(se);if(typeof Ye!="function")throw Error(n(150));if(se=Ye.call(se),se==null)throw Error(n(151));for(var rt=Ye=null,at=te,ct=te=0,ir=null,At=se.next();at!==null&&!At.done;ct++,At=se.next()){at.index>ct?(ir=at,at=null):ir=at.sibling;var ji=be(ae,at,At.value,Ae);if(ji===null){at===null&&(at=ir);break}s&&at&&ji.alternate===null&&c(ae,at),te=j(ji,te,ct),rt===null?Ye=ji:rt.sibling=ji,rt=ji,at=ir}if(At.done)return p(ae,at),ln&&Sa(ae,ct),Ye;if(at===null){for(;!At.done;ct++,At=se.next())At=_e(ae,At.value,Ae),At!==null&&(te=j(At,te,ct),rt===null?Ye=At:rt.sibling=At,rt=At);return ln&&Sa(ae,ct),Ye}for(at=v(ae,at);!At.done;ct++,At=se.next())At=Fe(at,ae,ct,At.value,Ae),At!==null&&(s&&At.alternate!==null&&at.delete(At.key===null?ct:At.key),te=j(At,te,ct),rt===null?Ye=At:rt.sibling=At,rt=At);return s&&at.forEach(function(V9){return c(ae,V9)}),ln&&Sa(ae,ct),Ye}function Mn(ae,te,se,Ae){if(typeof se=="object"&&se!==null&&se.type===F&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case M:e:{for(var Ye=se.key,rt=te;rt!==null;){if(rt.key===Ye){if(Ye=se.type,Ye===F){if(rt.tag===7){p(ae,rt.sibling),te=x(rt,se.props.children),te.return=ae,ae=te;break e}}else if(rt.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===we&&j4(Ye)===rt.type){p(ae,rt.sibling),te=x(rt,se.props),te.ref=Qu(ae,rt,se),te.return=ae,ae=te;break e}p(ae,rt);break}else c(ae,rt);rt=rt.sibling}se.type===F?(te=jl(se.props.children,ae.mode,Ae,se.key),te.return=ae,ae=te):(Ae=Wd(se.type,se.key,se.props,null,ae.mode,Ae),Ae.ref=Qu(ae,te,se),Ae.return=ae,ae=Ae)}return T(ae);case L:e:{for(rt=se.key;te!==null;){if(te.key===rt)if(te.tag===4&&te.stateNode.containerInfo===se.containerInfo&&te.stateNode.implementation===se.implementation){p(ae,te.sibling),te=x(te,se.children||[]),te.return=ae,ae=te;break e}else{p(ae,te);break}else c(ae,te);te=te.sibling}te=Y1(se,ae.mode,Ae),te.return=ae,ae=te}return T(ae);case we:return rt=se._init,Mn(ae,te,rt(se._payload),Ae)}if(nn(se))return Ve(ae,te,se,Ae);if(oe(se))return Ge(ae,te,se,Ae);jd(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,te!==null&&te.tag===6?(p(ae,te.sibling),te=x(te,se),te.return=ae,ae=te):(p(ae,te),te=X1(se,ae.mode,Ae),te.return=ae,ae=te),T(ae)):p(ae,te)}return Mn}var Sc=C4(!0),k4=C4(!1),Cd=No(null),kd=null,$c=null,s1=null;function i1(){s1=$c=kd=null}function l1(s){var c=Cd.current;Gt(Cd),s._currentValue=c}function c1(s,c,p){for(;s!==null;){var v=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),s===p)break;s=s.return}}function Ac(s,c){kd=s,s1=$c=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(ua=!0),s.firstContext=null)}function Ja(s){var c=s._currentValue;if(s1!==s)if(s={context:s,memoizedValue:c,next:null},$c===null){if(kd===null)throw Error(n(308));$c=s,kd.dependencies={lanes:0,firstContext:s}}else $c=$c.next=s;return c}var gl=null;function u1(s){gl===null?gl=[s]:gl.push(s)}function N4(s,c,p,v){var x=c.interleaved;return x===null?(p.next=p,u1(c)):(p.next=x.next,x.next=p),c.interleaved=p,Ls(s,v)}function Ls(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var fi=!1;function d1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function S4(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Is(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function gi(s,c,p){var v=s.updateQueue;if(v===null)return null;if(v=v.shared,(St&2)!==0){var x=v.pending;return x===null?c.next=c:(c.next=x.next,x.next=c),v.pending=c,Ls(s,p)}return x=v.interleaved,x===null?(c.next=c,u1(v)):(c.next=x.next,x.next=c),v.interleaved=c,Ls(s,p)}function Nd(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var v=c.lanes;v&=s.pendingLanes,p|=v,c.lanes=p,Zi(s,p)}}function $4(s,c){var p=s.updateQueue,v=s.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var x=null,j=null;if(p=p.firstBaseUpdate,p!==null){do{var T={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};j===null?x=j=T:j=j.next=T,p=p.next}while(p!==null);j===null?x=j=c:j=j.next=c}else x=j=c;p={baseState:v.baseState,firstBaseUpdate:x,lastBaseUpdate:j,shared:v.shared,effects:v.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function Sd(s,c,p,v){var x=s.updateQueue;fi=!1;var j=x.firstBaseUpdate,T=x.lastBaseUpdate,H=x.shared.pending;if(H!==null){x.shared.pending=null;var Q=H,ie=Q.next;Q.next=null,T===null?j=ie:T.next=ie,T=Q;var ye=s.alternate;ye!==null&&(ye=ye.updateQueue,H=ye.lastBaseUpdate,H!==T&&(H===null?ye.firstBaseUpdate=ie:H.next=ie,ye.lastBaseUpdate=Q))}if(j!==null){var _e=x.baseState;T=0,ye=ie=Q=null,H=j;do{var be=H.lane,Fe=H.eventTime;if((v&be)===be){ye!==null&&(ye=ye.next={eventTime:Fe,lane:0,tag:H.tag,payload:H.payload,callback:H.callback,next:null});e:{var Ve=s,Ge=H;switch(be=c,Fe=p,Ge.tag){case 1:if(Ve=Ge.payload,typeof Ve=="function"){_e=Ve.call(Fe,_e,be);break e}_e=Ve;break e;case 3:Ve.flags=Ve.flags&-65537|128;case 0:if(Ve=Ge.payload,be=typeof Ve=="function"?Ve.call(Fe,_e,be):Ve,be==null)break e;_e=R({},_e,be);break e;case 2:fi=!0}}H.callback!==null&&H.lane!==0&&(s.flags|=64,be=x.effects,be===null?x.effects=[H]:be.push(H))}else Fe={eventTime:Fe,lane:be,tag:H.tag,payload:H.payload,callback:H.callback,next:null},ye===null?(ie=ye=Fe,Q=_e):ye=ye.next=Fe,T|=be;if(H=H.next,H===null){if(H=x.shared.pending,H===null)break;be=H,H=be.next,be.next=null,x.lastBaseUpdate=be,x.shared.pending=null}}while(!0);if(ye===null&&(Q=_e),x.baseState=Q,x.firstBaseUpdate=ie,x.lastBaseUpdate=ye,c=x.shared.interleaved,c!==null){x=c;do T|=x.lane,x=x.next;while(x!==c)}else j===null&&(x.shared.lanes=0);yl|=T,s.lanes=T,s.memoizedState=_e}}function A4(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var v=s[c],x=v.callback;if(x!==null){if(v.callback=null,v=p,typeof x!="function")throw Error(n(191,x));x.call(v)}}}var Xu={},Ko=No(Xu),Yu=No(Xu),Ku=No(Xu);function vl(s){if(s===Xu)throw Error(n(174));return s}function p1(s,c){switch(Ot(Ku,c),Ot(Yu,s),Ot(Ko,Xu),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Ce(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=Ce(c,s)}Gt(Ko),Ot(Ko,c)}function Ec(){Gt(Ko),Gt(Yu),Gt(Ku)}function E4(s){vl(Ku.current);var c=vl(Ko.current),p=Ce(c,s.type);c!==p&&(Ot(Yu,s),Ot(Ko,p))}function m1(s){Yu.current===s&&(Gt(Ko),Gt(Yu))}var fn=No(0);function $d(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var h1=[];function f1(){for(var s=0;s<h1.length;s++)h1[s]._workInProgressVersionPrimary=null;h1.length=0}var Ad=I.ReactCurrentDispatcher,g1=I.ReactCurrentBatchConfig,bl=0,gn=null,Xn=null,or=null,Ed=!1,Ju=!1,e0=0,m9=0;function $r(){throw Error(n(321))}function v1(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!ca(s[p],c[p]))return!1;return!0}function b1(s,c,p,v,x,j){if(bl=j,gn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Ad.current=s===null||s.memoizedState===null?v9:b9,s=p(v,x),Ju){j=0;do{if(Ju=!1,e0=0,25<=j)throw Error(n(301));j+=1,or=Xn=null,c.updateQueue=null,Ad.current=y9,s=p(v,x)}while(Ju)}if(Ad.current=Td,c=Xn!==null&&Xn.next!==null,bl=0,or=Xn=gn=null,Ed=!1,c)throw Error(n(300));return s}function y1(){var s=e0!==0;return e0=0,s}function Jo(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return or===null?gn.memoizedState=or=s:or=or.next=s,or}function eo(){if(Xn===null){var s=gn.alternate;s=s!==null?s.memoizedState:null}else s=Xn.next;var c=or===null?gn.memoizedState:or.next;if(c!==null)or=c,Xn=s;else{if(s===null)throw Error(n(310));Xn=s,s={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},or===null?gn.memoizedState=or=s:or=or.next=s}return or}function t0(s,c){return typeof c=="function"?c(s):c}function x1(s){var c=eo(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var v=Xn,x=v.baseQueue,j=p.pending;if(j!==null){if(x!==null){var T=x.next;x.next=j.next,j.next=T}v.baseQueue=x=j,p.pending=null}if(x!==null){j=x.next,v=v.baseState;var H=T=null,Q=null,ie=j;do{var ye=ie.lane;if((bl&ye)===ye)Q!==null&&(Q=Q.next={lane:0,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null}),v=ie.hasEagerState?ie.eagerState:s(v,ie.action);else{var _e={lane:ye,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null};Q===null?(H=Q=_e,T=v):Q=Q.next=_e,gn.lanes|=ye,yl|=ye}ie=ie.next}while(ie!==null&&ie!==j);Q===null?T=v:Q.next=H,ca(v,c.memoizedState)||(ua=!0),c.memoizedState=v,c.baseState=T,c.baseQueue=Q,p.lastRenderedState=v}if(s=p.interleaved,s!==null){x=s;do j=x.lane,gn.lanes|=j,yl|=j,x=x.next;while(x!==s)}else x===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function _1(s){var c=eo(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var v=p.dispatch,x=p.pending,j=c.memoizedState;if(x!==null){p.pending=null;var T=x=x.next;do j=s(j,T.action),T=T.next;while(T!==x);ca(j,c.memoizedState)||(ua=!0),c.memoizedState=j,c.baseQueue===null&&(c.baseState=j),p.lastRenderedState=j}return[j,v]}function D4(){}function z4(s,c){var p=gn,v=eo(),x=c(),j=!ca(v.memoizedState,x);if(j&&(v.memoizedState=x,ua=!0),v=v.queue,w1(L4.bind(null,p,v,s),[s]),v.getSnapshot!==c||j||or!==null&&or.memoizedState.tag&1){if(p.flags|=2048,n0(9,M4.bind(null,p,v,x,c),void 0,null),sr===null)throw Error(n(349));(bl&30)!==0||T4(p,c,x)}return x}function T4(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=gn.updateQueue,c===null?(c={lastEffect:null,stores:null},gn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function M4(s,c,p,v){c.value=p,c.getSnapshot=v,I4(c)&&q4(s)}function L4(s,c,p){return p(function(){I4(c)&&q4(s)})}function I4(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!ca(s,p)}catch{return!0}}function q4(s){var c=Ls(s,1);c!==null&&To(c,s,1,-1)}function R4(s){var c=Jo();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t0,lastRenderedState:s},c.queue=s,s=s.dispatch=g9.bind(null,gn,s),[c.memoizedState,s]}function n0(s,c,p,v){return s={tag:s,create:c,destroy:p,deps:v,next:null},c=gn.updateQueue,c===null?(c={lastEffect:null,stores:null},gn.updateQueue=c,c.lastEffect=s.next=s):(p=c.lastEffect,p===null?c.lastEffect=s.next=s:(v=p.next,p.next=s,s.next=v,c.lastEffect=s)),s}function P4(){return eo().memoizedState}function Dd(s,c,p,v){var x=Jo();gn.flags|=s,x.memoizedState=n0(1|c,p,void 0,v===void 0?null:v)}function zd(s,c,p,v){var x=eo();v=v===void 0?null:v;var j=void 0;if(Xn!==null){var T=Xn.memoizedState;if(j=T.destroy,v!==null&&v1(v,T.deps)){x.memoizedState=n0(c,p,j,v);return}}gn.flags|=s,x.memoizedState=n0(1|c,p,j,v)}function F4(s,c){return Dd(8390656,8,s,c)}function w1(s,c){return zd(2048,8,s,c)}function O4(s,c){return zd(4,2,s,c)}function B4(s,c){return zd(4,4,s,c)}function H4(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function U4(s,c,p){return p=p!=null?p.concat([s]):null,zd(4,4,H4.bind(null,c,s),p)}function j1(){}function V4(s,c){var p=eo();c=c===void 0?null:c;var v=p.memoizedState;return v!==null&&c!==null&&v1(c,v[1])?v[0]:(p.memoizedState=[s,c],s)}function G4(s,c){var p=eo();c=c===void 0?null:c;var v=p.memoizedState;return v!==null&&c!==null&&v1(c,v[1])?v[0]:(s=s(),p.memoizedState=[s,c],s)}function W4(s,c,p){return(bl&21)===0?(s.baseState&&(s.baseState=!1,ua=!0),s.memoizedState=p):(ca(p,c)||(p=rc(),gn.lanes|=p,yl|=p,s.baseState=!0),c)}function h9(s,c){var p=_t;_t=p!==0&&4>p?p:4,s(!0);var v=g1.transition;g1.transition={};try{s(!1),c()}finally{_t=p,g1.transition=v}}function Z4(){return eo().memoizedState}function f9(s,c,p){var v=xi(s);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},Q4(s))X4(c,p);else if(p=N4(s,c,p,v),p!==null){var x=Qr();To(p,s,v,x),Y4(p,c,v)}}function g9(s,c,p){var v=xi(s),x={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(Q4(s))X4(c,x);else{var j=s.alternate;if(s.lanes===0&&(j===null||j.lanes===0)&&(j=c.lastRenderedReducer,j!==null))try{var T=c.lastRenderedState,H=j(T,p);if(x.hasEagerState=!0,x.eagerState=H,ca(H,T)){var Q=c.interleaved;Q===null?(x.next=x,u1(c)):(x.next=Q.next,Q.next=x),c.interleaved=x;return}}catch{}finally{}p=N4(s,c,x,v),p!==null&&(x=Qr(),To(p,s,v,x),Y4(p,c,v))}}function Q4(s){var c=s.alternate;return s===gn||c!==null&&c===gn}function X4(s,c){Ju=Ed=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Y4(s,c,p){if((p&4194240)!==0){var v=c.lanes;v&=s.pendingLanes,p|=v,c.lanes=p,Zi(s,p)}}var Td={readContext:Ja,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},v9={readContext:Ja,useCallback:function(s,c){return Jo().memoizedState=[s,c===void 0?null:c],s},useContext:Ja,useEffect:F4,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,Dd(4194308,4,H4.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Dd(4194308,4,s,c)},useInsertionEffect:function(s,c){return Dd(4,2,s,c)},useMemo:function(s,c){var p=Jo();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var v=Jo();return c=p!==void 0?p(c):c,v.memoizedState=v.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},v.queue=s,s=s.dispatch=f9.bind(null,gn,s),[v.memoizedState,s]},useRef:function(s){var c=Jo();return s={current:s},c.memoizedState=s},useState:R4,useDebugValue:j1,useDeferredValue:function(s){return Jo().memoizedState=s},useTransition:function(){var s=R4(!1),c=s[0];return s=h9.bind(null,s[1]),Jo().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var v=gn,x=Jo();if(ln){if(p===void 0)throw Error(n(407));p=p()}else{if(p=c(),sr===null)throw Error(n(349));(bl&30)!==0||T4(v,c,p)}x.memoizedState=p;var j={value:p,getSnapshot:c};return x.queue=j,F4(L4.bind(null,v,j,s),[s]),v.flags|=2048,n0(9,M4.bind(null,v,j,p,c),void 0,null),p},useId:function(){var s=Jo(),c=sr.identifierPrefix;if(ln){var p=Wr,v=jn;p=(v&~(1<<32-Wt(v)-1)).toString(32)+p,c=":"+c+"R"+p,p=e0++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=m9++,c=":"+c+"r"+p.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},b9={readContext:Ja,useCallback:V4,useContext:Ja,useEffect:w1,useImperativeHandle:U4,useInsertionEffect:O4,useLayoutEffect:B4,useMemo:G4,useReducer:x1,useRef:P4,useState:function(){return x1(t0)},useDebugValue:j1,useDeferredValue:function(s){var c=eo();return W4(c,Xn.memoizedState,s)},useTransition:function(){var s=x1(t0)[0],c=eo().memoizedState;return[s,c]},useMutableSource:D4,useSyncExternalStore:z4,useId:Z4,unstable_isNewReconciler:!1},y9={readContext:Ja,useCallback:V4,useContext:Ja,useEffect:w1,useImperativeHandle:U4,useInsertionEffect:O4,useLayoutEffect:B4,useMemo:G4,useReducer:_1,useRef:P4,useState:function(){return _1(t0)},useDebugValue:j1,useDeferredValue:function(s){var c=eo();return Xn===null?c.memoizedState=s:W4(c,Xn.memoizedState,s)},useTransition:function(){var s=_1(t0)[0],c=eo().memoizedState;return[s,c]},useMutableSource:D4,useSyncExternalStore:z4,useId:Z4,unstable_isNewReconciler:!1};function Eo(s,c){if(s&&s.defaultProps){c=R({},c),s=s.defaultProps;for(var p in s)c[p]===void 0&&(c[p]=s[p]);return c}return c}function C1(s,c,p,v){c=s.memoizedState,p=p(v,c),p=p==null?c:R({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Md={isMounted:function(s){return(s=s._reactInternals)?Or(s)===s:!1},enqueueSetState:function(s,c,p){s=s._reactInternals;var v=Qr(),x=xi(s),j=Is(v,x);j.payload=c,p!=null&&(j.callback=p),c=gi(s,j,x),c!==null&&(To(c,s,x,v),Nd(c,s,x))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var v=Qr(),x=xi(s),j=Is(v,x);j.tag=1,j.payload=c,p!=null&&(j.callback=p),c=gi(s,j,x),c!==null&&(To(c,s,x,v),Nd(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=Qr(),v=xi(s),x=Is(p,v);x.tag=2,c!=null&&(x.callback=c),c=gi(s,x,v),c!==null&&(To(c,s,v,p),Nd(c,s,v))}};function K4(s,c,p,v,x,j,T){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(v,j,T):c.prototype&&c.prototype.isPureReactComponent?!li(p,v)||!li(x,j):!0}function J4(s,c,p){var v=!1,x=So,j=c.contextType;return typeof j=="object"&&j!==null?j=Ja(j):(x=gr(c)?Yo:Qn.current,v=c.contextTypes,j=(v=v!=null)?zs(s,x):So),c=new c(p,j),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Md,s.stateNode=c,c._reactInternals=s,v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=j),c}function eg(s,c,p,v){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,v),c.state!==s&&Md.enqueueReplaceState(c,c.state,null)}function k1(s,c,p,v){var x=s.stateNode;x.props=p,x.state=s.memoizedState,x.refs={},d1(s);var j=c.contextType;typeof j=="object"&&j!==null?x.context=Ja(j):(j=gr(c)?Yo:Qn.current,x.context=zs(s,j)),x.state=s.memoizedState,j=c.getDerivedStateFromProps,typeof j=="function"&&(C1(s,c,j,p),x.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(c=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),c!==x.state&&Md.enqueueReplaceState(x,x.state,null),Sd(s,p,x,v),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function Dc(s,c){try{var p="",v=c;do p+=pe(v),v=v.return;while(v);var x=p}catch(j){x=`
|
|
40
|
-
Error generating stack: `+j.message+`
|
|
41
|
-
`+j.stack}return{value:s,source:c,stack:x,digest:null}}function N1(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function S1(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var x9=typeof WeakMap=="function"?WeakMap:Map;function tg(s,c,p){p=Is(-1,p),p.tag=3,p.payload={element:null};var v=c.value;return p.callback=function(){Od||(Od=!0,B1=v),S1(s,c)},p}function ng(s,c,p){p=Is(-1,p),p.tag=3;var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var x=c.value;p.payload=function(){return v(x)},p.callback=function(){S1(s,c)}}var j=s.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(p.callback=function(){S1(s,c),typeof v!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var T=c.stack;this.componentDidCatch(c.value,{componentStack:T!==null?T:""})}),p}function rg(s,c,p){var v=s.pingCache;if(v===null){v=s.pingCache=new x9;var x=new Set;v.set(c,x)}else x=v.get(c),x===void 0&&(x=new Set,v.set(c,x));x.has(p)||(x.add(p),s=M9.bind(null,s,c,p),c.then(s,s))}function ag(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function og(s,c,p,v,x){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=Is(-1,1),c.tag=2,gi(p,c,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var _9=I.ReactCurrentOwner,ua=!1;function Zr(s,c,p,v){c.child=s===null?k4(c,null,p,v):Sc(c,s.child,p,v)}function sg(s,c,p,v,x){p=p.render;var j=c.ref;return Ac(c,x),v=b1(s,c,p,v,j,x),p=y1(),s!==null&&!ua?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,qs(s,c,x)):(ln&&p&&t1(c),c.flags|=1,Zr(s,c,v,x),c.child)}function ig(s,c,p,v,x){if(s===null){var j=p.type;return typeof j=="function"&&!Q1(j)&&j.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=j,lg(s,c,j,v,x)):(s=Wd(p.type,null,v,c,c.mode,x),s.ref=c.ref,s.return=c,c.child=s)}if(j=s.child,(s.lanes&x)===0){var T=j.memoizedProps;if(p=p.compare,p=p!==null?p:li,p(T,v)&&s.ref===c.ref)return qs(s,c,x)}return c.flags|=1,s=wi(j,v),s.ref=c.ref,s.return=c,c.child=s}function lg(s,c,p,v,x){if(s!==null){var j=s.memoizedProps;if(li(j,v)&&s.ref===c.ref)if(ua=!1,c.pendingProps=v=j,(s.lanes&x)!==0)(s.flags&131072)!==0&&(ua=!0);else return c.lanes=s.lanes,qs(s,c,x)}return $1(s,c,p,v,x)}function cg(s,c,p){var v=c.pendingProps,x=v.children,j=s!==null?s.memoizedState:null;if(v.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Tc,Ea),Ea|=p;else{if((p&1073741824)===0)return s=j!==null?j.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Ot(Tc,Ea),Ea|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=j!==null?j.baseLanes:p,Ot(Tc,Ea),Ea|=v}else j!==null?(v=j.baseLanes|p,c.memoizedState=null):v=p,Ot(Tc,Ea),Ea|=v;return Zr(s,c,x,p),c.child}function ug(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function $1(s,c,p,v,x){var j=gr(p)?Yo:Qn.current;return j=zs(c,j),Ac(c,x),p=b1(s,c,p,v,j,x),v=y1(),s!==null&&!ua?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,qs(s,c,x)):(ln&&v&&t1(c),c.flags|=1,Zr(s,c,p,x),c.child)}function dg(s,c,p,v,x){if(gr(p)){var j=!0;hl(c)}else j=!1;if(Ac(c,x),c.stateNode===null)Id(s,c),J4(c,p,v),k1(c,p,v,x),v=!0;else if(s===null){var T=c.stateNode,H=c.memoizedProps;T.props=H;var Q=T.context,ie=p.contextType;typeof ie=="object"&&ie!==null?ie=Ja(ie):(ie=gr(p)?Yo:Qn.current,ie=zs(c,ie));var ye=p.getDerivedStateFromProps,_e=typeof ye=="function"||typeof T.getSnapshotBeforeUpdate=="function";_e||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(H!==v||Q!==ie)&&eg(c,T,v,ie),fi=!1;var be=c.memoizedState;T.state=be,Sd(c,v,T,x),Q=c.memoizedState,H!==v||be!==Q||fr.current||fi?(typeof ye=="function"&&(C1(c,p,ye,v),Q=c.memoizedState),(H=fi||K4(c,p,H,v,be,Q,ie))?(_e||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(c.flags|=4194308)):(typeof T.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=Q),T.props=v,T.state=Q,T.context=ie,v=H):(typeof T.componentDidMount=="function"&&(c.flags|=4194308),v=!1)}else{T=c.stateNode,S4(s,c),H=c.memoizedProps,ie=c.type===c.elementType?H:Eo(c.type,H),T.props=ie,_e=c.pendingProps,be=T.context,Q=p.contextType,typeof Q=="object"&&Q!==null?Q=Ja(Q):(Q=gr(p)?Yo:Qn.current,Q=zs(c,Q));var Fe=p.getDerivedStateFromProps;(ye=typeof Fe=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(H!==_e||be!==Q)&&eg(c,T,v,Q),fi=!1,be=c.memoizedState,T.state=be,Sd(c,v,T,x);var Ve=c.memoizedState;H!==_e||be!==Ve||fr.current||fi?(typeof Fe=="function"&&(C1(c,p,Fe,v),Ve=c.memoizedState),(ie=fi||K4(c,p,ie,v,be,Ve,Q)||!1)?(ye||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(v,Ve,Q),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(v,Ve,Q)),typeof T.componentDidUpdate=="function"&&(c.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof T.componentDidUpdate!="function"||H===s.memoizedProps&&be===s.memoizedState||(c.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||H===s.memoizedProps&&be===s.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Ve),T.props=v,T.state=Ve,T.context=Q,v=ie):(typeof T.componentDidUpdate!="function"||H===s.memoizedProps&&be===s.memoizedState||(c.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||H===s.memoizedProps&&be===s.memoizedState||(c.flags|=1024),v=!1)}return A1(s,c,p,v,j,x)}function A1(s,c,p,v,x,j){ug(s,c);var T=(c.flags&128)!==0;if(!v&&!T)return x&&Wu(c,p,!1),qs(s,c,j);v=c.stateNode,_9.current=c;var H=T&&typeof p.getDerivedStateFromError!="function"?null:v.render();return c.flags|=1,s!==null&&T?(c.child=Sc(c,s.child,null,j),c.child=Sc(c,null,H,j)):Zr(s,c,H,j),c.memoizedState=v.state,x&&Wu(c,p,!0),c.child}function pg(s){var c=s.stateNode;c.pendingContext?Vu(s,c.pendingContext,c.pendingContext!==c.context):c.context&&Vu(s,c.context,!1),p1(s,c.containerInfo)}function mg(s,c,p,v,x){return Nc(),o1(x),c.flags|=256,Zr(s,c,p,v),c.child}var E1={dehydrated:null,treeContext:null,retryLane:0};function D1(s){return{baseLanes:s,cachePool:null,transitions:null}}function hg(s,c,p){var v=c.pendingProps,x=fn.current,j=!1,T=(c.flags&128)!==0,H;if((H=T)||(H=s!==null&&s.memoizedState===null?!1:(x&2)!==0),H?(j=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),Ot(fn,x&1),s===null)return a1(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(T=v.children,s=v.fallback,j?(v=c.mode,j=c.child,T={mode:"hidden",children:T},(v&1)===0&&j!==null?(j.childLanes=0,j.pendingProps=T):j=Zd(T,v,0,null),s=jl(s,v,p,null),j.return=c,s.return=c,j.sibling=s,c.child=j,c.child.memoizedState=D1(p),c.memoizedState=E1,s):z1(c,T));if(x=s.memoizedState,x!==null&&(H=x.dehydrated,H!==null))return w9(s,c,T,v,H,x,p);if(j){j=v.fallback,T=c.mode,x=s.child,H=x.sibling;var Q={mode:"hidden",children:v.children};return(T&1)===0&&c.child!==x?(v=c.child,v.childLanes=0,v.pendingProps=Q,c.deletions=null):(v=wi(x,Q),v.subtreeFlags=x.subtreeFlags&14680064),H!==null?j=wi(H,j):(j=jl(j,T,p,null),j.flags|=2),j.return=c,v.return=c,v.sibling=j,c.child=v,v=j,j=c.child,T=s.child.memoizedState,T=T===null?D1(p):{baseLanes:T.baseLanes|p,cachePool:null,transitions:T.transitions},j.memoizedState=T,j.childLanes=s.childLanes&~p,c.memoizedState=E1,v}return j=s.child,s=j.sibling,v=wi(j,{mode:"visible",children:v.children}),(c.mode&1)===0&&(v.lanes=p),v.return=c,v.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=v,c.memoizedState=null,v}function z1(s,c){return c=Zd({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Ld(s,c,p,v){return v!==null&&o1(v),Sc(c,s.child,null,p),s=z1(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function w9(s,c,p,v,x,j,T){if(p)return c.flags&256?(c.flags&=-257,v=N1(Error(n(422))),Ld(s,c,T,v)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(j=v.fallback,x=c.mode,v=Zd({mode:"visible",children:v.children},x,0,null),j=jl(j,x,T,null),j.flags|=2,v.return=c,j.return=c,v.sibling=j,c.child=v,(c.mode&1)!==0&&Sc(c,s.child,null,T),c.child.memoizedState=D1(T),c.memoizedState=E1,j);if((c.mode&1)===0)return Ld(s,c,T,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var H=v.dgst;return v=H,j=Error(n(419)),v=N1(j,v,void 0),Ld(s,c,T,v)}if(H=(T&s.childLanes)!==0,ua||H){if(v=sr,v!==null){switch(T&-T){case 4:x=2;break;case 16:x=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(v.suspendedLanes|T))!==0?0:x,x!==0&&x!==j.retryLane&&(j.retryLane=x,Ls(s,x),To(v,s,x,-1))}return Z1(),v=N1(Error(n(421))),Ld(s,c,T,v)}return x.data==="$?"?(c.flags|=128,c.child=s.child,c=L9.bind(null,s),x._reactRetry=c,null):(s=j.treeContext,Aa=ko(x.nextSibling),$a=c,ln=!0,Ao=null,s!==null&&(ue[De++]=jn,ue[De++]=Wr,ue[De++]=Jt,jn=s.id,Wr=s.overflow,Jt=c),c=z1(c,v.children),c.flags|=4096,c)}function fg(s,c,p){s.lanes|=c;var v=s.alternate;v!==null&&(v.lanes|=c),c1(s.return,c,p)}function T1(s,c,p,v,x){var j=s.memoizedState;j===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:x}:(j.isBackwards=c,j.rendering=null,j.renderingStartTime=0,j.last=v,j.tail=p,j.tailMode=x)}function gg(s,c,p){var v=c.pendingProps,x=v.revealOrder,j=v.tail;if(Zr(s,c,v.children,p),v=fn.current,(v&2)!==0)v=v&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&fg(s,p,c);else if(s.tag===19)fg(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}v&=1}if(Ot(fn,v),(c.mode&1)===0)c.memoizedState=null;else switch(x){case"forwards":for(p=c.child,x=null;p!==null;)s=p.alternate,s!==null&&$d(s)===null&&(x=p),p=p.sibling;p=x,p===null?(x=c.child,c.child=null):(x=p.sibling,p.sibling=null),T1(c,!1,x,p,j);break;case"backwards":for(p=null,x=c.child,c.child=null;x!==null;){if(s=x.alternate,s!==null&&$d(s)===null){c.child=x;break}s=x.sibling,x.sibling=p,p=x,x=s}T1(c,!0,p,null,j);break;case"together":T1(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Id(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function qs(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),yl|=c.lanes,(p&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,p=wi(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=wi(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function j9(s,c,p){switch(c.tag){case 3:pg(c),Nc();break;case 5:E4(c);break;case 1:gr(c.type)&&hl(c);break;case 4:p1(c,c.stateNode.containerInfo);break;case 10:var v=c.type._context,x=c.memoizedProps.value;Ot(Cd,v._currentValue),v._currentValue=x;break;case 13:if(v=c.memoizedState,v!==null)return v.dehydrated!==null?(Ot(fn,fn.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?hg(s,c,p):(Ot(fn,fn.current&1),s=qs(s,c,p),s!==null?s.sibling:null);Ot(fn,fn.current&1);break;case 19:if(v=(p&c.childLanes)!==0,(s.flags&128)!==0){if(v)return gg(s,c,p);c.flags|=128}if(x=c.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Ot(fn,fn.current),v)break;return null;case 22:case 23:return c.lanes=0,cg(s,c,p)}return qs(s,c,p)}var vg,M1,bg,yg;vg=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},M1=function(){},bg=function(s,c,p,v){var x=s.memoizedProps;if(x!==v){s=c.stateNode,vl(Ko.current);var j=null;switch(p){case"input":x=Rn(s,x),v=Rn(s,v),j=[];break;case"select":x=R({},x,{value:void 0}),v=R({},v,{value:void 0}),j=[];break;case"textarea":x=qr(s,x),v=qr(s,v),j=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(s.onclick=dl)}rn(p,v);var T;p=null;for(ie in x)if(!v.hasOwnProperty(ie)&&x.hasOwnProperty(ie)&&x[ie]!=null)if(ie==="style"){var H=x[ie];for(T in H)H.hasOwnProperty(T)&&(p||(p={}),p[T]="")}else ie!=="dangerouslySetInnerHTML"&&ie!=="children"&&ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&ie!=="autoFocus"&&(a.hasOwnProperty(ie)?j||(j=[]):(j=j||[]).push(ie,null));for(ie in v){var Q=v[ie];if(H=x!=null?x[ie]:void 0,v.hasOwnProperty(ie)&&Q!==H&&(Q!=null||H!=null))if(ie==="style")if(H){for(T in H)!H.hasOwnProperty(T)||Q&&Q.hasOwnProperty(T)||(p||(p={}),p[T]="");for(T in Q)Q.hasOwnProperty(T)&&H[T]!==Q[T]&&(p||(p={}),p[T]=Q[T])}else p||(j||(j=[]),j.push(ie,p)),p=Q;else ie==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,H=H?H.__html:void 0,Q!=null&&H!==Q&&(j=j||[]).push(ie,Q)):ie==="children"?typeof Q!="string"&&typeof Q!="number"||(j=j||[]).push(ie,""+Q):ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&(a.hasOwnProperty(ie)?(Q!=null&&ie==="onScroll"&&Vt("scroll",s),j||H===Q||(j=[])):(j=j||[]).push(ie,Q))}p&&(j=j||[]).push("style",p);var ie=j;(c.updateQueue=ie)&&(c.flags|=4)}},yg=function(s,c,p,v){p!==v&&(c.flags|=4)};function r0(s,c){if(!ln)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:v.sibling=null}}function Ar(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,v=0;if(c)for(var x=s.child;x!==null;)p|=x.lanes|x.childLanes,v|=x.subtreeFlags&14680064,v|=x.flags&14680064,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)p|=x.lanes|x.childLanes,v|=x.subtreeFlags,v|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=v,s.childLanes=p,c}function C9(s,c,p){var v=c.pendingProps;switch(n1(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(c),null;case 1:return gr(c.type)&&ml(),Ar(c),null;case 3:return v=c.stateNode,Ec(),Gt(fr),Gt(Qn),f1(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(s===null||s.child===null)&&(wd(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Ao!==null&&(V1(Ao),Ao=null))),M1(s,c),Ar(c),null;case 5:m1(c);var x=vl(Ku.current);if(p=c.type,s!==null&&c.stateNode!=null)bg(s,c,p,v,x),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!v){if(c.stateNode===null)throw Error(n(166));return Ar(c),null}if(s=vl(Ko.current),wd(c)){v=c.stateNode,p=c.type;var j=c.memoizedProps;switch(v[Na]=c,v[mi]=j,s=(c.mode&1)!==0,p){case"dialog":Vt("cancel",v),Vt("close",v);break;case"iframe":case"object":case"embed":Vt("load",v);break;case"video":case"audio":for(x=0;x<ui.length;x++)Vt(ui[x],v);break;case"source":Vt("error",v);break;case"img":case"image":case"link":Vt("error",v),Vt("load",v);break;case"details":Vt("toggle",v);break;case"input":Wn(v,j),Vt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!j.multiple},Vt("invalid",v);break;case"textarea":Rr(v,j),Vt("invalid",v)}rn(p,j),x=null;for(var T in j)if(j.hasOwnProperty(T)){var H=j[T];T==="children"?typeof H=="string"?v.textContent!==H&&(j.suppressHydrationWarning!==!0&&ul(v.textContent,H,s),x=["children",H]):typeof H=="number"&&v.textContent!==""+H&&(j.suppressHydrationWarning!==!0&&ul(v.textContent,H,s),x=["children",""+H]):a.hasOwnProperty(T)&&H!=null&&T==="onScroll"&&Vt("scroll",v)}switch(p){case"input":Nt(v),mn(v,j,!0);break;case"textarea":Nt(v),ba(v);break;case"select":case"option":break;default:typeof j.onClick=="function"&&(v.onclick=dl)}v=x,c.updateQueue=v,v!==null&&(c.flags|=4)}else{T=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=le(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=T.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof v.is=="string"?s=T.createElement(p,{is:v.is}):(s=T.createElement(p),p==="select"&&(T=s,v.multiple?T.multiple=!0:v.size&&(T.size=v.size))):s=T.createElementNS(s,p),s[Na]=c,s[mi]=v,vg(s,c,!1,!1),c.stateNode=s;e:{switch(T=$t(p,v),p){case"dialog":Vt("cancel",s),Vt("close",s),x=v;break;case"iframe":case"object":case"embed":Vt("load",s),x=v;break;case"video":case"audio":for(x=0;x<ui.length;x++)Vt(ui[x],s);x=v;break;case"source":Vt("error",s),x=v;break;case"img":case"image":case"link":Vt("error",s),Vt("load",s),x=v;break;case"details":Vt("toggle",s),x=v;break;case"input":Wn(s,v),x=Rn(s,v),Vt("invalid",s);break;case"option":x=v;break;case"select":s._wrapperState={wasMultiple:!!v.multiple},x=R({},v,{value:void 0}),Vt("invalid",s);break;case"textarea":Rr(s,v),x=qr(s,v),Vt("invalid",s);break;default:x=v}rn(p,x),H=x;for(j in H)if(H.hasOwnProperty(j)){var Q=H[j];j==="style"?oa(s,Q):j==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&st(s,Q)):j==="children"?typeof Q=="string"?(p!=="textarea"||Q!=="")&&vt(s,Q):typeof Q=="number"&&vt(s,""+Q):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(a.hasOwnProperty(j)?Q!=null&&j==="onScroll"&&Vt("scroll",s):Q!=null&&A(s,j,Q,T))}switch(p){case"input":Nt(s),mn(s,v,!1);break;case"textarea":Nt(s),ba(s);break;case"option":v.value!=null&&s.setAttribute("value",""+ze(v.value));break;case"select":s.multiple=!!v.multiple,j=v.value,j!=null?An(s,!!v.multiple,j,!1):v.defaultValue!=null&&An(s,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=dl)}switch(p){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Ar(c),null;case 6:if(s&&c.stateNode!=null)yg(s,c,s.memoizedProps,v);else{if(typeof v!="string"&&c.stateNode===null)throw Error(n(166));if(p=vl(Ku.current),vl(Ko.current),wd(c)){if(v=c.stateNode,p=c.memoizedProps,v[Na]=c,(j=v.nodeValue!==p)&&(s=$a,s!==null))switch(s.tag){case 3:ul(v.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&ul(v.nodeValue,p,(s.mode&1)!==0)}j&&(c.flags|=4)}else v=(p.nodeType===9?p:p.ownerDocument).createTextNode(v),v[Na]=c,c.stateNode=v}return Ar(c),null;case 13:if(Gt(fn),v=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(ln&&Aa!==null&&(c.mode&1)!==0&&(c.flags&128)===0)w4(),Nc(),c.flags|=98560,j=!1;else if(j=wd(c),v!==null&&v.dehydrated!==null){if(s===null){if(!j)throw Error(n(318));if(j=c.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(n(317));j[Na]=c}else Nc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Ar(c),j=!1}else Ao!==null&&(V1(Ao),Ao=null),j=!0;if(!j)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=p,c):(v=v!==null,v!==(s!==null&&s.memoizedState!==null)&&v&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(fn.current&1)!==0?Yn===0&&(Yn=3):Z1())),c.updateQueue!==null&&(c.flags|=4),Ar(c),null);case 4:return Ec(),M1(s,c),s===null&&di(c.stateNode.containerInfo),Ar(c),null;case 10:return l1(c.type._context),Ar(c),null;case 17:return gr(c.type)&&ml(),Ar(c),null;case 19:if(Gt(fn),j=c.memoizedState,j===null)return Ar(c),null;if(v=(c.flags&128)!==0,T=j.rendering,T===null)if(v)r0(j,!1);else{if(Yn!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(T=$d(s),T!==null){for(c.flags|=128,r0(j,!1),v=T.updateQueue,v!==null&&(c.updateQueue=v,c.flags|=4),c.subtreeFlags=0,v=p,p=c.child;p!==null;)j=p,s=v,j.flags&=14680066,T=j.alternate,T===null?(j.childLanes=0,j.lanes=s,j.child=null,j.subtreeFlags=0,j.memoizedProps=null,j.memoizedState=null,j.updateQueue=null,j.dependencies=null,j.stateNode=null):(j.childLanes=T.childLanes,j.lanes=T.lanes,j.child=T.child,j.subtreeFlags=0,j.deletions=null,j.memoizedProps=T.memoizedProps,j.memoizedState=T.memoizedState,j.updateQueue=T.updateQueue,j.type=T.type,s=T.dependencies,j.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return Ot(fn,fn.current&1|2),c.child}s=s.sibling}j.tail!==null&&Ft()>Mc&&(c.flags|=128,v=!0,r0(j,!1),c.lanes=4194304)}else{if(!v)if(s=$d(T),s!==null){if(c.flags|=128,v=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),r0(j,!0),j.tail===null&&j.tailMode==="hidden"&&!T.alternate&&!ln)return Ar(c),null}else 2*Ft()-j.renderingStartTime>Mc&&p!==1073741824&&(c.flags|=128,v=!0,r0(j,!1),c.lanes=4194304);j.isBackwards?(T.sibling=c.child,c.child=T):(p=j.last,p!==null?p.sibling=T:c.child=T,j.last=T)}return j.tail!==null?(c=j.tail,j.rendering=c,j.tail=c.sibling,j.renderingStartTime=Ft(),c.sibling=null,p=fn.current,Ot(fn,v?p&1|2:p&1),c):(Ar(c),null);case 22:case 23:return W1(),v=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==v&&(c.flags|=8192),v&&(c.mode&1)!==0?(Ea&1073741824)!==0&&(Ar(c),c.subtreeFlags&6&&(c.flags|=8192)):Ar(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function k9(s,c){switch(n1(c),c.tag){case 1:return gr(c.type)&&ml(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Ec(),Gt(fr),Gt(Qn),f1(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return m1(c),null;case 13:if(Gt(fn),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));Nc()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Gt(fn),null;case 4:return Ec(),null;case 10:return l1(c.type._context),null;case 22:case 23:return W1(),null;case 24:return null;default:return null}}var qd=!1,Er=!1,N9=typeof WeakSet=="function"?WeakSet:Set,He=null;function zc(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){Cn(s,c,v)}else p.current=null}function L1(s,c,p){try{p()}catch(v){Cn(s,c,v)}}var xg=!1;function S9(s,c){if(bc=xo,s=Au(),uc(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var x=v.anchorOffset,j=v.focusNode;v=v.focusOffset;try{p.nodeType,j.nodeType}catch{p=null;break e}var T=0,H=-1,Q=-1,ie=0,ye=0,_e=s,be=null;t:for(;;){for(var Fe;_e!==p||x!==0&&_e.nodeType!==3||(H=T+x),_e!==j||v!==0&&_e.nodeType!==3||(Q=T+v),_e.nodeType===3&&(T+=_e.nodeValue.length),(Fe=_e.firstChild)!==null;)be=_e,_e=Fe;for(;;){if(_e===s)break t;if(be===p&&++ie===x&&(H=T),be===j&&++ye===v&&(Q=T),(Fe=_e.nextSibling)!==null)break;_e=be,be=_e.parentNode}_e=Fe}p=H===-1||Q===-1?null:{start:H,end:Q}}else p=null}p=p||{start:0,end:0}}else p=null;for(yc={focusedElem:s,selectionRange:p},xo=!1,He=c;He!==null;)if(c=He,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,He=s;else for(;He!==null;){c=He;try{var Ve=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Ve!==null){var Ge=Ve.memoizedProps,Mn=Ve.memoizedState,ae=c.stateNode,te=ae.getSnapshotBeforeUpdate(c.elementType===c.type?Ge:Eo(c.type,Ge),Mn);ae.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var se=c.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ae){Cn(c,c.return,Ae)}if(s=c.sibling,s!==null){s.return=c.return,He=s;break}He=c.return}return Ve=xg,xg=!1,Ve}function a0(s,c,p){var v=c.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var x=v=v.next;do{if((x.tag&s)===s){var j=x.destroy;x.destroy=void 0,j!==void 0&&L1(c,p,j)}x=x.next}while(x!==v)}}function Rd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var v=p.create;p.destroy=v()}p=p.next}while(p!==c)}}function I1(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function _g(s){var c=s.alternate;c!==null&&(s.alternate=null,_g(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[Na],delete c[mi],delete c[jc],delete c[bd],delete c[yd])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function wg(s){return s.tag===5||s.tag===3||s.tag===4}function jg(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||wg(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function q1(s,c,p){var v=s.tag;if(v===5||v===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=dl));else if(v!==4&&(s=s.child,s!==null))for(q1(s,c,p),s=s.sibling;s!==null;)q1(s,c,p),s=s.sibling}function R1(s,c,p){var v=s.tag;if(v===5||v===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(v!==4&&(s=s.child,s!==null))for(R1(s,c,p),s=s.sibling;s!==null;)R1(s,c,p),s=s.sibling}var vr=null,Do=!1;function vi(s,c,p){for(p=p.child;p!==null;)Cg(s,c,p),p=p.sibling}function Cg(s,c,p){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Hr,p)}catch{}switch(p.tag){case 5:Er||zc(p,c);case 6:var v=vr,x=Do;vr=null,vi(s,c,p),vr=v,Do=x,vr!==null&&(Do?(s=vr,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):vr.removeChild(p.stateNode));break;case 18:vr!==null&&(Do?(s=vr,p=p.stateNode,s.nodeType===8?wc(s.parentNode,p):s.nodeType===1&&wc(s,p),Qo(s)):wc(vr,p.stateNode));break;case 4:v=vr,x=Do,vr=p.stateNode.containerInfo,Do=!0,vi(s,c,p),vr=v,Do=x;break;case 0:case 11:case 14:case 15:if(!Er&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var j=x,T=j.destroy;j=j.tag,T!==void 0&&((j&2)!==0||(j&4)!==0)&&L1(p,c,T),x=x.next}while(x!==v)}vi(s,c,p);break;case 1:if(!Er&&(zc(p,c),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(H){Cn(p,c,H)}vi(s,c,p);break;case 21:vi(s,c,p);break;case 22:p.mode&1?(Er=(v=Er)||p.memoizedState!==null,vi(s,c,p),Er=v):vi(s,c,p);break;default:vi(s,c,p)}}function kg(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new N9),c.forEach(function(v){var x=I9.bind(null,s,v);p.has(v)||(p.add(v),v.then(x,x))})}}function zo(s,c){var p=c.deletions;if(p!==null)for(var v=0;v<p.length;v++){var x=p[v];try{var j=s,T=c,H=T;e:for(;H!==null;){switch(H.tag){case 5:vr=H.stateNode,Do=!1;break e;case 3:vr=H.stateNode.containerInfo,Do=!0;break e;case 4:vr=H.stateNode.containerInfo,Do=!0;break e}H=H.return}if(vr===null)throw Error(n(160));Cg(j,T,x),vr=null,Do=!1;var Q=x.alternate;Q!==null&&(Q.return=null),x.return=null}catch(ie){Cn(x,c,ie)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)Ng(c,s),c=c.sibling}function Ng(s,c){var p=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(zo(c,s),es(s),v&4){try{a0(3,s,s.return),Rd(3,s)}catch(Ge){Cn(s,s.return,Ge)}try{a0(5,s,s.return)}catch(Ge){Cn(s,s.return,Ge)}}break;case 1:zo(c,s),es(s),v&512&&p!==null&&zc(p,p.return);break;case 5:if(zo(c,s),es(s),v&512&&p!==null&&zc(p,p.return),s.flags&32){var x=s.stateNode;try{vt(x,"")}catch(Ge){Cn(s,s.return,Ge)}}if(v&4&&(x=s.stateNode,x!=null)){var j=s.memoizedProps,T=p!==null?p.memoizedProps:j,H=s.type,Q=s.updateQueue;if(s.updateQueue=null,Q!==null)try{H==="input"&&j.type==="radio"&&j.name!=null&&$n(x,j),$t(H,T);var ie=$t(H,j);for(T=0;T<Q.length;T+=2){var ye=Q[T],_e=Q[T+1];ye==="style"?oa(x,_e):ye==="dangerouslySetInnerHTML"?st(x,_e):ye==="children"?vt(x,_e):A(x,ye,_e,ie)}switch(H){case"input":wr(x,j);break;case"textarea":hn(x,j);break;case"select":var be=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!j.multiple;var Fe=j.value;Fe!=null?An(x,!!j.multiple,Fe,!1):be!==!!j.multiple&&(j.defaultValue!=null?An(x,!!j.multiple,j.defaultValue,!0):An(x,!!j.multiple,j.multiple?[]:"",!1))}x[mi]=j}catch(Ge){Cn(s,s.return,Ge)}}break;case 6:if(zo(c,s),es(s),v&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,j=s.memoizedProps;try{x.nodeValue=j}catch(Ge){Cn(s,s.return,Ge)}}break;case 3:if(zo(c,s),es(s),v&4&&p!==null&&p.memoizedState.isDehydrated)try{Qo(c.containerInfo)}catch(Ge){Cn(s,s.return,Ge)}break;case 4:zo(c,s),es(s);break;case 13:zo(c,s),es(s),x=s.child,x.flags&8192&&(j=x.memoizedState!==null,x.stateNode.isHidden=j,!j||x.alternate!==null&&x.alternate.memoizedState!==null||(O1=Ft())),v&4&&kg(s);break;case 22:if(ye=p!==null&&p.memoizedState!==null,s.mode&1?(Er=(ie=Er)||ye,zo(c,s),Er=ie):zo(c,s),es(s),v&8192){if(ie=s.memoizedState!==null,(s.stateNode.isHidden=ie)&&!ye&&(s.mode&1)!==0)for(He=s,ye=s.child;ye!==null;){for(_e=He=ye;He!==null;){switch(be=He,Fe=be.child,be.tag){case 0:case 11:case 14:case 15:a0(4,be,be.return);break;case 1:zc(be,be.return);var Ve=be.stateNode;if(typeof Ve.componentWillUnmount=="function"){v=be,p=be.return;try{c=v,Ve.props=c.memoizedProps,Ve.state=c.memoizedState,Ve.componentWillUnmount()}catch(Ge){Cn(v,p,Ge)}}break;case 5:zc(be,be.return);break;case 22:if(be.memoizedState!==null){Ag(_e);continue}}Fe!==null?(Fe.return=be,He=Fe):Ag(_e)}ye=ye.sibling}e:for(ye=null,_e=s;;){if(_e.tag===5){if(ye===null){ye=_e;try{x=_e.stateNode,ie?(j=x.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none"):(H=_e.stateNode,Q=_e.memoizedProps.style,T=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,H.style.display=Pn("display",T))}catch(Ge){Cn(s,s.return,Ge)}}}else if(_e.tag===6){if(ye===null)try{_e.stateNode.nodeValue=ie?"":_e.memoizedProps}catch(Ge){Cn(s,s.return,Ge)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===s)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===s)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===s)break e;ye===_e&&(ye=null),_e=_e.return}ye===_e&&(ye=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:zo(c,s),es(s),v&4&&kg(s);break;case 21:break;default:zo(c,s),es(s)}}function es(s){var c=s.flags;if(c&2){try{e:{for(var p=s.return;p!==null;){if(wg(p)){var v=p;break e}p=p.return}throw Error(n(160))}switch(v.tag){case 5:var x=v.stateNode;v.flags&32&&(vt(x,""),v.flags&=-33);var j=jg(s);R1(s,j,x);break;case 3:case 4:var T=v.stateNode.containerInfo,H=jg(s);q1(s,H,T);break;default:throw Error(n(161))}}catch(Q){Cn(s,s.return,Q)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function $9(s,c,p){He=s,Sg(s)}function Sg(s,c,p){for(var v=(s.mode&1)!==0;He!==null;){var x=He,j=x.child;if(x.tag===22&&v){var T=x.memoizedState!==null||qd;if(!T){var H=x.alternate,Q=H!==null&&H.memoizedState!==null||Er;H=qd;var ie=Er;if(qd=T,(Er=Q)&&!ie)for(He=x;He!==null;)T=He,Q=T.child,T.tag===22&&T.memoizedState!==null?Eg(x):Q!==null?(Q.return=T,He=Q):Eg(x);for(;j!==null;)He=j,Sg(j),j=j.sibling;He=x,qd=H,Er=ie}$g(s)}else(x.subtreeFlags&8772)!==0&&j!==null?(j.return=x,He=j):$g(s)}}function $g(s){for(;He!==null;){var c=He;if((c.flags&8772)!==0){var p=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:Er||Rd(5,c);break;case 1:var v=c.stateNode;if(c.flags&4&&!Er)if(p===null)v.componentDidMount();else{var x=c.elementType===c.type?p.memoizedProps:Eo(c.type,p.memoizedProps);v.componentDidUpdate(x,p.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var j=c.updateQueue;j!==null&&A4(c,j,v);break;case 3:var T=c.updateQueue;if(T!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}A4(c,T,p)}break;case 5:var H=c.stateNode;if(p===null&&c.flags&4){p=H;var Q=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&p.focus();break;case"img":Q.src&&(p.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var ie=c.alternate;if(ie!==null){var ye=ie.memoizedState;if(ye!==null){var _e=ye.dehydrated;_e!==null&&Qo(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Er||c.flags&512&&I1(c)}catch(be){Cn(c,c.return,be)}}if(c===s){He=null;break}if(p=c.sibling,p!==null){p.return=c.return,He=p;break}He=c.return}}function Ag(s){for(;He!==null;){var c=He;if(c===s){He=null;break}var p=c.sibling;if(p!==null){p.return=c.return,He=p;break}He=c.return}}function Eg(s){for(;He!==null;){var c=He;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{Rd(4,c)}catch(Q){Cn(c,p,Q)}break;case 1:var v=c.stateNode;if(typeof v.componentDidMount=="function"){var x=c.return;try{v.componentDidMount()}catch(Q){Cn(c,x,Q)}}var j=c.return;try{I1(c)}catch(Q){Cn(c,j,Q)}break;case 5:var T=c.return;try{I1(c)}catch(Q){Cn(c,T,Q)}}}catch(Q){Cn(c,c.return,Q)}if(c===s){He=null;break}var H=c.sibling;if(H!==null){H.return=c.return,He=H;break}He=c.return}}var A9=Math.ceil,Pd=I.ReactCurrentDispatcher,P1=I.ReactCurrentOwner,to=I.ReactCurrentBatchConfig,St=0,sr=null,Bn=null,br=0,Ea=0,Tc=No(0),Yn=0,o0=null,yl=0,Fd=0,F1=0,s0=null,da=null,O1=0,Mc=1/0,Rs=null,Od=!1,B1=null,bi=null,Bd=!1,yi=null,Hd=0,i0=0,H1=null,Ud=-1,Vd=0;function Qr(){return(St&6)!==0?Ft():Ud!==-1?Ud:Ud=Ft()}function xi(s){return(s.mode&1)===0?1:(St&2)!==0&&br!==0?br&-br:p9.transition!==null?(Vd===0&&(Vd=rc()),Vd):(s=_t,s!==0||(s=window.event,s=s===void 0?16:Y(s.type)),s)}function To(s,c,p,v){if(50<i0)throw i0=0,H1=null,Error(n(185));xt(s,p,v),((St&2)===0||s!==sr)&&(s===sr&&((St&2)===0&&(Fd|=p),Yn===4&&_i(s,br)),pa(s,v),p===1&&St===0&&(c.mode&1)===0&&(Mc=Ft()+500,fl&&$o()))}function pa(s,c){var p=s.callbackNode;go(s,c);var v=Ua(s,s===sr?br:0);if(v===0)p!==null&&Gi(p),s.callbackNode=null,s.callbackPriority=0;else if(c=v&-v,s.callbackPriority!==c){if(p!=null&&Gi(p),c===1)s.tag===0?xd(zg.bind(null,s)):Zu(zg.bind(null,s)),gd(function(){(St&6)===0&&$o()}),p=null;else{switch(xs(v)){case 1:p=ia;break;case 4:p=vs;break;case 16:p=mo;break;case 536870912:p=nc;break;default:p=mo}p=Fg(p,Dg.bind(null,s))}s.callbackPriority=c,s.callbackNode=p}}function Dg(s,c){if(Ud=-1,Vd=0,(St&6)!==0)throw Error(n(327));var p=s.callbackNode;if(Lc()&&s.callbackNode!==p)return null;var v=Ua(s,s===sr?br:0);if(v===0)return null;if((v&30)!==0||(v&s.expiredLanes)!==0||c)c=Gd(s,v);else{c=v;var x=St;St|=2;var j=Mg();(sr!==s||br!==c)&&(Rs=null,Mc=Ft()+500,_l(s,c));do try{z9();break}catch(H){Tg(s,H)}while(!0);i1(),Pd.current=j,St=x,Bn!==null?c=0:(sr=null,br=0,c=Yn)}if(c!==0){if(c===2&&(x=Ca(s),x!==0&&(v=x,c=U1(s,x))),c===1)throw p=o0,_l(s,0),_i(s,v),pa(s,Ft()),p;if(c===6)_i(s,v);else{if(x=s.current.alternate,(v&30)===0&&!E9(x)&&(c=Gd(s,v),c===2&&(j=Ca(s),j!==0&&(v=j,c=U1(s,j))),c===1))throw p=o0,_l(s,0),_i(s,v),pa(s,Ft()),p;switch(s.finishedWork=x,s.finishedLanes=v,c){case 0:case 1:throw Error(n(345));case 2:wl(s,da,Rs);break;case 3:if(_i(s,v),(v&130023424)===v&&(c=O1+500-Ft(),10<c)){if(Ua(s,0)!==0)break;if(x=s.suspendedLanes,(x&v)!==v){Qr(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=_c(wl.bind(null,s,da,Rs),c);break}wl(s,da,Rs);break;case 4:if(_i(s,v),(v&4194240)===v)break;for(c=s.eventTimes,x=-1;0<v;){var T=31-Wt(v);j=1<<T,T=c[T],T>x&&(x=T),v&=~j}if(v=x,v=Ft()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*A9(v/1960))-v,10<v){s.timeoutHandle=_c(wl.bind(null,s,da,Rs),v);break}wl(s,da,Rs);break;case 5:wl(s,da,Rs);break;default:throw Error(n(329))}}}return pa(s,Ft()),s.callbackNode===p?Dg.bind(null,s):null}function U1(s,c){var p=s0;return s.current.memoizedState.isDehydrated&&(_l(s,c).flags|=256),s=Gd(s,c),s!==2&&(c=da,da=p,c!==null&&V1(c)),s}function V1(s){da===null?da=s:da.push.apply(da,s)}function E9(s){for(var c=s;;){if(c.flags&16384){var p=c.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var v=0;v<p.length;v++){var x=p[v],j=x.getSnapshot;x=x.value;try{if(!ca(j(),x))return!1}catch{return!1}}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function _i(s,c){for(c&=~F1,c&=~Fd,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var p=31-Wt(c),v=1<<p;s[p]=-1,c&=~v}}function zg(s){if((St&6)!==0)throw Error(n(327));Lc();var c=Ua(s,0);if((c&1)===0)return pa(s,Ft()),null;var p=Gd(s,c);if(s.tag!==0&&p===2){var v=Ca(s);v!==0&&(c=v,p=U1(s,v))}if(p===1)throw p=o0,_l(s,0),_i(s,c),pa(s,Ft()),p;if(p===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,wl(s,da,Rs),pa(s,Ft()),null}function G1(s,c){var p=St;St|=1;try{return s(c)}finally{St=p,St===0&&(Mc=Ft()+500,fl&&$o())}}function xl(s){yi!==null&&yi.tag===0&&(St&6)===0&&Lc();var c=St;St|=1;var p=to.transition,v=_t;try{if(to.transition=null,_t=1,s)return s()}finally{_t=v,to.transition=p,St=c,(St&6)===0&&$o()}}function W1(){Ea=Tc.current,Gt(Tc)}function _l(s,c){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,fd(p)),Bn!==null)for(p=Bn.return;p!==null;){var v=p;switch(n1(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&ml();break;case 3:Ec(),Gt(fr),Gt(Qn),f1();break;case 5:m1(v);break;case 4:Ec();break;case 13:Gt(fn);break;case 19:Gt(fn);break;case 10:l1(v.type._context);break;case 22:case 23:W1()}p=p.return}if(sr=s,Bn=s=wi(s.current,null),br=Ea=c,Yn=0,o0=null,F1=Fd=yl=0,da=s0=null,gl!==null){for(c=0;c<gl.length;c++)if(p=gl[c],v=p.interleaved,v!==null){p.interleaved=null;var x=v.next,j=p.pending;if(j!==null){var T=j.next;j.next=x,v.next=T}p.pending=v}gl=null}return s}function Tg(s,c){do{var p=Bn;try{if(i1(),Ad.current=Td,Ed){for(var v=gn.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}Ed=!1}if(bl=0,or=Xn=gn=null,Ju=!1,e0=0,P1.current=null,p===null||p.return===null){Yn=1,o0=c,Bn=null;break}e:{var j=s,T=p.return,H=p,Q=c;if(c=br,H.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ie=Q,ye=H,_e=ye.tag;if((ye.mode&1)===0&&(_e===0||_e===11||_e===15)){var be=ye.alternate;be?(ye.updateQueue=be.updateQueue,ye.memoizedState=be.memoizedState,ye.lanes=be.lanes):(ye.updateQueue=null,ye.memoizedState=null)}var Fe=ag(T);if(Fe!==null){Fe.flags&=-257,og(Fe,T,H,j,c),Fe.mode&1&&rg(j,ie,c),c=Fe,Q=ie;var Ve=c.updateQueue;if(Ve===null){var Ge=new Set;Ge.add(Q),c.updateQueue=Ge}else Ve.add(Q);break e}else{if((c&1)===0){rg(j,ie,c),Z1();break e}Q=Error(n(426))}}else if(ln&&H.mode&1){var Mn=ag(T);if(Mn!==null){(Mn.flags&65536)===0&&(Mn.flags|=256),og(Mn,T,H,j,c),o1(Dc(Q,H));break e}}j=Q=Dc(Q,H),Yn!==4&&(Yn=2),s0===null?s0=[j]:s0.push(j),j=T;do{switch(j.tag){case 3:j.flags|=65536,c&=-c,j.lanes|=c;var ae=tg(j,Q,c);$4(j,ae);break e;case 1:H=Q;var te=j.type,se=j.stateNode;if((j.flags&128)===0&&(typeof te.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(bi===null||!bi.has(se)))){j.flags|=65536,c&=-c,j.lanes|=c;var Ae=ng(j,H,c);$4(j,Ae);break e}}j=j.return}while(j!==null)}Ig(p)}catch(Ye){c=Ye,Bn===p&&p!==null&&(Bn=p=p.return);continue}break}while(!0)}function Mg(){var s=Pd.current;return Pd.current=Td,s===null?Td:s}function Z1(){(Yn===0||Yn===3||Yn===2)&&(Yn=4),sr===null||(yl&268435455)===0&&(Fd&268435455)===0||_i(sr,br)}function Gd(s,c){var p=St;St|=2;var v=Mg();(sr!==s||br!==c)&&(Rs=null,_l(s,c));do try{D9();break}catch(x){Tg(s,x)}while(!0);if(i1(),St=p,Pd.current=v,Bn!==null)throw Error(n(261));return sr=null,br=0,Yn}function D9(){for(;Bn!==null;)Lg(Bn)}function z9(){for(;Bn!==null&&!Jl();)Lg(Bn)}function Lg(s){var c=Pg(s.alternate,s,Ea);s.memoizedProps=s.pendingProps,c===null?Ig(s):Bn=c,P1.current=null}function Ig(s){var c=s;do{var p=c.alternate;if(s=c.return,(c.flags&32768)===0){if(p=C9(p,c,Ea),p!==null){Bn=p;return}}else{if(p=k9(p,c),p!==null){p.flags&=32767,Bn=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Yn=6,Bn=null;return}}if(c=c.sibling,c!==null){Bn=c;return}Bn=c=s}while(c!==null);Yn===0&&(Yn=5)}function wl(s,c,p){var v=_t,x=to.transition;try{to.transition=null,_t=1,T9(s,c,p,v)}finally{to.transition=x,_t=v}return null}function T9(s,c,p,v){do Lc();while(yi!==null);if((St&6)!==0)throw Error(n(327));p=s.finishedWork;var x=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var j=p.lanes|p.childLanes;if(vo(s,j),s===sr&&(Bn=sr=null,br=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Bd||(Bd=!0,Fg(mo,function(){return Lc(),null})),j=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||j){j=to.transition,to.transition=null;var T=_t;_t=1;var H=St;St|=4,P1.current=null,S9(s,p),Ng(p,s),ld(yc),xo=!!bc,yc=bc=null,s.current=p,$9(p),ec(),St=H,_t=T,to.transition=j}else s.current=p;if(Bd&&(Bd=!1,yi=s,Hd=x),j=s.pendingLanes,j===0&&(bi=null),ho(p.stateNode),pa(s,Ft()),c!==null)for(v=s.onRecoverableError,p=0;p<c.length;p++)x=c[p],v(x.value,{componentStack:x.stack,digest:x.digest});if(Od)throw Od=!1,s=B1,B1=null,s;return(Hd&1)!==0&&s.tag!==0&&Lc(),j=s.pendingLanes,(j&1)!==0?s===H1?i0++:(i0=0,H1=s):i0=0,$o(),null}function Lc(){if(yi!==null){var s=xs(Hd),c=to.transition,p=_t;try{if(to.transition=null,_t=16>s?16:s,yi===null)var v=!1;else{if(s=yi,yi=null,Hd=0,(St&6)!==0)throw Error(n(331));var x=St;for(St|=4,He=s.current;He!==null;){var j=He,T=j.child;if((He.flags&16)!==0){var H=j.deletions;if(H!==null){for(var Q=0;Q<H.length;Q++){var ie=H[Q];for(He=ie;He!==null;){var ye=He;switch(ye.tag){case 0:case 11:case 15:a0(8,ye,j)}var _e=ye.child;if(_e!==null)_e.return=ye,He=_e;else for(;He!==null;){ye=He;var be=ye.sibling,Fe=ye.return;if(_g(ye),ye===ie){He=null;break}if(be!==null){be.return=Fe,He=be;break}He=Fe}}}var Ve=j.alternate;if(Ve!==null){var Ge=Ve.child;if(Ge!==null){Ve.child=null;do{var Mn=Ge.sibling;Ge.sibling=null,Ge=Mn}while(Ge!==null)}}He=j}}if((j.subtreeFlags&2064)!==0&&T!==null)T.return=j,He=T;else e:for(;He!==null;){if(j=He,(j.flags&2048)!==0)switch(j.tag){case 0:case 11:case 15:a0(9,j,j.return)}var ae=j.sibling;if(ae!==null){ae.return=j.return,He=ae;break e}He=j.return}}var te=s.current;for(He=te;He!==null;){T=He;var se=T.child;if((T.subtreeFlags&2064)!==0&&se!==null)se.return=T,He=se;else e:for(T=te;He!==null;){if(H=He,(H.flags&2048)!==0)try{switch(H.tag){case 0:case 11:case 15:Rd(9,H)}}catch(Ye){Cn(H,H.return,Ye)}if(H===T){He=null;break e}var Ae=H.sibling;if(Ae!==null){Ae.return=H.return,He=Ae;break e}He=H.return}}if(St=x,$o(),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(Hr,s)}catch{}v=!0}return v}finally{_t=p,to.transition=c}}return!1}function qg(s,c,p){c=Dc(p,c),c=tg(s,c,1),s=gi(s,c,1),c=Qr(),s!==null&&(xt(s,1,c),pa(s,c))}function Cn(s,c,p){if(s.tag===3)qg(s,s,p);else for(;c!==null;){if(c.tag===3){qg(c,s,p);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(bi===null||!bi.has(v))){s=Dc(p,s),s=ng(c,s,1),c=gi(c,s,1),s=Qr(),c!==null&&(xt(c,1,s),pa(c,s));break}}c=c.return}}function M9(s,c,p){var v=s.pingCache;v!==null&&v.delete(c),c=Qr(),s.pingedLanes|=s.suspendedLanes&p,sr===s&&(br&p)===p&&(Yn===4||Yn===3&&(br&130023424)===br&&500>Ft()-O1?_l(s,0):F1|=p),pa(s,c)}function Rg(s,c){c===0&&((s.mode&1)===0?c=1:(c=Ba,Ba<<=1,(Ba&130023424)===0&&(Ba=4194304)));var p=Qr();s=Ls(s,c),s!==null&&(xt(s,c,p),pa(s,p))}function L9(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),Rg(s,p)}function I9(s,c){var p=0;switch(s.tag){case 13:var v=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:v=s.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(c),Rg(s,p)}var Pg;Pg=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||fr.current)ua=!0;else{if((s.lanes&p)===0&&(c.flags&128)===0)return ua=!1,j9(s,c,p);ua=(s.flags&131072)!==0}else ua=!1,ln&&(c.flags&1048576)!==0&&_d(c,Z,c.index);switch(c.lanes=0,c.tag){case 2:var v=c.type;Id(s,c),s=c.pendingProps;var x=zs(c,Qn.current);Ac(c,p),x=b1(null,c,v,s,x,p);var j=y1();return c.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,gr(v)?(j=!0,hl(c)):j=!1,c.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,d1(c),x.updater=Md,c.stateNode=x,x._reactInternals=c,k1(c,v,s,p),c=A1(null,c,v,!0,j,p)):(c.tag=0,ln&&j&&t1(c),Zr(null,c,x,p),c=c.child),c;case 16:v=c.elementType;e:{switch(Id(s,c),s=c.pendingProps,x=v._init,v=x(v._payload),c.type=v,x=c.tag=R9(v),s=Eo(v,s),x){case 0:c=$1(null,c,v,s,p);break e;case 1:c=dg(null,c,v,s,p);break e;case 11:c=sg(null,c,v,s,p);break e;case 14:c=ig(null,c,v,Eo(v.type,s),p);break e}throw Error(n(306,v,""))}return c;case 0:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Eo(v,x),$1(s,c,v,x,p);case 1:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Eo(v,x),dg(s,c,v,x,p);case 3:e:{if(pg(c),s===null)throw Error(n(387));v=c.pendingProps,j=c.memoizedState,x=j.element,S4(s,c),Sd(c,v,null,p);var T=c.memoizedState;if(v=T.element,j.isDehydrated)if(j={element:v,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},c.updateQueue.baseState=j,c.memoizedState=j,c.flags&256){x=Dc(Error(n(423)),c),c=mg(s,c,v,p,x);break e}else if(v!==x){x=Dc(Error(n(424)),c),c=mg(s,c,v,p,x);break e}else for(Aa=ko(c.stateNode.containerInfo.firstChild),$a=c,ln=!0,Ao=null,p=k4(c,null,v,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Nc(),v===x){c=qs(s,c,p);break e}Zr(s,c,v,p)}c=c.child}return c;case 5:return E4(c),s===null&&a1(c),v=c.type,x=c.pendingProps,j=s!==null?s.memoizedProps:null,T=x.children,xc(v,x)?T=null:j!==null&&xc(v,j)&&(c.flags|=32),ug(s,c),Zr(s,c,T,p),c.child;case 6:return s===null&&a1(c),null;case 13:return hg(s,c,p);case 4:return p1(c,c.stateNode.containerInfo),v=c.pendingProps,s===null?c.child=Sc(c,null,v,p):Zr(s,c,v,p),c.child;case 11:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Eo(v,x),sg(s,c,v,x,p);case 7:return Zr(s,c,c.pendingProps,p),c.child;case 8:return Zr(s,c,c.pendingProps.children,p),c.child;case 12:return Zr(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(v=c.type._context,x=c.pendingProps,j=c.memoizedProps,T=x.value,Ot(Cd,v._currentValue),v._currentValue=T,j!==null)if(ca(j.value,T)){if(j.children===x.children&&!fr.current){c=qs(s,c,p);break e}}else for(j=c.child,j!==null&&(j.return=c);j!==null;){var H=j.dependencies;if(H!==null){T=j.child;for(var Q=H.firstContext;Q!==null;){if(Q.context===v){if(j.tag===1){Q=Is(-1,p&-p),Q.tag=2;var ie=j.updateQueue;if(ie!==null){ie=ie.shared;var ye=ie.pending;ye===null?Q.next=Q:(Q.next=ye.next,ye.next=Q),ie.pending=Q}}j.lanes|=p,Q=j.alternate,Q!==null&&(Q.lanes|=p),c1(j.return,p,c),H.lanes|=p;break}Q=Q.next}}else if(j.tag===10)T=j.type===c.type?null:j.child;else if(j.tag===18){if(T=j.return,T===null)throw Error(n(341));T.lanes|=p,H=T.alternate,H!==null&&(H.lanes|=p),c1(T,p,c),T=j.sibling}else T=j.child;if(T!==null)T.return=j;else for(T=j;T!==null;){if(T===c){T=null;break}if(j=T.sibling,j!==null){j.return=T.return,T=j;break}T=T.return}j=T}Zr(s,c,x.children,p),c=c.child}return c;case 9:return x=c.type,v=c.pendingProps.children,Ac(c,p),x=Ja(x),v=v(x),c.flags|=1,Zr(s,c,v,p),c.child;case 14:return v=c.type,x=Eo(v,c.pendingProps),x=Eo(v.type,x),ig(s,c,v,x,p);case 15:return lg(s,c,c.type,c.pendingProps,p);case 17:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Eo(v,x),Id(s,c),c.tag=1,gr(v)?(s=!0,hl(c)):s=!1,Ac(c,p),J4(c,v,x),k1(c,v,x,p),A1(null,c,v,!0,s,p);case 19:return gg(s,c,p);case 22:return cg(s,c,p)}throw Error(n(156,c.tag))};function Fg(s,c){return gs(s,c)}function q9(s,c,p,v){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function no(s,c,p,v){return new q9(s,c,p,v)}function Q1(s){return s=s.prototype,!(!s||!s.isReactComponent)}function R9(s){if(typeof s=="function")return Q1(s)?1:0;if(s!=null){if(s=s.$$typeof,s===re)return 11;if(s===ne)return 14}return 2}function wi(s,c){var p=s.alternate;return p===null?(p=no(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Wd(s,c,p,v,x,j){var T=2;if(v=s,typeof s=="function")Q1(s)&&(T=1);else if(typeof s=="string")T=5;else e:switch(s){case F:return jl(p.children,x,j,c);case G:T=8,x|=8;break;case O:return s=no(12,p,c,x|2),s.elementType=O,s.lanes=j,s;case fe:return s=no(13,p,c,x),s.elementType=fe,s.lanes=j,s;case he:return s=no(19,p,c,x),s.elementType=he,s.lanes=j,s;case je:return Zd(p,x,j,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case B:T=10;break e;case W:T=9;break e;case re:T=11;break e;case ne:T=14;break e;case we:T=16,v=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=no(T,p,c,x),c.elementType=s,c.type=v,c.lanes=j,c}function jl(s,c,p,v){return s=no(7,s,v,c),s.lanes=p,s}function Zd(s,c,p,v){return s=no(22,s,v,c),s.elementType=je,s.lanes=p,s.stateNode={isHidden:!1},s}function X1(s,c,p){return s=no(6,s,null,c),s.lanes=p,s}function Y1(s,c,p){return c=no(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function P9(s,c,p,v,x){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Go(0),this.expirationTimes=Go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Go(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function K1(s,c,p,v,x,j,T,H,Q){return s=new P9(s,c,p,H,Q),c===1?(c=1,j===!0&&(c|=8)):c=0,j=no(3,null,null,c),s.current=j,j.stateNode=s,j.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},d1(j),s}function F9(s,c,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:v==null?null:""+v,children:s,containerInfo:c,implementation:p}}function Og(s){if(!s)return So;s=s._reactInternals;e:{if(Or(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(gr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var p=s.type;if(gr(p))return Gu(s,p,c)}return c}function Bg(s,c,p,v,x,j,T,H,Q){return s=K1(p,v,!0,s,x,j,T,H,Q),s.context=Og(null),p=s.current,v=Qr(),x=xi(p),j=Is(v,x),j.callback=c??null,gi(p,j,x),s.current.lanes=x,xt(s,x,v),pa(s,v),s}function Qd(s,c,p,v){var x=c.current,j=Qr(),T=xi(x);return p=Og(p),c.context===null?c.context=p:c.pendingContext=p,c=Is(j,T),c.payload={element:s},v=v===void 0?null:v,v!==null&&(c.callback=v),s=gi(x,c,T),s!==null&&(To(s,x,T,j),Nd(s,x,T)),T}function Xd(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Hg(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function J1(s,c){Hg(s,c),(s=s.alternate)&&Hg(s,c)}function O9(){return null}var Ug=typeof reportError=="function"?reportError:function(s){console.error(s)};function eh(s){this._internalRoot=s}Yd.prototype.render=eh.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));Qd(s,c,null,null)},Yd.prototype.unmount=eh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;xl(function(){Qd(null,s,null,null)}),c[Ya]=null}};function Yd(s){this._internalRoot=s}Yd.prototype.unstable_scheduleHydration=function(s){if(s){var c=ws();s={blockedOn:null,target:s,priority:c};for(var p=0;p<pr.length&&c!==0&&c<pr[p].priority;p++);pr.splice(p,0,s),p===0&&yo(s)}};function th(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Kd(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Vg(){}function B9(s,c,p,v,x){if(x){if(typeof v=="function"){var j=v;v=function(){var ie=Xd(T);j.call(ie)}}var T=Bg(c,v,s,0,null,!1,!1,"",Vg);return s._reactRootContainer=T,s[Ya]=T.current,di(s.nodeType===8?s.parentNode:s),xl(),T}for(;x=s.lastChild;)s.removeChild(x);if(typeof v=="function"){var H=v;v=function(){var ie=Xd(Q);H.call(ie)}}var Q=K1(s,0,!1,null,null,!1,!1,"",Vg);return s._reactRootContainer=Q,s[Ya]=Q.current,di(s.nodeType===8?s.parentNode:s),xl(function(){Qd(c,Q,p,v)}),Q}function Jd(s,c,p,v,x){var j=p._reactRootContainer;if(j){var T=j;if(typeof x=="function"){var H=x;x=function(){var Q=Xd(T);H.call(Q)}}Qd(c,T,s,x)}else T=B9(p,c,s,x,v);return Xd(T)}Wo=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var p=Ha(c.pendingLanes);p!==0&&(Zi(c,p|1),pa(c,Ft()),(St&6)===0&&(Mc=Ft()+500,$o()))}break;case 13:xl(function(){var v=Ls(s,1);if(v!==null){var x=Qr();To(v,s,1,x)}}),J1(s,1)}},ni=function(s){if(s.tag===13){var c=Ls(s,134217728);if(c!==null){var p=Qr();To(c,s,134217728,p)}J1(s,134217728)}},_s=function(s){if(s.tag===13){var c=xi(s),p=Ls(s,c);if(p!==null){var v=Qr();To(p,s,c,v)}J1(s,c)}},ws=function(){return _t},Zo=function(s,c){var p=_t;try{return _t=s,c()}finally{_t=p}},Fr=function(s,c,p){switch(c){case"input":if(wr(s,p),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<p.length;c++){var v=p[c];if(v!==s&&v.form===s.form){var x=pl(v);if(!x)throw Error(n(90));Kt(v),wr(v,x)}}}break;case"textarea":hn(s,p);break;case"select":c=p.value,c!=null&&An(s,!!p.multiple,c,!1)}},xa=G1,_a=xl;var H9={usingClientEntryPoint:!1,Events:[hi,Es,pl,Bi,Hi,G1]},l0={findFiberByHostInstance:Xo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},U9={bundleType:l0.bundleType,version:l0.version,rendererPackageName:l0.rendererPackageName,rendererConfig:l0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Vi(s),s===null?null:s.stateNode},findFiberByHostInstance:l0.findFiberByHostInstance||O9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ep=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ep.isDisabled&&ep.supportsFiber)try{Hr=ep.inject(U9),Fn=ep}catch{}}return ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H9,ma.createPortal=function(s,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!th(c))throw Error(n(200));return F9(s,c,null,p)},ma.createRoot=function(s,c){if(!th(s))throw Error(n(299));var p=!1,v="",x=Ug;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onRecoverableError!==void 0&&(x=c.onRecoverableError)),c=K1(s,1,!1,null,null,p,!1,v,x),s[Ya]=c.current,di(s.nodeType===8?s.parentNode:s),new eh(c)},ma.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Vi(c),s=s===null?null:s.stateNode,s},ma.flushSync=function(s){return xl(s)},ma.hydrate=function(s,c,p){if(!Kd(c))throw Error(n(200));return Jd(null,s,c,!0,p)},ma.hydrateRoot=function(s,c,p){if(!th(s))throw Error(n(405));var v=p!=null&&p.hydratedSources||null,x=!1,j="",T=Ug;if(p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(j=p.identifierPrefix),p.onRecoverableError!==void 0&&(T=p.onRecoverableError)),c=Bg(c,null,s,1,p??null,x,!1,j,T),s[Ya]=c.current,di(s),v)for(s=0;s<v.length;s++)p=v[s],x=p._getVersion,x=x(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,x]:c.mutableSourceEagerHydrationData.push(p,x);return new Yd(c)},ma.render=function(s,c,p){if(!Kd(c))throw Error(n(200));return Jd(null,s,c,!1,p)},ma.unmountComponentAtNode=function(s){if(!Kd(s))throw Error(n(40));return s._reactRootContainer?(xl(function(){Jd(null,null,s,!1,function(){s._reactRootContainer=null,s[Ya]=null})}),!0):!1},ma.unstable_batchedUpdates=G1,ma.unstable_renderSubtreeIntoContainer=function(s,c,p,v){if(!Kd(p))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Jd(s,c,p,!1,v)},ma.version="18.3.1-next-f1338f8080-20240426",ma}var t3;function f6(){if(t3)return sh.exports;t3=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(),sh.exports=ty(),sh.exports}var n3;function ny(){if(n3)return tp;n3=1;var e=f6();return tp.createRoot=e.createRoot,tp.hydrateRoot=e.hydrateRoot,tp}var ry=ny();function ay(e){if(Array.isArray(e))return e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const n=t;if(typeof n.nombre!="string"||typeof n.modificado!="number")return[];const r=Array.isArray(n.ficheros)?n.ficheros.filter(i=>typeof i=="string"):[],a=sy(n.tareas),l=n.plan;return[{nombre:n.nombre,ficheros:r,...a===void 0?{}:{tareas:a},...l!=null&&typeof l.texto=="string"?{plan:{texto:l.texto,recortado:l.recortado===!0}}:{},modificado:n.modificado}]})}const oy=["pendiente","en-curso","implementada","finalizada"];function sy(e){if(typeof e!="object"||e===null)return;const t=e;if(!Array.isArray(t.tareas))return;const n=t.tareas.flatMap(r=>{if(typeof r!="object"||r===null)return[];const a=r,l=a.criterios;return typeof a.numero!="string"||typeof a.titulo!="string"||typeof a.cuerpo!="string"?[]:l==null||typeof l.hechos!="number"||typeof l.total!="number"?[]:[{numero:a.numero,titulo:a.titulo,...typeof a.estado=="string"?{estado:a.estado}:{},bloqueadaPor:Array.isArray(a.bloqueadaPor)?a.bloqueadaPor.filter(i=>typeof i=="string"):[],...typeof a.bloqueadaPorTexto=="string"?{bloqueadaPorTexto:a.bloqueadaPorTexto}:{},criterios:{hechos:l.hechos,total:l.total},...oy.includes(a.progreso)?{progreso:a.progreso}:{},cuerpo:a.cuerpo}]});return{...typeof t.titulo=="string"?{titulo:t.titulo}:{},tareas:n}}const x2=["por-hacer","en-curso","terminada"],Sn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),iy=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function ly(e){if(!Sn(e))return{};const t=uy(e.estado),n=hy(e.sitios),r=fy(e.proyectos),a=dy(e.busqueda),l=my(e.descripcion),i=vy(e.pendientes),u=by(e.ficha),d=yy(e.borrador),m=_y(e.transiciones),f=wy(e.cierre),h=jy(e.cerrado),b=Cy(e.error);return{...t===void 0?{}:{estado:t},...n===void 0?{}:{sitios:n},...r===void 0?{}:{proyectos:r},...a===void 0?{}:{busqueda:a},...l===void 0?{}:{descripcion:l},...i===void 0?{}:{pendientes:i},...u===void 0?{}:{ficha:u},...d===void 0?{}:{borrador:d},...m===void 0?{}:{transiciones:m},...f===void 0?{}:{cierre:f},...h===void 0?{}:{cerrado:h},...b===void 0?{}:{error:b}}}function cy(e){if(Sn(e)&&!(typeof e.conector!="string"||typeof e.sitio!="string"||typeof e.proyecto!="string"))return{conector:e.conector,sitio:e.sitio,proyecto:e.proyecto,...typeof e.nombreDelSitio=="string"?{nombreDelSitio:e.nombreDelSitio}:{},...typeof e.nombreDelProyecto=="string"?{nombreDelProyecto:e.nombreDelProyecto}:{}}}function uy(e){if(!Sn(e)||!Array.isArray(e.conectores))return;const t=cy(e.vinculo);if(!(e.vinculo!==void 0&&t===void 0))return{conectores:iy(e.conectores),...t===void 0?{}:{vinculo:t},...typeof e.admiteMias=="boolean"?{admiteMias:e.admiteMias}:{}}}function dy(e){if(!Sn(e)||typeof e.conector!="string"||typeof e.texto!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.proyecto=="string"&&typeof n.nombre=="string"?[{proyecto:n.proyecto,nombre:n.nombre,...typeof n.ruta=="string"?{ruta:n.ruta}:{}}]:[]);return{conector:e.conector,texto:e.texto,lista:t}}function py(e){if(!Sn(e)||typeof e.proyecto!="string"||typeof e.nombre!="string"||typeof e.titulo!="string")return;const t=e.estado;if(!Sn(t)||typeof t.propiedad!="string"||!Array.isArray(t.opciones))return;const n=t.opciones.flatMap(r=>Sn(r)&&typeof r.nombre=="string"&&x2.includes(r.categoria)?[{nombre:r.nombre,categoria:r.categoria}]:[]);if(n.length===t.opciones.length)return{proyecto:e.proyecto,nombre:e.nombre,estado:{propiedad:t.propiedad,opciones:n},titulo:e.titulo,...typeof e.asignado=="string"?{asignado:e.asignado}:{},...typeof e.fuentes=="number"?{fuentes:e.fuentes}:{}}}function my(e){if(!Sn(e)||typeof e.conector!="string"||typeof e.pedido!="string")return;const t={conector:e.conector,pedido:e.pedido};if(e.esquema!==void 0&&e.motivo!==void 0)return;if(typeof e.motivo=="string")return{...t,motivo:e.motivo};const n=py(e.esquema);return n===void 0?void 0:{...t,esquema:n}}function hy(e){if(!Sn(e)||typeof e.conector!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.id=="string"&&typeof n.nombre=="string"?[{id:n.id,nombre:n.nombre}]:[]);return{conector:e.conector,lista:t}}function fy(e){if(!Sn(e)||typeof e.sitio!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>Sn(n)&&typeof n.clave=="string"&&typeof n.nombre=="string"?[{clave:n.clave,nombre:n.nombre}]:[]);return{sitio:e.sitio,lista:t}}function gy(e){return Sn(e)?typeof e.clave!="string"||typeof e.titulo!="string"||typeof e.estado!="string"?[]:x2.includes(e.categoria)?[{clave:e.clave,...typeof e.etiqueta=="string"?{etiqueta:e.etiqueta}:{},titulo:e.titulo,estado:e.estado,categoria:e.categoria,...typeof e.asignado=="string"?{asignado:e.asignado}:{},...typeof e.url=="string"&&/^https?:\/\//i.test(e.url)?{url:e.url}:{}}]:[]:[]}function vy(e){if(!(!Sn(e)||typeof e.cuando!="number"||!Array.isArray(e.lista)))return{cuando:e.cuando,...typeof e.texto=="string"?{texto:e.texto}:{},...e.mias===!0?{mias:!0}:{},lista:e.lista.flatMap(gy)}}function by(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.descripcion!="string"))return{clave:e.clave,descripcion:e.descripcion}}function yy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.texto!="string"))return{clave:e.clave,texto:e.texto}}function xy(e){return Sn(e)?typeof e.id!="string"||typeof e.nombre!="string"||typeof e.destino!="string"?[]:x2.includes(e.categoria)?[{id:e.id,nombre:e.nombre,destino:e.destino,categoria:e.categoria}]:[]:[]}function _y(e){if(!(!Sn(e)||typeof e.clave!="string"||e.para!=="empezar"&&e.para!=="cerrar"||!Array.isArray(e.lista)))return{clave:e.clave,para:e.para,lista:e.lista.flatMap(xy),...typeof e.propuesta=="string"?{propuesta:e.propuesta}:{}}}function wy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.comentario!="string"))return{clave:e.clave,comentario:e.comentario}}function jy(e){if(!(!Sn(e)||typeof e.clave!="string"||typeof e.comento!="boolean"))return{clave:e.clave,comento:e.comento,...typeof e.transicion=="string"?{transicion:e.transicion}:{},...typeof e.falloDeTransicion=="string"?{falloDeTransicion:e.falloDeTransicion}:{}}}function Cy(e){if(!(!Sn(e)||typeof e.accion!="string"||typeof e.motivo!="string"))return{accion:e.accion,motivo:e.motivo,...typeof e.clave=="string"?{clave:e.clave}:{},...typeof e.texto=="string"?{texto:e.texto}:{},...typeof e.pedido=="string"?{pedido:e.pedido}:{}}}function ky(e){if(Array.isArray(e))return e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const n=t;return typeof n.nombre!="string"?[]:n.estado!=="nueva"&&n.estado!=="borrada"&&n.estado!=="modificada"?[]:[{nombre:n.nombre,estado:n.estado,campos:u0(n.campos,r=>{const{cambio:a,nombre:l,antes:i,ahora:u}=r;if(!(a!=="nuevo"&&a!=="borrado"&&a!=="tipo"||typeof l!="string"))return{cambio:a,nombre:l,...typeof i=="string"?{antes:i}:{},...typeof u=="string"?{ahora:u}:{}}}),referencias:u0(n.referencias,r=>{const{cambio:a,desde:l,por:i,hacia:u}=r;if(!(!g6(a)||typeof l!="string"||typeof i!="string"||typeof u!="string"))return{cambio:a,desde:l,por:i,hacia:u}}),eventos:u0(n.eventos,ch),nodos:u0(n.nodos,ch),conexiones:u0(n.conexiones,ch)}]})}function g6(e){return e==="nuevo"||e==="borrado"}function ch(e){return g6(e.cambio)&&typeof e.nombre=="string"?{cambio:e.cambio,nombre:e.nombre}:void 0}function u0(e,t){return Array.isArray(e)?e.flatMap(n=>{if(typeof n!="object"||n===null)return[];const r=t(n);return r===void 0?[]:[r]}):[]}function Ny(e){if(typeof e!="object"||e===null)return;const t=e;return!Array.isArray(t.colecciones)||typeof t.total!="number"?void 0:{colecciones:t.colecciones.flatMap(r=>{const a=Sy(r);return a===void 0?[]:[a]}),total:t.total,entrada:j0(t.entrada),login:j0(t.login),rotas:df(t.rotas)}}function Sy(e){if(typeof e!="object"||e===null)return;const t=e;if(typeof t.nombre!="string"||typeof t.fichero!="string")return;const n=Array.isArray(t.campos)?t.campos.flatMap(r=>{if(typeof r!="object"||r===null)return[];const{nombre:a,tipo:l}=r;return typeof a!="string"?[]:[{nombre:a,...typeof l=="string"?{tipo:l}:{}}]}):[];return{nombre:t.nombre,fichero:t.fichero,campos:n,eventos:j0(t.eventos),nodos:j0(t.nodos),conexiones:j0(t.conexiones),apuntaA:df(t.apuntaA),leApuntan:df(t.leApuntan)}}function j0(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function df(e){return Array.isArray(e)?e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const{desde:n,por:r,hacia:a,fichero:l}=t;return typeof n!="string"||typeof r!="string"||typeof a!="string"||typeof l!="string"?[]:[{desde:n,por:r,hacia:a,fichero:l}]}):[]}function $y(e){return e.por==="script"?"script":e.por==="mencion"?"mencion":"resuelta"}const Ay=["claude-code","codex","opencode"],Ey=["ok","no-encontrado","fallo"],Dy=["unico","sin-ejecucion","con-ejecucion"],zy=["esperando","hecho","fallo","cancelado"];function zp(e,t){return e.find(n=>n===t)}function Ty(e){if(typeof e!="object"||e===null)return;const t=e,n=zp(Dy,t.camino);if(!(n===void 0||typeof t.ok!="boolean"||typeof t.detalle!="string")&&!(typeof t.ms!="number"||typeof t.medido!="string"))return{camino:n,ok:t.ok,detalle:t.detalle,ms:t.ms,medido:t.medido}}function My(e){if(typeof e!="object"||e===null)return;const t=e,n=zp(zy,t.fase);if(!(n===void 0||typeof t.desde!="string"))return{fase:n,desde:t.desde,...t.pideCodigo===!0?{pideCodigo:!0}:{},...typeof t.detalle=="string"?{detalle:t.detalle}:{}}}function Ly(e){if(typeof e!="object"||e===null)return;const t=e,n=zp(Ay,t.motor),r=zp(Ey,t.instalado);if(n===void 0||r===void 0||typeof t.medido!="string")return;const a=Array.isArray(t.pruebas)?t.pruebas.map(Ty).filter(i=>i!==void 0):void 0,l=My(t.login);return{motor:n,instalado:r,medido:t.medido,...typeof t.version=="string"?{version:t.version}:{},...typeof t.detalle=="string"?{detalle:t.detalle}:{},...typeof t.conSesion=="boolean"?{conSesion:t.conSesion}:{},...typeof t.sesion=="string"?{sesion:t.sesion}:{},...t.conClave===!0?{conClave:!0}:{},...a===void 0?{}:{pruebas:a},...t.probando===!0?{probando:!0}:{},...l===void 0?{}:{login:l},...t.admiteLogin===!0?{admiteLogin:!0}:{},...t.admiteConsola===!0?{admiteConsola:!0}:{},...t.admiteModelo===!0?{admiteModelo:!0}:{},...typeof t.modelo=="string"&&t.modelo!==""?{modelo:t.modelo}:{}}}function Iy(e){if(Array.isArray(e))return e.map(Ly).filter(t=>t!==void 0)}const pf=/^[A-Za-z0-9._][A-Za-z0-9._-]*$/,r3=64,np={desde:5554,hasta:5585};function qy(e,t,n){if(!Number.isInteger(e)||e<1024||e>65535)return"el puerto tiene que ser un número entero entre 1024 y 65535";if(e>=np.desde&&e<=np.hasta)return`del ${np.desde} al ${np.hasta} los usan los propios emuladores`;for(const[r,a]of Object.entries((n==null?void 0:n.avds)??{}))if(r!==t&&a.puerto===e)return`el ${e} ya es de ${r}`}function v6(e,t){if(e==="")return"falta el nombre";if(e.length>r3)return`el nombre no puede pasar de ${r3} caracteres`;if(!pf.test(e))return"solo letras, números, «.», «_» y «-», y sin empezar por «-»";if(t.includes(e))return`${e} ya existe`}function Ry(e,t,n){if(t.length<=1)return"es el único: siempre tiene que quedar al menos uno";if(n.includes(e))return"apágalo para eliminarlo"}const uh="abcdefghijklmnopqrstuvwxyz0123456789",a3=4;function Py(e,t,n=Math.random){const r=e.slice(0,64-a3-1);for(let a=0;;a++){let l="";for(let u=0;u<a3;u++)l+=uh[Math.floor(n()*uh.length)%uh.length];const i=`${r}-${l}`;if(v6(i,t)===void 0||a>=50)return i}}function b6(e){return e==="ninguna"||e==="oauth"||e==="api-key"}const Fy="(sin desglose)",Oy=["comprobando","empaquetando","subiendo","reiniciando","lanzando","comprobando-arranque"],By=["corriendo","ok","fallo","cancelada","colgada"],Hy={nuevo:["en-proceso","requiere-atencion"],"en-proceso":["terminada","requiere-atencion"],"requiere-atencion":["nuevo","terminada"],terminada:[]};function Uy(e,t){if(e.estado!=="nuevo")return!1;if(e.tras===void 0)return!0;const n=t.find(r=>r.id===e.tras);return n===void 0||n.estado==="terminada"}const Vy=["low","medium","high","xhigh","max"],y6=["android","androidEmulador","ios","iosSimulador"];function Tp(e,t){return(e==null?void 0:e[t])!==!1}function Gy(e){if(typeof e!="object"||e===null)return;const t={};for(const[n,r]of Object.entries(e)){if(!pf.test(n)||typeof r!="object"||r===null)continue;const a=r,l={};typeof a.puerto=="number"&&Number.isInteger(a.puerto)&&a.puerto>=1024&&a.puerto<=65535&&(l.puerto=a.puerto),a.sinVentana===!0&&(l.sinVentana=!0),typeof a.copiaDe=="string"&&pf.test(a.copiaDe)&&(l.copiaDe=a.copiaDe,a.clon===!0&&(l.clon=!0)),Object.keys(l).length>0&&(t[n]=l)}return Object.keys(t).length===0?void 0:t}function Wy(e){if(typeof e!="object"||e===null)return{};const t=e,n={};for(const a of y6)typeof t[a]=="boolean"&&(n[a]=t[a]);const r=Gy(t.avds);return r!==void 0&&(n.avds=r),n}function dh(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.nombre=="string"&&(t.plataforma==="android"||t.plataforma==="ios")&&(t.clase==="emulador"||t.clase==="simulador"||t.clase==="fisico")}function Zy(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.ficheros)&&t.ficheros.length>0&&t.ficheros.every(n=>typeof n=="string")&&typeof t.total=="number"}const Qy={actos:[],conectado:!1},Xy=new Set(["cuenta","entorno","proyecto"]),Yy={usuario:!0,asistente:!0,razonamiento:!0,herramientas:!0,sistema:!0,artefacto:!0,consulta:!0,"propuesta-de-tareas":!0,"propuesta-resuelta":!0,fase:!0,fin:!0,sincronizacion:!0,error:!0,verificacion:!0};function rp(e){return typeof e=="object"&&e!==null&&"tipo"in e&&typeof e.tipo=="string"&&e.tipo in Yy}function Ky(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.titulo=="string"&&Array.isArray(t.opciones)&&t.opciones.every(n=>typeof n=="object"&&n!==null&&typeof n.id=="string"&&typeof n.etiqueta=="string")}function Jy(e){if(typeof e!="object"||e===null)return!1;const t=e.lineas;return Array.isArray(t)&&t.every(ex)}function ex(e){return typeof e!="object"||e===null?!1:typeof e.texto=="string"}function tx(e){return e==="nuevo"||e==="modificado"||e==="borrado"?e:void 0}function nx(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&typeof t.motor=="string"&&typeof t.soloLectura=="boolean"&&Array.isArray(t.skills)&&typeof t.instrucciones=="string"}function rx(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&(t.origen==="serie"||t.origen==="global"||t.origen==="proyecto")&&typeof t.tokens=="number"&&Array.isArray(t.ficheros)}function ax(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&b6(t.autenticacion)}function ox(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&(t.estado==="sin-autorizacion"||t.estado==="falta-autorizar"||t.estado==="autorizado")}function sx(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"}function ix(e){const t=e;if(!(typeof t!="object"||t===null||typeof t.cuando!="number")){if(t.ok===!0&&Array.isArray(t.tools))return{cuando:t.cuando,ok:!0,tools:t.tools.filter(sx).map(n=>({nombre:n.nombre,...typeof n.descripcion=="string"?{descripcion:n.descripcion}:{},...typeof n.soloLectura=="boolean"?{soloLectura:n.soloLectura}:{}}))};if(t.ok===!1&&typeof t.motivo=="string")return{cuando:t.cuando,ok:!1,motivo:t.motivo}}}function lx(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.id!="string"||typeof t.nombre!="string"||t.credencial!=="puesta"&&t.credencial!=="falta"&&t.credencial!=="nativa"||t.error!==void 0&&typeof t.error!="string"||t.personalizado!==void 0&&typeof t.personalizado!="boolean"||t.baseUrl!==void 0&&typeof t.baseUrl!="string"||t.enFichero!==void 0&&typeof t.enFichero!="boolean"||t.modelos!==void 0&&(!Array.isArray(t.modelos)||!t.modelos.every(n=>typeof n=="object"&&n!==null&&typeof n.id=="string")))}function o3(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.ruta!="string"||t.clase!=="nuevo"&&t.clase!=="modificado"&&t.clase!=="borrado"||t.mas!==void 0&&typeof t.mas!="number"||t.menos!==void 0&&typeof t.menos!="number"||t.sinCommitear!==void 0&&t.sinCommitear!==!0)}function cx(e){if(typeof e!="object"||e===null)return{};const t=e;return t.veredicto!=="verde"&&t.veredicto!=="rojo"&&t.veredicto!=="indeterminado"?{}:typeof t.resumen!="string"?{}:{veredicto:{veredicto:t.veredicto,resumen:t.resumen,...Array.isArray(t.hallazgos)?{hallazgos:t.hallazgos.filter(n=>typeof n=="string")}:{},...typeof t.salvedad=="string"?{salvedad:t.salvedad}:{}}}}function Cp(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function E0(e){const t=typeof e=="object"&&e!==null?e:{};return{entrada:Cp(t.entrada),salida:Cp(t.salida),cache:Cp(t.cache)}}function x6(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t={};for(const[n,r]of Object.entries(e)){if(typeof r!="object"||r===null)continue;const a=r.cuenta;a!=="modelo"&&a!=="externo"||(t[n]={cuenta:a,...E0(r)})}return Object.keys(t).length===0?void 0:t}function ux(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t=e,n=x6(t.porModelo);return{modelo:E0(t.modelo),externo:E0(t.externo),...n===void 0?{}:{porModelo:n}}}function dx(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.titulo=="string")}function ap(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string")}function s3(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function px(){let e=Qy;const t=[],n=r=>{e={...e,...r};for(const a of t)a()};return{leer:()=>e,aplicar(r){var l,i,u,d,m,f,h,b,y;if(typeof r!="object"||r===null||!("clase"in r))return;switch(r.clase){case"acto":{const g=r.acto;if(!rp(g))return;n({actos:[...e.actos,g]});return}case"sustitucion":{const g=r.acto;if(!rp(g))return;n({actos:e.actos.length===0?[g]:[...e.actos.slice(0,-1),g]});return}case"reemision":{const g=r.actos;if(!Array.isArray(g)||!g.every(rp))return;n({actos:[...g]});return}case"mirada":{const g=r,_=g.tarea,C=g.via,k=g.actos;if(typeof _!="string"||_===""||!Array.isArray(k)||!k.every(rp))return;if(C==="todos"){n({mirada:{tarea:_,actos:[...k]}});return}const S=e.mirada;if(S===void 0||S.tarea!==_)return;if(C==="alta"){n({mirada:{tarea:_,actos:[...S.actos,...k]}});return}if(C!=="sustitucion")return;n({mirada:{tarea:_,actos:S.actos.length===0?[...k]:[...S.actos.slice(0,-1),...k]}});return}case"bienvenida":{const g=r.nombre;n({nombre:typeof g=="string"?g:void 0});return}case"pregunta":{const g=r;if(typeof g.texto!="string")return;n({pregunta:{texto:g.texto,...Jy(g.decision)?{decision:{lineas:g.decision.lineas.map(_=>{const C=tx(_.cambio);return{texto:_.texto,...C===void 0?{}:{cambio:C},...typeof _.ruta=="string"?{ruta:_.ruta}:{}}}),...g.decision.seleccionable===!0?{seleccionable:!0}:{},...g.decision.operacion==="subir"||g.decision.operacion==="bajar"?{operacion:g.decision.operacion}:{}}}:{}}});return}case"selector":{const g=r.selector;if(!Ky(g))return;n({selector:{titulo:g.titulo,opciones:[...g.opciones],...typeof g.aviso=="string"?{aviso:g.aviso}:{}}});return}case"proyectosDeEntorno":{const g=r;if(typeof g.entorno!="string")return;const _=Array.isArray(g.proyectos)?g.proyectos.filter(C=>typeof C=="object"&&C!==null&&typeof C.id=="string"&&typeof C.nombre=="string").map(C=>({id:C.id,nombre:C.nombre,...typeof C.compartido=="boolean"?{compartido:C.compartido}:{},...typeof C.ultimoAcceso=="string"?{ultimoAcceso:C.ultimoAcceso}:{}})):void 0;n({proyectosPorEntorno:{...e.proyectosPorEntorno??{},[g.entorno]:{..._===void 0?{}:{proyectos:_},...typeof g.error=="string"?{error:g.error}:{}}}});return}case"modelos":{const g=r;if(!Array.isArray(g.proveedores))return;const _=g.esfuerzo,C=Array.isArray(_==null?void 0:_.niveles)?_.niveles.filter(A=>typeof A=="string"&&Vy.includes(A)):[],k=C.length===0?void 0:{niveles:C,...typeof(_==null?void 0:_.actual)=="string"&&C.includes(_.actual)?{actual:_.actual}:{},...typeof(_==null?void 0:_.nota)=="string"?{nota:_.nota}:{}},S=g.proveedores.filter(lx).map(A=>({id:A.id,nombre:A.nombre,credencial:A.credencial,...A.personalizado===void 0?{}:{personalizado:A.personalizado},...A.baseUrl===void 0?{}:{baseUrl:A.baseUrl},...A.enFichero===void 0?{}:{enFichero:A.enFichero},...A.modelos===void 0?{}:{modelos:[...A.modelos]},...A.error===void 0?{}:{error:A.error}}));n({modelos:{...typeof g.actual=="string"?{actual:g.actual}:{},...typeof g.porDefecto=="string"?{porDefecto:g.porDefecto}:{},proveedores:S,...k===void 0?{}:{esfuerzo:k}}});return}case"proveedor":{const g=r;if(typeof g.hecho!="boolean")return;n({proveedor:{hecho:g.hecho,...typeof g.motivo=="string"?{motivo:g.motivo}:{}}});return}case"dispositivos":{const g=r,_=g.arranque,C=typeof _=="object"&&_!==null&&typeof _.avd=="string"&&typeof _.ok=="boolean"&&typeof _.detalle=="string"?_:void 0,k=g.informe;if(k==null||typeof k!="object"||!Array.isArray(k.herramientas)||!Array.isArray(k.dispositivos)||!Array.isArray(k.avds)||typeof k.sistema!="string"||typeof k.medido!="string")return;n({dispositivos:{sistema:k.sistema,medido:k.medido,avds:k.avds.filter(S=>typeof S=="string"),recetas:(Array.isArray(k.recetas)?k.recetas:[]).filter(S=>typeof S=="object"&&S!==null&&typeof S.id=="string"&&Array.isArray(S.pasos)).map(S=>({id:S.id,plataforma:S.plataforma,titulo:String(S.titulo??""),descripcion:String(S.descripcion??""),completa:S.completa===!0,...typeof S.aparte=="object"&&S.aparte!==null&&typeof S.aparte.titulo=="string"&&Array.isArray(S.aparte.comandos)?{aparte:{titulo:S.aparte.titulo,comandos:S.aparte.comandos.filter(A=>typeof A=="string"),...typeof S.aparte.nota=="string"?{nota:S.aparte.nota}:{}}}:{},despues:String(S.despues??""),pasos:S.pasos.filter(A=>typeof A=="object"&&A!==null&&typeof A.titulo=="string"&&Array.isArray(A.comandos)).map(A=>({titulo:A.titulo,comandos:A.comandos.filter(I=>typeof I=="string"),hecho:A.hecho===!0,ejecutable:A.ejecutable===!0,...typeof A.nota=="string"?{nota:A.nota}:{},...typeof A.porQueNo=="string"?{porQueNo:A.porQueNo}:{},...typeof A.acepta=="string"?{acepta:A.acepta}:{},...typeof A.repetir=="object"&&A.repetir!==null&&typeof A.repetir.etiqueta=="string"&&typeof A.repetir.porQue=="string"?{repetir:{etiqueta:A.repetir.etiqueta,porQue:A.repetir.porQue}}:{}}))})),herramientas:k.herramientas.filter(S=>typeof S=="object"&&S!==null&&typeof S.nombre=="string"&&typeof S.estado=="string").map(S=>({nombre:S.nombre,plataforma:S.plataforma,estado:S.estado,...typeof S.ruta=="string"?{ruta:S.ruta}:{},...S.detalle===void 0?{}:{detalle:S.detalle},...typeof S.instalar=="object"&&S.instalar!==null&&typeof S.instalar.comando=="string"?{instalar:{comando:S.instalar.comando,automatico:S.instalar.automatico===!0}}:{}})),dispositivos:k.dispositivos.filter(S=>typeof S=="object"&&S!==null&&typeof S.id=="string"&&typeof S.nombre=="string"&&typeof S.estado=="string").map(S=>({id:S.id,nombre:S.nombre,plataforma:S.plataforma,clase:S.clase,estado:S.estado,...typeof S.avd=="string"?{avd:S.avd}:{},...S.detalle===void 0?{}:{detalle:S.detalle},...typeof S.verificado=="object"&&S.verificado!==null&&typeof S.verificado.detalle=="string"&&typeof S.verificado.medido=="string"?{verificado:{ok:S.verificado.ok===!0,detalle:S.verificado.detalle,medido:S.verificado.medido}}:{}}))},ajustesDeDispositivos:Wy(g.ajustes),arranqueDeEmulador:C,enUsoDeDispositivos:Array.isArray(g.enUso)?g.enUso.filter(S=>typeof S=="object"&&S!==null&&typeof S.id=="string"&&typeof S.proyecto=="string").map(S=>({id:S.id,proyecto:S.proyecto})):void 0});return}case"agentes":{const g=r;if(!Array.isArray(g.agentes))return;n({agentes:{lista:g.agentes.filter(nx).map(_=>({nombre:_.nombre,descripcion:_.descripcion,motor:_.motor,..._.modelo===void 0?{}:{modelo:_.modelo},soloLectura:_.soloLectura,..._.ejecucion===!0?{ejecucion:!0}:{},skills:[..._.skills],instrucciones:_.instrucciones,..._.origen===void 0?{}:{origen:_.origen},..._.semilla==="intacta"||_.semilla==="modificada"?{semilla:_.semilla}:{}})),problemas:Array.isArray(g.problemas)?g.problemas.filter(_=>typeof _=="string"):[]}});return}case"skills":{const g=r;if(!Array.isArray(g.skills))return;n({skills:{lista:g.skills.filter(rx).map(_=>({nombre:_.nombre,descripcion:_.descripcion,origen:_.origen,tokens:_.tokens,ficheros:[..._.ficheros],...typeof _.frontmatter=="string"?{frontmatter:_.frontmatter}:{},...typeof _.cuerpo=="string"?{cuerpo:_.cuerpo}:{}})),problemas:Array.isArray(g.problemas)?g.problemas.filter(_=>typeof _=="string"):[]}});return}case"conectores":{const g=r;if(!Array.isArray(g.catalogo)||!Array.isArray(g.conectores))return;n({conectores:{catalogo:g.catalogo.filter(ax).map(_=>({id:_.id,nombre:_.nombre,descripcion:_.descripcion,autenticacion:_.autenticacion})),conectores:g.conectores.filter(ox).map(_=>{const C=ix(_.prueba);return{id:_.id,estado:_.estado,...C===void 0?{}:{prueba:C},..._.autorizando===!0?{autorizando:!0}:{}}}),desconocidos:Array.isArray(g.desconocidos)?g.desconocidos.filter(_=>typeof _=="string"):[],...g.ilegible===!0?{ilegible:!0}:{},...typeof g.error=="string"?{error:g.error}:{}}});return}case"cuerpoDeSkill":{const g=r;if(typeof g.nombre!="string")return;n({cuerposDeSkill:{...e.cuerposDeSkill??{},[g.nombre]:typeof g.cuerpo=="string"?g.cuerpo:void 0}});return}case"tarea":{const g=r;if(g.accion!=="augmentado")return;typeof g.encargo=="string"?n({encargoPropuesto:{encargo:g.encargo}}):typeof g.error=="string"&&n({encargoPropuesto:{error:g.error}});return}case"workspace":{const g=r;if(typeof g.ruta!="string")return;n({workspace:g.ruta,puedeElegirCarpeta:g.puedeElegir===!0});return}case"depuracion":{const g=r;if(typeof g.activa!="boolean")return;n({depuracionActiva:g.activa});return}case"modoPorDefecto":{const g=r;if(g.modo!=="supervisado"&&g.modo!=="autonomo")return;n({modoPorDefecto:g.modo});return}case"mudanzaDeWorkspace":{const g=r,_=g.progreso,C=g.resultado;if(typeof _=="object"&&_!==null&&["comprobar","copiar","verificar","borrar"].includes(_.fase)){const A={fase:_.fase};typeof _.proyecto=="string"&&(A.proyecto=_.proyecto),typeof _.entorno=="string"&&(A.entorno=_.entorno),typeof _.indice=="number"&&(A.indice=_.indice),typeof _.total=="number"&&(A.total=_.total),n({mudanzaDeWorkspace:{progreso:A}});return}const S=A=>Array.isArray(A)?A.filter(I=>typeof I=="string"):[];typeof C=="object"&&C!==null&&C.estado==="hecho"&&typeof C.mudadas=="number"?n({mudanzaDeWorkspace:{resultado:{estado:"hecho",mudadas:C.mudadas,restos:S(C.restos),avisos:S(C.avisos)}}}):typeof C=="object"&&C!==null&&C.estado==="rechazado"&&typeof C.motivo=="string"&&n({mudanzaDeWorkspace:{resultado:{estado:"rechazado",motivo:C.motivo}}});return}case"carpetaElegida":{const g=r,_=typeof g.ruta=="string"?g.ruta:void 0,C=(((l=e.carpetaElegida)==null?void 0:l.n)??0)+1;n({carpetaElegida:_===void 0?{n:C}:{n:C,ruta:_}});return}case"tareas":{const g=r;if(!Array.isArray(g.lista))return;const _=["nuevo","en-proceso","requiere-atencion","terminada"];n({tareas:{concurrencia:typeof g.concurrencia=="number"?g.concurrencia:2,corriendoAqui:g.corriendoAqui===!0,...typeof g.ejecutaOtroProceso=="boolean"?{ejecutaOtroProceso:g.ejecutaOtroProceso}:{},lista:g.lista.filter(C=>typeof C=="object"&&C!==null).map(C=>({id:String(C.id??""),proyecto:String(C.proyecto??""),proyectoNombre:String(C.proyectoNombre??""),titulo:String(C.titulo??""),peticion:String(C.peticion??""),encargo:String(C.encargo??""),estado:_.find(k=>k===C.estado)??"nuevo",creada:String(C.creada??""),adjuntos:Array.isArray(C.adjuntos)?C.adjuntos.filter(k=>typeof k=="object"&&k!==null).map(k=>({nombre:String(k.nombre??""),bytes:Number(k.bytes??0),...typeof k.mime=="string"?{mime:k.mime}:{}})):[],...typeof C.motivo=="string"?{motivo:C.motivo}:{},...typeof C.sesion=="string"?{sesion:C.sesion}:{},...typeof C.tras=="string"?{tras:C.tras}:{},...typeof C.empezada=="string"?{empezada:C.empezada}:{},...typeof C.acabada=="string"?{acabada:C.acabada}:{},...Array.isArray(C.autorizadas)?{autorizadas:C.autorizadas.filter(k=>typeof k=="string")}:{},...Array.isArray(C.feedback)?{feedback:C.feedback.filter(k=>typeof k=="object"&&k!==null).map(k=>({texto:String(k.texto??""),creado:String(k.creado??""),consumido:k.consumido===!0}))}:{},...cx(C.veredicto),...C.terminadaAMano===!0?{terminadaAMano:!0}:{}})).filter(C=>C.id!=="")}});return}case"revision":{const g=r;if(g.via!=="git"&&g.via!=="desde-apertura"&&g.via!=="sin-marca"&&g.via!=="sin-empezar"||!Array.isArray(g.ficheros))return;const _=g.ficheros.filter(o3).map(C=>({...C}));n({revision:{via:g.via,lista:_,...typeof g.mezclados=="number"&&g.mezclados>0?{mezclados:g.mezclados}:{}}});return}case"pendientesDeSubida":{const g=r;n({pendientesDeSubida:{...Array.isArray(g.ficheros)?{lista:g.ficheros.filter(o3).map(_=>({..._}))}:{},...typeof g.error=="string"?{error:g.error}:{}}});return}case"parcheDeSubida":{const g=r;if(typeof g.ruta!="string"||typeof g.texto!="string")return;n({parchesDeSubida:{...e.parchesDeSubida,[g.ruta]:{texto:g.texto,recortado:g.recortado===!0,...typeof g.negado=="string"?{negado:g.negado}:{}}}});return}case"parche":{const g=r;if(typeof g.ruta!="string"||typeof g.texto!="string")return;n({parches:{...e.parches,[g.ruta]:{texto:g.texto,recortado:g.recortado===!0}}});return}case"modeloDelCambio":{const g=r;if(typeof g.ruta!="string")return;const _=ky(g.cambios);if(_===void 0&&typeof g.error!="string")return;n({modelosDelCambio:{...e.modelosDelCambio,[g.ruta]:{..._===void 0?{}:{cambios:_},...typeof g.error=="string"?{error:g.error}:{}}}});return}case"planes":{const g=r,_=ay(g.planes);if(_===void 0&&typeof g.error!="string")return;n({planes:{..._===void 0?{}:{lista:_},...typeof g.error=="string"?{error:g.error}:{}}});return}case"gestor":{const g=ly(r),{error:_,borrador:C,cierre:k,cerrado:S,...A}=g;if(Object.keys(g).length===0)return;const I=e.gestor??{},M={...I.errores??{}},L=[...A.estado===void 0?[]:["estado","vincular","desvincular","usarConector"],...A.sitios===void 0?[]:["sitios"],...A.proyectos===void 0?[]:["proyectos"],...A.busqueda===void 0?[]:["buscarProyectos"],...A.descripcion===void 0?[]:["describir"],...A.pendientes===void 0?[]:["pendientes"],...A.ficha===void 0?[]:["ficha"],...C===void 0?[]:["empezar"],...A.transiciones===void 0?[]:["transiciones"],...k===void 0?[]:["borradorDeCierre"],...S===void 0?[]:["cerrar"]];for(const fe of L)delete M[fe];_!==void 0&&(M[_.accion]={motivo:_.motivo,..._.clave===void 0?{}:{clave:_.clave},..._.texto===void 0?{}:{texto:_.texto},..._.pedido===void 0?{}:{pedido:_.pedido}});const F=fe=>fe===void 0?void 0:`${fe.conector}|${fe.sitio}|${fe.proyecto}`,G=A.estado!==void 0&&I.estado!==void 0&&F(I.estado.vinculo)!==F(A.estado.vinculo),{pendientes:O,ficha:B,transiciones:W,...re}=I;n({gestor:{...G?re:I,...A,...C===void 0?{}:{borrador:{...C,id:(((i=I.borrador)==null?void 0:i.id)??0)+1}},...k===void 0?{}:{cierre:{...k,id:(((u=I.cierre)==null?void 0:u.id)??0)+1}},...S===void 0?{}:{cerrado:{...S,id:(((d=I.cerrado)==null?void 0:d.id)??0)+1}},errores:M}});return}case"colecciones":{const g=r,_=Ny(g.foto);if(_===void 0&&typeof g.error!="string")return;n({colecciones:{..._===void 0?{}:{foto:_},...typeof g.error=="string"?{error:g.error}:{}}});return}case"arbol":{const g=r;if(!Array.isArray(g.rutas)||!g.rutas.every(_=>typeof _=="string"))return;n({arbol:{rutas:g.rutas,recortado:g.recortado===!0,...typeof g.error=="string"?{error:g.error}:{}}});return}case"sync":{const g=r;n({sync:{...typeof g.proyecto=="string"?{proyecto:g.proyecto}:{},...typeof g.rama=="string"?{rama:g.rama}:{},...typeof g.pendientes=="number"&&Number.isFinite(g.pendientes)?{pendientes:g.pendientes}:{},...typeof g.deLaSesion=="number"&&Number.isFinite(g.deLaSesion)?{deLaSesion:g.deLaSesion}:{},...typeof g.error=="string"?{error:g.error}:{}}});return}case"fichero":{const g=r;if(typeof g.ruta!="string"||typeof g.bytes!="number")return;n({contenidos:{...e.contenidos,[g.ruta]:{ruta:g.ruta,bytes:g.bytes,recortado:g.recortado===!0,binario:g.binario===!0,...typeof g.texto=="string"?{texto:g.texto}:{},...g.codificacion==="utf-8"||g.codificacion==="latin1"?{codificacion:g.codificacion}:{},...typeof g.mime=="string"?{mime:g.mime}:{},...typeof g.base64=="string"?{base64:g.base64}:{},...typeof g.vista=="string"?{vista:g.vista}:{},...typeof g.huella=="string"?{huella:g.huella}:{},...typeof g.error=="string"?{error:g.error}:{}}}});return}case"ficheroGuardado":{const g=r;if(typeof g.ruta!="string")return;n({ultimoGuardado:{ruta:g.ruta,...typeof g.id=="string"?{id:g.id}:{},...typeof g.huella=="string"?{huella:g.huella}:{},...typeof g.error=="string"?{error:g.error}:{},secuencia:(((m=e.ultimoGuardado)==null?void 0:m.secuencia)??0)+1},...typeof g.huella=="string"&&((f=e.ultimaRecarga)==null?void 0:f.ruta)===g.ruta?{ultimaRecarga:void 0}:{}});return}case"recargaEnAparato":{const g=r;if(typeof g.ruta!="string"||typeof g.estado!="string"||typeof g.texto!="string")return;n({ultimaRecarga:{ruta:g.ruta,estado:g.estado,texto:g.texto,secuencia:(((h=e.ultimaRecarga)==null?void 0:h.secuencia)??0)+1}});return}case"baseDeFichero":{const g=r;if(typeof g.ruta!="string"||g.base!=="sesion"&&g.base!=="commit")return;n({bases:{...e.bases,[g.ruta]:{ruta:g.ruta,base:g.base,...typeof g.texto=="string"?{texto:g.texto}:{},...g.vacio===!0?{vacio:!0}:{},...typeof g.sinBase=="string"?{sinBase:g.sinBase}:{}}}});return}case"motoresLocales":{const g=Iy(r.motores);if(g===void 0)return;n({motoresLocales:g});return}case"modelosDeMotor":{const g=r;if(typeof g.motor!="string"||!Array.isArray(g.modelos))return;n({modelosDeMotor:{...e.modelosDeMotor,[g.motor]:{modelos:g.modelos.filter(_=>typeof _=="object"&&_!==null&&typeof _.id=="string").map(_=>({id:_.id,nombre:typeof _.nombre=="string"?_.nombre:_.id})),...typeof g.error=="string"?{error:g.error}:{}}}});return}case"instalacion":{const g=r,C=["corriendo","ok","fallo","cancelada","colgada"].find(k=>k===g.estado);if(typeof g.receta!="string"||typeof g.paso!="number"||C===void 0)return;n({instalacion:{receta:g.receta,paso:g.paso,titulo:typeof g.titulo=="string"?g.titulo:"",estado:C,lineas:Array.isArray(g.lineas)?g.lineas.filter(k=>typeof k=="string"):[],ms:typeof g.ms=="number"?g.ms:0,...typeof g.motivo=="string"?{motivo:g.motivo}:{}}});return}case"lanzable":{const g=r,_=g.faltas;if(typeof g.proyecto!="string"||typeof g.listo!="boolean"||typeof g.medido!="string"||!Array.isArray(_)||!_.every(k=>typeof k=="string"))return;const C=g.dispositivo;n({lanzable:{proyecto:g.proyecto,listo:g.listo,faltas:_,medido:g.medido,...typeof g.app=="string"?{app:g.app}:{},...dh(C)?{dispositivo:{id:C.id,nombre:C.nombre,plataforma:C.plataforma,clase:C.clase}}:{}}});return}case"lanzamiento":{const g=r,_=Oy.find(A=>A===g.fase),C=By.find(A=>A===g.estado);if(_===void 0||C===void 0||typeof g.ms!="number")return;const k=g.lineas;if(!Array.isArray(k))return;const S=g.dispositivo;n({lanzamiento:{fase:_,estado:C,lineas:k.filter(A=>typeof A=="string"),ms:g.ms,...typeof g.proyecto=="string"?{proyecto:g.proyecto}:{},...dh(S)?{dispositivo:{id:S.id,nombre:S.nombre,plataforma:S.plataforma,clase:S.clase}}:{},...typeof g.motivo=="string"?{motivo:g.motivo}:{}}});return}case"artefacto":{const g=r;if(typeof g.ruta!="string"||typeof g.bytes!="number")return;n({artefactos:{...e.artefactos,[g.ruta]:{ruta:g.ruta,bytes:g.bytes,recortado:g.recortado===!0,binario:g.binario===!0,...typeof g.texto=="string"?{texto:g.texto}:{},...g.codificacion==="utf-8"||g.codificacion==="latin1"?{codificacion:g.codificacion}:{},...typeof g.mime=="string"?{mime:g.mime}:{},...typeof g.base64=="string"?{base64:g.base64}:{},...typeof g.error=="string"?{error:g.error}:{}}}});return}case"abriendo":{const g=r;if(g.activo!==!0){n({abriendo:void 0});return}n({abriendo:{...typeof g.proyecto=="string"?{proyecto:g.proyecto}:{},...typeof g.sesion=="string"?{sesion:g.sesion}:{},...typeof g.entorno=="string"?{entorno:g.entorno}:{},...g.descargando===!0?{descargando:!0}:{}}});return}case"consumo":{const g=r,_=x6(g.porModelo),C=typeof g.ventana=="object"&&g.ventana!==null?g.ventana:{},k=typeof C.tope=="number"&&Number.isFinite(C.tope)&&C.tope>0?C.tope:void 0;n({consumo:{modelo:E0(g.modelo),externo:E0(g.externo),ventana:{usado:Cp(C.usado),...k===void 0?{}:{tope:k}},..._===void 0?{}:{porModelo:_}}});return}case"turno":{const g=r.activo;if(typeof g!="boolean")return;n({turnoEnVuelo:g,turnoDetenible:g&&r.detenible===!0});return}case"secreto":{const g=r.pregunta;if(typeof g!="string")return;n({secreto:{pregunta:g}});return}case"alta":{const g=r;if(!Array.isArray(g.pasos)||!g.pasos.every(M=>typeof M=="string"&&Xy.has(M))||!ap(g.proveedores)||!ap(g.proyectos))return;const _=g.proyectos.map(M=>{const L=M.sesiones;return{id:M.id,nombre:M.nombre,...dx(L)?{sesiones:L.map(F=>{const G=ux(F.consumo);return{id:F.id,titulo:F.titulo,...typeof F.ultimoTurno=="string"?{ultimoTurno:F.ultimoTurno}:{},...F.deTarea===!0?{deTarea:!0}:{},...F.trabajando===!0?{trabajando:!0}:{},...G===void 0?{}:{consumo:G},...typeof F.ticket=="string"&&F.ticket!==""?{ticket:F.ticket}:{},...typeof F.ticket=="string"&&F.ticket!==""&&typeof F.ticketConector=="string"&&F.ticketConector!==""?{ticketConector:F.ticketConector}:{}}})}:{},...M.local===!0?{local:!0}:{},...(F=>typeof F=="string"&&F!==""?{rama:F}:{})(M.rama),...M.icono===!0?{icono:!0}:{},...M.trabajando===!0?{trabajando:!0}:{},...typeof M.compartido=="boolean"?{compartido:M.compartido}:{},...typeof M.ultimoAcceso=="string"?{ultimoAcceso:M.ultimoAcceso}:{}}});if(!Array.isArray(g.entornos)||!g.entornos.every(M=>typeof(M==null?void 0:M.url)=="string")||!ap(g.entornos))return;const C=Array.isArray(g.registrados)&&g.registrados.every(M=>typeof(M==null?void 0:M.url)=="string")&&ap(g.registrados)?g.registrados.map(M=>({id:M.id,nombre:M.nombre,url:M.url,...Array.isArray(M.proyectos)&&M.proyectos.every(L=>typeof L=="string")?{proyectos:M.proyectos}:{},...Array.isArray(M.fijados)&&M.fijados.every(L=>typeof L=="string")?{fijados:M.fijados}:{},...typeof M.copias=="number"&&Number.isInteger(M.copias)&&M.copias>=0?{copias:M.copias}:{}})):[];if(!Array.isArray(g.ramas)||!g.ramas.every(M=>typeof M=="string")||typeof g.proyectoAbierto!="boolean")return;const S=(typeof g.sesionActiva=="string"?g.sesionActiva:void 0)!==((b=e.alta)==null?void 0:b.sesionActiva),I=(typeof g.proyectoActivo=="string"?g.proyectoActivo:void 0)!==((y=e.alta)==null?void 0:y.proyectoActivo);n({...I?{gestor:void 0}:{},...S?{revision:void 0,parches:void 0,pendientesDeSubida:void 0,parchesDeSubida:void 0,modelosDelCambio:void 0,arbol:void 0,contenidos:void 0,bases:void 0,colecciones:void 0,planes:void 0,artefactos:void 0,sync:void 0}:{},alta:{pasos:g.pasos,proveedores:g.proveedores,entornos:g.entornos,registrados:C,proyectos:_,ramas:g.ramas,...typeof g.ramasDe=="string"?{ramasDe:g.ramasDe}:{},proyectoAbierto:g.proyectoAbierto,...typeof g.aviso=="string"?{aviso:g.aviso}:{},...typeof g.preparando=="string"?{preparando:g.preparando}:{},...typeof g.nombre=="string"?{nombre:g.nombre}:{},...typeof g.entornoActivo=="string"?{entornoActivo:g.entornoActivo}:{},...typeof g.proyectoActivo=="string"?{proyectoActivo:g.proyectoActivo}:{},...typeof g.sesionActiva=="string"?{sesionActiva:g.sesionActiva}:{},...dh(g.dispositivoActivo)?{dispositivoActivo:g.dispositivoActivo}:{},...g.historica===!0?{historica:!0}:{},...g.modoDeEscritura==="supervisado"||g.modoDeEscritura==="autonomo"?{modoDeEscritura:g.modoDeEscritura}:{},...Zy(g.trabajoAlAbrir)?{trabajoAlAbrir:g.trabajoAlAbrir}:{},...g.modo==="offline"||g.modo==="cloud"?{modo:g.modo}:{},...typeof g.version=="string"?{version:g.version}:{}}});return}case"aprobacion":{const g=r;if(!Array.isArray(g.pendientes)||!s3(g.ficheros)||!s3(g.diffs))return;n({aprobacion:{pendientes:g.pendientes,ficheros:g.ficheros,diffs:g.diffs}});return}default:return}},marcarConectado(){n({conectado:!0})},limpiarEncargoPropuesto(){n({encargoPropuesto:void 0})},marcarDesconectado(){n({conectado:!1,pregunta:void 0,selector:void 0,secreto:void 0,aprobacion:void 0,modelos:void 0,proyectosPorEntorno:void 0,proveedor:void 0,abriendo:void 0,turnoEnVuelo:!1,turnoDetenible:!1,consumo:void 0,revision:void 0,parches:void 0,pendientesDeSubida:void 0,parchesDeSubida:void 0,modelosDelCambio:void 0,arbol:void 0,contenidos:void 0,bases:void 0,ultimaRecarga:void 0,colecciones:void 0,planes:void 0,gestor:void 0,artefactos:void 0,sync:void 0,agentes:void 0,skills:void 0,cuerposDeSkill:void 0,mudanzaDeWorkspace:void 0,conectores:void 0,mirada:void 0,lanzable:void 0,lanzamiento:void 0})},contestarPregunta(){n({pregunta:void 0})},contestarSecreto(){n({secreto:void 0})},dejarDeMirar(){n({mirada:void 0})},contestarSelector(r){r!==void 0&&e.selector!==r||n({selector:void 0})},cerrarAprobacion(){n({aprobacion:void 0})},suscribir(r){return t.push(r),()=>{const a=t.indexOf(r);a>=0&&t.splice(a,1)}}}}const mx=e=>new EventSource(e);function hx(e){return Math.min(1e3*2**e,3e4)}function fx(){return`c${Date.now().toString(36)}${Math.random().toString(36).slice(2,8)}`}async function ph(e,t,n){var i;let r;try{r=await e(t,{method:"POST",credentials:"same-origin",body:n})}catch(u){return{ok:!1,motivo:u instanceof Error?u.message:"no se pudo subir"}}const a=r;if((a==null?void 0:a.ok)===!0)return{ok:!0,respuesta:a};const l=await((i=a==null?void 0:a.text)==null?void 0:i.call(a).catch(()=>""))??"";return{ok:!1,motivo:l.trim()===""?`el servidor contestó ${String((a==null?void 0:a.status)??"?")}`:l.trim()}}function gx(e,t={}){const n=t.fabricaDeEventos??mx,r=t.fetch??((y,g)=>fetch(y,g)),a=t.temporizador??((y,g)=>setTimeout(y,g)),l=t.cancelarTemporizador??(y=>clearTimeout(y));let i=0,u,d,m=!1;const f=t.idDeCliente??fx(),h=()=>{const y=n(`/eventos?cliente=${f}`);d=y,y.onopen=()=>{i=0,e.marcarConectado()},y.onmessage=g=>{let _;try{_=JSON.parse(g.data)}catch{return}e.aplicar(_)},y.onerror=()=>{if(y.close(),e.marcarDesconectado(),m)return;const g=hx(i);i+=1,u=a(h,g)}};h();const b=y=>r("/accion",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(y)});return{cerrar(){m=!0,u!==void 0&&l(u),d==null||d.close()},mirar(y,g){return b({clase:"mirar",tarea:y,ver:g,cliente:f})},enviar:b,async subirAdjunto(y,g,_){const C=`/adjunto?tarea=${encodeURIComponent(y)}&nombre=${encodeURIComponent(g)}`,k=await ph(r,C,_);return k.ok?{ok:!0}:{ok:!1,motivo:k.motivo}},async subirAdjuntoDeSesion(y,g){var A,I;const _=`/adjunto?para=sesion&nombre=${encodeURIComponent(y)}`,C=await ph(r,_,g);if(!C.ok)return{ok:!1,motivo:C.motivo};let k;try{k=await((I=(A=C.respuesta)==null?void 0:A.json)==null?void 0:I.call(A))}catch{return{ok:!1,motivo:"el servidor no contestó con el nombre del adjunto"}}const S=k==null?void 0:k.nombre;return typeof S!="string"||S===""?{ok:!1,motivo:"el servidor no contestó con el nombre del adjunto"}:{ok:!0,nombre:S}},async instalarSkill(y,g,_){const C=`/skill?nombre=${encodeURIComponent(y)}&ambito=${encodeURIComponent(g)}`,k=await ph(r,C,_);return k.ok?{ok:!0}:{ok:!1,motivo:k.motivo}}}}const vx="modulepreload",bx=function(e,t){return new URL(e,t).href},i3={},cn=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let i=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const u=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=i(n.map(f=>{if(f=bx(f,r),f in i3)return;i3[f]=!0;const h=f.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(!!r)for(let _=u.length-1;_>=0;_--){const C=u[_];if(C.href===f&&(!h||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${b}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":vx,h||(g.as="script"),g.crossOrigin="",g.href=f,m&&g.setAttribute("nonce",m),document.head.appendChild(g),h)return new Promise((_,C)=>{g.addEventListener("load",_),g.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return a.then(i=>{for(const u of i||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};function _6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=_6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=_6(e))&&(r&&(r+=" "),r+=t);return r}var yx=f6(),un=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function xx(e){return _2(e)}function _2(e){return Array.isArray(e)?_x(e):e instanceof RegExp?e:typeof e=="object"?wx(e):e}function _x(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=_2(e[n]);return t}function wx(e){let t={};for(let n in e)t[n]=_2(e[n]);return t}function w6(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function j6(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?j6(e.substring(0,e.length-1)):e.substr(~t+1)}var mh=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,op=class{static hasCaptures(e){return e===null?!1:(mh.lastIndex=0,mh.test(e))}static replaceCaptures(e,t,n){return e.replace(mh,(r,a,l,i)=>{let u=n[parseInt(a||l,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(i){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function C6(e,t){return e<t?-1:e>t?1:0}function k6(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let l=C6(e[a],t[a]);if(l!==0)return l}return 0}return n-r}function l3(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 N6(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var S6=class{constructor(e){ce(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}},Mp=class{constructor(e,t,n){ce(this,"_cachedMatchRoot",new S6(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(kx(e),t)}static createFromParsedTheme(e,t){return Sx(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>jx(e.parent,a.parentScopes));return r?new $6(r.fontStyle,r.foreground,r.background):null}},hh=class kp{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new kp(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new kp(n,t[r]);return n}push(t){return new kp(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function jx(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!Cx(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Cx(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var $6=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function kx(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,l=t.length;a<l;a++){let i=t[a];if(!i.settings)continue;let u;if(typeof i.scope=="string"){let h=i.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),u=h.split(",")}else Array.isArray(i.scope)?u=i.scope:u=[""];let d=-1;if(typeof i.settings.fontStyle=="string"){d=0;let h=i.settings.fontStyle.split(" ");for(let b=0,y=h.length;b<y;b++)switch(h[b]){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 m=null;typeof i.settings.foreground=="string"&&l3(i.settings.foreground)&&(m=i.settings.foreground);let f=null;typeof i.settings.background=="string"&&l3(i.settings.background)&&(f=i.settings.background);for(let h=0,b=u.length;h<b;h++){let g=u[h].trim().split(" "),_=g[g.length-1],C=null;g.length>1&&(C=g.slice(0,g.length-1),C.reverse()),n[r++]=new Nx(_,C,a,d,m,f)}}return n}var Nx=class{constructor(e,t,n,r,a,l){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=l}},Mr=(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))(Mr||{});function Sx(e,t){e.sort((d,m)=>{let f=C6(d.scope,m.scope);return f!==0||(f=k6(d.parentScopes,m.parentScopes),f!==0)?f:d.index-m.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let l=new $x(t),i=new $6(n,l.getId(r),l.getId(a)),u=new Ex(new mf(0,null,-1,0,0),[]);for(let d=0,m=e.length;d<m;d++){let f=e[d];u.insert(0,f.scope,f.parentScopes,f.fontStyle,l.getId(f.foreground),l.getId(f.background))}return new Mp(l,i,u)}var $x=class{constructor(e){ce(this,"_isFrozen");ce(this,"_lastColorId");ce(this,"_id2color");ce(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)}},Ax=Object.freeze([]),mf=class A6{constructor(t,n,r,a,l){ce(this,"scopeDepth");ce(this,"parentScopes");ce(this,"fontStyle");ce(this,"foreground");ce(this,"background");this.scopeDepth=t,this.parentScopes=n||Ax,this.fontStyle=r,this.foreground=a,this.background=l}clone(){return new A6(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},Ex=class hf{constructor(t,n=[],r={}){ce(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const l=n.parentScopes[a].length-t.parentScopes[r].length;if(l!==0)return l;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,l;if(r===-1?(a=t,l=""):(a=t.substring(0,r),l=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(l)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(hf._cmpBySpecificity),n}insert(t,n,r,a,l,i){if(n===""){this._doInsertHere(t,r,a,l,i);return}let u=n.indexOf("."),d,m;u===-1?(d=n,m=""):(d=n.substring(0,u),m=n.substring(u+1));let f;this._children.hasOwnProperty(d)?f=this._children[d]:(f=new hf(this._mainRule.clone(),mf.cloneArr(this._rulesWithParentScopes)),this._children[d]=f),f.insert(t+1,m,r,a,l,i)}_doInsertHere(t,n,r,a,l){if(n===null){this._mainRule.acceptOverwrite(t,r,a,l);return}for(let i=0,u=this._rulesWithParentScopes.length;i<u;i++){let d=this._rulesWithParentScopes[i];if(k6(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,l);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),l===0&&(l=this._mainRule.background),this._rulesWithParentScopes.push(new mf(t,n,r,a,l))}},Bl=class ao{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ao.getLanguageId(t),r=ao.getTokenType(t),a=ao.getFontStyle(t),l=ao.getForeground(t),i=ao.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:l,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,l,i,u){let d=ao.getLanguageId(t),m=ao.getTokenType(t),f=ao.containsBalancedBrackets(t)?1:0,h=ao.getFontStyle(t),b=ao.getForeground(t),y=ao.getBackground(t);return n!==0&&(d=n),r!==8&&(m=r),a!==null&&(f=a?1:0),l!==-1&&(h=l),i!==0&&(b=i),u!==0&&(y=u),(d<<0|m<<8|f<<10|h<<11|b<<15|y<<24)>>>0}};function Lp(e,t){const n=[],r=Dx(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let m=i();if(n.push({matcher:m,priority:d}),a!==",")break;a=r.next()}return n;function l(){if(a==="-"){a=r.next();const d=l();return m=>!!d&&!d(m)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(c3(a)){const d=[];do d.push(a),a=r.next();while(c3(a));return m=>t(d,m)}return null}function i(){const d=[];let m=l();for(;m;)d.push(m),m=l();return f=>d.every(h=>h(f))}function u(){const d=[];let m=i();for(;m&&(d.push(m),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");m=i()}return f=>d.some(h=>h(f))}}function c3(e){return!!e&&!!e.match(/[\w\.:]+/)}function Dx(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function E6(e){typeof e.dispose=="function"&&e.dispose()}var D0=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},zx=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Tx=class{constructor(){ce(this,"_references",[]);ce(this,"_seenReferenceKeys",new Set);ce(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))}},Mx=class{constructor(e,t){ce(this,"seenFullScopeRequests",new Set);ce(this,"seenPartialScopeRequests",new Set);ce(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new D0(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new Tx;for(const n of e)Lx(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof D0){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 Lx(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const l=n.lookup(t);e instanceof D0?Np({baseGrammar:l,selfGrammar:a},r):ff(e.ruleName,{baseGrammar:l,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const u of i)r.add(new D0(u))}function ff(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ip([r],t,n)}}function Np(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ip(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ip(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ip(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?w6({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ip(r.patterns,{...t,repository:a},n);const l=r.include;if(!l)continue;const i=D6(l);switch(i.kind){case 0:Np({...t,selfGrammar:t.baseGrammar},n);break;case 1:Np(t,n);break;case 2:ff(i.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};i.kind===4?ff(i.ruleName,d,n):Np(d,n)}else i.kind===4?n.add(new zx(i.scopeName,i.ruleName)):n.add(new D0(i.scopeName));break}}}var Ix=class{constructor(){ce(this,"kind",0)}},qx=class{constructor(){ce(this,"kind",1)}},Rx=class{constructor(e){ce(this,"kind",2);this.ruleName=e}},Px=class{constructor(e){ce(this,"kind",3);this.scopeName=e}},Fx=class{constructor(e,t){ce(this,"kind",4);this.scopeName=e,this.ruleName=t}};function D6(e){if(e==="$base")return new Ix;if(e==="$self")return new qx;const t=e.indexOf("#");if(t===-1)return new Px(e);if(t===0)return new Rx(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Fx(n,r)}}var Ox=/\\(\d+)/,u3=/\\(\d+)/g,Bx=-1,z6=-2;var U0=class{constructor(e,t,n,r){ce(this,"$location");ce(this,"id");ce(this,"_nameIsCapturing");ce(this,"_name");ce(this,"_contentNameIsCapturing");ce(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=op.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=op.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${j6(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:op.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:op.replaceCaptures(this._contentName,e,t)}},Hx=class extends U0{constructor(t,n,r,a,l){super(t,n,r,a);ce(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=l}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},Ux=class extends U0{constructor(t,n,r,a,l){super(t,n,r,null);ce(this,"_match");ce(this,"captures");ce(this,"_cachedCompiledPatterns");this._match=new z0(a,this.id),this.captures=l,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,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new T0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},d3=class extends U0{constructor(t,n,r,a,l){super(t,n,r,a);ce(this,"hasMissingPatterns");ce(this,"patterns");ce(this,"_cachedCompiledPatterns");this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new T0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},gf=class extends U0{constructor(t,n,r,a,l,i,u,d,m,f){super(t,n,r,a);ce(this,"_begin");ce(this,"beginCaptures");ce(this,"_end");ce(this,"endHasBackReferences");ce(this,"endCaptures");ce(this,"applyEndPatternLast");ce(this,"hasMissingPatterns");ce(this,"patterns");ce(this,"_cachedCompiledPatterns");this._begin=new z0(l,this.id),this.beginCaptures=i,this._end=new z0(u||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=m||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(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,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new T0;for(const r of this.patterns)t.getRule(r).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}},qp=class extends U0{constructor(t,n,r,a,l,i,u,d,m){super(t,n,r,a);ce(this,"_begin");ce(this,"beginCaptures");ce(this,"whileCaptures");ce(this,"_while");ce(this,"whileHasBackReferences");ce(this,"hasMissingPatterns");ce(this,"patterns");ce(this,"_cachedCompiledPatterns");ce(this,"_cachedCompiledWhilePatterns");this._begin=new z0(l,this.id),this.beginCaptures=i,this.whileCaptures=d,this._while=new z0(u,z6),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.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,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new T0;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,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new T0,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},T6=class zr{static createCaptureRule(t,n,r,a,l){return t.registerRule(i=>new Hx(n,i,r,a,l))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Ux(t.$vscodeTextmateLocation,t.id,t.name,t.match,zr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=w6({},r,t.repository));let l=t.patterns;return typeof l>"u"&&t.include&&(l=[{include:t.include}]),new d3(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,zr._compilePatterns(l,n,r))}return t.while?new qp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,zr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,zr._compileCaptures(t.whileCaptures||t.captures,n,r),zr._compilePatterns(t.patterns,n,r)):new gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,zr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,zr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,zr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let l=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const u=parseInt(i,10);u>l&&(l=u)}for(let i=0;i<=l;i++)a[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const u=parseInt(i,10);let d=0;t[i].patterns&&(d=zr.getCompiledRuleId(t[i],n,r)),a[u]=zr.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let l=0,i=t.length;l<i;l++){const u=t[l];let d=-1;if(u.include){const m=D6(u.include);switch(m.kind){case 0:case 1:d=zr.getCompiledRuleId(r[u.include],n,r);break;case 2:let f=r[m.ruleName];f&&(d=zr.getCompiledRuleId(f,n,r));break;case 3:case 4:const h=m.scopeName,b=m.kind===4?m.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(b){let g=y.repository[b];g&&(d=zr.getCompiledRuleId(g,n,y.repository))}else d=zr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else d=zr.getCompiledRuleId(u,n,r);if(d!==-1){const m=n.getRule(d);let f=!1;if((m instanceof d3||m instanceof gf||m instanceof qp)&&m.hasMissingPatterns&&m.patterns.length===0&&(f=!0),f)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},z0=class M6{constructor(t,n){ce(this,"source");ce(this,"ruleId");ce(this,"hasAnchor");ce(this,"hasBackReferences");ce(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let a=0,l=[],i=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const m=t.charAt(u+1);m==="z"?(l.push(t.substring(a,u)),l.push("$(?!\\n)(?<!\\n)"),a=u+2):(m==="A"||m==="G")&&(i=!0),u++}this.hasAnchor=i,a===0?this.source=t:(l.push(t.substring(a,r)),this.source=l.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=Ox.test(this.source):this.hasBackReferences=!1}clone(){return new M6(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return u3.lastIndex=0,this.source.replace(u3,(a,l)=>N6(r[parseInt(l,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],l,i,u,d;for(l=0,i=this.source.length;l<i;l++)u=this.source.charAt(l),t[l]=u,n[l]=u,r[l]=u,a[l]=u,u==="\\"&&l+1<i&&(d=this.source.charAt(l+1),d==="A"?(t[l+1]="",n[l+1]="",r[l+1]="A",a[l+1]="A"):d==="G"?(t[l+1]="",n[l+1]="G",r[l+1]="",a[l+1]="G"):(t[l+1]=d,n[l+1]=d,r[l+1]=d,a[l+1]=d),l++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},T0=class{constructor(){ce(this,"_items");ce(this,"_hasAnchors");ce(this,"_cached");ce(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 p3(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new p3(e,r,this._items.map(a=>a.ruleId))}},p3=class{constructor(e,t,n){ce(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(`
|
|
42
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},fh=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ws,Vx=(Ws=class{constructor(t,n){ce(this,"_defaultAttributes");ce(this,"_embeddedLanguagesMatcher");ce(this,"_getBasicScopeAttributes",new S6(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new fh(n,r)}));this._defaultAttributes=new fh(t,8),this._embeddedLanguagesMatcher=new Gx(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ws._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ws.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!")}},ce(Ws,"_NULL_SCOPE_METADATA",new fh(0,0)),ce(Ws,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ws),Gx=class{constructor(e){ce(this,"values");ce(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>N6(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])}},m3=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function L6(e,t,n,r,a,l,i,u){const d=t.content.length;let m=!1,f=-1;if(i){const y=Wx(e,t,n,r,a,l);a=y.stack,r=y.linePos,n=y.isFirstLine,f=y.anchorPosition}const h=Date.now();for(;!m;){if(u!==0&&Date.now()-h>u)return new m3(a,!0);b()}return new m3(a,!1);function b(){const y=Zx(e,t,n,r,a,f);if(!y){l.produce(a,d),m=!0;return}const g=y.captureIndices,_=y.matchedRuleId,C=g&&g.length>0?g[0].end>r:!1;if(_===Bx){const k=a.getRule(e);l.produce(a,g[0].start),a=a.withContentNameScopesList(a.nameScopesList),x0(e,t,n,a,l,k.endCaptures,g),l.produce(a,g[0].end);const S=a;if(a=a.parent,f=S.getAnchorPos(),!C&&S.getEnterPos()===r){a=S,l.produce(a,d),m=!0;return}}else{const k=e.getRule(_);l.produce(a,g[0].start);const S=a,A=k.getName(t.content,g),I=a.contentNameScopesList.pushAttributed(A,e);if(a=a.push(_,r,f,g[0].end===d,null,I,I),k instanceof gf){const M=k;x0(e,t,n,a,l,M.beginCaptures,g),l.produce(a,g[0].end),f=g[0].end;const L=M.getContentName(t.content,g),F=I.pushAttributed(L,e);if(a=a.withContentNameScopesList(F),M.endHasBackReferences&&(a=a.withEndRule(M.getEndWithResolvedBackReferences(t.content,g))),!C&&S.hasSameRuleAs(a)){a=a.pop(),l.produce(a,d),m=!0;return}}else if(k instanceof qp){const M=k;x0(e,t,n,a,l,M.beginCaptures,g),l.produce(a,g[0].end),f=g[0].end;const L=M.getContentName(t.content,g),F=I.pushAttributed(L,e);if(a=a.withContentNameScopesList(F),M.whileHasBackReferences&&(a=a.withEndRule(M.getWhileWithResolvedBackReferences(t.content,g))),!C&&S.hasSameRuleAs(a)){a=a.pop(),l.produce(a,d),m=!0;return}}else if(x0(e,t,n,a,l,k.captures,g),l.produce(a,g[0].end),a=a.pop(),!C){a=a.safePop(),l.produce(a,d),m=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function Wx(e,t,n,r,a,l){let i=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const m=d.getRule(e);m instanceof qp&&u.push({rule:m,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:m,findOptions:f}=Yx(d.rule,e,d.stack.endRule,n,r===i),h=m.findNextMatchSync(t,r,f);if(h){if(h.ruleId!==z6){a=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(l.produce(d.stack,h.captureIndices[0].start),x0(e,t,n,d.stack,l,d.rule.whileCaptures,h.captureIndices),l.produce(d.stack,h.captureIndices[0].end),i=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:n}}function Zx(e,t,n,r,a,l){const i=Qx(e,t,n,r,a,l),u=e.getInjections();if(u.length===0)return i;const d=Xx(u,e,t,n,r,a,l);if(!d)return i;if(!i)return d;const m=i.captureIndices[0].start,f=d.captureIndices[0].start;return f<m||d.priorityMatch&&f===m?d:i}function Qx(e,t,n,r,a,l){const i=a.getRule(e),{ruleScanner:u,findOptions:d}=I6(i,e,a.endRule,n,r===l),m=u.findNextMatchSync(t,r,d);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function Xx(e,t,n,r,a,l,i){let u=Number.MAX_VALUE,d=null,m,f=0;const h=l.contentNameScopesList.getScopeNames();for(let b=0,y=e.length;b<y;b++){const g=e[b];if(!g.matcher(h))continue;const _=t.getRule(g.ruleId),{ruleScanner:C,findOptions:k}=I6(_,t,null,r,a===i),S=C.findNextMatchSync(n,a,k);if(!S)continue;const A=S.captureIndices[0].start;if(!(A>=u)&&(u=A,d=S.captureIndices,m=S.ruleId,f=g.priority,u===a))break}return d?{priorityMatch:f===-1,captureIndices:d,matchedRuleId:m}:null}function I6(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Yx(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function x0(e,t,n,r,a,l,i){if(l.length===0)return;const u=t.content,d=Math.min(l.length,i.length),m=[],f=i[0].end;for(let h=0;h<d;h++){const b=l[h];if(b===null)continue;const y=i[h];if(y.length===0)continue;if(y.start>f)break;for(;m.length>0&&m[m.length-1].endPos<=y.start;)a.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?a.produceFromScopes(m[m.length-1].scopes,y.start):a.produce(r,y.start),b.retokenizeCapturedWithRuleId){const _=b.getName(u,i),C=r.contentNameScopesList.pushAttributed(_,e),k=b.getContentName(u,i),S=C.pushAttributed(k,e),A=r.push(b.retokenizeCapturedWithRuleId,y.start,-1,!1,null,C,S),I=e.createOnigString(u.substring(0,y.end));L6(e,I,n&&y.start===0,y.start,A,a,!1,0),E6(I);continue}const g=b.getName(u,i);if(g!==null){const C=(m.length>0?m[m.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);m.push(new Kx(C,y.end))}}for(;m.length>0;)a.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var Kx=class{constructor(e,t){ce(this,"scopes");ce(this,"endPos");this.scopes=e,this.endPos=t}};function Jx(e,t,n,r,a,l,i,u){return new t_(e,t,n,r,a,l,i,u)}function h3(e,t,n,r,a){const l=Lp(t,Rp),i=T6.getCompiledRuleId(n,r,a.repository);for(const u of l)e.push({debugSelector:t,matcher:u.matcher,ruleId:i,grammar:a,priority:u.priority})}function Rp(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(e_(t[a],r))return n=a+1,!0;return!1})}function e_(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 t_=class{constructor(e,t,n,r,a,l,i,u){ce(this,"_rootId");ce(this,"_lastRuleId");ce(this,"_ruleId2desc");ce(this,"_includedGrammars");ce(this,"_grammarRepository");ce(this,"_grammar");ce(this,"_injections");ce(this,"_basicScopeAttributesProvider");ce(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=l,this._onigLib=u,this._basicScopeAttributesProvider=new Vx(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f3(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const m=Lp(d,Rp);for(const f of m)this._tokenTypeMatchers.push({matcher:f.matcher,type:a[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:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let i in a)h3(t,i,a[i],this,r);const l=this._grammarRepository.injections(n);l&&l.forEach(i=>{const u=this.getExternalGrammar(i);if(u){const d=u.injectionSelector;d&&h3(t,d,u,this,u)}})}return t.sort((a,l)=>a.priority-l.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]=f3(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=T6.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===vf.NULL){a=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),h=Bl.set(0,m.languageId,m.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),b=this.getRule(this._rootId).getName(null,null);let y;b?y=C0.createRootAndLookUpScopeName(b,h,this):y=C0.createRoot("unknown",h),t=new vf(null,this._rootId,-1,-1,!1,null,y,y)}else a=!1,t.reset();e=e+`
|
|
43
|
-
`;const l=this.createOnigString(e),i=l.content.length,u=new r_(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=L6(this,l,a,0,t,u,!0,r);return E6(l),{lineLength:i,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function f3(e,t){return e=xx(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 C0=class os{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=(t==null?void 0:t.scopePath)??null;for(const l of n)a=hh.push(a,l.scopeNames),r=new os(r,a,l.encodedTokenAttributes);return r}static createRoot(t,n){return new os(null,new hh(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),l=new hh(null,t),i=r.themeProvider.themeMatch(l),u=os.mergeAttributes(n,a,i);return new os(null,l,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return os.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,l=0,i=0;return r!==null&&(a=r.fontStyle,l=r.foregroundId,i=r.backgroundId),Bl.set(t,n.languageId,n.tokenType,null,a,l,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return os._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const l of r)a=os._pushAttributed(a,l,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),l=t.scopePath.push(n),i=r.themeProvider.themeMatch(l),u=os.mergeAttributes(t.tokenAttributes,a,i);return new os(t,l,u)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var a;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},so,vf=(so=class{constructor(t,n,r,a,l,i,u,d){ce(this,"_stackElementBrand");ce(this,"_enterPos");ce(this,"_anchorPos");ce(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=l,this.endRule=i,this.nameScopesList=u,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(t){return t===null?!1:so._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?C0.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(){so._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,l,i,u){return new so(this,t,n,r,a,l,i,u)}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 r,a;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.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 so(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,r;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:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=C0.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new so(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,C0.fromExtension(r,n.contentNameScopesList))}},ce(so,"NULL",new so(null,0,0,0,!1,null,null,null)),so),n_=class{constructor(e,t){ce(this,"balancedBracketScopes");ce(this,"unbalancedBracketScopes");ce(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Lp(n,Rp).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Lp(n,Rp).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},r_=class{constructor(e,t,n,r){ce(this,"_emitBinaryTokens");ce(this,"_lineText");ce(this,"_tokens");ce(this,"_binaryTokens");ce(this,"_lastTokenEndIndex");ce(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,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 r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=(e==null?void 0:e.tokenAttributes)??0,l=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(l=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const u of this._tokenTypeOverrides)u.matcher(i)&&(a=Bl.set(a,0,u.type,null,-1,0,0));this.balancedBracketSelectors&&(l=this.balancedBracketSelectors.match(i))}if(l&&(a=Bl.set(a,0,8,l,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),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 r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},a_=class{constructor(e,t){ce(this,"_grammars",new Map);ce(this,"_rawGrammars",new Map);ce(this,"_injectionGrammars",new Map);ce(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,r,a){if(!this._grammars.has(e)){let l=this._rawGrammars.get(e);if(!l)return null;this._grammars.set(e,Jx(e,l,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},o_=class{constructor(t){ce(this,"_options");ce(this,"_syncRegistry");ce(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new a_(Mp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Mp.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new n_(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,l){const i=new Mx(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(u=>this._loadSingleGrammar(u.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,a,l)}_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 r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,l=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,l)}},bf=vf.NULL;function Pp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,l]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof l=="string"?n[a]=l:a===r&&Object.assign(n,l);return n}function Ti(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function s_(e){return Array.isArray(e)?e:[e]}async function q6(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function hm(e){return!e||["plaintext","txt","text","plain"].includes(e)}function i_(e){return e==="ansi"||hm(e)}function fm(e){return e==="none"}function l_(e){return fm(e)}const c_=/(\r?\n)/g;function gm(e,t=!1){var l;if(e.length===0)return[["",0]];const n=e.split(c_);let r=0;const a=[];for(let i=0;i<n.length;i+=2){const u=t?n[i]+(n[i+1]||""):n[i];a.push([u,r]),r+=n[i].length,r+=((l=n[i+1])==null?void 0:l.length)||0}return a}const g3={light:"#333333",dark:"#bbbbbb"},v3={light:"#fffffe",dark:"#1e1e1e"},b3="__shiki_resolved";function w2(e){var u,d,m,f,h;if(e!=null&&e[b3])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:r}=t;if(!n||!r){const b=t.settings?t.settings.find(y=>!y.name&&!y.scope):void 0;(u=b==null?void 0:b.settings)!=null&&u.foreground&&(r=b.settings.foreground),(d=b==null?void 0:b.settings)!=null&&d.background&&(n=b.settings.background),!r&&((m=t==null?void 0:t.colors)!=null&&m["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((f=t==null?void 0:t.colors)!=null&&f["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?g3.light:g3.dark),n||(n=t.type==="light"?v3.light:v3.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const l=new Map;function i(b){var g;if(l.has(b))return l.get(b);a+=1;const y=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(g=t.colorReplacements)!=null&&g[`#${y}`]?i(b):(l.set(b,y),y)}t.settings=t.settings.map(b=>{var C,k;const y=((C=b.settings)==null?void 0:C.foreground)&&!b.settings.foreground.startsWith("#"),g=((k=b.settings)==null?void 0:k.background)&&!b.settings.background.startsWith("#");if(!y&&!g)return b;const _={...b,settings:{...b.settings}};if(y){const S=i(b.settings.foreground);t.colorReplacements[S]=b.settings.foreground,_.settings.foreground=S}if(g){const S=i(b.settings.background);t.colorReplacements[S]=b.settings.background,_.settings.background=S}return _});for(const b of Object.keys(t.colors||{}))if((b==="editor.foreground"||b==="editor.background"||b.startsWith("terminal.ansi"))&&!((h=t.colors[b])!=null&&h.startsWith("#"))){const y=i(t.colors[b]);t.colorReplacements[y]=t.colors[b],t.colors[b]=y}return Object.defineProperty(t,b3,{enumerable:!1,writable:!1,value:!0}),t}async function u_(e){return[...new Set((await Promise.all(e.filter(t=>!i_(t)).map(async t=>await q6(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function d_(e){return(await Promise.all(e.map(async t=>l_(t)?null:w2(await q6(t))))).filter(t=>!!t)}function R6(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new un(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var p_=class extends o_{constructor(t,n,r,a={}){super(t);ce(this,"_resolver");ce(this,"_themes");ce(this,"_langs");ce(this,"_alias");ce(this,"_resolvedThemes",new Map);ce(this,"_resolvedGrammars",new Map);ce(this,"_langMap",new Map);ce(this,"_langGraph",new Map);ce(this,"_textmateThemeCache",new WeakMap);ce(this,"_loadedThemesCache",null);ce(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=w2(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Mp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=R6(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var l,i,u,d;if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(m=>{var f;return(f=m.embeddedLangsLazy)==null?void 0:f.includes(t.name)}));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(m=>{this._alias[m]=t.name}),this._loadedLanguagesCache=null,n.size)for(const m of n)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(i=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||i.delete(m.scopeName),(d=(u=this._syncRegistry)==null?void 0:u._grammars)==null||d.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=[...this._langGraph.entries()],r=n.filter(([a,l])=>!l);if(r.length){const a=n.filter(([l,i])=>{var u;return i?(u=i.embeddedLanguages||i.embeddedLangs)==null?void 0:u.some(d=>r.map(([m])=>m).includes(d)):!1}).filter(l=>!r.includes(l));throw new un(`Missing languages ${r.map(([l])=>`\`${l}\``).join(", ")}, required by ${a.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[a,l]of n)this._resolver.addLanguage(l);for(const[a,l]of n)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}},m_=class{constructor(e,t){ce(this,"_langs",new Map);ce(this,"_scopeToLang",new Map);ce(this,"_injections",new Map);ce(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const a=t.slice(0,r).join(".");n=[...n,...this._injections.get(a)||[]]}return n}};let d0=0;function h_(e){d0+=1,e.warnings!==!1&&d0>=10&&d0%10===0&&console.warn(`[Shiki] ${d0} 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 un("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(w2),a=new p_(new m_(e.engine,n),r,n,e.langAlias);let l;function i(S){return R6(S,e.langAlias)}function u(S){C();const A=a.getGrammar(typeof S=="string"?S:S.name);if(!A)throw new un(`Language \`${S}\` not found, you may need to load it first`);return A}function d(S){if(S==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const A=a.getTheme(S);if(!A)throw new un(`Theme \`${S}\` not found, you may need to load it first`);return A}function m(S){C();const A=d(S);return l!==S&&(a.setTheme(A),l=S),{theme:A,colorMap:a.getColorMap()}}function f(){return C(),a.getLoadedThemes()}function h(){return C(),a.getLoadedLanguages()}function b(...S){C(),a.loadLanguages(S.flat(1))}async function y(...S){return b(await u_(S))}function g(...S){C();for(const A of S.flat(1))a.loadTheme(A)}async function _(...S){return C(),g(await d_(S))}function C(){if(t)throw new un("Shiki instance has been disposed")}function k(){t||(t=!0,a.dispose(),d0-=1)}return{setTheme:m,getTheme:d,getLanguage:u,getLoadedThemes:f,getLoadedLanguages:h,resolveLangAlias:i,loadLanguage:y,loadLanguageSync:b,loadTheme:_,loadThemeSync:g,dispose:k,[Symbol.dispose]:k}}const P6=new WeakMap;function vm(e,t){P6.set(e,t)}function M0(e){return P6.get(e)}var bm=class F6{constructor(...t){ce(this,"_stacks",{});ce(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}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 F6(Object.fromEntries(s_(n).map(r=>[r,bf])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return f_(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function f_(e){const t=[],n=new Set;function r(a){var i;if(n.has(a))return;n.add(a);const l=(i=a==null?void 0:a.nameScopesList)==null?void 0:i.scopeName;l&&t.push(l),a.parent&&r(a.parent)}return r(e),t}function g_(e,t){if(!(e instanceof bm))throw new un("Invalid grammar state");return e.getInternalStack(t)}const v_=/,/,b_=/ /;function O6(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(hm(e.resolveLangAlias(n.lang||"text"))||fm(r))return gm(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:l}=e.setTheme(r),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new un(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(a.name))throw new un(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return x_(t,i,a,l,n)}function y_(...e){if(e.length===2)return M0(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:l=t.getLoadedThemes()[0]}=r;if(hm(a)||fm(l))throw new un("Plain language does not have grammar state");if(a==="ansi")throw new un("ANSI language does not have grammar state");const{theme:i,colorMap:u}=t.setTheme(l),d=t.getLanguage(a);return new bm(j2(n,d,i,u,r).stateStack,d.name,i.name)}function x_(e,t,n,r,a){const l=j2(e,t,n,r,a),i=new bm(l.stateStack,t.name,n.name);return vm(l.tokens,i),l.tokens}function j2(e,t,n,r,a){const l=Pp(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:u=500,includeExplanation:d=!1}=a,m=gm(e);let f=a.grammarState?g_(a.grammarState,n.name)??bf:a.grammarContextCode!=null?j2(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:bf,h=[];const b=[];for(let y=0,g=m.length;y<g;y++){const[_,C]=m[y];if(_===""){h=[],b.push([]);continue}if(i>0&&_.length>=i){h=[],b.push([{content:_,offset:C,color:"",fontStyle:0}]);continue}let k,S,A;d&&d!=="tokenType"&&(k=t.tokenizeLine(_,f,u),S=k.tokens,A=0);const I=t.tokenizeLine2(_,f,u),M=I.tokens.length/2;for(let L=0;L<M;L++){const F=I.tokens[2*L],G=L+1<M?I.tokens[2*L+2]:_.length;if(F===G)continue;const O=I.tokens[2*L+1],B=Ti(r[Bl.getForeground(O)],l),W=Bl.getFontStyle(O),re={content:_.substring(F,G),offset:C+F,color:B,fontStyle:W};if(d==="tokenType")re.type=Bl.getTokenType(O);else if(d){const fe=[];if(d!=="scopeName")for(const ne of n.settings){let we;switch(typeof ne.scope){case"string":we=ne.scope.split(v_).map(je=>je.trim());break;case"object":we=ne.scope;break;default:continue}fe.push({settings:ne,selectors:we.map(je=>je.split(b_))})}re.explanation=[];let he=0;for(;F+he<G;){const ne=S[A],we=_.substring(ne.startIndex,ne.endIndex);he+=we.length,re.explanation.push({content:we,scopes:d==="scopeName"?__(ne.scopes):w_(fe,ne.scopes)}),A+=1}}h.push(re)}b.push(h),h=[],f=I.ruleStack}return{tokens:b,stateStack:f}}function __(e){return e.map(t=>({scopeName:t}))}function w_(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const l=t[r];n[r]={scopeName:l,themeMatches:C_(e,l,t.slice(0,r))}}return n}function y3(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function j_(e,t,n){if(!y3(e.at(-1),t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)y3(e[r],n[a])&&(r-=1),a-=1;return r===-1}function C_(e,t,n){const r=[];for(const{selectors:a,settings:l}of e)for(const i of a)if(j_(i,t,n)){r.push(l);break}return r}function B6(e,t,n,r=O6){const a=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})),l=a.map(m=>{const f=r(e,t,{...n,theme:m.theme});return{tokens:f,state:M0(f),theme:typeof m.theme=="string"?m.theme:m.theme.name}}),i=k_(...l.map(m=>m.tokens)),u=i[0].map((m,f)=>m.map((h,b)=>{const y={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=h.explanation),i.forEach((g,_)=>{const{content:C,explanation:k,offset:S,...A}=g[f][b];y.variants[a[_].color]=A}),y})),d=l[0].state?new bm(Object.fromEntries(l.map(m=>{var f;return[m.theme,(f=m.state)==null?void 0:f.getInternalStack(m.theme)]})),l[0].state.lang):void 0;return d&&vm(u,d),u}function k_(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),l=t.map(()=>[]);t.forEach((d,m)=>d.push(l[m]));const i=a.map(()=>0),u=a.map(d=>d[0]);for(;u.every(d=>d);){const d=Math.min(...u.map(m=>m.content.length));for(let m=0;m<n;m++){const f=u[m];f.content.length===d?(l[m].push(f),i[m]+=1,u[m]=a[m][i[m]]):(l[m].push({...f,content:f.content.slice(0,d)}),u[m]={...f,content:f.content.slice(d),offset:f.offset+d})}}}return t}const N_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class V0{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}V0.prototype.normal={};V0.prototype.property={};V0.prototype.space=void 0;function H6(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new V0(n,r,t)}function yf(e){return e.toLowerCase()}class va{constructor(t,n){this.attribute=n,this.property=t}}va.prototype.attribute="";va.prototype.booleanish=!1;va.prototype.boolean=!1;va.prototype.commaOrSpaceSeparated=!1;va.prototype.commaSeparated=!1;va.prototype.defined=!1;va.prototype.mustUseProperty=!1;va.prototype.number=!1;va.prototype.overloadedBoolean=!1;va.prototype.property="";va.prototype.spaceSeparated=!1;va.prototype.space=void 0;let S_=0;const dt=Ql(),Hn=Ql(),xf=Ql(),Ne=Ql(),Qt=Ql(),Hl=Ql(),Da=Ql();function Ql(){return 2**++S_}const _f=Object.freeze(Object.defineProperty({__proto__:null,boolean:dt,booleanish:Hn,commaOrSpaceSeparated:Da,commaSeparated:Hl,number:Ne,overloadedBoolean:xf,spaceSeparated:Qt},Symbol.toStringTag,{value:"Module"})),gh=Object.keys(_f);class C2 extends va{constructor(t,n,r,a){let l=-1;if(super(t,n),x3(this,"space",a),typeof r=="number")for(;++l<gh.length;){const i=gh[l];x3(this,gh[l],(r&_f[i])===_f[i])}}}C2.prototype.defined=!0;function x3(e,t,n){n&&(e[t]=n)}function tu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const l=new C2(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[yf(r)]=r,n[yf(l.attribute)]=r}return new V0(t,n,e.space)}const U6=tu({properties:{ariaActiveDescendant:null,ariaAtomic:Hn,ariaAutoComplete:null,ariaBusy:Hn,ariaChecked:Hn,ariaColCount:Ne,ariaColIndex:Ne,ariaColSpan:Ne,ariaControls:Qt,ariaCurrent:null,ariaDescribedBy:Qt,ariaDetails:null,ariaDisabled:Hn,ariaDropEffect:Qt,ariaErrorMessage:null,ariaExpanded:Hn,ariaFlowTo:Qt,ariaGrabbed:Hn,ariaHasPopup:null,ariaHidden:Hn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qt,ariaLevel:Ne,ariaLive:null,ariaModal:Hn,ariaMultiLine:Hn,ariaMultiSelectable:Hn,ariaOrientation:null,ariaOwns:Qt,ariaPlaceholder:null,ariaPosInSet:Ne,ariaPressed:Hn,ariaReadOnly:Hn,ariaRelevant:null,ariaRequired:Hn,ariaRoleDescription:Qt,ariaRowCount:Ne,ariaRowIndex:Ne,ariaRowSpan:Ne,ariaSelected:Hn,ariaSetSize:Ne,ariaSort:null,ariaValueMax:Ne,ariaValueMin:Ne,ariaValueNow:Ne,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function V6(e,t){return t in e?e[t]:t}function G6(e,t){return V6(e,t.toLowerCase())}const $_=tu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hl,acceptCharset:Qt,accessKey:Qt,action:null,allow:null,allowFullScreen:dt,allowPaymentRequest:dt,allowUserMedia:dt,alpha:dt,alt:null,as:null,async:dt,autoCapitalize:null,autoComplete:Qt,autoFocus:dt,autoPlay:dt,blocking:Qt,capture:null,charSet:null,checked:dt,cite:null,className:Qt,closedBy:null,colorSpace:null,cols:Ne,colSpan:Ne,command:null,commandFor:null,content:null,contentEditable:Hn,controls:dt,controlsList:Qt,coords:Ne|Hl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dt,defer:dt,dir:null,dirName:null,disabled:dt,download:xf,draggable:Hn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dt,formTarget:null,headers:Qt,height:Ne,hidden:xf,high:Ne,href:null,hrefLang:null,htmlFor:Qt,httpEquiv:Qt,id:null,imageSizes:null,imageSrcSet:null,inert:dt,inputMode:null,integrity:null,is:null,isMap:dt,itemId:null,itemProp:Qt,itemRef:Qt,itemScope:dt,itemType:Qt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dt,low:Ne,manifest:null,max:null,maxLength:Ne,media:null,method:null,min:null,minLength:Ne,multiple:dt,muted:dt,name:null,nonce:null,noModule:dt,noValidate:dt,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:dt,optimum:Ne,pattern:null,ping:Qt,placeholder:null,playsInline:dt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dt,referrerPolicy:null,rel:Qt,required:dt,reversed:dt,rows:Ne,rowSpan:Ne,sandbox:Qt,scope:null,scoped:dt,seamless:dt,selected:dt,shadowRootClonable:dt,shadowRootCustomElementRegistry:dt,shadowRootDelegatesFocus:dt,shadowRootMode:null,shadowRootSerializable:dt,shape:null,size:Ne,sizes:null,slot:null,span:Ne,spellCheck:Hn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ne,step:null,style:null,tabIndex:Ne,target:null,title:null,translate:null,type:null,typeMustMatch:dt,useMap:null,value:Hn,width:Ne,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qt,axis:null,background:null,bgColor:null,border:Ne,borderColor:null,bottomMargin:Ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dt,declare:dt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ne,leftMargin:Ne,link:null,longDesc:null,lowSrc:null,marginHeight:Ne,marginWidth:Ne,noResize:dt,noHref:dt,noShade:dt,noWrap:dt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ne,rules:null,scheme:null,scrolling:Hn,standby:null,summary:null,text:null,topMargin:Ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ne,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:dt,disablePictureInPicture:dt,disableRemotePlayback:dt,exportParts:Hl,part:Qt,prefix:null,property:null,results:Ne,security:null,unselectable:null},space:"html",transform:G6}),A_=tu({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",maskType:"mask-type",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:Da,accentHeight:Ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ne,amplitude:Ne,arabicForm:null,ascent:Ne,attributeName:null,attributeType:null,azimuth:Ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ne,by:null,calcMode:null,capHeight:Ne,className:Qt,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:Ne,diffuseConstant:Ne,direction:null,display:null,dur:null,divisor:Ne,dominantBaseline:null,download:dt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ne,enableBackground:null,end:null,event:null,exponent:Ne,externalResourcesRequired:null,fill:null,fillOpacity:Ne,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:Hl,g2:Hl,glyphName:Hl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ne,horizOriginX:Ne,horizOriginY:Ne,id:null,ideographic:Ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ne,k:Ne,k1:Ne,k2:Ne,k3:Ne,k4:Ne,kernelMatrix:Da,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ne,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ne,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:Ne,overlineThickness:Ne,paintOrder:null,panose1:null,path:null,pathLength:Ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ne,pointsAtY:Ne,pointsAtZ:Ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Da,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Da,rev:Da,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Da,requiredFeatures:Da,requiredFonts:Da,requiredFormats:Da,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:Ne,specularExponent:Ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ne,strikethroughThickness:Ne,string:null,stroke:null,strokeDashArray:Da,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ne,strokeOpacity:Ne,strokeWidth:null,style:null,surfaceScale:Ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Da,tabIndex:Ne,tableValues:null,target:null,targetX:Ne,targetY:Ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Da,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ne,underlineThickness:Ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ne,values:null,vAlphabetic:Ne,vMathematical:Ne,vectorEffect:null,vHanging:Ne,vIdeographic:Ne,version:null,vertAdvY:Ne,vertOriginX:Ne,vertOriginY:Ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:V6}),W6=tu({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()}}),Z6=tu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:G6}),Q6=tu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),E_=/[A-Z]/g,_3=/-[a-z]/g,D_=/^data[-\w.:]+$/i;function z_(e,t){const n=yf(t);let r=t,a=va;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&D_.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(_3,M_);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!_3.test(l)){let i=l.replace(E_,T_);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=C2}return new a(r,t)}function T_(e){return"-"+e.toLowerCase()}function M_(e){return e.charAt(1).toUpperCase()}const L_=H6([U6,$_,W6,Z6,Q6],"html"),X6=H6([U6,A_,W6,Z6,Q6],"svg"),w3={}.hasOwnProperty;function I_(e,t){const n=t||{};function r(a,...l){let i=r.invalid;const u=r.handlers;if(a&&w3.call(a,e)){const d=String(a[e]);i=w3.call(u,d)?u[d]:r.unknown}if(i)return i.call(this,a,...l)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const q_=/["&'<>`]/g,R_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,F_=/[|\\{}()[\]^$+*?.]/g,j3=new WeakMap;function O_(e,t){if(e=e.replace(t.subset?B_(t.subset):q_,r),t.subset||t.escapeOnly)return e;return e.replace(R_,n).replace(P_,r);function n(a,l,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(l+2),t)}function r(a,l,i){return t.format(a.charCodeAt(0),i.charCodeAt(l+1),t)}}function B_(e){let t=j3.get(e);return t||(t=H_(e),j3.set(e,t)),t}function H_(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(F_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const U_=/[\dA-Fa-f]/;function V_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!U_.test(String.fromCharCode(t))?r:r+";"}const G_=/\d/;function W_(e,t,n){const r="&#"+String(e);return n&&t&&!G_.test(String.fromCharCode(t))?r:r+";"}const Z_=["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"],vh={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:"€"},Q_=["cent","copy","divide","gt","lt","not","para","times"],Y6={}.hasOwnProperty,wf={};let sp;for(sp in vh)Y6.call(vh,sp)&&(wf[vh[sp]]=sp);const X_=/[^\dA-Za-z]/;function Y_(e,t,n,r){const a=String.fromCharCode(e);if(Y6.call(wf,a)){const l=wf[a],i="&"+l;return n&&Z_.includes(l)&&!Q_.includes(l)&&(!r||t&&t!==61&&X_.test(String.fromCharCode(t)))?i:i+";"}return""}function K_(e,t,n){let r=V_(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Y_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const l=W_(e,t,n.omitOptionalSemicolons);l.length<r.length&&(r=l)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Wc(e,t){return O_(e,Object.assign({format:K_},t))}const J_=/^>|^->|<!--|-->|--!>|<!-$/g,ew=[">"],tw=["<",">"];function nw(e,t,n,r){return r.settings.bogusComments?"<?"+Wc(e.value,Object.assign({},r.settings.characterReferences,{subset:ew}))+">":"<!--"+e.value.replace(J_,a)+"-->";function a(l){return Wc(l,Object.assign({},r.settings.characterReferences,{subset:tw}))}}function rw(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Fp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function aw(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function ow(e){return e.join(" ").trim()}const sw=/[ \t\n\f\r]/g;function k2(e){return typeof e=="object"?e.type==="text"?C3(e.value):!1:C3(e)}function C3(e){return e.replace(sw,"")===""}const nr=J6(1),K6=J6(-1),iw=[];function J6(e){return t;function t(n,r,a){const l=n?n.children:iw;let i=(r||0)+e,u=l[i];if(!a)for(;u&&k2(u);)i+=e,u=l[i];return u}}const lw={}.hasOwnProperty;function eb(e){return t;function t(n,r,a){return lw.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const N2=eb({body:uw,caption:bh,colgroup:bh,dd:hw,dt:mw,head:bh,html:cw,li:pw,optgroup:fw,option:gw,p:dw,rp:k3,rt:k3,tbody:bw,td:N3,tfoot:yw,th:N3,thead:vw,tr:xw});function bh(e,t,n){const r=nr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&k2(r.value.charAt(0)))}function cw(e,t,n){const r=nr(n,t);return!r||r.type!=="comment"}function uw(e,t,n){const r=nr(n,t);return!r||r.type!=="comment"}function dw(e,t,n){const r=nr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function pw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function mw(e,t,n){const r=nr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function hw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function k3(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function fw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function gw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vw(e,t,n){const r=nr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function bw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function yw(e,t,n){return!nr(n,t)}function xw(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function N3(e,t,n){const r=nr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const _w=eb({body:Cw,colgroup:kw,head:jw,html:ww,tbody:Nw});function ww(e){const t=nr(e,-1);return!t||t.type!=="comment"}function jw(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Cw(e){const t=nr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&k2(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function kw(e,t,n){const r=K6(n,t),a=nr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&N2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Nw(e,t,n){const r=K6(n,t),a=nr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&N2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const ip={name:[[`
|
|
44
|
-
\f\r &/=>`.split(""),`
|
|
45
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
46
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
47
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
48
|
-
\f\r &>`.split(""),`\0
|
|
49
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
50
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
51
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Sw(e,t,n,r){const a=r.schema,l=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=X6);const m=$w(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(i=!1),(m||!l||!_w(e,t,n))&&(u.push("<",e.tagName,m?" "+m:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=m.charAt(m.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!i&&(!l||!N2(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function $w(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const l=Aw(e,a,t[a]);l&&n.push(l)}}for(;++r<n.length;){const l=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&l!=='"'&&l!=="'"&&(n[r]+=" ")}return n.join("")}function Aw(e,t,n){const r=z_(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,l=e.settings.allowDangerousCharacters?0:1;let i=e.quote,u;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Wc(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ip.name[a][l]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?aw:ow)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=Wc(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ip.unquoted[a][l]}))),u!==n&&(e.settings.quoteSmart&&Fp(n,i)>Fp(n,e.alternative)&&(i=e.alternative),u=i+Wc(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ip.single:ip.double)[a][l],attribute:!0}))+i),d+(u&&"="+u))}const Ew=["<","&"];function tb(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Wc(e.value,Object.assign({},r.settings.characterReferences,{subset:Ew}))}function Dw(e,t,n,r){return r.settings.allowDangerousHtml?e.value:tb(e,t,n,r)}function zw(e,t,n,r){return r.all(e)}const Tw=I_("type",{invalid:Mw,unknown:Lw,handlers:{comment:nw,doctype:rw,element:Sw,raw:Dw,root:zw,text:tb}});function Mw(e){throw new Error("Expected node, not `"+e+"`")}function Lw(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Iw={},qw={},Rw=[];function Pw(e,t){const n=t||Iw,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Fw,all:Ow,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||N_,characterReferences:n.characterReferences||qw,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?X6:L_,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Fw(e,t,n){return Tw(e,t,n,this)}function Ow(e){const t=[],n=e&&e.children||Rw;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const S3=/\s+/g;function nb(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(S3)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(S3);for(const a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function Bw(e){const t=gm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t.at(-1).length};let l=a,i=0;for(const u of t){if(l<u.length)break;l-=u.length,i++}return{line:i,character:l}}function r(a,l){let i=0;for(let u=0;u<a;u++)i+=t[u].length;return i+=l,i}return{lines:t,indexToPos:n,posToIndex:r}}const Hw=["color","background-color"];function Uw(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Vw(e,t){let n=0,r=e.length;for(;n<r;){const a=n+(r-n>>1);e[a]<=t?n=a+1:r=a}return n}function Gw(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const l=a.offset+a.content.length,i=Vw(n,a.offset);let u=i;for(;u<n.length&&n[u]<l;)u++;if(i===u)return a;const d=n.slice(i,u);for(let m=0;m<d.length;m++)d[m]-=a.offset;return Uw(a,d)})):e}function Ww(e,t,n,r,a="css-vars"){const l={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(f=>Op(e.variants[f])),u=new Set(i.flatMap(f=>Object.keys(f))),d={},m=(f,h)=>{const b=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[f]+(h==="color"?"":b)};return i.forEach((f,h)=>{for(const b of u){const y=f[b]||"inherit";if(h===0&&r&&Hw.includes(b))if(r==="light-dark()"&&i.length>1){const g=t.findIndex(S=>S==="light"),_=t.findIndex(S=>S==="dark");if(g===-1||_===-1)throw new un('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=i[g][b]||"inherit",k=i[_][b]||"inherit";d[b]=`light-dark(${C}, ${k})`,a==="css-vars"&&(d[m(h,b)]=y)}else d[b]=y;else a==="css-vars"&&(d[m(h,b)]=y)}}),l.htmlStyle=d,l}function Op(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Mr.Italic&&(t["font-style"]="italic"),e.fontStyle&Mr.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Mr.Underline&&n.push("underline"),e.fontStyle&Mr.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function jf(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Zw(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let a=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new un(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...r.indexToPos(i),offset:i}}else{const u=r.lines[i.line];if(u===void 0)throw new un(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${r.lines.length}`);let d=i.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new un(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${u.length}`);return{...i,character:d,offset:r.posToIndex(i.line,d)}}};const r=Bw(n.source),l=(n.options.decorations||[]).map(i=>({...i,start:a(i.start),end:a(i.end)}));Qw(l),e.set(n.meta,{decorations:l,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var r;if((r=this.options.decorations)!=null&&r.length)return Gw(n,t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]))},code(n){var f;if(!((f=this.options.decorations)!=null&&f.length))return;const r=t(this),a=[...n.children].filter(h=>h.type==="element"&&h.tagName==="span");if(a.length!==r.converter.lines.length)throw new un(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function l(h,b,y,g){const _=a[h];let C="",k=-1,S=-1;if(b===0&&(k=0),y===0&&(S=0),y===Number.POSITIVE_INFINITY&&(S=_.children.length),k===-1||S===-1)for(let I=0;I<_.children.length;I++)C+=rb(_.children[I]),k===-1&&C.length===b&&(k=I+1),S===-1&&C.length===y&&(S=I+1);if(k===-1)throw new un(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(S===-1)throw new un(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const A=_.children.slice(k,S);if(!g.alwaysWrap&&A.length===_.children.length)u(_,g,"line");else if(!g.alwaysWrap&&A.length===1&&A[0].type==="element")u(A[0],g,"token");else{const I={type:"element",tagName:"span",properties:{},children:A};u(I,g,"wrapper"),_.children.splice(k,A.length,I)}}function i(h,b){a[h]=u(a[h],b,"line")}function u(h,b,y){var C;const g=b.properties||{},_=b.transform||(k=>k);return h.tagName=b.tagName||"span",h.properties={...h.properties,...g,class:h.properties.class},(C=b.properties)!=null&&C.class&&nb(h,b.properties.class),h=_(h,y)||h,h}const d=[],m=r.decorations.sort((h,b)=>b.start.offset-h.start.offset||h.end.offset-b.end.offset);for(const h of m){const{start:b,end:y}=h;if(b.line===y.line)l(b.line,b.character,y.character,h);else if(b.line<y.line){l(b.line,b.character,Number.POSITIVE_INFINITY,h);for(let g=b.line+1;g<y.line;g++)d.unshift(()=>i(g,h));l(y.line,0,y.character,h)}}d.forEach(h=>h())}}}function Qw(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new un(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],l=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,i=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(l||i||u||d){if(l&&i||u&&d||u&&n.start.offset===n.end.offset||i&&a.start.offset===a.end.offset)continue;throw new un(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function rb(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(rb).join(""):""}const Xw=[Zw()];function Bp(e){const t=Yw(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Xw]}function Yw(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var Il=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],yh={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Kw(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function $3(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Jw(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)yh[r]&&t.push({type:"setDecoration",value:yh[r]});else if(r<=29){const a=yh[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Il[r-30]}});else if(r===38){const a=$3(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Il[r-40]}});else if(r===48){const a=$3(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Il[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Il[r-100+8]}})}return t}function ej(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let l=0;do{const i=Kw(r,l),u=i.sequence?r.substring(l,i.startPosition):r.substring(l);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const d=Jw(i.sequence);for(const m of d)m.type==="resetAll"?(e=null,t=null,n.clear()):m.type==="resetForegroundColor"?e=null:m.type==="resetBackgroundColor"?t=null:m.type==="resetDecoration"&&n.delete(m.value);for(const m of d)m.type==="setForegroundColor"?e=m.value:m.type==="setBackgroundColor"?t=m.value:m.type==="setDecoration"&&n.add(m.value)}l=i.position}while(l<r.length);return a}}}var tj={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 nj(e=tj){function t(u){return e[u]}function n(u){return`#${u.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let m=0;m<Il.length;m++)r.push(t(Il[m]));let u=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let f=0;f<6;f++)for(let h=0;h<6;h++)r.push(n([u[m],u[f],u[h]]));let d=8;for(let m=0;m<24;m++,d+=10)r.push(n([d,d,d]));return r}function l(u){return a()[u]}function i(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return l(u.index)}}return{value:i}}const rj=/#([0-9a-f]{3,8})/i,aj=/var\((--[\w-]+-ansi-[\w-]+)\)/,oj={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 sj(e,t,n){const r=Pp(e,n),a=gm(t),l=nj(Object.fromEntries(Il.map(u=>{var m;const d=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`;return[u,((m=e.colors)==null?void 0:m[d])||oj[u]]}))),i=ej();return a.map(u=>i.parse(u[0]).map(d=>{let m,f;d.decorations.has("reverse")?(m=d.background?l.value(d.background):e.bg,f=d.foreground?l.value(d.foreground):e.fg):(m=d.foreground?l.value(d.foreground):e.fg,f=d.background?l.value(d.background):void 0),m=Ti(m,r),f=Ti(f,r),d.decorations.has("dim")&&(m=ij(m));let h=Mr.None;return d.decorations.has("bold")&&(h|=Mr.Bold),d.decorations.has("italic")&&(h|=Mr.Italic),d.decorations.has("underline")&&(h|=Mr.Underline),d.decorations.has("strikethrough")&&(h|=Mr.Strikethrough),{content:d.value,offset:u[1],color:m,bgColor:f,fontStyle:h}}))}function ij(e){const t=e.match(rj);if(t){const r=t[1];if(r.length===8){const a=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${a}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const a=r[0],l=r[1],i=r[2],u=r[3];return`#${a}${a}${l}${l}${i}${i}${Math.round(Number.parseInt(`${u}${u}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const a=r[0],l=r[1],i=r[2];return`#${a}${a}${l}${l}${i}${i}80`}}}const n=e.match(aj);return n?`var(${n[1]}-dim)`:e}function Cf(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=n;if(!hm(r)&&!fm(a)&&r==="ansi"){const{theme:l}=e.setTheme(a);return sj(l,t,n)}return O6(e,t,n)}function Hp(e,t,n){let r,a,l,i,u,d;if("themes"in n){const{defaultColor:m="light",cssVariablePrefix:f="--shiki-",colorsRendering:h="css-vars"}=n,b=Object.entries(n.themes).filter(k=>k[1]).map(k=>({color:k[0],theme:k[1]})).sort((k,S)=>k.color===m?-1:S.color===m?1:0);if(b.length===0)throw new un("`themes` option must not be empty");const y=B6(e,t,n,Cf);if(d=M0(y),m&&m!=="light-dark()"&&!b.some(k=>k.color===m))throw new un(`\`themes\` option must contain the defaultColor key \`${m}\``);const g=b.map(k=>e.getTheme(k.theme)),_=b.map(k=>k.color);l=y.map(k=>k.map(S=>Ww(S,_,f,m,h))),d&&vm(l,d);const C=b.map(k=>Pp(k.theme,n));a=A3(b,g,C,f,m,"fg",h),r=A3(b,g,C,f,m,"bg",h),i=`shiki-themes ${g.map(k=>k.name).join(" ")}`,u=m?void 0:[a,r].join(";")}else if("theme"in n){const m=Pp(n.theme,n);l=Cf(e,t,n);const f=e.getTheme(n.theme);r=Ti(f.bg,m),a=Ti(f.fg,m),i=f.name,d=M0(l)}else throw new un("Invalid options, either `theme` or `themes` must be provided");return{tokens:l,fg:a,bg:r,themeName:i,rootStyle:u,grammarState:d}}function A3(e,t,n,r,a,l,i){return e.map((u,d)=>{const m=Ti(t[d][l],n[d])||"inherit",f=`${r+u.color}${l==="bg"?"-bg":""}:${m}`;if(d===0&&a){if(a==="light-dark()"&&e.length>1){const h=e.findIndex(y=>y.color==="light"),b=e.findIndex(y=>y.color==="dark");if(h===-1||b===-1)throw new un('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Ti(t[h][l],n[h])||"inherit"}, ${Ti(t[b][l],n[b])||"inherit"});${f}`}return m}return i==="css-vars"?f:null}).filter(u=>!!u).join(";")}const ab=/^\s+$/,lj=/^(\s*)(.*?)(\s*)$/;function Up(e,t,n,r={meta:{},options:n,codeToHast:(a,l)=>Up(e,a,l),codeToTokens:(a,l)=>Hp(e,a,l)}){var g,_;let a=t;for(const C of Bp(n))a=((g=C.preprocess)==null?void 0:g.call(r,a,n))||a;let{tokens:l,fg:i,bg:u,themeName:d,rootStyle:m,grammarState:f}=Hp(e,a,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:b=!1}=n;h===!0?l=uj(l):h==="never"&&(l=dj(l)),b&&(l=pj(l));const y={...r,get source(){return a}};for(const C of Bp(n))l=((_=C.tokens)==null?void 0:_.call(y,l))||l;return cj(l,{...n,fg:i,bg:u,themeName:d,rootStyle:n.rootStyle===!1?!1:n.rootStyle??m},y,f)}function cj(e,t,n,r=M0(e)){var _,C,k,S;const a=Bp(t),l=[],i={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t,m={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?m.style=t.rootStyle:m.style=`background-color:${t.bg};color:${t.fg}`),d!==!1&&d!=null&&(m.tabindex=d.toString());for(const[A,I]of Object.entries(t.meta||{}))A.startsWith("_")||(m[A]=I);let f={type:"element",tagName:"pre",properties:m,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:l};const b=[],y={...n,structure:u,addClassToHast:nb,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return f},get code(){return h},get lines(){return b}};if(e.forEach((A,I)=>{var F,G;I&&(u==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&l.push({type:"text",value:`
|
|
52
|
-
`}));let M={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of A){let B={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};const W=jf(O.htmlStyle||Op(O));W&&(B.properties.style=W);for(const re of a)B=((F=re==null?void 0:re.span)==null?void 0:F.call(y,B,I+1,L,M,O))||B;u==="inline"?i.children.push(B):u==="classic"&&M.children.push(B),L+=O.content.length}if(u==="classic"){for(const O of a)M=((G=O==null?void 0:O.line)==null?void 0:G.call(y,M,I+1))||M;b.push(M),l.push(M)}else u==="inline"&&b.push(M)}),u==="classic"){for(const A of a)h=((_=A==null?void 0:A.code)==null?void 0:_.call(y,h))||h;f.children.push(h);for(const A of a)f=((C=A==null?void 0:A.pre)==null?void 0:C.call(y,f))||f;i.children.push(f)}else if(u==="inline"){const A=[];let I={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of i.children)L.type==="element"&&L.tagName==="br"?(A.push(I),I={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&I.children.push(L);A.push(I);let M={type:"element",tagName:"code",properties:{},children:A};for(const L of a)M=((k=L==null?void 0:L.code)==null?void 0:k.call(y,M))||M;i.children=[];for(let L=0;L<M.children.length;L++){L>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const F=M.children[L];F.type==="element"&&i.children.push(...F.children)}}let g=i;for(const A of a)g=((S=A==null?void 0:A.root)==null?void 0:S.call(y,g))||g;return r&&vm(g,r),g}function uj(e){return e.map(t=>{const n=[];let r="",a;return t.forEach((l,i)=>{const u=!(l.fontStyle&&(l.fontStyle&Mr.Underline||l.fontStyle&Mr.Strikethrough));u&&ab.test(l.content)&&t[i+1]?(a===void 0&&(a=l.offset),r+=l.content):r?(u?n.push({...l,offset:a,content:r+l.content}):n.push({content:r,offset:a},l),a=void 0,r=""):n.push(l)}),n})}function dj(e){return e.map(t=>t.flatMap(n=>{if(ab.test(n.content))return n;const r=n.content.match(lj);if(!r)return n;const[,a,l,i]=r;if(!a&&!i)return n;const u=[{...n,offset:n.offset+a.length,content:l}];return a&&u.unshift({content:a,offset:n.offset}),i&&u.push({content:i,offset:n.offset+a.length+l.length}),u}))}function pj(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n.at(-1),l=jf(a.htmlStyle||Op(a)),i=jf(r.htmlStyle||Op(r)),u=a.fontStyle&&(a.fontStyle&Mr.Underline||a.fontStyle&Mr.Strikethrough),d=r.fontStyle&&(r.fontStyle&Mr.Underline||r.fontStyle&Mr.Strikethrough);!u&&!d&&l===i?a.content+=r.content:n.push({...r})}return n})}const mj=Pw;function hj(e,t,n){var l;const r={meta:{},options:n,codeToHast:(i,u)=>Up(e,i,u),codeToTokens:(i,u)=>Hp(e,i,u)};let a=mj(Up(e,t,n,r));for(const i of Bp(n))a=((l=i.postprocess)==null?void 0:l.call(r,a,n))||a;return a}function fj(e){const t=h_(e);return{getLastGrammarState:(...n)=>y_(t,...n),codeToTokensBase:(n,r)=>Cf(t,n,r),codeToTokensWithThemes:(n,r)=>B6(t,n,r),codeToTokens:(n,r)=>Hp(t,n,r),codeToHast:(n,r)=>Up(t,n,r),codeToHtml:(n,r)=>hj(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function gj(e={}){var i;const{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,a=u=>{var d;return(d=e.variableDefaults)!=null&&d[u]?`var(${n}${u}, ${e.variableDefaults[u]})`:`var(${n}${u})`},l={name:t,type:"dark",colors:{"editor.foreground":a("foreground"),"editor.background":a("background"),"terminal.ansiBlack":a("ansi-black"),"terminal.ansiRed":a("ansi-red"),"terminal.ansiGreen":a("ansi-green"),"terminal.ansiYellow":a("ansi-yellow"),"terminal.ansiBlue":a("ansi-blue"),"terminal.ansiMagenta":a("ansi-magenta"),"terminal.ansiCyan":a("ansi-cyan"),"terminal.ansiWhite":a("ansi-white"),"terminal.ansiBrightBlack":a("ansi-bright-black"),"terminal.ansiBrightRed":a("ansi-bright-red"),"terminal.ansiBrightGreen":a("ansi-bright-green"),"terminal.ansiBrightYellow":a("ansi-bright-yellow"),"terminal.ansiBrightBlue":a("ansi-bright-blue"),"terminal.ansiBrightMagenta":a("ansi-bright-magenta"),"terminal.ansiBrightCyan":a("ansi-bright-cyan"),"terminal.ansiBrightWhite":a("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:a("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:a("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:a("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:a("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:a("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:a("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:a("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:a("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:a("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:a("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:a("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:a("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:a("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:a("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:a("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:a("token-changed")}}]};return r||(l.tokenColors=(i=l.tokenColors)==null?void 0:i.map(u=>{var d;return(d=u.settings)!=null&&d.fontStyle&&delete u.settings.fontStyle,u})),l}const E3=4294967295;var vj=class{constructor(e,t={}){ce(this,"patterns");ce(this,"options");ce(this,"regexps");this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(l=>{if(typeof l!="string")return l;const i=r==null?void 0:r.get(l);if(i){if(i instanceof RegExp)return i;if(n)return null;throw i}try{const u=a(l);return r==null||r.set(l,u),u}catch(u){if(r==null||r.set(l,u),n)return null;throw u}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,a=[];function l(i,u,d=0){return{index:i,captureIndices:u.indices.map(m=>m==null?{start:E3,end:E3,length:0}:{start:m[0]+d,end:m[1]+d,length:m[1]-m[0]})}}for(let i=0;i<this.regexps.length;i++){const u=this.regexps[i];if(u)try{u.lastIndex=t;const d=u.exec(r);if(!d)continue;if(d.index===t)return l(i,d,0);a.push([i,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(a.length){const i=Math.min(...a.map(u=>u[1].index));for(const[u,d,m]of a)if(d.index===i)return l(u,d,m)}return null}};function nu(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function bj(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const S2=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ur=String.raw;function ru(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ob=ur`\[\^?`,sb=`c.? | C(?:-.?)?|${ur`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ur`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ur`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ur`o\{[^\}]*\}?`}|${ur`\d{1,3}`}`,$2=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,lp=new RegExp(ur`
|
|
53
|
-
\\ (?:
|
|
54
|
-
${sb}
|
|
55
|
-
| [gk]<[^>]*>?
|
|
56
|
-
| [gk]'[^']*'?
|
|
57
|
-
| .
|
|
58
|
-
)
|
|
59
|
-
| \( (?:
|
|
60
|
-
\? (?:
|
|
61
|
-
[:=!>({]
|
|
62
|
-
| <[=!]
|
|
63
|
-
| <[^>]*>
|
|
64
|
-
| '[^']*'
|
|
65
|
-
| ~\|?
|
|
66
|
-
| #(?:[^)\\]|\\.?)*
|
|
67
|
-
| [^:)]*[:)]
|
|
68
|
-
)?
|
|
69
|
-
| \*[^\)]*\)?
|
|
70
|
-
)?
|
|
71
|
-
| (?:${$2.source})+
|
|
72
|
-
| ${ob}
|
|
73
|
-
| .
|
|
74
|
-
`.replace(/\s+/g,""),"gsu"),xh=new RegExp(ur`
|
|
75
|
-
\\ (?:
|
|
76
|
-
${sb}
|
|
77
|
-
| .
|
|
78
|
-
)
|
|
79
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
80
|
-
| ${ob}
|
|
81
|
-
| &&
|
|
82
|
-
| .
|
|
83
|
-
`.replace(/\s+/g,""),"gsu");function yj(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=Rj(n.flags),a=[r.extended],l={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(h){a.push(h)},replaceCurrentModX(h){a[a.length-1]=h},singleline:n.rules.singleline};let i=[],u;for(lp.lastIndex=0;u=lp.exec(e);){const h=xj(l,e,u[0],lp.lastIndex);h.tokens?i.push(...h.tokens):h.token&&i.push(h.token),h.lastIndex!==void 0&&(lp.lastIndex=h.lastIndex)}const d=[];let m=0;i.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++m:h.raw==="("&&d.push(h)}),m||d.forEach((h,b)=>{h.kind="capturing",h.number=b+1});const f=m||d.length;return{tokens:i.map(h=>h.type==="EscapedNumber"?Fj(h,f):h).flat(),flags:r}}function xj(e,t,n,r){const[a,l]=n;if(n==="["||n==="[^"){const i=_j(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(l))return{token:D3(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Dj(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:lb(n)}}if(l==="K")return{token:cb("keep",n)};if(l==="N"||l==="R")return{token:ql("newline",n,{negate:l==="N"})};if(l==="O")return{token:ql("any",n)};if(l==="X")return{token:ql("text_segment",n)};const i=ib(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(l==="*")return{token:Lj(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Mj(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Bc("group",n)};if(n==="(?>")return{token:Bc("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Bc(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Bc("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Bc("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:$j(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
84
|
-
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:ql("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":ur`\A`,$:ur`\Z`}[n]:n;return{token:D3(i,n)}}return n==="|"?{token:jj(n)}:$2.test(n)?{tokens:Oj(n)}:{token:Zs(nu(n),n)}}function _j(e,t,n){const r=[z3(t[1]==="^",t)];let a=1,l;for(xh.lastIndex=n;l=xh.exec(e);){const i=l[0];if(i[0]==="["&&i[1]!==":")a++,r.push(z3(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Zs(93,i));else if(a--,r.push(Cj(i)),!a)break}else{const u=wj(i);Array.isArray(u)?r.push(...u):r.push(u)}}return{tokens:r,lastIndex:xh.lastIndex||e.length}}function wj(e){if(e[0]==="\\")return ib(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!S2.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ql("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?kj(e):e==="&&"?Nj(e):Zs(nu(e),e)}function ib(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Tj(e);if("dDhHsSwW".includes(n))return Ij(e);if(e.startsWith(ur`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return qj(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),l=new TextEncoder;return[...a].map(i=>{const u=[...l.encode(i)].map(d=>`\\x${d.toString(16)}`).join("");return Zs(nu(i),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Zs(Pj(e),e);if(T3.has(n))return Zs(T3.get(n),e);if(/\d/.test(n))return Sj(t,e);if(e==="\\")throw new Error(ur`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Zs(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function jj(e){return{type:"Alternator",raw:e}}function D3(e,t){return{type:"Assertion",kind:e,raw:t}}function lb(e){return{type:"Backreference",raw:e}}function Zs(e,t){return{type:"Character",value:e,raw:t}}function Cj(e){return{type:"CharacterClassClose",raw:e}}function kj(e){return{type:"CharacterClassHyphen",raw:e}}function Nj(e){return{type:"CharacterClassIntersector",raw:e}}function z3(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ql(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function cb(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:ru(n.flags),raw:t}}function Sj(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function $j(e){return{type:"GroupClose",raw:e}}function Bc(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function Aj(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function Ej(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Dj(e){return{type:"Subroutine",raw:e}}const zj=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),T3=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Tj(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Zs(nu(t.toUpperCase())-64,e)}function Mj(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),l=L3(n),i=L3(r),u={};if(l&&(u.enable=l),i&&(u.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),cb("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Bc("group",e,{...(l||i)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function Lj(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const l=a?a.split(",").filter(f=>f!=="").map(f=>/^[+-]?\d+$/.test(f)?+f:f):[],[i,u,d]=l,m=zj.has(n)?n.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(l.length>0)throw new Error(`Named callout arguments not allowed "${l}"`);break;case"error":if(l.length>1)throw new Error(`Named callout allows only one argument "${l}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!l.length||l.length>2)throw new Error(`Named callout must have one or two arguments "${l}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(l.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);break;case"count":case"total_count":if(l.length>1)throw new Error(`Named callout allows only one argument "${l}"`);if(l.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(l.length!==3)throw new Error(`Named callout must have three arguments "${l}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof d=="string"&&!/^[A-Za-z_]\w*$/.test(d))throw new Error(`Named callout argument three must be a tag or number "${d}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${m}"`)}return Aj(m,r??null,(a==null?void 0:a.split(","))??null,e)}function M3(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:l}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||l&&+l>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=l===void 0?+a:l===""?1/0:+l,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Ej(t,n,r,e)}function Ij(e){const t=e[1].toLowerCase();return ql({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function qj(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ql("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function L3(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Rj(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function Pj(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Fj(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[lb(n)];const l=[],i=a.match(/^[0-7]+|\d/g);for(let u=0;u<i.length;u++){const d=i[u];let m;if(u===0&&d!=="8"&&d!=="9"){if(m=parseInt(d,8),m>127)throw new Error(ur`Octal encoded byte above 177 unsupported "${n}"`)}else m=nu(d);l.push(Zs(m,(u===0?"\\":"")+d))}return l}function Oj(e){const t=[],n=new RegExp($2,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const l=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(l){const{min:i,max:u}=l.groups;if(+i>+u&&a.endsWith("?")){n.lastIndex--,t.push(M3(a.slice(0,-1)));continue}}}t.push(M3(a))}return t}function ub(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Bj(e){return Hj.has(e.type)}const Hj=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function db(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=yj(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(b,y)=>{const g=r.tokens[l.nextIndex];switch(l.parent=b,l.nextIndex++,g.type){case"Alternator":return Ul();case"Assertion":return Uj(g);case"Backreference":return Vj(g,l);case"Character":return ym(g.value,{useLastValid:!!y.isCheckingRangeEnd});case"CharacterClassHyphen":return Gj(g,l,y);case"CharacterClassOpen":return Wj(g,l,y);case"CharacterSet":return Zj(g,l);case"Directive":return eC(g.kind,{flags:g.flags});case"GroupOpen":return Qj(g,l,y);case"NamedCallout":return nC(g.kind,g.tag,g.arguments);case"Quantifier":return Xj(g,l);case"Subroutine":return Yj(g,l);default:throw new Error(`Unexpected token type "${g.type}"`)}},l={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},i=aC(tC(r.flags));let u=i.body[0];for(;l.nextIndex<r.tokens.length;){const b=a(u,{});b.type==="Alternative"?(i.body.push(b),u=b):u.body.push(b)}const{capturingGroups:d,hasNumberedRef:m,namedGroupsByName:f,subroutines:h}=l;if(m&&f.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:b}of h)if(typeof b=="number"){if(b>d.length)throw new Error("Subroutine uses a group number that's not defined");b&&(d[b-1].isSubroutined=!0)}else if(f.has(b)){if(f.get(b).length>1)throw new Error(ur`Subroutine uses a duplicate group name "\g<${b}>"`);f.get(b)[0].isSubroutined=!0}else throw new Error(ur`Subroutine uses a group name that's not defined "\g<${b}>"`);return i}function Uj({kind:e}){return kf(ru({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===ur`\B`||e===ur`\Y`})}function Vj({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(l,i=!1)=>{const u=t.capturingGroups.length;let d=!1;if(l>u)if(t.skipBackrefValidation)d=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Nf(i?u+1-l:l,{orphan:d})};if(n){const l=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(l)return a(+l.groups.num,!!l.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Nf(r)}return a(+r)}function Gj(e,t,n){const{tokens:r,walk:a}=t,l=t.parent,i=l.body.at(-1),u=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const d=a(l,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&d.type==="Character")return l.body.pop(),Jj(i,d);throw new Error("Invalid character class range")}return ym(nu("-"))}function Wj({negate:e},t,n){const{tokens:r,walk:a}=t,l=[Sp()],i=r[t.nextIndex];let u=R3(i);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")l.push(Sp()),t.nextIndex++;else{const m=l.at(-1);m.body.push(a(m,n))}u=R3(r[t.nextIndex],i)}const d=Sp({negate:e});return l.length===1?d.body=l[0].body:(d.kind="intersection",d.body=l.map(m=>m.body.length===1?m.body[0]:m)),t.nextIndex++,d}function Zj({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:l,unicodePropertyMap:i}=r;if(e==="property"){const u=xm(n);if(S2.has(u)&&!(i!=null&&i.has(u)))e="posix",n=u;else return Hc(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:l,unicodePropertyMap:i})}return e==="posix"?rC(n,{negate:t}):Sf(e,{negate:t})}function Qj(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:l,skipLookbehindValidation:i,walk:u}=t,d=oC(e),m=d.type==="AbsenceFunction",f=q3(d),h=f&&d.negate;if(d.type==="CapturingGroup"&&(a.push(d),d.name&&bj(l,d.name,[]).push(d)),m&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let b=P3(r[t.nextIndex]);for(;b.type!=="GroupClose";){if(b.type==="Alternator")d.body.push(Ul()),t.nextIndex++;else{const y=d.body.at(-1),g=u(y,{...n,isInAbsenceFunction:n.isInAbsenceFunction||m,isInLookbehind:n.isInLookbehind||f,isInNegLookbehind:n.isInNegLookbehind||h});if(y.body.push(g),(f||n.isInLookbehind)&&!i){const _="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(I3(g)||g.type==="CapturingGroup")throw new Error(_)}else if(I3(g)||q3(g)&&g.negate)throw new Error(_)}}b=P3(r[t.nextIndex])}return t.nextIndex++,d}function Xj({kind:e,min:t,max:n},r){const a=r.parent,l=a.body.at(-1);if(!l||!Bj(l))throw new Error("Quantifier requires a repeatable token");const i=mb(e,t,n,l);return a.body.pop(),i}function Yj({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const l=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(l){const u=+l.groups.num,d=n.length;if(t.hasNumberedRef=!0,a={"":u,"+":d+u,"-":d+1-u}[l.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const i=hb(a);return r.push(i),i}function Kj(e,t){return{type:"AbsenceFunction",kind:e,body:G0(t==null?void 0:t.body)}}function Ul(e){return{type:"Alternative",body:fb(e==null?void 0:e.body)}}function kf(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Nf(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function pb(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!sC(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:G0(t==null?void 0:t.body)}}function ym(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Sp(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:fb(e==null?void 0:e.body)}}function Jj(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Sf(e,t){const n=!!(t!=null&&t.negate),r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function eC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:ru(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function tC(e){return{type:"Flags",...e}}function Fo(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:G0(e==null?void 0:e.body)}}function Tl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:G0(e==null?void 0:e.body)}}function nC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function rC(e,t){const n=!!(t!=null&&t.negate);if(!S2.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function mb(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function aC(e,t){return{type:"Regex",body:G0(t==null?void 0:t.body),flags:e}}function hb(e){return{type:"Subroutine",ref:e}}function Hc(e,t){var a;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(a=n.unicodePropertyMap)==null?void 0:a.get(xm(e));if(!r){if(n.normalizeUnknownPropertyNames)r=iC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(ur`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function oC({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return Kj("repeater");case"atomic":return Fo({atomic:!0});case"capturing":return pb(a,{name:n});case"group":return Fo({flags:e});case"lookahead":case"lookbehind":return Tl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function G0(e){if(e===void 0)e=[Ul()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function fb(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function I3(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function q3(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function sC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function iC(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function xm(e){return e.replace(/[- _]+/g,"").toLowerCase()}function R3(e,t){const n=t;return ru(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function P3(e){return ru(e,"Unclosed group")}function k0(e,t,n=null){function r(l,i){for(let u=0;u<l.length;u++){const d=a(l[u],i,u,l);u=Math.max(-1,u+d)}}function a(l,i=null,u=null,d=null){var k,S;let m=0,f=!1;const h={node:l,parent:i,key:u,container:d,root:e,remove(){cp(d).splice(Math.max(0,Ic(u)+m),1),m--,f=!0},removeAllNextSiblings(){return cp(d).splice(Ic(u)+1)},removeAllPrevSiblings(){const A=Ic(u)+m;return m-=A,cp(d).splice(0,Math.max(0,A))},replaceWith(A,I={}){const M=!!I.traverse;d?d[Math.max(0,Ic(u)+m)]=A:ru(i,"Can't replace root node")[u]=A,M&&a(A,i,u,d),f=!0},replaceWithMultiple(A,I={}){const M=!!I.traverse;if(cp(d).splice(Math.max(0,Ic(u)+m),1,...A),m+=A.length-1,M){let L=0;for(let F=0;F<A.length;F++)L+=a(A[F],i,Ic(u)+F+L,d)}f=!0},skip(){f=!0}},{type:b}=l,y=t["*"],g=t[b],_=typeof y=="function"?y:y==null?void 0:y.enter,C=typeof g=="function"?g:g==null?void 0:g.enter;if(_==null||_(h,n),C==null||C(h,n),!f)switch(b){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(l.body,l);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(l.min,l,"min"),a(l.max,l,"max");break;case"Quantifier":a(l.body,l,"body");break;case"Regex":r(l.body,l),a(l.flags,l,"flags");break;default:throw new Error(`Unexpected node type "${b}"`)}return(k=g==null?void 0:g.exit)==null||k.call(g,h,n),(S=y==null?void 0:y.exit)==null||S.call(y,h,n),m}return a(e),e}function cp(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Ic(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const lC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function cC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function uC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const co=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function A2(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),l=[!1];let i=0,u="";for(const d of e.matchAll(a)){const{0:m,groups:{$skip:f}}=d;if(!f&&(!r||r===co.DEFAULT==!i)){n instanceof Function?u+=n(d,{context:i?co.CHAR_CLASS:co.DEFAULT,negated:l[l.length-1]}):u+=n;continue}m[0]==="["?(i++,l.push(m[1]==="^")):m==="]"&&i&&(i--,l.pop()),u+=m}return u}function gb(e,t,n,r){A2(e,t,n,r)}function dC(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let l=0,i;for(;i=a.exec(e);){const{0:u,groups:{$skip:d}}=i;if(!d&&(!r||r===co.DEFAULT==!l))return i;u==="["?l++:u==="]"&&l&&l--,a.lastIndex==i.index&&a.lastIndex++}return null}function up(e,t,n){return!!dC(e,t,0,n)}function pC(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,l=1,i;for(;i=n.exec(e);){const[u]=i;if(u==="[")a++;else if(a)u==="]"&&a--;else if(u==="(")l++;else if(u===")"&&(l--,!l)){r=i.index;break}}return e.slice(t,r)}const F3=new RegExp(String.raw`(?<noncapturingStart>${lC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function mC(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",l="(?:(?=(",i=[0],u=[];let d=0,m=0,f=NaN,h;do{h=!1;let b=0,y=0,g=!1,_;for(F3.lastIndex=Number.isNaN(f)?0:f+l.length;_=F3.exec(e);){const{0:C,index:k,groups:{capturingStart:S,noncapturingStart:A}}=_;if(C==="[")b++;else if(b)C==="]"&&b--;else if(C===a&&!g)f=k,g=!0;else if(g&&A)y++;else if(S)g?y++:(d++,i.push(d+m));else if(C===")"&&g){if(!y){m++;const I=d+m;if(e=`${e.slice(0,f)}${l}${e.slice(f+a.length,k)}))<$$${I}>)${e.slice(k+1)}`,h=!0,u.push(I),cC(n,I),r.size){const M=new Map;r.forEach((L,F)=>{M.set(F>=I?F+1:F,L.map(G=>G>=I?G+1:G))}),r=M}break}y--}}}while(h);return n.push(...u),e=A2(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:b,groups:{backrefNum:y,wrappedBackrefNum:g}})=>{if(y){const _=+y;if(_>i.length-1)throw new Error(`Backref "${b}" greater than number of captures`);return`\\${i[_]}`}return`\\${g}`},co.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const vb=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,_h=new RegExp(String.raw`
|
|
85
|
-
\\(?: \d+
|
|
86
|
-
| c[A-Za-z]
|
|
87
|
-
| [gk]<[^>]+>
|
|
88
|
-
| [pPu]\{[^\}]+\}
|
|
89
|
-
| u[A-Fa-f\d]{4}
|
|
90
|
-
| x[A-Fa-f\d]{2}
|
|
91
|
-
)
|
|
92
|
-
| \((?: \? (?: [:=!>]
|
|
93
|
-
| <(?:[=!]|[^>]+>)
|
|
94
|
-
| [A-Za-z\-]+:
|
|
95
|
-
| \(DEFINE\)
|
|
96
|
-
))?
|
|
97
|
-
| (?<qBase>${vb})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
98
|
-
| \\?.
|
|
99
|
-
`.replace(/\s+/g,""),"gsu");function hC(e){if(!new RegExp(`${vb}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",l=0,i;for(_h.lastIndex=0;i=_h.exec(e);){const{0:u,index:d,groups:{qBase:m,qMod:f,invalidQ:h}}=i;if(u==="[")l||(r=d),l++;else if(u==="]")l?l--:r=null;else if(!l)if(f==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${u}"`);let b=-1;if(/^\{\d+\}$/.test(m))e=uC(e,d+m.length,f,"");else{if(a===")"||a==="]"){const y=a===")"?n:r;if(y===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,y)}(?>${e.slice(y,d)}${m})${e.slice(d+u.length)}`}else e=`${e.slice(0,d-a.length)}(?>${a}${m})${e.slice(d+u.length)}`;b+=4}_h.lastIndex+=b}else u[0]==="("?t.push(d):u===")"&&(n=t.length?t.pop():null);a=u}return{pattern:e}}const io=String.raw,fC=io`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,$f=io`\(\?R=(?<rDepth>[^\)]+)\)|${fC}`,_m=io`\(\?<(?![=!])(?<captureName>[^>]+)>`,bb=io`${_m}|(?<unnamed>\()(?!\?)`,kl=new RegExp(io`${_m}|${$f}|\(\?|\\?.`,"gsu"),wh="Cannot use multiple overlapping recursions";function gC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp($f,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&up(e,io`\(\?\(DEFINE\)`,co.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const l=[],i=up(e,io`\\[1-9]`,co.DEFAULT),u=new Map,d=[];let m=!1,f=0,h=0,b;for(kl.lastIndex=0;b=kl.exec(e);){const{0:y,groups:{captureName:g,rDepth:_,gRNameOrNum:C,gRDepth:k}}=b;if(y==="[")f++;else if(f)y==="]"&&f--;else if(_){if(O3(_),m)throw new Error(wh);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const S=e.slice(0,b.index),A=e.slice(kl.lastIndex);if(up(A,$f,co.DEFAULT))throw new Error(wh);const I=+_-1;e=B3(S,A,I,!1,n,l,h),a=U3(a,S,I,l.length,0,h);break}else if(C){O3(k);let S=!1;for(const re of d)if(re.name===C||re.num===+C){if(S=!0,re.hasRecursedWithin)throw new Error(wh);break}if(!S)throw new Error(io`Recursive \g cannot be used outside the referenced group "${r==="external"?C:io`\g<${C}&R=${k}>`}"`);const A=u.get(C),I=pC(e,A);if(i&&up(I,io`${_m}|\((?!\?)`,co.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const M=e.slice(A,b.index),L=I.slice(M.length+y.length),F=l.length,G=+k-1,O=B3(M,L,G,!0,n,l,h);a=U3(a,M,G,l.length-F,F,h);const B=e.slice(0,A),W=e.slice(A+I.length);e=`${B}${O}${W}`,kl.lastIndex+=O.length-y.length-M.length-L.length,d.forEach(re=>re.hasRecursedWithin=!0),m=!0}else if(g)h++,u.set(String(h),kl.lastIndex),u.set(g,kl.lastIndex),d.push({num:h,name:g});else if(y[0]==="("){const S=y==="(";S&&(h++,u.set(String(h),kl.lastIndex)),d.push(S?{num:h}:{})}else y===")"&&d.pop()}return n.push(...l),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function O3(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function B3(e,t,n,r,a,l,i){const u=new Set;r&&gb(e+t,_m,({groups:{captureName:m}})=>{u.add(m)},co.DEFAULT);const d=[n,r?u:null,a,l,i];return`${e}${H3(`(?:${e}`,"forward",...d)}(?:)${H3(`${t})`,"backward",...d)}${t}`}function H3(e,t,n,r,a,l,i){const d=f=>t==="forward"?f+2:n-f+2-1;let m="";for(let f=0;f<n;f++){const h=d(f);m+=A2(e,io`${bb}|\\k<(?<backref>[^>]+)>`,({0:b,groups:{captureName:y,unnamed:g,backref:_}})=>{if(_&&r&&!r.has(_))return b;const C=`_$${h}`;if(g||y){const k=i+l.length+1;return l.push(k),vC(a,k),g?b:`(?<${y}${C}>`}return io`\k<${_}${C}>`},co.DEFAULT)}return m}function vC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function U3(e,t,n,r,a,l){if(e.size&&r){let i=0;gb(t,bb,()=>i++,co.DEFAULT);const u=l-i+a,d=new Map;return e.forEach((m,f)=>{const h=(r-i*n)/n,b=i*n,y=f>u+i?f+r:f,g=[];for(const _ of m)if(_<=u)g.push(_);else if(_>u+i+h)g.push(_+r);else if(_<=u+i)for(let C=0;C<=n;C++)g.push(_+i*C);else for(let C=0;C<=n;C++)g.push(_+b+h*C);d.set(y,g)}),d}return e}var er=String.fromCodePoint,ht=String.raw,Oo={},wm=globalThis.RegExp;Oo.flagGroups=(()=>{try{new wm("(?i:)")}catch{return!1}return!0})();Oo.unicodeSets=(()=>{try{new wm("[[]]","v")}catch{return!1}return!0})();Oo.bugFlagVLiteralHyphenIsRange=Oo.unicodeSets?(()=>{try{new wm(ht`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Oo.bugNestedClassIgnoresNegation=Oo.unicodeSets&&new wm("[[^a]]","v").test("a");function Vp(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function L0(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Af(e,t){return V3[e]>=V3[t]}function bC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var V3={ES2025:2025,ES2024:2024,ES2018:2018},yC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function yb(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!yC[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Oo.flagGroups?"ES2025":Oo.unicodeSets?"ES2024":"ES2018"),t}var xC="[ -\r ]",_C=new Set([er(304),er(305)]),Ps=ht`[\p{L}\p{M}\p{N}\p{Pc}]`;function xb(e){if(_C.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=CC.get(n),l=wC.get(n),i=jC.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),a&&t.add(a),t.add(n),l&&t.add(l),[...t]}var E2=new Map(`C Other
|
|
100
|
-
Cc Control cntrl
|
|
101
|
-
Cf Format
|
|
102
|
-
Cn Unassigned
|
|
103
|
-
Co Private_Use
|
|
104
|
-
Cs Surrogate
|
|
105
|
-
L Letter
|
|
106
|
-
LC Cased_Letter
|
|
107
|
-
Ll Lowercase_Letter
|
|
108
|
-
Lm Modifier_Letter
|
|
109
|
-
Lo Other_Letter
|
|
110
|
-
Lt Titlecase_Letter
|
|
111
|
-
Lu Uppercase_Letter
|
|
112
|
-
M Mark Combining_Mark
|
|
113
|
-
Mc Spacing_Mark
|
|
114
|
-
Me Enclosing_Mark
|
|
115
|
-
Mn Nonspacing_Mark
|
|
116
|
-
N Number
|
|
117
|
-
Nd Decimal_Number digit
|
|
118
|
-
Nl Letter_Number
|
|
119
|
-
No Other_Number
|
|
120
|
-
P Punctuation punct
|
|
121
|
-
Pc Connector_Punctuation
|
|
122
|
-
Pd Dash_Punctuation
|
|
123
|
-
Pe Close_Punctuation
|
|
124
|
-
Pf Final_Punctuation
|
|
125
|
-
Pi Initial_Punctuation
|
|
126
|
-
Po Other_Punctuation
|
|
127
|
-
Ps Open_Punctuation
|
|
128
|
-
S Symbol
|
|
129
|
-
Sc Currency_Symbol
|
|
130
|
-
Sk Modifier_Symbol
|
|
131
|
-
Sm Math_Symbol
|
|
132
|
-
So Other_Symbol
|
|
133
|
-
Z Separator
|
|
134
|
-
Zl Line_Separator
|
|
135
|
-
Zp Paragraph_Separator
|
|
136
|
-
Zs Space_Separator
|
|
137
|
-
ASCII
|
|
138
|
-
ASCII_Hex_Digit AHex
|
|
139
|
-
Alphabetic Alpha
|
|
140
|
-
Any
|
|
141
|
-
Assigned
|
|
142
|
-
Bidi_Control Bidi_C
|
|
143
|
-
Bidi_Mirrored Bidi_M
|
|
144
|
-
Case_Ignorable CI
|
|
145
|
-
Cased
|
|
146
|
-
Changes_When_Casefolded CWCF
|
|
147
|
-
Changes_When_Casemapped CWCM
|
|
148
|
-
Changes_When_Lowercased CWL
|
|
149
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
150
|
-
Changes_When_Titlecased CWT
|
|
151
|
-
Changes_When_Uppercased CWU
|
|
152
|
-
Dash
|
|
153
|
-
Default_Ignorable_Code_Point DI
|
|
154
|
-
Deprecated Dep
|
|
155
|
-
Diacritic Dia
|
|
156
|
-
Emoji
|
|
157
|
-
Emoji_Component EComp
|
|
158
|
-
Emoji_Modifier EMod
|
|
159
|
-
Emoji_Modifier_Base EBase
|
|
160
|
-
Emoji_Presentation EPres
|
|
161
|
-
Extended_Pictographic ExtPict
|
|
162
|
-
Extender Ext
|
|
163
|
-
Grapheme_Base Gr_Base
|
|
164
|
-
Grapheme_Extend Gr_Ext
|
|
165
|
-
Hex_Digit Hex
|
|
166
|
-
IDS_Binary_Operator IDSB
|
|
167
|
-
IDS_Trinary_Operator IDST
|
|
168
|
-
ID_Continue IDC
|
|
169
|
-
ID_Start IDS
|
|
170
|
-
Ideographic Ideo
|
|
171
|
-
Join_Control Join_C
|
|
172
|
-
Logical_Order_Exception LOE
|
|
173
|
-
Lowercase Lower
|
|
174
|
-
Math
|
|
175
|
-
Noncharacter_Code_Point NChar
|
|
176
|
-
Pattern_Syntax Pat_Syn
|
|
177
|
-
Pattern_White_Space Pat_WS
|
|
178
|
-
Quotation_Mark QMark
|
|
179
|
-
Radical
|
|
180
|
-
Regional_Indicator RI
|
|
181
|
-
Sentence_Terminal STerm
|
|
182
|
-
Soft_Dotted SD
|
|
183
|
-
Terminal_Punctuation Term
|
|
184
|
-
Unified_Ideograph UIdeo
|
|
185
|
-
Uppercase Upper
|
|
186
|
-
Variation_Selector VS
|
|
187
|
-
White_Space space
|
|
188
|
-
XID_Continue XIDC
|
|
189
|
-
XID_Start XIDS`.split(/\s/).map(e=>[xm(e),e])),wC=new Map([["s",er(383)],[er(383),"s"]]),jC=new Map([[er(223),er(7838)],[er(107),er(8490)],[er(229),er(8491)],[er(969),er(8486)]]),CC=new Map([Si(453),Si(456),Si(459),Si(498),...jh(8072,8079),...jh(8088,8095),...jh(8104,8111),Si(8124),Si(8140),Si(8188)]),kC=new Map([["alnum",ht`[\p{Alpha}\p{Nd}]`],["alpha",ht`\p{Alpha}`],["ascii",ht`\p{ASCII}`],["blank",ht`[\p{Zs}\t]`],["cntrl",ht`\p{Cc}`],["digit",ht`\p{Nd}`],["graph",ht`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ht`\p{Lower}`],["print",ht`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ht`[\p{P}\p{S}]`],["space",ht`\p{space}`],["upper",ht`\p{Upper}`],["word",ht`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ht`\p{AHex}`]]);function NC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Si(e){const t=er(e);return[t.toLowerCase(),t]}function jh(e,t){return NC(e,t).map(n=>Si(n))}var _b=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function SC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};wb(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Af(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};k0(e,$C,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},l={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};k0(e,AC,l);const i={groupsByName:l.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:l.reffedNodesByReferencer};return k0(e,EC,i),e._originMap=l.groupOriginByCopy,e._strategy=r.strategy,e}var $C={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const l=Fo();l.body[0].body.push(Tl({negate:!0,body:r}),Hc("Any"));const i=Fo();i.body[0].body.push(mb("greedy",0,1/0,l)),n(Ln(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(l=>l.kind==="flags");for(let l=n+1;l<t.body.length;l++){const i=t.body[l];L0(r,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=Cb(t.get(e));if(r){const a=Fo({flags:r});a.body[0].body=e.body,e.body=[Ln(a,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:l,replaceWith:i},u){const{kind:d,negate:m}=e,{asciiWordBoundaries:f,avoidSubclass:h,supportedGNodes:b,wordIsAscii:y}=u;if(d==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${m?"Y":"y"}"`);if(d==="line_end")i(Ln(Tl({body:[Ul({body:[kf("string_end")]}),Ul({body:[ym(10)]})]}),t));else if(d==="line_start")i(Ln(Fs(ht`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(d==="search_start")if(b.has(e))a.flags.sticky=!0,l();else{const g=r[n-1];if(g&&IC(g))i(Ln(Tl({negate:!0}),t));else{if(h)throw new Error(ht`Uses "\G" in a way that requires a subclass`);i($i(kf("string_start"),t)),u.strategy="clip_search"}}else if(!(d==="string_end"||d==="string_start"))if(d==="string_end_newline")i(Ln(Fs(ht`(?=\n?\z)`),t));else if(d==="word_boundary"){if(!y&&!f){const g=`(?:(?<=${Ps})(?!${Ps})|(?<!${Ps})(?=${Ps}))`,_=`(?:(?<=${Ps})(?=${Ps})|(?<!${Ps})(?!${Ps}))`;i(Ln(Fs(m?_:g),t))}}else throw new Error(`Unexpected assertion kind "${d}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!kh(n)&&(n=Ch(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!kh(r)&&(r=Ch(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=Sp({body:[e]});n(Ln(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:l,spaceIsAscii:i,wordIsAscii:u}){const{kind:d,negate:m,value:f}=e;if(l&&(d==="digit"||f==="digit")){n($i(Sf("digit",{negate:m}),t));return}if(i&&(d==="space"||f==="space")){n(Ln(Nh(Fs(xC),m),t));return}if(u&&(d==="word"||f==="word")){n($i(Sf("word",{negate:m}),t));return}if(d==="any")n($i(Hc("Any"),t));else if(d==="digit")n($i(Hc("Nd",{negate:m}),t));else if(d!=="dot")if(d==="text_segment"){if(r==="strict")throw new Error(ht`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",b=ht`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Ln(Fs(ht`(?>\r\n|${a?ht`\p{RGI_Emoji}`:b}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(d==="hex")n($i(Hc("AHex",{negate:m}),t));else if(d==="newline")n(Ln(Fs(m?`[^
|
|
190
|
-
]`:`(?>\r
|
|
191
|
-
?|[
|
|
192
|
-
\v\f
\u2028\u2029])`),t));else if(d==="posix")if(!a&&(f==="graph"||f==="print")){if(r==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[f];m&&(h=`\0-${er(h.codePointAt(0)-1)}${er(h.codePointAt(2)+1)}-`),n(Ln(Fs(`[${h}]`),t))}else n(Ln(Nh(Fs(kC.get(f)),m),t));else if(d==="property")E2.has(xm(f))||(e.key="sc");else if(d==="space")n($i(Hc("space",{negate:m}),t));else if(d==="word")n(Ln(Nh(Fs(Ps),m),t));else throw new Error(`Unexpected character set kind "${d}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:l,removeAllNextSiblings:i}){const{kind:u,flags:d}=e;if(u==="flags")if(!d.enable&&!d.disable)r();else{const m=Fo({flags:d});m.body[0].body=i(),a(Ln(m,t),{traverse:!0})}else if(u==="keep"){const m=n.body[0],h=n.body.length===1&&ub(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:n;if(t.parent!==h||h.body.length>1)throw new Error(ht`Uses "\K" in a way that's unsupported`);const b=Tl({behind:!0});b.body[0].body=l(),a(Ln(b,t))}else throw new Error(`Unexpected directive kind "${u}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Ln(Tl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Fo();t.body[0].body.push(e.body),e.body=Ln(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const l of e.body)if(l.body.length===1&&l.body[0].kind==="search_start")l.body.pop();else{const i=Nb(l.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):a=!0}r&&!a&&n.forEach(l=>t.add(l))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ht`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!kh(n)&&(n=Ch(n,t),e.ref=n)}},AC={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:l})=>l)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:l,multiplexCapturesToLeftByRef:i,openRefs:u,reffedNodesByReferencer:d}){const m=a.get(e);if(m&&u.has(e.number)){const h=$i(G3(e.number),t);d.set(h,u.get(e.number)),n(h);return}u.set(e.number,e),i.set(e.number,[]),e.name&&L0(i,e.name,[]);const f=i.get(e.name??e.number);for(let h=0;h<f.length;h++){const b=f[h];if(m===b.node||m&&m===b.origin||e===b.origin){f.splice(h,1);break}}if(i.get(e.number).push({node:e,origin:m}),e.name&&i.get(e.name).push({node:e,origin:m}),e.name){const h=L0(l,e.name,new Map);let b=!1;if(m)b=!0;else for(const y of h.values())if(!y.hasDuplicateNameToRemove){b=!0;break}l.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:b})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Vp(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:l}=e;if(a){let f=t;for(;(f=f.parent)&&!(f.type==="CapturingGroup"&&(f.name===l||f.number===l)););r.reffedNodesByReferencer.set(e,f);return}const i=r.subroutineRefMap.get(l),u=l===0,d=u?G3(0):jb(i,r.groupOriginByCopy,null);let m=d;if(!u){const f=Cb(TC(i,b=>b.type==="Group"&&!!b.flags)),h=f?Vp(r.globalFlags,f):r.globalFlags;DC(h,r.currentFlags)||(m=Fo({flags:MC(h)}),m.body[0].body.push(d))}n(Ln(m,t),{traverse:!u})}},EC={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const l=r.reffedNodesByReferencer.get(e).filter(i=>zC(i,e));if(!l.length)n(Ln(Tl({negate:!0}),t));else if(l.length>1){const i=Fo({atomic:!0,body:l.reverse().map(u=>Ul({body:[Nf(u.number)]}))});n(Ln(i,t))}else e.ref=l[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=pb();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function wb(e){k0(e,{"*"({node:t,parent:n}){t.parent=n}})}function DC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function zC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=kb(n.parent);for(const a of r){if(a===n)break;if(a===e||Sb(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function jb(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[l,i]of Object.entries(e))l==="parent"?a.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?a[l]=jb(i,t,a,n):(l==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[l]=i);return a}function G3(e){const t=hb(e);return t.isRecursive=!0,t}function TC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ch(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Cb(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{var l,i;(l=r.enable)!=null&&l[a]&&(delete n.disable[a],n.enable[a]=!0),(i=r.disable)!=null&&i[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function MC({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function kb(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Nb(e){const t=e.find(n=>n.kind==="search_start"||qC(n,{negate:!1})||!LC(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const a=Nb(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function Sb(e,t){const n=kb(e)??[];for(const r of n)if(r===t||Sb(r,t))return!0;return!1}function LC({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function IC(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function qC(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&ub(e.body[0],{type:"Assertion",kind:"search_start"})}function kh(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Fs(e,t){const r=db(e,{...t,unicodePropertyMap:E2}).body;return r.length>1||r[0].body.length>1?Fo({body:r}):r[0].body[0]}function Nh(e,t){return e.negate=t,e}function $i(e,t){return e.parent=t,e}function Ln(e,t){return wb(e),e.parent=t,e}function RC(e,t){const n=yb(t),r=Af(n.target,"ES2024"),a=Af(n.target,"ES2025"),l=n.rules.recursionLimit;if(!Number.isInteger(l)||l<2||l>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,u=null;if(!a){const y=[e.flags.ignoreCase];k0(e,PC,{getCurrentModI:()=>y.at(-1),popModI(){y.pop()},pushModI(g){y.push(g)},setHasCasedChar(){y.at(-1)?i=!0:u=!0}})}const d={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!u)};let m=e;const f={accuracy:n.accuracy,appliedGlobalFlags:d,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:m,originMap:e._originMap,recursionLimit:l,useAppliedIgnoreCase:!!(!a&&i&&u),useFlagMods:a,useFlagV:r,verbose:n.verbose};function h(y){return f.lastNode=m,m=y,bC(FC[y.type],`Unexpected node type "${y.type}"`)(y,f,h)}const b={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete b.options.force.v,b.options.disable.v=!0,b.options.unicodeSetsPlugin=null),b._captureTransfers=new Map,b._hiddenCaptures=[],f.captureMap.forEach((y,g)=>{y.hidden&&b._hiddenCaptures.push(g),y.transferTo&&L0(b._captureTransfers,y.transferTo,[]).push(g)}),b}var PC={"*":{enter({node:e},t){if(Z3(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Vp({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Z3(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){D2(er(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),$b(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&_b.has(e.value)&&t.setHasCasedChar()}},FC={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ht`\B`:ht`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:a,number:l}=e,i={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(i.hidden=!0,l>u.number&&(i.transferTo=u.number)),t.captureMap.set(l,i),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=er(e),r=qc(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&D2(n)){const a=xb(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:l}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Oo.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Q3)&&(i=[ym(45),...i.filter(m=>!Q3(m))]);const u=()=>`[${a?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Oo.bugNestedClassIgnoresNegation)&&!a){const f=i.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(f.length){const h=Fo(),b=h.body[0];return h.parent=l,b.parent=h,i=i.filter(y=>!f.includes(y)),e.body=i,i.length?(e.parent=b,b.body.push(e)):h.body.pop(),f.forEach(y=>{const g=Ul({body:[y]});y.parent=g,g.parent=h,h.body.push(g)}),n(h)}}t.inCharClass=!0;const m=u();return t.inCharClass=!1,m}const d=i[0];if(r==="union"&&!a&&d&&((!t.useFlagV||!t.verbose)&&l.kind==="union"&&!(Oo.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&l.kind==="intersection"&&i.length===1&&d.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&l.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return u()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},l=qc(n,a),i=qc(r,a),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const d=$b(e);VC(d).forEach(f=>{u.add(Array.isArray(f)?`${qc(f[0],a)}-${qc(f[1],a)}`:qc(f,a))})}return`${l}-${i}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":ht`[^\n]`;if(e==="digit")return t?ht`\D`:ht`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&_b.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ht`\P`:ht`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ht`\W`:ht`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},a,l){const i=a.currentFlags;n&&(a.currentFlags=Vp(i,n));const u=t.map(l).join("|"),d=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?u:`(?${GC(e,n,a.useFlagMods)}${u})`;return a.currentFlags=i,d},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+WC(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ht`\g<${t}&R=${r}>`}},OC=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),BC=new Set(["-","\\","]","^","["]),HC=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),W3=new Map([[9,ht`\t`],[10,ht`\n`],[11,ht`\v`],[12,ht`\f`],[13,ht`\r`],[8232,ht`\u2028`],[8233,ht`\u2029`],[65279,ht`\uFEFF`]]),UC=new RegExp("^\\p{Cased}$","u");function D2(e){return UC.test(e)}function $b(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,a=e.max.value,l=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return l;for(let i=r;i<=a;i++){const u=er(i);if(!D2(u))continue;const d=xb(u).filter(m=>{const f=m.codePointAt(0);return f<r||f>a});if(d.length&&(l.push(...d),n))break}return l}function qc(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(W3.has(e))return W3.get(e);if(e<32||e>126&&e<160||e>262143||t&&ZC(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?HC:BC:OC,l=er(e);return(a.has(l)?"\\":"")+l}function VC(e){const t=e.map(a=>a.codePointAt(0)).sort((a,l)=>a-l),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??(r=t[a]):r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function GC(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:l}=t;r=(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")+(l?"-":"")+(l!=null&&l.ignoreCase?"i":"")+(l!=null&&l.dotAll?"s":"")}return`${r}:`}function WC({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Z3({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function ZC(e){return e>47&&e<58}function Q3({type:e,value:t}){return e==="Character"&&t===45}var Ai,Gs,Fl,Ei,Ol,H0,Ef,Mi,QC=(Mi=class extends RegExp{constructor(n,r,a){var t=(...ooe)=>(super(...ooe),Cl(this,H0),Cl(this,Ai,new Map),Cl(this,Gs,null),Cl(this,Fl),Cl(this,Ei,null),Cl(this,Ol,null),ce(this,"rawOptions",{}),this);const l=!!(a!=null&&a.lazyCompile);if(n instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),Mo(this,Fl,i.source),i instanceof Mi&&(Mo(this,Ai,Xr(i,Ai)),Mo(this,Ei,Xr(i,Ei)),Mo(this,Ol,Xr(i,Ol)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...a};t(l?"":n,r),Mo(this,Fl,n),Mo(this,Ai,YC(i.hiddenCaptures,i.transfers)),Mo(this,Ol,i.strategy),this.rawOptions=a??{}}l||Mo(this,Gs,this)}get source(){return Xr(this,Fl)||"(?:)"}exec(n){if(!Xr(this,Gs)){const{lazyCompile:l,...i}=this.rawOptions;Mo(this,Gs,new Mi(Xr(this,Fl),this.flags,i))}const r=this.global||this.sticky,a=this.lastIndex;if(Xr(this,Ol)==="clip_search"&&r&&a){this.lastIndex=0;const l=rh(this,H0,Ef).call(this,n.slice(a));return l&&(XC(l,a,n,this.hasIndices),this.lastIndex+=a),l}return rh(this,H0,Ef).call(this,n)}},Ai=new WeakMap,Gs=new WeakMap,Fl=new WeakMap,Ei=new WeakMap,Ol=new WeakMap,H0=new WeakSet,Ef=function(n){Xr(this,Gs).lastIndex=this.lastIndex;const r=Wg(Mi.prototype,this,"exec").call(Xr(this,Gs),n);if(this.lastIndex=Xr(this,Gs).lastIndex,!r||!Xr(this,Ai).size)return r;const a=[...r];r.length=1;let l;this.hasIndices&&(l=[...r.indices],r.indices.length=1);const i=[0];for(let u=1;u<a.length;u++){const{hidden:d,transferTo:m}=Xr(this,Ai).get(u)??{};if(d?i.push(null):(i.push(r.length),r.push(a[u]),this.hasIndices&&r.indices.push(l[u])),m&&a[u]!==void 0){const f=i[m];if(!f)throw new Error(`Invalid capture transfer to "${f}"`);if(r[f]=a[u],this.hasIndices&&(r.indices[f]=l[u]),r.groups){Xr(this,Ei)||Mo(this,Ei,KC(this.source));const h=Xr(this,Ei).get(m);h&&(r.groups[h]=a[u],this.hasIndices&&(r.indices.groups[h]=l[u]))}}}return r},Mi);function XC(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let i=0;i<a.length;i++){const u=a[i];u&&(a[i]=[u[0]+t,u[1]+t])}const l=a.groups;l&&Object.keys(l).forEach(i=>{const u=l[i];u&&(l[i]=[u[0]+t,u[1]+t])})}}function YC(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const l of a)L0(n,l,{}).transferTo=r;return n}function KC(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,l;for(;l=t.exec(e);){const{0:i,groups:{capture:u,name:d}}=l;i==="["?r++:r?i==="]"&&r--:u&&(a++,d&&n.set(a,d))}return n}function JC(e,t){const n=ek(e,t);return n.options?new QC(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function ek(e,t){const n=yb(t),r=db(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:E2}),a=SC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),l=RC(a,n),i=gC(l.pattern,{captureTransfers:l._captureTransfers,hiddenCaptures:l._hiddenCaptures,mode:"external"}),u=hC(i.pattern),d=mC(u.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),m={pattern:d.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${l.flags}${l.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const f=d.hiddenCaptures.sort((g,_)=>g-_),h=Array.from(d.captureTransfers),b=a._strategy,y=m.pattern.length>=n.lazyCompileLength;(f.length||h.length||b||y)&&(m.options={...f.length&&{hiddenCaptures:f},...h.length&&{transfers:h},...b&&{strategy:b},...y&&{lazyCompile:y}})}return m}function Ab(e,t){return JC(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function tk(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||(t.regexConstructor=n=>Ab(n,{target:t.target})),{createScanner(n){return new vj(n,t)},createString(n){return{content:n}}}}const nk=Object.freeze(JSON.parse('{"displayName":"TypeScript","name":"typescript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},"after-operator-block-as-object-literal":{"begin":"(?<!\\\\+\\\\+|--)(?<=[!(+,:=>?\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.ts"},{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async))?((?<![]!)}])\\\\s*(?=((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.ts","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(async)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.async.ts"},"binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern"},{"include":"#array-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"}]},"binding-element-const":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern-const"},{"include":"#array-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"}]},"boolean-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))true(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.true.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.ts"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"captures":{"1":{"name":"meta.brace.angle.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.angle.ts"}},"match":"\\\\s*(<)\\\\s*(const)\\\\s*(>)","name":"cast.expr.ts"},{"begin":"(?<!\\\\+\\\\+|--)(?<=^return|[^$._[:alnum:]]return|^throw|[^$._[:alnum:]]throw|^yield|[^$._[:alnum:]]yield|^await|[^$._[:alnum:]]await|^default|[^$._[:alnum:]]default|[\\\\&(*,:=>?^|]|[^$_[:alnum:]](?:\\\\+\\\\+|--)|[^+]\\\\+|[^-]-)\\\\s*(<)(?!<?=)(?!\\\\s*$)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]},{"begin":"(?<=^)\\\\s*(<)(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*>)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.class.ts"}},"end":"(?<=})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-declaration-or-expression-patterns":{"patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.class.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"class-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(class)\\\\b(?=\\\\s+|[<{]|/[*/])","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.type.class.ts"}},"end":"(?<=})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#decorator"},{"begin":"(?<=:)\\\\s*","end":"(?=[-\\\\])+,:;}\\\\s]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#field-declaration"},{"include":"#string"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#property-accessor"},{"include":"#async-modifier"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-or-interface-heritage":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(extends|implements)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.documentation.ts","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"},"2":{"name":"storage.type.internaldeclaration.ts"},"3":{"name":"punctuation.decorator.internaldeclaration.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.ts"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.ts"},{"captures":{"1":{"name":"keyword.control.loop.ts"},"2":{"name":"entity.name.label.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.ts"}},"end":"(?=[;}]|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default|switch)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.switch.ts"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.ts"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#statements"}]},"declaration":{"patterns":[{"include":"#decorator"},{"include":"#var-expr"},{"include":"#function-declaration"},{"include":"#class-declaration"},{"include":"#interface-declaration"},{"include":"#enum-declaration"},{"include":"#namespace-declaration"},{"include":"#type-alias-declaration"},{"include":"#import-equals-declaration"},{"include":"#import-declaration"},{"include":"#export-declaration"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(declare|export)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.ts"}},"end":"(?=\\\\s)","name":"meta.decorator.ts","patterns":[{"include":"#expression"}]},"destructuring-const":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"name":"meta.parameter.object-binding-pattern.ts","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"name":"meta.paramter.array-binding-pattern.ts","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"directives":{"begin":"^(///)\\\\s*(?=<(reference|amd-dependency|amd-module)(\\\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\\\s*=\\\\s*((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))+\\\\s*/>\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.ts","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.ts"},"2":{"name":"entity.name.tag.directive.ts"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.ts"}},"name":"meta.tag.ts","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"(</)caption(>)|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.ts"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.ts"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|\'(?:\\\\*(?!/)|\\\\\\\\(?!\')|[^*\\\\\\\\])*?\'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:\\\\b(const)\\\\s+)?\\\\b(enum)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.enum.ts"},"5":{"name":"entity.name.type.enum.ts"}},"end":"(?<=})","name":"meta.enum.declaration.ts","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.ts"}},"end":"(?=[,}]|$)","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},{"begin":"(?=((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+])))","end":"(?=[,}]|$)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#comment"},{"include":"#variable-initializer"}]},{"include":"#punctuation-comma"}]}]},"export-declaration":{"patterns":[{"captures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.as.ts"},"3":{"name":"storage.type.namespace.ts"},"4":{"name":"entity.name.type.module.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)\\\\s+(as)\\\\s+(namespace)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?(?:\\\\s*(=)|\\\\s+(default)(?=\\\\s+))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"},"3":{"name":"keyword.operator.assignment.ts"},"4":{"name":"keyword.control.default.ts"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.default.ts","patterns":[{"include":"#interface-declaration"},{"include":"#expression"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?\\\\b(?!(\\\\$)|(\\\\s*:))((?=\\\\s*[*{])|((?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*([,\\\\s]))(?!\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.ts","patterns":[{"include":"#import-export-declaration"}]}]},"expression":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-inside-possibly-arrow-parens":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*[,:]|$)"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.ts"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.ts"},"2":{"name":"keyword.generator.asterisk.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.ts"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.ts"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"keyword.operator.assignment.compound.ts"},"3":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?<!\\\\()(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s+)?(?=\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=}]|$))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=[,;}]|$|^((?!\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=]|$))))|(?<=})","name":"meta.field.declaration.ts","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.ts entity.name.function.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"keyword.operator.definiteassignment.ts"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.ts variable.object.property.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"},{"match":"!","name":"keyword.operator.definiteassignment.ts"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.ts"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#var-expr"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]}]},"function-body":{"patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#return-type"},{"include":"#type-function-return-type"},{"include":"#decl-block"},{"match":"\\\\*","name":"keyword.generator.asterisk.ts"}]},"function-call":{"patterns":[{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.ts punctuation.accessor.optional.ts"},{"match":"!","name":"meta.function-call.ts keyword.operator.definiteassignment.ts"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"}]},"function-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.async.ts"},"4":{"name":"storage.type.function.ts"},"5":{"name":"keyword.generator.asterisk.ts"},"6":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|(?<=})","name":"meta.function.ts","patterns":[{"include":"#function-name"},{"include":"#function-body"}]},"function-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.function.ts"},"3":{"name":"keyword.generator.asterisk.ts"},"4":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.ts","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.ts entity.name.function.ts"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#function-parameters-body"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"include":"#parameter-name"},{"include":"#parameter-type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"entity.name.function.ts"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.ts"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"include":"#statements"}]}]},"import-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type)(?!\\\\s+from))?(?!\\\\s*[(:])(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#string"},{"begin":"(?<=(?:^|[^$._[:alnum:]])import)(?!\\\\s*[\\"\'])","end":"\\\\bfrom\\\\b","endCaptures":{"0":{"name":"keyword.control.from.ts"}},"patterns":[{"include":"#import-export-declaration"}]},{"include":"#import-export-declaration"}]},"import-equals-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(require)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"},"7":{"name":"keyword.control.require.ts"},"8":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.import-equals.external.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(?!require\\\\b)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.ts"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.ts"},"2":{"name":"keyword.control.assert.ts"},"3":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.ts"},{"match":":","name":"punctuation.separator.key-value.ts"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"keyword.control.default.ts"},"3":{"name":"constant.language.import-export-all.ts"},"4":{"name":"variable.other.readwrite.ts"},"5":{"name":"string.quoted.alias.ts"},"12":{"name":"keyword.control.as.ts"},"13":{"name":"keyword.control.default.ts"},"14":{"name":"variable.other.readwrite.alias.ts"},"15":{"name":"string.quoted.alias.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(type)\\\\s+)?(?:\\\\b(default)|(\\\\*)|\\\\b([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))\\\\s+(as)\\\\s+(?:(default(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))"},{"include":"#punctuation-comma"},{"match":"\\\\*","name":"constant.language.import-export-all.ts"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.ts"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"variable.other.readwrite.alias.ts"},"3":{"name":"string.quoted.alias.ts"}},"match":"(?:\\\\b(type)\\\\s+)?(?:([$_[:alpha:]][$_[:alnum:]]*)|((\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)))"}]},"import-export-declaration":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#import-export-block"},{"match":"\\\\bfrom\\\\b","name":"keyword.control.from.ts"},{"include":"#import-export-assert-clause"},{"include":"#import-export-clause"}]},"indexer-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=:)","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"meta.brace.square.ts"},"3":{"name":"variable.parameter.ts"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.declaration.ts","patterns":[{"include":"#type-annotation"}]},"indexer-mapped-type-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([-+])?(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(in)\\\\s+","beginCaptures":{"1":{"name":"keyword.operator.type.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.square.ts"},"4":{"name":"entity.name.type.ts"},"5":{"name":"keyword.operator.expression.in.ts"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.type.modifier.ts"},"3":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.mappedtype.declaration.ts","patterns":[{"captures":{"1":{"name":"keyword.control.as.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+"},{"include":"#type"}]},"inline-tags":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.bracket.square.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.square.end.jsdoc"}},"match":"(\\\\[)[^]]+(])(?=\\\\{@(?:link|linkcode|linkplain|tutorial))","name":"constant.other.description.jsdoc"},{"begin":"(\\\\{)((@)(?:link(?:code|plain)?|tutorial))\\\\s*","beginCaptures":{"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"},"2":{"name":"storage.type.class.jsdoc"},"3":{"name":"punctuation.definition.inline.tag.jsdoc"}},"end":"}|(?=\\\\*/)","endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"name":"entity.name.type.instance.jsdoc","patterns":[{"captures":{"1":{"name":"variable.other.link.underline.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?=https?://)(?:[^*|}\\\\s]|\\\\*/)+)(\\\\|)?"},{"captures":{"1":{"name":"variable.other.description.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?:[^*@{|}\\\\s]|\\\\*[^/])+)(\\\\|)?"}]}]},"instanceof-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(instanceof)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.expression.instanceof.ts"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","patterns":[{"include":"#type"}]},"interface-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(interface)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.interface.ts"}},"end":"(?<=})","name":"meta.interface.ts","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"jsdoctype":{"patterns":[{"begin":"\\\\G(\\\\{)","beginCaptures":{"0":{"name":"entity.name.type.instance.jsdoc"},"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"}},"contentName":"entity.name.type.instance.jsdoc","end":"((}))\\\\s*|(?=\\\\*/)","endCaptures":{"1":{"name":"entity.name.type.instance.jsdoc"},"2":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"patterns":[{"include":"#brackets"}]}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?\\\\s*\\\\b(constructor)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\s*\\\\b(new)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))|(?:(\\\\*)\\\\s*)?)(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"keyword.operator.new.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.property.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??)\\\\s*[(<])","end":"(?=[(<])","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.method.ts entity.name.function.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$\'_`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.namespace.ts"}},"end":"(?<=})|(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.namespace.declaration.ts","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.ts"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.ts"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.ts","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.ts"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"storage.type.numeric.bigint.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"storage.type.numeric.bigint.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"storage.type.numeric.bigint.ts"},"7":{"name":"storage.type.numeric.bigint.ts"},"8":{"name":"meta.delimiter.decimal.period.ts"},"9":{"name":"storage.type.numeric.bigint.ts"},"10":{"name":"meta.delimiter.decimal.period.ts"},"11":{"name":"storage.type.numeric.bigint.ts"},"12":{"name":"meta.delimiter.decimal.period.ts"},"13":{"name":"storage.type.numeric.bigint.ts"},"14":{"name":"storage.type.numeric.bigint.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)"}]},"numericConstant-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))NaN(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.nan.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.ts"}]},"object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element"}]},{"include":"#object-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-const":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element-const"}]},{"include":"#object-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-propertyName":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(:)","endCaptures":{"0":{"name":"punctuation.destructuring.ts"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.ts"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.object.property.ts"},"4":{"name":"variable.other.object.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"object-literal-method-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)))","end":"(?=:)|(?=\\\\s*([(,<}])|(\\\\s+as|satisifies\\\\s+))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"\'`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"constant.numeric.decimal.ts"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"entity.name.function.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ts"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,}])","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.ts"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.ts","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.ts punctuation.separator.key-value.ts"}},"end":"(?=[,}])","name":"meta.object.member.ts","patterns":[{"begin":"(?<=:)\\\\s*(async)?(?=\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)"}]},"parameter-object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#parameter-binding-element"},{"include":"#paren-expression"}]},{"include":"#parameter-object-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"parameter-object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.ts"}},"contentName":"meta.arrow.ts meta.return.type.arrow.ts","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(accessor|get|set)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.type.property.ts"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#string-character-escape"}]},"regex":{"patterns":[{"begin":"(?<!\\\\+\\\\+|--|})(?<=[!(+,:=?\\\\[]|^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case|=>|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"begin":"((?<![]$)_[:alnum:]]|\\\\+\\\\+|--|}|\\\\*/)|((?<=^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case))\\\\s*)/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[DSWdfnrstvw]|\\\\.","name":"constant.other.character-class.regexp"},{"match":"\\\\\\\\([0-7]{3}|x\\\\h{2}|u\\\\h{4})","name":"constant.character.numeric.regexp"},{"match":"\\\\\\\\c[A-Z]","name":"constant.character.control.regexp"},{"match":"\\\\\\\\.","name":"constant.character.escape.backslash.regexp"}]},"regexp":{"patterns":[{"match":"\\\\\\\\[Bb]|[$^]","name":"keyword.control.anchor.regexp"},{"captures":{"0":{"name":"keyword.other.back-reference.regexp"},"1":{"name":"variable.other.regexp"}},"match":"\\\\\\\\(?:[1-9]\\\\d*|k<([$A-Z_a-z][$\\\\w]*)>)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?<!))","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"punctuation.definition.group.assertion.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"},"5":{"name":"meta.assertion.look-behind.regexp"},"6":{"name":"meta.assertion.negative-look-behind.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.assertion.regexp","patterns":[{"include":"#regexp"}]},{"begin":"\\\\((?:(\\\\?:)|\\\\?<([$A-Z_a-z][$\\\\w]*)>)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]}]},"return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<=[\\\\&:|])(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"shebang":{"captures":{"1":{"name":"punctuation.definition.comment.ts"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.ts"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=^)"},"statements":{"patterns":[{"include":"#declaration"},{"include":"#control-statement"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#label"},{"include":"#expression"},{"include":"#punctuation-semicolon"},{"include":"#string"},{"include":"#comment"}]},"string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template"}]},"string-character-escape":{"match":"\\\\\\\\(x\\\\h{2}|u\\\\h{4}|u\\\\{\\\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.ts"},"support-function-call-identifiers":{"patterns":[{"include":"#literal"},{"include":"#support-objects"},{"include":"#object-identifiers"},{"include":"#punctuation-accessor"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\(\\\\s*[\\"\'`])","name":"keyword.operator.expression.import.ts"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.ts"},{"captures":{"1":{"name":"keyword.control.import.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.importmeta.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.target.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"support.variable.property.ts"},"4":{"name":"support.constant.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(constructor|length|prototype|__proto__)\\\\b(?!\\\\$|\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.ts"},"2":{"name":"support.type.object.module.ts"},"3":{"name":"punctuation.accessor.ts"},"4":{"name":"punctuation.accessor.optional.ts"},"5":{"name":"support.type.object.module.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(exports)|(module)(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(exports|id|filename|loaded|parent|children))?)\\\\b(?!\\\\$)"}]},"switch-statement":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bswitch\\\\s*\\\\()","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"switch-statement.expr.ts","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"switch-expression.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"(?=})","name":"switch-block.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.ts"}},"end":"(?=:)","name":"case-clause.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"},"2":{"name":"meta.block.ts punctuation.definition.block.ts"}},"contentName":"meta.block.ts","end":"}","endCaptures":{"0":{"name":"meta.block.ts punctuation.definition.block.ts"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"template-call":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"patterns":[{"include":"#comment"},{"include":"#type-string"},{"include":"#numeric-literal"},{"include":"#type-primitive"},{"include":"#type-builtin-literals"},{"include":"#type-parameters"},{"include":"#type-tuple"},{"include":"#type-object"},{"include":"#type-operators"},{"include":"#type-conditional"},{"include":"#type-fn-type-parameters"},{"include":"#type-paren-or-function-parameters"},{"include":"#type-function-return-type"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*"},{"include":"#type-name"}]},"type-alias-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(type)\\\\b\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.type.ts"},"4":{"name":"entity.name.type.alias.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.type.declaration.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"},"2":{"name":"keyword.control.intrinsic.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]},{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]}]},"type-annotation":{"patterns":[{"begin":"(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.ts"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.ts storage.modifier.ts"},"2":{"name":"meta.type.constructor.ts keyword.control.new.ts"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.ts"},"2":{"name":"entity.name.type.ts"},"3":{"name":"keyword.operator.expression.extends.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.ts"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.ts"},"2":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.ts"},{"match":"([:?])","name":"keyword.operator.ternary.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.ts"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=\\\\s*(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"},"4":{"name":"keyword.operator.expression.is.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.ts"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.ts"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.ts"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.ts"},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"punctuation.separator.label.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.ts"}},"end":"(?=[]\\\\&),:;=>?{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))undefined(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.undefined.ts"},"var-expr":{"patterns":[{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!^let|[^$._[:alnum:]]let|^var|[^$._[:alnum:]]var)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]])const)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]]|^await\\\\s+|[^$._[:alnum:]]await\\\\s+)using)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]}]},"var-single-const":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts entity.name.function.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts entity.name.function.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable-type-annotation":{"patterns":[{"include":"#type-annotation"},{"include":"#string"},{"include":"#comment"}]},"variable-initializer":{"patterns":[{"begin":"(?<![!=])(=)(?!=)(?=\\\\s*\\\\S)(?!\\\\s*.*=>\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.ts","aliases":["ts","cts","mts"]}')),rk=[nk],ak=Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"')}])([^\\\\t\\\\n\\\\r \\"\\\\&');->\`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|('))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*(('))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=\`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;\`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}`)),ok=[ak],sk=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),ik=[sk],lk={};function ck(e,t){const n=lk,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Eb(e,r,a)}function Eb(e,t,n){if(uk(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 X3(e.children,t,n)}return Array.isArray(e)?X3(e,t,n):""}function X3(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Eb(e[a],t,n);return r.join("")}function uk(e){return!!(e&&typeof e=="object")}const Y3=document.createElement("i");function z2(e){const t="&"+e+";";Y3.innerHTML=t;const n=Y3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ta(e,t,n,r){const a=e.length;let l=0,i;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function oo(e,t){return e.length>0?(Ta(e,e.length,0,t),e):t}const K3={}.hasOwnProperty;function Db(e){const t={};let n=-1;for(;++n<e.length;)dk(t,e[n]);return t}function dk(e,t){let n;for(n in t){const a=(K3.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let i;if(l)for(i in l){K3.call(a,i)||(a[i]=[]);const u=l[i];pk(a[i],Array.isArray(u)?u:u?[u]:[])}}}function pk(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ta(e,0,0,r)}function zb(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 Bo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ta=Fi(/[A-Za-z]/),Lr=Fi(/[\dA-Za-z]/),mk=Fi(/[#-'*+\--9=?A-Z^-~]/);function Gp(e){return e!==null&&(e<32||e===127)}const Df=Fi(/\d/),hk=Fi(/[\dA-Fa-f]/),fk=Fi(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function Xt(e){return e!==null&&(e<0||e===32)}function wt(e){return e===-2||e===-1||e===32}const W0=Fi(new RegExp("\\p{P}|\\p{S}","u")),Vl=Fi(/\s/);function Fi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function T2(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const l=e.charCodeAt(n);let i="";if(l===37&&Lr(e.charCodeAt(n+1))&&Lr(e.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(i=String.fromCharCode(l,u),a=1):i="�"}else i=String.fromCharCode(l);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ft(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(d){return wt(d)?(e.enter(n),u(d)):t(d)}function u(d){return wt(d)&&l++<a?(e.consume(d),u):(e.exit(n),t(d))}}const gk={tokenize:vk};function vk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ft(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),l(u)}function l(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,i(u)}function i(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ue(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),i)}}const bk={tokenize:yk},J3={tokenize:xk};function yk(e){const t=this,n=[];let r=0,a,l,i;return u;function u(A){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,d,m)(A)}return m(A)}function d(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&S();const I=t.events.length;let M=I,L;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){L=t.events[M][1].end;break}k(r);let F=I;for(;F<t.events.length;)t.events[F][1].end={...L},F++;return Ta(t.events,M+1,0,t.events.slice(I)),t.events.length=F,m(A)}return u(A)}function m(A){if(r===n.length){if(!a)return b(A);if(a.currentConstruct&&a.currentConstruct.concrete)return g(A);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(J3,f,h)(A)}function f(A){return a&&S(),k(r),b(A)}function h(A){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,g(A)}function b(A){return t.containerState={},e.attempt(J3,y,g)(A)}function y(A){return r++,n.push([t.currentConstruct,t.containerState]),b(A)}function g(A){if(A===null){a&&S(),k(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),_(A)}function _(A){if(A===null){C(e.exit("chunkFlow"),!0),k(0),e.consume(A);return}return Ue(A)?(e.consume(A),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(A),_)}function C(A,I){const M=t.sliceStream(A);if(I&&M.push(null),A.previous=l,l&&(l.next=A),l=A,a.defineSkip(A.start),a.write(M),t.parser.lazy[A.start.line]){let L=a.events.length;for(;L--;)if(a.events[L][1].start.offset<i&&(!a.events[L][1].end||a.events[L][1].end.offset>i))return;const F=t.events.length;let G=F,O,B;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(O){B=t.events[G][1].end;break}O=!0}for(k(r),L=F;L<t.events.length;)t.events[L][1].end={...B},L++;Ta(t.events,G+1,0,t.events.slice(F)),t.events.length=L}}function k(A){let I=n.length;for(;I-- >A;){const M=n[I];t.containerState=M[1],M[0].exit.call(t,e)}n.length=A}function S(){a.write([null]),l=void 0,a=void 0,t.containerState._closeFlow=void 0}}function xk(e,t,n){return ft(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xc(e){if(e===null||Xt(e)||Vl(e))return 1;if(W0(e))return 2}function jm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Wp={name:"attention",resolveAll:_k,tokenize:wk};function _k(e,t){let n=-1,r,a,l,i,u,d,m,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},b={...e[n][1].start};ev(h,-d),ev(b,d),i={type:d>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},l={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...i.start},end:{...u.end}},e[r][1].end={...i.start},e[n][1].start={...u.end},m=[],e[r][1].end.offset-e[r][1].start.offset&&(m=oo(m,[["enter",e[r][1],t],["exit",e[r][1],t]])),m=oo(m,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",l,t]]),m=oo(m,jm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),m=oo(m,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,m=oo(m,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ta(e,r-1,n-r+3,m),n=r+m.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function wk(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xc(r);let l;return i;function i(d){return l=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===l)return e.consume(d),u;const m=e.exit("attentionSequence"),f=Xc(d),h=!f||f===2&&a||n.includes(d),b=!a||a===2&&f||n.includes(r);return m._open=!!(l===42?h:h&&(a||!b)),m._close=!!(l===42?b:b&&(f||!h)),t(d)}}function ev(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jk={name:"autolink",tokenize:Ck};function Ck(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return ta(y)?(e.consume(y),i):y===64?n(y):m(y)}function i(y){return y===43||y===45||y===46||Lr(y)?(r=1,u(y)):m(y)}function u(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||Lr(y))&&r++<32?(e.consume(y),u):(r=0,m(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Gp(y)?n(y):(e.consume(y),d)}function m(y){return y===64?(e.consume(y),f):mk(y)?(e.consume(y),m):n(y)}function f(y){return Lr(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,f):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||Lr(y))&&r++<63){const g=y===45?b:h;return e.consume(y),g}return n(y)}}const Z0={partial:!0,tokenize:kk};function kk(e,t,n){return r;function r(l){return wt(l)?ft(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||Ue(l)?t(l):n(l)}}const Tb={continuation:{tokenize:Sk},exit:$k,name:"blockQuote",tokenize:Nk};function Nk(e,t,n){const r=this;return a;function a(i){if(i===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return n(i)}function l(i){return wt(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function Sk(e,t,n){const r=this;return a;function a(i){return wt(i)?ft(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(Tb,t,n)(i)}}function $k(e){e.exit("blockQuote")}const Mb={name:"characterEscape",tokenize:Ak};function Ak(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return fk(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Lb={name:"characterReference",tokenize:Ek};function Ek(e,t,n){const r=this;let a=0,l,i;return u;function u(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d}function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),l=31,i=Lr,f(h))}function m(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=hk,f):(e.enter("characterReferenceValue"),l=7,i=Df,f(h))}function f(h){if(h===59&&a){const b=e.exit("characterReferenceValue");return i===Lr&&!z2(r.sliceSerialize(b))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(h)&&a++<l?(e.consume(h),f):n(h)}}const tv={partial:!0,tokenize:zk},nv={concrete:!0,name:"codeFenced",tokenize:Dk};function Dk(e,t,n){const r=this,a={partial:!0,tokenize:M};let l=0,i=0,u;return d;function d(L){return m(L)}function m(L){const F=r.events[r.events.length-1];return l=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,u=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(L)}function f(L){return L===u?(i++,e.consume(L),f):i<3?n(L):(e.exit("codeFencedFenceSequence"),wt(L)?ft(e,h,"whitespace")(L):h(L))}function h(L){return L===null||Ue(L)?(e.exit("codeFencedFence"),r.interrupt?t(L):e.check(tv,_,I)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(L))}function b(L){return L===null||Ue(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(L)):wt(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ft(e,y,"whitespace")(L)):L===96&&L===u?n(L):(e.consume(L),b)}function y(L){return L===null||Ue(L)?h(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(L))}function g(L){return L===null||Ue(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(L)):L===96&&L===u?n(L):(e.consume(L),g)}function _(L){return e.attempt(a,I,C)(L)}function C(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),k}function k(L){return l>0&&wt(L)?ft(e,S,"linePrefix",l+1)(L):S(L)}function S(L){return L===null||Ue(L)?e.check(tv,_,I)(L):(e.enter("codeFlowValue"),A(L))}function A(L){return L===null||Ue(L)?(e.exit("codeFlowValue"),S(L)):(e.consume(L),A)}function I(L){return e.exit("codeFenced"),t(L)}function M(L,F,G){let O=0;return B;function B(ne){return L.enter("lineEnding"),L.consume(ne),L.exit("lineEnding"),W}function W(ne){return L.enter("codeFencedFence"),wt(ne)?ft(L,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):re(ne)}function re(ne){return ne===u?(L.enter("codeFencedFenceSequence"),fe(ne)):G(ne)}function fe(ne){return ne===u?(O++,L.consume(ne),fe):O>=i?(L.exit("codeFencedFenceSequence"),wt(ne)?ft(L,he,"whitespace")(ne):he(ne)):G(ne)}function he(ne){return ne===null||Ue(ne)?(L.exit("codeFencedFence"),F(ne)):G(ne)}}}function zk(e,t,n){const r=this;return a;function a(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const Sh={name:"codeIndented",tokenize:Mk},Tk={partial:!0,tokenize:Lk};function Mk(e,t,n){const r=this;return a;function a(m){return e.enter("codeIndented"),ft(e,l,"linePrefix",5)(m)}function l(m){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(m):n(m)}function i(m){return m===null?d(m):Ue(m)?e.attempt(Tk,i,d)(m):(e.enter("codeFlowValue"),u(m))}function u(m){return m===null||Ue(m)?(e.exit("codeFlowValue"),i(m)):(e.consume(m),u)}function d(m){return e.exit("codeIndented"),t(m)}}function Lk(e,t,n){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?n(i):Ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):ft(e,l,"linePrefix",5)(i)}function l(i){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):Ue(i)?a(i):n(i)}}const Ik={name:"codeText",previous:Rk,resolve:qk,tokenize:Pk};function qk(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Rk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pk(e,t,n){let r=0,a,l;return i;function i(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),r++,u):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(l=e.enter("codeTextSequence"),a=0,f(h)):Ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),m(h))}function m(h){return h===null||h===32||h===96||Ue(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),m)}function f(h){return h===96?(e.consume(h),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(l.type="codeTextData",m(h))}}class Fk{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&p0(this.left,r),l.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),p0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),p0(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);p0(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);p0(this.left,n.reverse())}}}function p0(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 Ib(e){const t={};let n=-1,r,a,l,i,u,d,m;const f=new Fk(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ok(f,n)),n=t[n],m=!0);else if(r[1]._container){for(l=n,a=void 0;l--;)if(i=f.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end={...f.get(a)[1].start},u=f.slice(a,n),u.unshift(r),f.splice(a,n-a+1,u))}}return Ta(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!m}function Ok(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const l=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const u=i.events,d=[],m={};let f,h,b=-1,y=n,g=0,_=0;const C=[_];for(;y;){for(;e.get(++a)[1]!==y;);l.push(a),y._tokenizer||(f=r.sliceStream(y),y.next||f.push(null),h&&i.defineSkip(y.start),y._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),y._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++b<u.length;)u[b][0]==="exit"&&u[b-1][0]==="enter"&&u[b][1].type===u[b-1][1].type&&u[b][1].start.line!==u[b][1].end.line&&(_=b+1,C.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(i.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),b=C.length;b--;){const k=u.slice(C[b],C[b+1]),S=l.pop();d.push([S,S+k.length-1]),e.splice(S,2,k)}for(d.reverse(),b=-1;++b<d.length;)m[g+d[b][0]]=g+d[b][1],g+=d[b][1]-d[b][0]-1;return m}const Bk={resolve:Uk,tokenize:Vk},Hk={partial:!0,tokenize:Gk};function Uk(e){return Ib(e),e}function Vk(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?l(u):Ue(u)?e.check(Hk,i,l)(u):(e.consume(u),a)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function i(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Gk(e,t,n){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ft(e,l,"linePrefix")}function l(i){if(i===null||Ue(i))return n(i);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function qb(e,t,n,r,a,l,i,u,d){const m=d||Number.POSITIVE_INFINITY;let f=0;return h;function h(k){return k===60?(e.enter(r),e.enter(a),e.enter(l),e.consume(k),e.exit(l),b):k===null||k===32||k===41||Gp(k)?n(k):(e.enter(r),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(k))}function b(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===62?(e.exit("chunkString"),e.exit(u),b(k)):k===null||k===60||Ue(k)?n(k):(e.consume(k),k===92?g:y)}function g(k){return k===60||k===62||k===92?(e.consume(k),y):y(k)}function _(k){return!f&&(k===null||k===41||Xt(k))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(r),t(k)):f<m&&k===40?(e.consume(k),f++,_):k===41?(e.consume(k),f--,_):k===null||k===32||k===40||Gp(k)?n(k):(e.consume(k),k===92?C:_)}function C(k){return k===40||k===41||k===92?(e.consume(k),_):_(k)}}function Rb(e,t,n,r,a,l){const i=this;let u=0,d;return m;function m(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(l),f}function f(y){return u>999||y===null||y===91||y===93&&!d||y===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?n(y):y===93?(e.exit(l),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Ue(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Ue(y)||u++>999?(e.exit("chunkString"),f(y)):(e.consume(y),d||(d=!wt(y)),y===92?b:h)}function b(y){return y===91||y===92||y===93?(e.consume(y),u++,h):h(y)}}function Pb(e,t,n,r,a,l){let i;return u;function u(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),i=b===40?41:b,d):n(b)}function d(b){return b===i?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(l),m(b))}function m(b){return b===i?(e.exit(l),d(i)):b===null?n(b):Ue(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ft(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===i||b===null||Ue(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?h:f)}function h(b){return b===i||b===92?(e.consume(b),f):f(b)}}function N0(e,t){let n;return r;function r(a){return Ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):wt(a)?ft(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Wk={name:"definition",tokenize:Qk},Zk={partial:!0,tokenize:Xk};function Qk(e,t,n){const r=this;let a;return l;function l(y){return e.enter("definition"),i(y)}function i(y){return Rb.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function u(y){return a=Bo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return Xt(y)?N0(e,m)(y):m(y)}function m(y){return qb(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function f(y){return e.attempt(Zk,h,h)(y)}function h(y){return wt(y)?ft(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Ue(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function Xk(e,t,n){return r;function r(u){return Xt(u)?N0(e,a)(u):n(u)}function a(u){return Pb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return wt(u)?ft(e,i,"whitespace")(u):i(u)}function i(u){return u===null||Ue(u)?t(u):n(u)}}const Yk={name:"hardBreakEscape",tokenize:Kk};function Kk(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return Ue(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Jk={name:"headingAtx",resolve:eN,tokenize:tN};function eN(e,t){let n=e.length-2,r=3,a,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ta(e,r,n-r+1,[["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t]])),e}function tN(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(e.consume(f),i):f===null||Xt(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),d(f)):f===null||Ue(f)?(e.exit("atxHeading"),t(f)):wt(f)?ft(e,u,"whitespace")(f):(e.enter("atxHeadingText"),m(f))}function d(f){return f===35?(e.consume(f),d):(e.exit("atxHeadingSequence"),u(f))}function m(f){return f===null||f===35||Xt(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),m)}}const nN=["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"],rv=["pre","script","style","textarea"],rN={concrete:!0,name:"htmlFlow",resolveTo:sN,tokenize:iN},aN={partial:!0,tokenize:cN},oN={partial:!0,tokenize:lN};function sN(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 iN(e,t,n){const r=this;let a,l,i,u,d;return m;function m(z){return f(z)}function f(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),h}function h(z){return z===33?(e.consume(z),b):z===47?(e.consume(z),l=!0,_):z===63?(e.consume(z),a=3,r.interrupt?t:R):ta(z)?(e.consume(z),i=String.fromCharCode(z),C):n(z)}function b(z){return z===45?(e.consume(z),a=2,y):z===91?(e.consume(z),a=5,u=0,g):ta(z)?(e.consume(z),a=4,r.interrupt?t:R):n(z)}function y(z){return z===45?(e.consume(z),r.interrupt?t:R):n(z)}function g(z){const ke="CDATA[";return z===ke.charCodeAt(u++)?(e.consume(z),u===ke.length?r.interrupt?t:re:g):n(z)}function _(z){return ta(z)?(e.consume(z),i=String.fromCharCode(z),C):n(z)}function C(z){if(z===null||z===47||z===62||Xt(z)){const ke=z===47,pe=i.toLowerCase();return!ke&&!l&&rv.includes(pe)?(a=1,r.interrupt?t(z):re(z)):nN.includes(i.toLowerCase())?(a=6,ke?(e.consume(z),k):r.interrupt?t(z):re(z)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):l?S(z):A(z))}return z===45||Lr(z)?(e.consume(z),i+=String.fromCharCode(z),C):n(z)}function k(z){return z===62?(e.consume(z),r.interrupt?t:re):n(z)}function S(z){return wt(z)?(e.consume(z),S):B(z)}function A(z){return z===47?(e.consume(z),B):z===58||z===95||ta(z)?(e.consume(z),I):wt(z)?(e.consume(z),A):B(z)}function I(z){return z===45||z===46||z===58||z===95||Lr(z)?(e.consume(z),I):M(z)}function M(z){return z===61?(e.consume(z),L):wt(z)?(e.consume(z),M):A(z)}function L(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),d=z,F):wt(z)?(e.consume(z),L):G(z)}function F(z){return z===d?(e.consume(z),d=null,O):z===null||Ue(z)?n(z):(e.consume(z),F)}function G(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Xt(z)?M(z):(e.consume(z),G)}function O(z){return z===47||z===62||wt(z)?A(z):n(z)}function B(z){return z===62?(e.consume(z),W):n(z)}function W(z){return z===null||Ue(z)?re(z):wt(z)?(e.consume(z),W):n(z)}function re(z){return z===45&&a===2?(e.consume(z),we):z===60&&a===1?(e.consume(z),je):z===62&&a===4?(e.consume(z),q):z===63&&a===3?(e.consume(z),R):z===93&&a===5?(e.consume(z),oe):Ue(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(aN,ee,fe)(z)):z===null||Ue(z)?(e.exit("htmlFlowData"),fe(z)):(e.consume(z),re)}function fe(z){return e.check(oN,he,ee)(z)}function he(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),ne}function ne(z){return z===null||Ue(z)?fe(z):(e.enter("htmlFlowData"),re(z))}function we(z){return z===45?(e.consume(z),R):re(z)}function je(z){return z===47?(e.consume(z),i="",J):re(z)}function J(z){if(z===62){const ke=i.toLowerCase();return rv.includes(ke)?(e.consume(z),q):re(z)}return ta(z)&&i.length<8?(e.consume(z),i+=String.fromCharCode(z),J):re(z)}function oe(z){return z===93?(e.consume(z),R):re(z)}function R(z){return z===62?(e.consume(z),q):z===45&&a===2?(e.consume(z),R):re(z)}function q(z){return z===null||Ue(z)?(e.exit("htmlFlowData"),ee(z)):(e.consume(z),q)}function ee(z){return e.exit("htmlFlow"),t(z)}}function lN(e,t,n){const r=this;return a;function a(i){return Ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):n(i)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function cN(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Z0,t,n)}}const uN={name:"htmlText",tokenize:dN};function dN(e,t,n){const r=this;let a,l,i;return u;function u(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),m):R===47?(e.consume(R),M):R===63?(e.consume(R),A):ta(R)?(e.consume(R),G):n(R)}function m(R){return R===45?(e.consume(R),f):R===91?(e.consume(R),l=0,g):ta(R)?(e.consume(R),S):n(R)}function f(R){return R===45?(e.consume(R),y):n(R)}function h(R){return R===null?n(R):R===45?(e.consume(R),b):Ue(R)?(i=h,je(R)):(e.consume(R),h)}function b(R){return R===45?(e.consume(R),y):h(R)}function y(R){return R===62?we(R):R===45?b(R):h(R)}function g(R){const q="CDATA[";return R===q.charCodeAt(l++)?(e.consume(R),l===q.length?_:g):n(R)}function _(R){return R===null?n(R):R===93?(e.consume(R),C):Ue(R)?(i=_,je(R)):(e.consume(R),_)}function C(R){return R===93?(e.consume(R),k):_(R)}function k(R){return R===62?we(R):R===93?(e.consume(R),k):_(R)}function S(R){return R===null||R===62?we(R):Ue(R)?(i=S,je(R)):(e.consume(R),S)}function A(R){return R===null?n(R):R===63?(e.consume(R),I):Ue(R)?(i=A,je(R)):(e.consume(R),A)}function I(R){return R===62?we(R):A(R)}function M(R){return ta(R)?(e.consume(R),L):n(R)}function L(R){return R===45||Lr(R)?(e.consume(R),L):F(R)}function F(R){return Ue(R)?(i=F,je(R)):wt(R)?(e.consume(R),F):we(R)}function G(R){return R===45||Lr(R)?(e.consume(R),G):R===47||R===62||Xt(R)?O(R):n(R)}function O(R){return R===47?(e.consume(R),we):R===58||R===95||ta(R)?(e.consume(R),B):Ue(R)?(i=O,je(R)):wt(R)?(e.consume(R),O):we(R)}function B(R){return R===45||R===46||R===58||R===95||Lr(R)?(e.consume(R),B):W(R)}function W(R){return R===61?(e.consume(R),re):Ue(R)?(i=W,je(R)):wt(R)?(e.consume(R),W):O(R)}function re(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),a=R,fe):Ue(R)?(i=re,je(R)):wt(R)?(e.consume(R),re):(e.consume(R),he)}function fe(R){return R===a?(e.consume(R),a=void 0,ne):R===null?n(R):Ue(R)?(i=fe,je(R)):(e.consume(R),fe)}function he(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Xt(R)?O(R):(e.consume(R),he)}function ne(R){return R===47||R===62||Xt(R)?O(R):n(R)}function we(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function je(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),J}function J(R){return wt(R)?ft(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):oe(R)}function oe(R){return e.enter("htmlTextData"),i(R)}}const M2={name:"labelEnd",resolveAll:fN,resolveTo:gN,tokenize:vN},pN={tokenize:bN},mN={tokenize:yN},hN={tokenize:xN};function fN(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Ta(e,0,e.length,n),e}function gN(e,t){let n=e.length,r=0,a,l,i,u;for(;n--;)if(a=e[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[l][1].start},end:{...e[i][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[i-2][1].start}};return u=[["enter",d,t],["enter",m,t]],u=oo(u,e.slice(l+1,l+r+3)),u=oo(u,[["enter",f,t]]),u=oo(u,jm(t.parser.constructs.insideSpan.null,e.slice(l+r+4,i-3),t)),u=oo(u,[["exit",f,t],e[i-2],e[i-1],["exit",m,t]]),u=oo(u,e.slice(i+1)),u=oo(u,[["exit",d,t]]),Ta(e,l,e.length,u),e}function vN(e,t,n){const r=this;let a=r.events.length,l,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){l=r.events[a][1];break}return u;function u(b){return l?l._inactive?h(b):(i=r.parser.defined.includes(Bo(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(pN,f,i?f:h)(b):b===91?e.attempt(mN,f,i?m:h)(b):i?f(b):h(b)}function m(b){return e.attempt(hN,f,h)(b)}function f(b){return t(b)}function h(b){return l._balanced=!0,n(b)}}function bN(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return Xt(h)?N0(e,l)(h):l(h)}function l(h){return h===41?f(h):qb(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function i(h){return Xt(h)?N0(e,d)(h):f(h)}function u(h){return n(h)}function d(h){return h===34||h===39||h===40?Pb(e,m,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function m(h){return Xt(h)?N0(e,f)(h):f(h)}function f(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function yN(e,t,n){const r=this;return a;function a(u){return Rb.call(r,e,l,i,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(Bo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function i(u){return n(u)}}function xN(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const _N={name:"labelStartImage",resolveAll:M2.resolveAll,tokenize:wN};function wN(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),i):n(u)}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const jN={name:"labelStartLink",resolveAll:M2.resolveAll,tokenize:CN};function CN(e,t,n){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const $h={name:"lineEnding",tokenize:kN};function kN(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ft(e,t,"linePrefix")}}const $p={name:"thematicBreak",tokenize:NN};function NN(e,t,n){let r=0,a;return l;function l(m){return e.enter("thematicBreak"),i(m)}function i(m){return a=m,u(m)}function u(m){return m===a?(e.enter("thematicBreakSequence"),d(m)):r>=3&&(m===null||Ue(m))?(e.exit("thematicBreak"),t(m)):n(m)}function d(m){return m===a?(e.consume(m),r++,d):(e.exit("thematicBreakSequence"),wt(m)?ft(e,u,"whitespace")(m):u(m))}}const ha={continuation:{tokenize:EN},exit:zN,name:"list",tokenize:AN},SN={partial:!0,tokenize:TN},$N={partial:!0,tokenize:DN};function AN(e,t,n){const r=this,a=r.events[r.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return u;function u(y){const g=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:Df(y)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check($p,n,m)(y):m(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return Df(y)&&++i<10?(e.consume(y),d):(!r.interrupt||i<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),m(y)):n(y)}function m(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Z0,r.interrupt?n:f,e.attempt(SN,b,h))}function f(y){return r.containerState.initialBlankLine=!0,l++,b(y)}function h(y){return wt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function EN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Z0,a,l);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ft(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!wt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($N,t,i)(u))}function i(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,ft(e,e.attempt(ha,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function DN(e,t,n){const r=this;return ft(e,a,"listItemIndent",r.containerState.size+1);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(l):n(l)}}function zN(e){e.exit(this.containerState.type)}function TN(e,t,n){const r=this;return ft(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const i=r.events[r.events.length-1];return!wt(l)&&i&&i[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const av={name:"setextUnderline",resolveTo:MN,tokenize:LN};function MN(e,t){let n=e.length,r,a,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",i,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function LN(e,t,n){const r=this;let a;return l;function l(m){let f=r.events.length,h;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){h=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=m,i(m)):n(m)}function i(m){return e.enter("setextHeadingLineSequence"),u(m)}function u(m){return m===a?(e.consume(m),u):(e.exit("setextHeadingLineSequence"),wt(m)?ft(e,d,"lineSuffix")(m):d(m))}function d(m){return m===null||Ue(m)?(e.exit("setextHeadingLine"),t(m)):n(m)}}const IN={tokenize:qN};function qN(e){const t=this,n=e.attempt(Z0,r,e.attempt(this.parser.constructs.flowInitial,a,ft(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Bk,a)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RN={resolveAll:Ob()},PN=Fb("string"),FN=Fb("text");function Fb(e){return{resolveAll:Ob(e==="text"?ON:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],l=n.attempt(a,i,u);return i;function i(f){return m(f)?l(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),d}function d(f){return m(f)?(n.exit("data"),l(f)):(n.consume(f),d)}function m(f){if(f===null)return!0;const h=a[f];let b=-1;if(h)for(;++b<h.length;){const y=h[b];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function Ob(e){return t;function t(n,r){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return e?e(n,r):n}}function ON(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let l=a.length,i=-1,u=0,d;for(;l--;){const m=a[l];if(typeof m=="string"){for(i=m.length;m.charCodeAt(i-1)===32;)u++,i--;if(i)break;i=-1}else if(m===-2)d=!0,u++;else if(m!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const m={type:n===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?i:r.start._bufferIndex+i,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(e.splice(n,0,["enter",m,t],["exit",m,t]),n+=2)}n++}return e}const BN={42:ha,43:ha,45:ha,48:ha,49:ha,50:ha,51:ha,52:ha,53:ha,54:ha,55:ha,56:ha,57:ha,62:Tb},HN={91:Wk},UN={[-2]:Sh,[-1]:Sh,32:Sh},VN={35:Jk,42:$p,45:[av,$p],60:rN,61:av,95:$p,96:nv,126:nv},GN={38:Lb,92:Mb},WN={[-5]:$h,[-4]:$h,[-3]:$h,33:_N,38:Lb,42:Wp,60:[jk,uN],91:jN,92:[Yk,Mb],93:M2,95:Wp,96:Ik},ZN={null:[Wp,RN]},QN={null:[42,95]},XN={null:[]},YN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:QN,contentInitial:HN,disable:XN,document:BN,flow:VN,flowInitial:UN,insideSpan:ZN,string:GN,text:WN},Symbol.toStringTag,{value:"Module"}));function KN(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},l=[];let i=[],u=[];const d={attempt:F(M),check:F(L),consume:S,enter:A,exit:I,interrupt:F(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:g,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:h};let f=t.tokenize.call(m,d);return t.resolveAll&&l.push(t),m;function h(W){return i=oo(i,W),C(),i[i.length-1]!==null?[]:(G(t,0),m.events=jm(l,m.events,m),m.events)}function b(W,re){return eS(y(W),re)}function y(W){return JN(i,W)}function g(){const{_bufferIndex:W,_index:re,line:fe,column:he,offset:ne}=r;return{_bufferIndex:W,_index:re,line:fe,column:he,offset:ne}}function _(W){a[W.line]=W.column,B()}function C(){let W;for(;r._index<i.length;){const re=i[r._index];if(typeof re=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<re.length;)k(re.charCodeAt(r._bufferIndex));else k(re)}}function k(W){f=f(W)}function S(W){Ue(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,B()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=W}function A(W,re){const fe=re||{};return fe.type=W,fe.start=g(),m.events.push(["enter",fe,m]),u.push(fe),fe}function I(W){const re=u.pop();return re.end=g(),m.events.push(["exit",re,m]),re}function M(W,re){G(W,re.from)}function L(W,re){re.restore()}function F(W,re){return fe;function fe(he,ne,we){let je,J,oe,R;return Array.isArray(he)?ee(he):"tokenize"in he?ee([he]):q(he);function q(Me){return ge;function ge(ze){const Pe=ze!==null&&Me[ze],qe=ze!==null&&Me.null,Nt=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return ee(Nt)(ze)}}function ee(Me){return je=Me,J=0,Me.length===0?we:z(Me[J])}function z(Me){return ge;function ge(ze){return R=O(),oe=Me,Me.partial||(m.currentConstruct=Me),Me.name&&m.parser.constructs.disable.null.includes(Me.name)?pe():Me.tokenize.call(re?Object.assign(Object.create(m),re):m,d,ke,pe)(ze)}}function ke(Me){return W(oe,R),ne}function pe(Me){return R.restore(),++J<je.length?z(je[J]):we}}}function G(W,re){W.resolveAll&&!l.includes(W)&&l.push(W),W.resolve&&Ta(m.events,re,m.events.length-re,W.resolve(m.events.slice(re),m)),W.resolveTo&&(m.events=W.resolveTo(m.events,m))}function O(){const W=g(),re=m.previous,fe=m.currentConstruct,he=m.events.length,ne=Array.from(u);return{from:he,restore:we};function we(){r=W,m.previous=re,m.currentConstruct=fe,m.events.length=he,u=ne,B()}}function B(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function JN(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,l=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,l)];else{if(i=e.slice(n,a),r>-1){const u=i[0];typeof u=="string"?i[0]=u.slice(r):i.shift()}l>0&&i.push(e[a].slice(0,l))}return i}function eS(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const l=e[n];let i;if(typeof l=="string")i=l;else switch(l){case-5:{i="\r";break}case-4:{i=`
|
|
193
|
-
`;break}case-3:{i=`\r
|
|
194
|
-
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(l)}a=l===-2,r.push(i)}return r.join("")}function tS(e){const r={constructs:Db([YN,...(e||{}).extensions||[]]),content:a(gk),defined:[],document:a(bk),flow:a(IN),lazy:{},string:a(PN),text:a(FN)};return r;function a(l){return i;function i(u){return KN(r,l,u)}}}function nS(e){for(;!Ib(e););return e}const ov=/[\0\t\n\r]/g;function rS(){let e=1,t="",n=!0,r;return a;function a(l,i,u){const d=[];let m,f,h,b,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(i||void 0).decode(l)),h=0,t="",n&&(l.charCodeAt(0)===65279&&h++,n=void 0);h<l.length;){if(ov.lastIndex=h,m=ov.exec(l),b=m&&m.index!==void 0?m.index:l.length,y=l.charCodeAt(b),!m){t=l.slice(h);break}if(y===10&&h===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),h<b&&(d.push(l.slice(h,b)),e+=b-h),y){case 0:{d.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,d.push(-2);e++<f;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}h=b+1}return u&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const aS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oS(e){return e.replace(aS,sS)}function sS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return zb(n.slice(l?2:1),l?16:10)}return z2(n)||e}function Ap(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sv(e.position):"start"in e||"end"in e?sv(e):"line"in e||"column"in e?zf(e):""}function zf(e){return iv(e&&e.line)+":"+iv(e&&e.column)}function sv(e){return zf(e&&e.start)+"-"+zf(e&&e.end)}function iv(e){return e&&typeof e=="number"?e:1}const Bb={}.hasOwnProperty;function Hb(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),iS(n)(nS(tS(n).document().write(rS()(e,t,!0))))}function iS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(aa),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Wn),blockQuote:l(qe),characterEscape:O,characterReference:O,codeFenced:l(Nt),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:l(Nt,i),codeText:l(Kt,i),codeTextData:O,data:O,codeFlowValue:O,definition:l(Ut),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:l(Rn),hardBreakEscape:l($n),hardBreakTrailing:l($n),htmlFlow:l(wr,i),htmlFlowData:O,htmlText:l(wr,i),htmlTextData:O,image:l(mn),label:i,link:l(aa),listItem:l(An),listItemValue:b,listOrdered:l(nn,h),listUnordered:l(nn),paragraph:l(qr),reference:z,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:l(Wn),strong:l(Rr),thematicBreak:l(ba)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:Pe,autolinkProtocol:ze,blockQuote:d(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:Me,characterReference:ge,codeFenced:d(C),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:g,codeFlowValue:B,codeIndented:d(k),codeText:d(ne),codeTextData:B,data:B,definition:d(),definitionDestinationString:I,definitionLabelString:S,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(re),hardBreakTrailing:d(re),htmlFlow:d(fe),htmlFlowData:B,htmlText:d(he),htmlTextData:B,image:d(je),label:oe,labelText:J,lineEnding:W,link:d(we),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ke,resourceDestinationString:R,resourceTitleString:q,resource:ee,setextHeading:d(G),setextHeadingLineSequence:F,setextHeadingText:L,strong:d(),thematicBreak:d()}};Ub(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(le){let Ce={type:"root",children:[]};const Ze={stack:[Ce],tokenStack:[],config:t,enter:u,exit:m,buffer:i,resume:f,data:n},st=[];let vt=-1;for(;++vt<le.length;)if(le[vt][1].type==="listOrdered"||le[vt][1].type==="listUnordered")if(le[vt][0]==="enter")st.push(vt);else{const Pt=st.pop();vt=a(le,Pt,vt)}for(vt=-1;++vt<le.length;){const Pt=t[le[vt][0]];Bb.call(Pt,le[vt][1].type)&&Pt[le[vt][1].type].call(Object.assign({sliceSerialize:le[vt][2].sliceSerialize},Ze),le[vt][1])}if(Ze.tokenStack.length>0){const Pt=Ze.tokenStack[Ze.tokenStack.length-1];(Pt[1]||lv).call(Ze,void 0,Pt[0])}for(Ce.position={start:Ci(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:Ci(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<t.transforms.length;)Ce=t.transforms[vt](Ce)||Ce;return Ce}function a(le,Ce,Ze){let st=Ce-1,vt=-1,Pt=!1,jr,Pn,oa,En;for(;++st<=Ze;){const rn=le[st];switch(rn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rn[0]==="enter"?vt++:vt--,En=void 0;break}case"lineEndingBlank":{rn[0]==="enter"&&(jr&&!En&&!vt&&!oa&&(oa=st),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!vt&&rn[0]==="enter"&&rn[1].type==="listItemPrefix"||vt===-1&&rn[0]==="exit"&&(rn[1].type==="listUnordered"||rn[1].type==="listOrdered")){if(jr){let $t=st;for(Pn=void 0;$t--;){const Dn=le[$t];if(Dn[1].type==="lineEnding"||Dn[1].type==="lineEndingBlank"){if(Dn[0]==="exit")continue;Pn&&(le[Pn][1].type="lineEndingBlank",Pt=!0),Dn[1].type="lineEnding",Pn=$t}else if(!(Dn[1].type==="linePrefix"||Dn[1].type==="blockQuotePrefix"||Dn[1].type==="blockQuotePrefixWhitespace"||Dn[1].type==="blockQuoteMarker"||Dn[1].type==="listItemIndent"))break}oa&&(!Pn||oa<Pn)&&(jr._spread=!0),jr.end=Object.assign({},Pn?le[Pn][1].start:rn[1].end),le.splice(Pn||st,0,["exit",jr,rn[2]]),st++,Ze++}if(rn[1].type==="listItemPrefix"){const $t={type:"listItem",_spread:!1,start:Object.assign({},rn[1].start),end:void 0};jr=$t,le.splice(st,0,["enter",$t,rn[2]]),st++,Ze++,oa=void 0,En=!0}}}return le[Ce][1]._spread=Pt,Ze}function l(le,Ce){return Ze;function Ze(st){u.call(this,le(st),st),Ce&&Ce.call(this,st)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(le,Ce,Ze){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([Ce,Ze||void 0]),le.position={start:Ci(Ce.start),end:void 0}}function d(le){return Ce;function Ce(Ze){le&&le.call(this,Ze),m.call(this,Ze)}}function m(le,Ce){const Ze=this.stack.pop(),st=this.tokenStack.pop();if(st)st[0].type!==le.type&&(Ce?Ce.call(this,le,st[0]):(st[1]||lv).call(this,le,st[0]));else throw new Error("Cannot close `"+le.type+"` ("+Ap({start:le.start,end:le.end})+"): it’s not open");Ze.position.end=Ci(le.end)}function f(){return ck(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function b(le){if(this.data.expectingFirstListItemValue){const Ce=this.stack[this.stack.length-2];Ce.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function y(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.lang=le}function g(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.meta=le}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=le.replace(/(\r?\n|\r)$/g,"")}function S(le){const Ce=this.resume(),Ze=this.stack[this.stack.length-1];Ze.label=Ce,Ze.identifier=Bo(this.sliceSerialize(le)).toLowerCase()}function A(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.title=le}function I(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.url=le}function M(le){const Ce=this.stack[this.stack.length-1];if(!Ce.depth){const Ze=this.sliceSerialize(le).length;Ce.depth=Ze}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function F(le){const Ce=this.stack[this.stack.length-1];Ce.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function O(le){const Ze=this.stack[this.stack.length-1].children;let st=Ze[Ze.length-1];(!st||st.type!=="text")&&(st=hn(),st.position={start:Ci(le.start),end:void 0},Ze.push(st)),this.stack.push(st)}function B(le){const Ce=this.stack.pop();Ce.value+=this.sliceSerialize(le),Ce.position.end=Ci(le.end)}function W(le){const Ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ze=Ce.children[Ce.children.length-1];Ze.position.end=Ci(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ce.type)&&(O.call(this,le),B.call(this,le))}function re(){this.data.atHardBreak=!0}function fe(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=le}function he(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=le}function ne(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.value=le}function we(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Ce=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Ce,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function je(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Ce=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Ce,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function J(le){const Ce=this.sliceSerialize(le),Ze=this.stack[this.stack.length-2];Ze.label=oS(Ce),Ze.identifier=Bo(Ce).toLowerCase()}function oe(){const le=this.stack[this.stack.length-1],Ce=this.resume(),Ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ze.type==="link"){const st=le.children;Ze.children=st}else Ze.alt=Ce}function R(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.url=le}function q(){const le=this.resume(),Ce=this.stack[this.stack.length-1];Ce.title=le}function ee(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function ke(le){const Ce=this.resume(),Ze=this.stack[this.stack.length-1];Ze.label=Ce,Ze.identifier=Bo(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function pe(le){this.data.characterReferenceType=le.type}function Me(le){const Ce=this.sliceSerialize(le),Ze=this.data.characterReferenceType;let st;Ze?(st=zb(Ce,Ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):st=z2(Ce);const vt=this.stack[this.stack.length-1];vt.value+=st}function ge(le){const Ce=this.stack.pop();Ce.position.end=Ci(le.end)}function ze(le){B.call(this,le);const Ce=this.stack[this.stack.length-1];Ce.url=this.sliceSerialize(le)}function Pe(le){B.call(this,le);const Ce=this.stack[this.stack.length-1];Ce.url="mailto:"+this.sliceSerialize(le)}function qe(){return{type:"blockquote",children:[]}}function Nt(){return{type:"code",lang:null,meta:null,value:""}}function Kt(){return{type:"inlineCode",value:""}}function Ut(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rn(){return{type:"emphasis",children:[]}}function Wn(){return{type:"heading",depth:0,children:[]}}function $n(){return{type:"break"}}function wr(){return{type:"html",value:""}}function mn(){return{type:"image",title:null,url:"",alt:null}}function aa(){return{type:"link",title:null,url:"",children:[]}}function nn(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function An(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function qr(){return{type:"paragraph",children:[]}}function Rr(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function ba(){return{type:"thematicBreak"}}}function Ci(e){return{line:e.line,column:e.column,offset:e.offset}}function Ub(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ub(e,r):lS(e,r)}}function lS(e,t){let n;for(n in t)if(Bb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function lv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ap({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ap({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ap({start:t.start,end:t.end})+") is still open")}function cS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const L2=(function(e){if(e==null)return mS;if(typeof e=="function")return Cm(e);if(typeof e=="object")return Array.isArray(e)?uS(e):dS(e);if(typeof e=="string")return pS(e);throw new Error("Expected function, string, or object as test")});function uS(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=L2(e[n]);return Cm(r);function r(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function dS(e){const t=e;return Cm(n);function n(r){const a=r;let l;for(l in e)if(a[l]!==t[l])return!1;return!0}}function pS(e){return Cm(t);function t(n){return n&&n.type===e}}function Cm(e){return t;function t(n,r,a){return!!(hS(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function mS(){return!0}function hS(e){return e!==null&&typeof e=="object"&&"type"in e}const Vb=[],fS=!0,cv=!1,gS="skip";function vS(e,t,n,r){let a;a=t;const l=L2(a),i=1;u(e,void 0,[])();function u(d,m,f){const h=d&&typeof d=="object"?d:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=Vb,g,_,C;if(l(d,m,f[f.length-1]||void 0)&&(y=bS(n(d,f)),y[0]===cv))return y;if("children"in d&&d.children){const k=d;if(k.children&&y[0]!==gS)for(_=-1+i,C=f.concat(k);_>-1&&_<k.children.length;){const S=k.children[_];if(g=u(S,_,C)(),g[0]===cv)return g;_=typeof g[1]=="number"?g[1]:_+i}}return y}}}function bS(e){return Array.isArray(e)?e:typeof e=="number"?[fS,e]:e==null?Vb:[e]}function yS(e,t,n){const a=L2((n||{}).ignore||[]),l=xS(t);let i=-1;for(;++i<l.length;)vS(e,"text",u);function u(m,f){let h=-1,b;for(;++h<f.length;){const y=f[h],g=b?b.children:void 0;if(a(y,g?g.indexOf(y):void 0,b))return;b=y}if(b)return d(m,f)}function d(m,f){const h=f[f.length-1],b=l[i][0],y=l[i][1];let g=0;const C=h.children.indexOf(m);let k=!1,S=[];b.lastIndex=0;let A=b.exec(m.value);for(;A;){const I=A.index,M={index:A.index,input:A.input,stack:[...f,m]};let L=y(...A,M);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?b.lastIndex=I+1:(g!==I&&S.push({type:"text",value:m.value.slice(g,I)}),Array.isArray(L)?S.push(...L):L&&S.push(L),g=I+A[0].length,k=!0),!b.global)break;A=b.exec(m.value)}return k?(g<m.value.length&&S.push({type:"text",value:m.value.slice(g)}),h.children.splice(C,1,...S)):S=[m],C+S.length}}function xS(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([_S(a[0]),wS(a[1])])}return t}function _S(e){return typeof e=="string"?new RegExp(cS(e),"g"):e}function wS(e){return typeof e=="function"?e:function(){return e}}function jS(){return{transforms:[AS],enter:{literalAutolink:CS,literalAutolinkEmail:Ah,literalAutolinkHttp:Ah,literalAutolinkWww:Ah},exit:{literalAutolink:$S,literalAutolinkEmail:SS,literalAutolinkHttp:kS,literalAutolinkWww:NS}}}function CS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ah(e){this.config.enter.autolinkProtocol.call(this,e)}function kS(e){this.config.exit.autolinkProtocol.call(this,e)}function NS(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 SS(e){this.config.exit.autolinkEmail.call(this,e)}function $S(e){this.exit(e)}function AS(e){yS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ES],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),DS]],{ignore:["link","linkReference"]})}function ES(e,t,n,r,a){let l="";if(!Gb(a)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!zS(n)))return!1;const i=TS(n+r);if(!i[0])return!1;const u={type:"link",title:null,url:l+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[u,{type:"text",value:i[1]}]:u}function DS(e,t,n,r){return!Gb(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zS(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 TS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Fp(e,"(");let l=Fp(e,")");for(;r!==-1&&a>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Gb(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Vl(n)||W0(n))&&(!t||n!==47)}function MS(){this.buffer()}function LS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function IS(){this.buffer()}function qS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function RS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function PS(e){this.exit(e)}function FS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function OS(e){this.exit(e)}function BS(){return{enter:{gfmFootnoteCallString:MS,gfmFootnoteCall:LS,gfmFootnoteDefinitionLabelString:IS,gfmFootnoteDefinition:qS},exit:{gfmFootnoteCallString:RS,gfmFootnoteCall:PS,gfmFootnoteDefinitionLabelString:FS,gfmFootnoteDefinition:OS}}}function HS(){return{canContainEols:["delete"],enter:{strikethrough:US},exit:{strikethrough:VS}}}function US(e){this.enter({type:"delete",children:[]},e)}function VS(e){this.exit(e)}function GS(){return{enter:{table:WS,tableData:uv,tableHeader:uv,tableRow:QS},exit:{codeText:XS,table:ZS,tableData:Eh,tableHeader:Eh,tableRow:Eh}}}function WS(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 ZS(e){this.exit(e),this.data.inTable=void 0}function QS(e){this.enter({type:"tableRow",children:[]},e)}function Eh(e){this.exit(e)}function uv(e){this.enter({type:"tableCell",children:[]},e)}function XS(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,YS));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function YS(e,t){return t==="|"?t:e}function KS(){return{exit:{taskListCheckValueChecked:dv,taskListCheckValueUnchecked:dv,paragraph:JS}}}function dv(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function JS(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let l=-1,i;for(;++l<a.length;){const u=a[l];if(u.type==="paragraph"){i=u;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Wb(){return[jS(),BS(),HS(),GS(),KS()]}function e$(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:l},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:u,mathText:i,mathTextData:u}};function e(d){const m={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[m]}},d)}function t(){this.buffer()}function n(){const d=this.resume(),m=this.stack[this.stack.length-1];m.type,m.meta=d}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(d){const m=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(d),f.value=m;const h=f.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:m}),this.data.mathFlowInside=void 0}function l(d){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},d),this.buffer()}function i(d){const m=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(d),f.value=m,f.data.hChildren.push({type:"text",value:m})}function u(d){this.config.enter.data.call(this,d),this.config.exit.data.call(this,d)}}const t$={tokenize:i$,partial:!0},Zb={tokenize:l$,partial:!0},Qb={tokenize:c$,partial:!0},Xb={tokenize:u$,partial:!0},n$={tokenize:d$,partial:!0},Yb={name:"wwwAutolink",tokenize:o$,previous:Jb},Kb={name:"protocolAutolink",tokenize:s$,previous:e7},Ys={name:"emailAutolink",tokenize:a$,previous:t7},cs={};function r$(){return{text:cs}}let Nl=48;for(;Nl<123;)cs[Nl]=Ys,Nl++,Nl===58?Nl=65:Nl===91&&(Nl=97);cs[43]=Ys;cs[45]=Ys;cs[46]=Ys;cs[95]=Ys;cs[72]=[Ys,Kb];cs[104]=[Ys,Kb];cs[87]=[Ys,Yb];cs[119]=[Ys,Yb];function a$(e,t,n){const r=this;let a,l;return i;function i(h){return!Tf(h)||!t7.call(r,r.previous)||I2(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(h))}function u(h){return Tf(h)?(e.consume(h),u):h===64?(e.consume(h),d):n(h)}function d(h){return h===46?e.check(n$,f,m)(h):h===45||h===95||Lr(h)?(l=!0,e.consume(h),d):f(h)}function m(h){return e.consume(h),a=!0,d}function f(h){return l&&a&&ta(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function o$(e,t,n){const r=this;return a;function a(i){return i!==87&&i!==119||!Jb.call(r,r.previous)||I2(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(t$,e.attempt(Zb,e.attempt(Qb,l),n),n)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function s$(e,t,n){const r=this;let a="",l=!1;return i;function i(h){return(h===72||h===104)&&e7.call(r,r.previous)&&!I2(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),u):n(h)}function u(h){if(ta(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),u;if(h===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(h),d}return n(h)}function d(h){return h===47?(e.consume(h),l?m:(l=!0,d)):n(h)}function m(h){return h===null||Gp(h)||Xt(h)||Vl(h)||W0(h)?n(h):e.attempt(Zb,e.attempt(Qb,f),n)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function i$(e,t,n){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),l):n(i)}function l(i){return i===null?n(i):t(i)}}function l$(e,t,n){let r,a,l;return i;function i(m){return m===46||m===95?e.check(Xb,d,u)(m):m===null||Xt(m)||Vl(m)||m!==45&&W0(m)?d(m):(l=!0,e.consume(m),i)}function u(m){return m===95?r=!0:(a=r,r=void 0),e.consume(m),i}function d(m){return a||r||!l?n(m):t(m)}}function c$(e,t){let n=0,r=0;return a;function a(i){return i===40?(n++,e.consume(i),a):i===41&&r<n?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Xb,t,l)(i):i===null||Xt(i)||Vl(i)?t(i):(e.consume(i),a)}function l(i){return i===41&&r++,e.consume(i),a}}function u$(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),a):u===60||u===null||Xt(u)||Vl(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||Xt(u)||Vl(u)?t(u):r(u)}function l(u){return ta(u)?i(u):n(u)}function i(u){return u===59?(e.consume(u),r):ta(u)?(e.consume(u),i):n(u)}}function d$(e,t,n){return r;function r(l){return e.consume(l),a}function a(l){return Lr(l)?n(l):t(l)}}function Jb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xt(e)}function e7(e){return!ta(e)}function t7(e){return!(e===47||Tf(e))}function Tf(e){return e===43||e===45||e===46||e===95||Lr(e)}function I2(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const p$={tokenize:x$,partial:!0};function m$(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:v$,continuation:{tokenize:b$},exit:y$}},text:{91:{name:"gfmFootnoteCall",tokenize:g$},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:h$,resolveTo:f$}}}}function h$(e,t,n){const r=this;let a=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){i=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!i||!i._balanced)return n(d);const m=Bo(r.sliceSerialize({start:i.end,end:r.now()}));return m.codePointAt(0)!==94||!l.includes(m.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function f$(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function g$(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,i;return u;function u(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),d}function d(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(h){if(l>999||h===93&&!i||h===null||h===91||Xt(h))return n(h);if(h===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Bo(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Xt(h)||(i=!0),l++,e.consume(h),h===92?f:m}function f(h){return h===91||h===92||h===93?(e.consume(h),l++,m):m(h)}}function v$(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,i=0,u;return d;function d(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(i>999||g===93&&!u||g===null||g===91||Xt(g))return n(g);if(g===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return l=Bo(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Xt(g)||(u=!0),i++,e.consume(g),g===92?h:f}function h(g){return g===91||g===92||g===93?(e.consume(g),i++,f):f(g)}function b(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(l)||a.push(l),ft(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function b$(e,t,n){return e.check(Z0,t,e.attempt(p$,t,n))}function y$(e){e.exit("gfmFootnoteDefinition")}function x$(e,t,n){const r=this;return ft(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(l):n(l)}}function _$(e){let n={}.singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,u){let d=-1;for(;++d<i.length;)if(i[d][0]==="enter"&&i[d][1].type==="strikethroughSequenceTemporary"&&i[d][1]._close){let m=d;for(;m--;)if(i[m][0]==="exit"&&i[m][1].type==="strikethroughSequenceTemporary"&&i[m][1]._open&&i[d][1].end.offset-i[d][1].start.offset===i[m][1].end.offset-i[m][1].start.offset){i[d][1].type="strikethroughSequence",i[m][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},i[m][1].start),end:Object.assign({},i[d][1].end)},h={type:"strikethroughText",start:Object.assign({},i[m][1].end),end:Object.assign({},i[d][1].start)},b=[["enter",f,u],["enter",i[m][1],u],["exit",i[m][1],u],["enter",h,u]],y=u.parser.constructs.insideSpan.null;y&&Ta(b,b.length,0,jm(y,i.slice(m+1,d),u)),Ta(b,b.length,0,[["exit",h,u],["enter",i[d][1],u],["exit",i[d][1],u],["exit",f,u]]),Ta(i,m-1,d-m+3,b),d=m+b.length-2;break}}for(d=-1;++d<i.length;)i[d][1].type==="strikethroughSequenceTemporary"&&(i[d][1].type="data");return i}function l(i,u,d){const m=this.previous,f=this.events;let h=0;return b;function b(g){return m===126&&f[f.length-1][1].type!=="characterEscape"?d(g):(i.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const _=Xc(m);if(g===126)return h>1?d(g):(i.consume(g),h++,y);if(h<2&&!n)return d(g);const C=i.exit("strikethroughSequenceTemporary"),k=Xc(g);return C._open=!k||k===2&&!!_,C._close=!_||_===2&&!!k,u(g)}}}class w${constructor(){this.map=[]}add(t,n,r){j$(this,t,n,r)}consume(t){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const l of a)t.push(l);a=r.pop()}this.map.length=0}}function j$(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function C$(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function k$(){return{flow:{null:{name:"table",tokenize:N$,resolveAll:S$}}}}function N$(e,t,n){const r=this;let a=0,l=0,i;return u;function u(B){let W=r.events.length-1;for(;W>-1;){const he=r.events[W][1].type;if(he==="lineEnding"||he==="linePrefix")W--;else break}const re=W>-1?r.events[W][1].type:null,fe=re==="tableHead"||re==="tableRow"?L:d;return fe===L&&r.parser.lazy[r.now().line]?n(B):fe(B)}function d(B){return e.enter("tableHead"),e.enter("tableRow"),m(B)}function m(B){return B===124||(i=!0,l+=1),f(B)}function f(B){return B===null?n(B):Ue(B)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),y):n(B):wt(B)?ft(e,f,"whitespace")(B):(l+=1,i&&(i=!1,a+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),i=!0,f):(e.enter("data"),h(B)))}function h(B){return B===null||B===124||Xt(B)?(e.exit("data"),f(B)):(e.consume(B),B===92?b:h)}function b(B){return B===92||B===124?(e.consume(B),h):h(B)}function y(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),i=!1,wt(B)?ft(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):g(B))}function g(B){return B===45||B===58?C(B):B===124?(i=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),_):M(B)}function _(B){return wt(B)?ft(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):B===45?(l+=1,k(B)):B===null||Ue(B)?I(B):M(B)}function k(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):M(B)}function S(B){return B===45?(e.consume(B),S):B===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(B))}function A(B){return wt(B)?ft(e,I,"whitespace")(B):I(B)}function I(B){return B===124?g(B):B===null||Ue(B)?!i||a!==l?M(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):M(B)}function M(B){return n(B)}function L(B){return e.enter("tableRow"),F(B)}function F(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),F):B===null||Ue(B)?(e.exit("tableRow"),t(B)):wt(B)?ft(e,F,"whitespace")(B):(e.enter("data"),G(B))}function G(B){return B===null||B===124||Xt(B)?(e.exit("data"),F(B)):(e.consume(B),B===92?O:G)}function O(B){return B===92||B===124?(e.consume(B),G):G(B)}}function S$(e,t){let n=-1,r=!0,a=0,l=[0,0,0,0],i=[0,0,0,0],u=!1,d=0,m,f,h;const b=new w$;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(u=!1,d!==0&&(pv(b,t,d,m,f),f=void 0,d=0),m={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},b.add(n,0,[["enter",m,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,h=void 0,l=[0,0,0,0],i=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},b.add(n,0,[["enter",f,t]])),a=g.type==="tableDelimiterRow"?2:f?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],h=dp(b,t,l,a,void 0,h),l=[0,0,0,0]),i[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(i[0]=i[1],h=dp(b,t,l,a,void 0,h)),l=i,i=[l[1],n,0,0])):g.type==="tableHead"?(u=!0,d=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(d=n,l[1]!==0?(i[0]=i[1],h=dp(b,t,l,a,n,h)):i[1]!==0&&(h=dp(b,t,i,a,n,h)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=n)}for(d!==0&&pv(b,t,d,m,f),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=C$(t.events,n))}return e}function dp(e,t,n,r,a,l){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},Uc(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=Uc(t.events,n[1]);if(l={type:i,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const m=Uc(t.events,n[2]),f=Uc(t.events,n[3]),h={type:u,start:Object.assign({},m),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,_=n[3]-n[2]-1;e.add(g,_,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(l.end=Object.assign({},Uc(t.events,a)),e.add(a,0,[["exit",l,t]]),l=void 0),l}function pv(e,t,n,r,a){const l=[],i=Uc(t.events,n);a&&(a.end=Object.assign({},i),l.push(["exit",a,t])),r.end=Object.assign({},i),l.push(["exit",r,t]),e.add(n+1,0,l)}function Uc(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const $$={name:"tasklistCheck",tokenize:E$};function A$(){return{text:{91:$$}}}function E$(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return Xt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),i):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),i):n(d)}function i(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return Ue(d)?t(d):wt(d)?e.check({tokenize:D$},t,n)(d):n(d)}}function D$(e,t,n){return ft(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function n7(e){return Db([r$(),m$(),_$(),k$(),A$()])}const z$={tokenize:T$,concrete:!0,name:"mathFlow"},mv={tokenize:M$,partial:!0};function T$(e,t,n){const r=this,a=r.events[r.events.length-1],l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let i=0;return u;function u(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),d(S)}function d(S){return S===36?(e.consume(S),i++,d):i<2?n(S):(e.exit("mathFlowFenceSequence"),ft(e,m,"whitespace")(S))}function m(S){return S===null||Ue(S)?h(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||Ue(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(S)):S===36?n(S):(e.consume(S),f)}function h(S){return e.exit("mathFlowFence"),r.interrupt?t(S):e.attempt(mv,b,C)(S)}function b(S){return e.attempt({tokenize:k,partial:!0},C,y)(S)}function y(S){return(l?ft(e,g,"linePrefix",l+1):g)(S)}function g(S){return S===null?C(S):Ue(S)?e.attempt(mv,b,C)(S):(e.enter("mathFlowValue"),_(S))}function _(S){return S===null||Ue(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),_)}function C(S){return e.exit("mathFlow"),t(S)}function k(S,A,I){let M=0;return ft(S,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function L(O){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),F(O)}function F(O){return O===36?(M++,S.consume(O),F):M<i?I(O):(S.exit("mathFlowFenceSequence"),ft(S,G,"whitespace")(O))}function G(O){return O===null||Ue(O)?(S.exit("mathFlowFence"),A(O)):I(O)}}}function M$(e,t,n){const r=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function L$(e){let n={}.singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:I$,previous:q$,name:"mathText"};function r(a,l,i){let u=0,d,m;return f;function f(_){return a.enter("mathText"),a.enter("mathTextSequence"),h(_)}function h(_){return _===36?(a.consume(_),u++,h):u<2&&!n?i(_):(a.exit("mathTextSequence"),b(_))}function b(_){return _===null?i(_):_===36?(m=a.enter("mathTextSequence"),d=0,g(_)):_===32?(a.enter("space"),a.consume(_),a.exit("space"),b):Ue(_)?(a.enter("lineEnding"),a.consume(_),a.exit("lineEnding"),b):(a.enter("mathTextData"),y(_))}function y(_){return _===null||_===32||_===36||Ue(_)?(a.exit("mathTextData"),b(_)):(a.consume(_),y)}function g(_){return _===36?(a.consume(_),d++,g):d===u?(a.exit("mathTextSequence"),a.exit("mathText"),l(_)):(m.type="mathTextData",y(_))}}}function I$(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function q$(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function R$(e){return{flow:{36:z$},text:{36:L$()}}}class Se extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,l,i=n&&n.loc;if(i&&i.start<=i.end){var u=i.lexer.input;a=i.start,l=i.end,a===u.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var d=u.slice(a,l).replace(/[^]/g,"$&̲"),m;a>15?m="…"+u.slice(a-15,a):m=u.slice(0,a);var f;l+15<u.length?f=u.slice(l,l+15)+"…":f=u.slice(l),r+=m+d+f}super(r),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Se.prototype),this.position=a,a!=null&&l!=null&&(this.length=l-a),this.rawMessage=t}}var P$=/([A-Z])/g,F$=e=>e.replace(P$,"-$1").toLowerCase(),O$={"&":"&",">":">","<":"<",'"':""","'":"'"},B$=/[&><"']/g,Ir=e=>String(e).replace(B$,t=>O$[t]),Ep=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Ep(e.body[0]):e:e.type==="font"?Ep(e.body):e,H$=new Set(["mathord","textord","atom"]),Ks=e=>H$.has(Ep(e).type),U$=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Mf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function V$(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function G$(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return V$(t)}function W$(e,t,n,r){var a=n[t];e[t]=a!==void 0?r.processor?r.processor(a):a:G$(r)}class q2{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(Mf)){var r=Mf[n];r&&W$(this,n,t,r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Se("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=U$(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ki{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return ss[Z$[this.id]]}sub(){return ss[Q$[this.id]]}fracNum(){return ss[X$[this.id]]}fracDen(){return ss[Y$[this.id]]}cramp(){return ss[K$[this.id]]}text(){return ss[J$[this.id]]}isTight(){return this.size>=2}}var R2=0,Zp=1,Zc=2,Qs=3,I0=4,uo=5,Yc=6,na=7,ss=[new ki(R2,0,!1),new ki(Zp,0,!0),new ki(Zc,1,!1),new ki(Qs,1,!0),new ki(I0,2,!1),new ki(uo,2,!0),new ki(Yc,3,!1),new ki(na,3,!0)],Z$=[I0,uo,I0,uo,Yc,na,Yc,na],Q$=[uo,uo,uo,uo,na,na,na,na],X$=[Zc,Qs,I0,uo,Yc,na,Yc,na],Y$=[Qs,Qs,uo,uo,na,na,na,na],K$=[Zp,Zp,Qs,Qs,uo,uo,na,na],J$=[R2,Zp,Zc,Qs,Zc,Qs,Zc,Qs],mt={DISPLAY:ss[R2],TEXT:ss[Zc],SCRIPT:ss[I0],SCRIPTSCRIPT:ss[Yc]},Lf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function eA(e){for(var t=0;t<Lf.length;t++)for(var n=Lf[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var Dp=[];Lf.forEach(e=>e.blocks.forEach(t=>Dp.push(...t)));function r7(e){for(var t=0;t<Dp.length;t+=2)if(e>=Dp[t]&&e<=Dp[t+1])return!0;return!1}var Kn=e=>e+" "+e,Rc=80,tA=function(t,n){return"M95,"+(622+t+n)+`
|
|
195
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
196
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
197
|
-
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
198
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
199
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
200
|
-
l`+t/2.075+" -"+t+`
|
|
201
|
-
c5.3,-9.3,12,-14,20,-14
|
|
202
|
-
H400000v`+(40+t)+`H845.2724
|
|
203
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
204
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
205
|
-
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},nA=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
206
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
207
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
208
|
-
l`+t/2.084+" -"+t+`
|
|
209
|
-
c4.7,-7.3,11,-11,19,-11
|
|
210
|
-
H40000v`+(40+t)+`H1012.3
|
|
211
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
212
|
-
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
213
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
214
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
215
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},rA=function(t,n){return"M983 "+(10+t+n)+`
|
|
216
|
-
l`+t/3.13+" -"+t+`
|
|
217
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
218
|
-
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
219
|
-
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
220
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
221
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
222
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
223
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
224
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},aA=function(t,n){return"M424,"+(2398+t+n)+`
|
|
225
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
226
|
-
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
227
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
228
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
229
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
230
|
-
v`+(40+t)+`H1014.6
|
|
231
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
232
|
-
c-2,6,-10,9,-24,9
|
|
233
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
234
|
-
h400000v`+(40+t)+"h-400000z"},oA=function(t,n){return"M473,"+(2713+t+n)+`
|
|
235
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
236
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
237
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
238
|
-
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
239
|
-
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
240
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
241
|
-
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},sA=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},iA=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
242
|
-
H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
243
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
244
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
245
|
-
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},lA=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=tA(n,Rc);break;case"sqrtSize1":a=nA(n,Rc);break;case"sqrtSize2":a=rA(n,Rc);break;case"sqrtSize3":a=aA(n,Rc);break;case"sqrtSize4":a=oA(n,Rc);break;case"sqrtTall":a=iA(n,Rc,r)}return a},cA=function(t,n){switch(t){case"⎜":return Kn("M291 0 H417 V"+n+" H291z");case"∣":return Kn("M145 0 H188 V"+n+" H145z");case"∥":return Kn("M145 0 H188 V"+n+" H145z")+Kn("M367 0 H410 V"+n+" H367z");case"⎟":return Kn("M457 0 H583 V"+n+" H457z");case"⎢":return Kn("M319 0 H403 V"+n+" H319z");case"⎥":return Kn("M263 0 H347 V"+n+" H263z");case"⎪":return Kn("M384 0 H504 V"+n+" H384z");case"⏐":return Kn("M312 0 H355 V"+n+" H312z");case"‖":return Kn("M257 0 H300 V"+n+" H257z")+Kn("M478 0 H521 V"+n+" H478z");default:return""}},hv={doubleleftarrow:`M262 157
|
|
246
|
-
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
247
|
-
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
248
|
-
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
249
|
-
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
250
|
-
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
251
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
252
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
253
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
254
|
-
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
255
|
-
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
256
|
-
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
257
|
-
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
258
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
259
|
-
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
260
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
261
|
-
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
262
|
-
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
263
|
-
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
264
|
-
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
265
|
-
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
266
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
267
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
268
|
-
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
269
|
-
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
270
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
271
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
272
|
-
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
273
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
274
|
-
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
275
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
276
|
-
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
277
|
-
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
278
|
-
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
279
|
-
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
280
|
-
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
281
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
282
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
283
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
284
|
-
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
285
|
-
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
286
|
-
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
287
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
288
|
-
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
289
|
-
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
290
|
-
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
291
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Kn("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Kn("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Kn("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Kn("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
292
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
293
|
-
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
294
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Kn("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
295
|
-
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
296
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
297
|
-
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
298
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
299
|
-
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
300
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
301
|
-
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
302
|
-
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
303
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
304
|
-
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
305
|
-
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
306
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
307
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
308
|
-
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
309
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
310
|
-
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
311
|
-
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
312
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
313
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
314
|
-
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
315
|
-
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
316
|
-
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
317
|
-
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
318
|
-
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
319
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
320
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
321
|
-
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
322
|
-
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
323
|
-
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
324
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
325
|
-
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
326
|
-
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
327
|
-
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
328
|
-
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
329
|
-
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
330
|
-
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
331
|
-
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
332
|
-
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
333
|
-
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
334
|
-
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
335
|
-
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
336
|
-
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
337
|
-
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
338
|
-
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
339
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
340
|
-
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
341
|
-
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
342
|
-
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
343
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Kn("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Kn("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Kn("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
344
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
345
|
-
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
346
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
347
|
-
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
348
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
349
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
350
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
351
|
-
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
352
|
-
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
353
|
-
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
354
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
355
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
356
|
-
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
357
|
-
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
358
|
-
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
359
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
360
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
361
|
-
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
362
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
363
|
-
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
364
|
-
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
365
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
366
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
367
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
368
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
369
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
370
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
371
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
372
|
-
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
373
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
374
|
-
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
375
|
-
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
376
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
377
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
378
|
-
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
379
|
-
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
380
|
-
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
381
|
-
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
382
|
-
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
383
|
-
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
384
|
-
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
385
|
-
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
386
|
-
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
387
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
388
|
-
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
389
|
-
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
390
|
-
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
391
|
-
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
392
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
393
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
394
|
-
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
395
|
-
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
396
|
-
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
397
|
-
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
398
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
399
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
400
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
401
|
-
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
402
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
403
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
404
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
405
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
406
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
407
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
408
|
-
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
409
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
410
|
-
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
411
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
412
|
-
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
413
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
414
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
415
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
416
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},uA=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
|
|
417
|
-
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
|
|
418
|
-
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
419
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
420
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
421
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
422
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
423
|
-
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
424
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
425
|
-
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
|
|
426
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
427
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
428
|
-
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
429
|
-
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
430
|
-
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
431
|
-
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
432
|
-
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
433
|
-
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
434
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
435
|
-
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
436
|
-
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
437
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
438
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
439
|
-
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
440
|
-
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
441
|
-
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
442
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
443
|
-
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
444
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function dA(e){return"toText"in e}class au{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(dA(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var If={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},pA={ex:!0,em:!0,mu:!0},a7=function(t){return typeof t!="string"&&(t=t.unit),t in If||t in pA||t==="ex"},_n=function(t,n){var r;if(t.unit in If)r=If[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new Se("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Ee=function(t){return+t.toFixed(4)+"em"},Li=function(t){return t.filter(n=>n).join(" ")},P2=function(t){var n="";for(var r of Object.keys(t)){var a=t[r];a!==void 0&&(n+=F$(r)+":"+a+";")}return n},o7=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},s7=function(t){var n=document.createElement(t);n.className=Li(this.classes),Object.assign(n.style,this.style);for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},mA=/[\s"'>/=\x00-\x1f]/,i7=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ir(Li(this.classes))+'"');var r=P2(this.style);r&&(n+=' style="'+Ir(r)+'"');for(var a of Object.keys(this.attributes)){if(mA.test(a))throw new Se("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Ir(this.attributes[a])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class ou{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,o7.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s7.call(this,"span")}toMarkup(){return i7.call(this,"span")}}class km{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,o7.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s7.call(this,"a")}toMarkup(){return i7.call(this,"a")}}class hA{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Ir(this.src)+'"'+(' alt="'+Ir(this.alt)+'"'),n=P2(this.style);return n&&(t+=' style="'+Ir(n)+'"'),t+="'/>",t}}var fA={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ia{constructor(t,n,r,a,l,i,u,d){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=l||0,this.width=i||0,this.classes=u||[],this.style=d||{},this.maxFontSize=0;var m=eA(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=fA[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Ee(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Li(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Ir(Li(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+Ee(this.italic)+";"),r+=P2(this.style),r&&(t=!0,n+=' style="'+Ir(r)+'"');var a=Ir(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class Xs{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Ir(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Ii{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",hv[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Ir(this.alternate)+'"/>':'<path d="'+Ir(hv[this.pathName])+'"/>'}}class qf{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Ir(this.attributes[n])+'"';return t+="/>",t}}function gA(e){if(e instanceof Ia)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function vA(e){if(e instanceof ou)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var bA=e=>e instanceof ou||e instanceof km||e instanceof au,is={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},pp={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},fv={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function yA(e,t){is[e]=t}function F2(e,t,n){if(!is[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=is[t][r];if(!a&&e[0]in fv&&(r=fv[e[0]].charCodeAt(0),a=is[t][r]),!a&&n==="text"&&r7(r)&&(a=is[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Dh={};function xA(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Dh[t]){var n=Dh[t]={cssEmPerMu:pp.quad[t]/18};for(var r in pp)pp.hasOwnProperty(r)&&(n[r]=pp[r][t])}return Dh[t]}var dn={math:{},text:{}};function w(e,t,n,r,a,l){dn[e][a]={font:t,group:n,replace:r},l&&r&&(dn[e][r]=dn[e][a])}var N="math",ve="text",D="main",U="ams",pn="accent-token",Be="bin",ra="close",su="inner",ot="mathord",Gn="op-token",qa="open",Q0="punct",V="rel",Js="spacing",K="textord";w(N,D,V,"≡","\\equiv",!0);w(N,D,V,"≺","\\prec",!0);w(N,D,V,"≻","\\succ",!0);w(N,D,V,"∼","\\sim",!0);w(N,D,V,"⊥","\\perp");w(N,D,V,"⪯","\\preceq",!0);w(N,D,V,"⪰","\\succeq",!0);w(N,D,V,"≃","\\simeq",!0);w(N,D,V,"∣","\\mid",!0);w(N,D,V,"≪","\\ll",!0);w(N,D,V,"≫","\\gg",!0);w(N,D,V,"≍","\\asymp",!0);w(N,D,V,"∥","\\parallel");w(N,D,V,"⋈","\\bowtie",!0);w(N,D,V,"⌣","\\smile",!0);w(N,D,V,"⊑","\\sqsubseteq",!0);w(N,D,V,"⊒","\\sqsupseteq",!0);w(N,D,V,"≐","\\doteq",!0);w(N,D,V,"⌢","\\frown",!0);w(N,D,V,"∋","\\ni",!0);w(N,D,V,"∝","\\propto",!0);w(N,D,V,"⊢","\\vdash",!0);w(N,D,V,"⊣","\\dashv",!0);w(N,D,V,"∋","\\owns");w(N,D,Q0,".","\\ldotp");w(N,D,Q0,"⋅","\\cdotp");w(N,D,Q0,"⋅","·");w(ve,D,K,"⋅","·");w(N,D,K,"#","\\#");w(ve,D,K,"#","\\#");w(N,D,K,"&","\\&");w(ve,D,K,"&","\\&");w(N,D,K,"ℵ","\\aleph",!0);w(N,D,K,"∀","\\forall",!0);w(N,D,K,"ℏ","\\hbar",!0);w(N,D,K,"∃","\\exists",!0);w(N,D,K,"∇","\\nabla",!0);w(N,D,K,"♭","\\flat",!0);w(N,D,K,"ℓ","\\ell",!0);w(N,D,K,"♮","\\natural",!0);w(N,D,K,"♣","\\clubsuit",!0);w(N,D,K,"℘","\\wp",!0);w(N,D,K,"♯","\\sharp",!0);w(N,D,K,"♢","\\diamondsuit",!0);w(N,D,K,"ℜ","\\Re",!0);w(N,D,K,"♡","\\heartsuit",!0);w(N,D,K,"ℑ","\\Im",!0);w(N,D,K,"♠","\\spadesuit",!0);w(N,D,K,"§","\\S",!0);w(ve,D,K,"§","\\S");w(N,D,K,"¶","\\P",!0);w(ve,D,K,"¶","\\P");w(N,D,K,"†","\\dag");w(ve,D,K,"†","\\dag");w(ve,D,K,"†","\\textdagger");w(N,D,K,"‡","\\ddag");w(ve,D,K,"‡","\\ddag");w(ve,D,K,"‡","\\textdaggerdbl");w(N,D,ra,"⎱","\\rmoustache",!0);w(N,D,qa,"⎰","\\lmoustache",!0);w(N,D,ra,"⟯","\\rgroup",!0);w(N,D,qa,"⟮","\\lgroup",!0);w(N,D,Be,"∓","\\mp",!0);w(N,D,Be,"⊖","\\ominus",!0);w(N,D,Be,"⊎","\\uplus",!0);w(N,D,Be,"⊓","\\sqcap",!0);w(N,D,Be,"∗","\\ast");w(N,D,Be,"⊔","\\sqcup",!0);w(N,D,Be,"◯","\\bigcirc",!0);w(N,D,Be,"∙","\\bullet",!0);w(N,D,Be,"‡","\\ddagger");w(N,D,Be,"≀","\\wr",!0);w(N,D,Be,"⨿","\\amalg");w(N,D,Be,"&","\\And");w(N,D,V,"⟵","\\longleftarrow",!0);w(N,D,V,"⇐","\\Leftarrow",!0);w(N,D,V,"⟸","\\Longleftarrow",!0);w(N,D,V,"⟶","\\longrightarrow",!0);w(N,D,V,"⇒","\\Rightarrow",!0);w(N,D,V,"⟹","\\Longrightarrow",!0);w(N,D,V,"↔","\\leftrightarrow",!0);w(N,D,V,"⟷","\\longleftrightarrow",!0);w(N,D,V,"⇔","\\Leftrightarrow",!0);w(N,D,V,"⟺","\\Longleftrightarrow",!0);w(N,D,V,"↦","\\mapsto",!0);w(N,D,V,"⟼","\\longmapsto",!0);w(N,D,V,"↗","\\nearrow",!0);w(N,D,V,"↩","\\hookleftarrow",!0);w(N,D,V,"↪","\\hookrightarrow",!0);w(N,D,V,"↘","\\searrow",!0);w(N,D,V,"↼","\\leftharpoonup",!0);w(N,D,V,"⇀","\\rightharpoonup",!0);w(N,D,V,"↙","\\swarrow",!0);w(N,D,V,"↽","\\leftharpoondown",!0);w(N,D,V,"⇁","\\rightharpoondown",!0);w(N,D,V,"↖","\\nwarrow",!0);w(N,D,V,"⇌","\\rightleftharpoons",!0);w(N,U,V,"≮","\\nless",!0);w(N,U,V,"","\\@nleqslant");w(N,U,V,"","\\@nleqq");w(N,U,V,"⪇","\\lneq",!0);w(N,U,V,"≨","\\lneqq",!0);w(N,U,V,"","\\@lvertneqq");w(N,U,V,"⋦","\\lnsim",!0);w(N,U,V,"⪉","\\lnapprox",!0);w(N,U,V,"⊀","\\nprec",!0);w(N,U,V,"⋠","\\npreceq",!0);w(N,U,V,"⋨","\\precnsim",!0);w(N,U,V,"⪹","\\precnapprox",!0);w(N,U,V,"≁","\\nsim",!0);w(N,U,V,"","\\@nshortmid");w(N,U,V,"∤","\\nmid",!0);w(N,U,V,"⊬","\\nvdash",!0);w(N,U,V,"⊭","\\nvDash",!0);w(N,U,V,"⋪","\\ntriangleleft");w(N,U,V,"⋬","\\ntrianglelefteq",!0);w(N,U,V,"⊊","\\subsetneq",!0);w(N,U,V,"","\\@varsubsetneq");w(N,U,V,"⫋","\\subsetneqq",!0);w(N,U,V,"","\\@varsubsetneqq");w(N,U,V,"≯","\\ngtr",!0);w(N,U,V,"","\\@ngeqslant");w(N,U,V,"","\\@ngeqq");w(N,U,V,"⪈","\\gneq",!0);w(N,U,V,"≩","\\gneqq",!0);w(N,U,V,"","\\@gvertneqq");w(N,U,V,"⋧","\\gnsim",!0);w(N,U,V,"⪊","\\gnapprox",!0);w(N,U,V,"⊁","\\nsucc",!0);w(N,U,V,"⋡","\\nsucceq",!0);w(N,U,V,"⋩","\\succnsim",!0);w(N,U,V,"⪺","\\succnapprox",!0);w(N,U,V,"≆","\\ncong",!0);w(N,U,V,"","\\@nshortparallel");w(N,U,V,"∦","\\nparallel",!0);w(N,U,V,"⊯","\\nVDash",!0);w(N,U,V,"⋫","\\ntriangleright");w(N,U,V,"⋭","\\ntrianglerighteq",!0);w(N,U,V,"","\\@nsupseteqq");w(N,U,V,"⊋","\\supsetneq",!0);w(N,U,V,"","\\@varsupsetneq");w(N,U,V,"⫌","\\supsetneqq",!0);w(N,U,V,"","\\@varsupsetneqq");w(N,U,V,"⊮","\\nVdash",!0);w(N,U,V,"⪵","\\precneqq",!0);w(N,U,V,"⪶","\\succneqq",!0);w(N,U,V,"","\\@nsubseteqq");w(N,U,Be,"⊴","\\unlhd");w(N,U,Be,"⊵","\\unrhd");w(N,U,V,"↚","\\nleftarrow",!0);w(N,U,V,"↛","\\nrightarrow",!0);w(N,U,V,"⇍","\\nLeftarrow",!0);w(N,U,V,"⇏","\\nRightarrow",!0);w(N,U,V,"↮","\\nleftrightarrow",!0);w(N,U,V,"⇎","\\nLeftrightarrow",!0);w(N,U,V,"△","\\vartriangle");w(N,U,K,"ℏ","\\hslash");w(N,U,K,"▽","\\triangledown");w(N,U,K,"◊","\\lozenge");w(N,U,K,"Ⓢ","\\circledS");w(N,U,K,"®","\\circledR");w(ve,U,K,"®","\\circledR");w(N,U,K,"∡","\\measuredangle",!0);w(N,U,K,"∄","\\nexists");w(N,U,K,"℧","\\mho");w(N,U,K,"Ⅎ","\\Finv",!0);w(N,U,K,"⅁","\\Game",!0);w(N,U,K,"‵","\\backprime");w(N,U,K,"▲","\\blacktriangle");w(N,U,K,"▼","\\blacktriangledown");w(N,U,K,"■","\\blacksquare");w(N,U,K,"⧫","\\blacklozenge");w(N,U,K,"★","\\bigstar");w(N,U,K,"∢","\\sphericalangle",!0);w(N,U,K,"∁","\\complement",!0);w(N,U,K,"ð","\\eth",!0);w(ve,D,K,"ð","ð");w(N,U,K,"╱","\\diagup");w(N,U,K,"╲","\\diagdown");w(N,U,K,"□","\\square");w(N,U,K,"□","\\Box");w(N,U,K,"◊","\\Diamond");w(N,U,K,"¥","\\yen",!0);w(ve,U,K,"¥","\\yen",!0);w(N,U,K,"✓","\\checkmark",!0);w(ve,U,K,"✓","\\checkmark");w(N,U,K,"ℶ","\\beth",!0);w(N,U,K,"ℸ","\\daleth",!0);w(N,U,K,"ℷ","\\gimel",!0);w(N,U,K,"ϝ","\\digamma",!0);w(N,U,K,"ϰ","\\varkappa");w(N,U,qa,"┌","\\@ulcorner",!0);w(N,U,ra,"┐","\\@urcorner",!0);w(N,U,qa,"└","\\@llcorner",!0);w(N,U,ra,"┘","\\@lrcorner",!0);w(N,U,V,"≦","\\leqq",!0);w(N,U,V,"⩽","\\leqslant",!0);w(N,U,V,"⪕","\\eqslantless",!0);w(N,U,V,"≲","\\lesssim",!0);w(N,U,V,"⪅","\\lessapprox",!0);w(N,U,V,"≊","\\approxeq",!0);w(N,U,Be,"⋖","\\lessdot");w(N,U,V,"⋘","\\lll",!0);w(N,U,V,"≶","\\lessgtr",!0);w(N,U,V,"⋚","\\lesseqgtr",!0);w(N,U,V,"⪋","\\lesseqqgtr",!0);w(N,U,V,"≑","\\doteqdot");w(N,U,V,"≓","\\risingdotseq",!0);w(N,U,V,"≒","\\fallingdotseq",!0);w(N,U,V,"∽","\\backsim",!0);w(N,U,V,"⋍","\\backsimeq",!0);w(N,U,V,"⫅","\\subseteqq",!0);w(N,U,V,"⋐","\\Subset",!0);w(N,U,V,"⊏","\\sqsubset",!0);w(N,U,V,"≼","\\preccurlyeq",!0);w(N,U,V,"⋞","\\curlyeqprec",!0);w(N,U,V,"≾","\\precsim",!0);w(N,U,V,"⪷","\\precapprox",!0);w(N,U,V,"⊲","\\vartriangleleft");w(N,U,V,"⊴","\\trianglelefteq");w(N,U,V,"⊨","\\vDash",!0);w(N,U,V,"⊪","\\Vvdash",!0);w(N,U,V,"⌣","\\smallsmile");w(N,U,V,"⌢","\\smallfrown");w(N,U,V,"≏","\\bumpeq",!0);w(N,U,V,"≎","\\Bumpeq",!0);w(N,U,V,"≧","\\geqq",!0);w(N,U,V,"⩾","\\geqslant",!0);w(N,U,V,"⪖","\\eqslantgtr",!0);w(N,U,V,"≳","\\gtrsim",!0);w(N,U,V,"⪆","\\gtrapprox",!0);w(N,U,Be,"⋗","\\gtrdot");w(N,U,V,"⋙","\\ggg",!0);w(N,U,V,"≷","\\gtrless",!0);w(N,U,V,"⋛","\\gtreqless",!0);w(N,U,V,"⪌","\\gtreqqless",!0);w(N,U,V,"≖","\\eqcirc",!0);w(N,U,V,"≗","\\circeq",!0);w(N,U,V,"≜","\\triangleq",!0);w(N,U,V,"∼","\\thicksim");w(N,U,V,"≈","\\thickapprox");w(N,U,V,"⫆","\\supseteqq",!0);w(N,U,V,"⋑","\\Supset",!0);w(N,U,V,"⊐","\\sqsupset",!0);w(N,U,V,"≽","\\succcurlyeq",!0);w(N,U,V,"⋟","\\curlyeqsucc",!0);w(N,U,V,"≿","\\succsim",!0);w(N,U,V,"⪸","\\succapprox",!0);w(N,U,V,"⊳","\\vartriangleright");w(N,U,V,"⊵","\\trianglerighteq");w(N,U,V,"⊩","\\Vdash",!0);w(N,U,V,"∣","\\shortmid");w(N,U,V,"∥","\\shortparallel");w(N,U,V,"≬","\\between",!0);w(N,U,V,"⋔","\\pitchfork",!0);w(N,U,V,"∝","\\varpropto");w(N,U,V,"◀","\\blacktriangleleft");w(N,U,V,"∴","\\therefore",!0);w(N,U,V,"∍","\\backepsilon");w(N,U,V,"▶","\\blacktriangleright");w(N,U,V,"∵","\\because",!0);w(N,U,V,"⋘","\\llless");w(N,U,V,"⋙","\\gggtr");w(N,U,Be,"⊲","\\lhd");w(N,U,Be,"⊳","\\rhd");w(N,U,V,"≂","\\eqsim",!0);w(N,D,V,"⋈","\\Join");w(N,U,V,"≑","\\Doteq",!0);w(N,U,Be,"∔","\\dotplus",!0);w(N,U,Be,"∖","\\smallsetminus");w(N,U,Be,"⋒","\\Cap",!0);w(N,U,Be,"⋓","\\Cup",!0);w(N,U,Be,"⩞","\\doublebarwedge",!0);w(N,U,Be,"⊟","\\boxminus",!0);w(N,U,Be,"⊞","\\boxplus",!0);w(N,U,Be,"⋇","\\divideontimes",!0);w(N,U,Be,"⋉","\\ltimes",!0);w(N,U,Be,"⋊","\\rtimes",!0);w(N,U,Be,"⋋","\\leftthreetimes",!0);w(N,U,Be,"⋌","\\rightthreetimes",!0);w(N,U,Be,"⋏","\\curlywedge",!0);w(N,U,Be,"⋎","\\curlyvee",!0);w(N,U,Be,"⊝","\\circleddash",!0);w(N,U,Be,"⊛","\\circledast",!0);w(N,U,Be,"⋅","\\centerdot");w(N,U,Be,"⊺","\\intercal",!0);w(N,U,Be,"⋒","\\doublecap");w(N,U,Be,"⋓","\\doublecup");w(N,U,Be,"⊠","\\boxtimes",!0);w(N,U,V,"⇢","\\dashrightarrow",!0);w(N,U,V,"⇠","\\dashleftarrow",!0);w(N,U,V,"⇇","\\leftleftarrows",!0);w(N,U,V,"⇆","\\leftrightarrows",!0);w(N,U,V,"⇚","\\Lleftarrow",!0);w(N,U,V,"↞","\\twoheadleftarrow",!0);w(N,U,V,"↢","\\leftarrowtail",!0);w(N,U,V,"↫","\\looparrowleft",!0);w(N,U,V,"⇋","\\leftrightharpoons",!0);w(N,U,V,"↶","\\curvearrowleft",!0);w(N,U,V,"↺","\\circlearrowleft",!0);w(N,U,V,"↰","\\Lsh",!0);w(N,U,V,"⇈","\\upuparrows",!0);w(N,U,V,"↿","\\upharpoonleft",!0);w(N,U,V,"⇃","\\downharpoonleft",!0);w(N,D,V,"⊶","\\origof",!0);w(N,D,V,"⊷","\\imageof",!0);w(N,U,V,"⊸","\\multimap",!0);w(N,U,V,"↭","\\leftrightsquigarrow",!0);w(N,U,V,"⇉","\\rightrightarrows",!0);w(N,U,V,"⇄","\\rightleftarrows",!0);w(N,U,V,"↠","\\twoheadrightarrow",!0);w(N,U,V,"↣","\\rightarrowtail",!0);w(N,U,V,"↬","\\looparrowright",!0);w(N,U,V,"↷","\\curvearrowright",!0);w(N,U,V,"↻","\\circlearrowright",!0);w(N,U,V,"↱","\\Rsh",!0);w(N,U,V,"⇊","\\downdownarrows",!0);w(N,U,V,"↾","\\upharpoonright",!0);w(N,U,V,"⇂","\\downharpoonright",!0);w(N,U,V,"⇝","\\rightsquigarrow",!0);w(N,U,V,"⇝","\\leadsto");w(N,U,V,"⇛","\\Rrightarrow",!0);w(N,U,V,"↾","\\restriction");w(N,D,K,"‘","`");w(N,D,K,"$","\\$");w(ve,D,K,"$","\\$");w(ve,D,K,"$","\\textdollar");w(N,D,K,"%","\\%");w(ve,D,K,"%","\\%");w(N,D,K,"_","\\_");w(ve,D,K,"_","\\_");w(ve,D,K,"_","\\textunderscore");w(N,D,K,"∠","\\angle",!0);w(N,D,K,"∞","\\infty",!0);w(N,D,K,"′","\\prime");w(N,D,K,"△","\\triangle");w(N,D,K,"Γ","\\Gamma",!0);w(N,D,K,"Δ","\\Delta",!0);w(N,D,K,"Θ","\\Theta",!0);w(N,D,K,"Λ","\\Lambda",!0);w(N,D,K,"Ξ","\\Xi",!0);w(N,D,K,"Π","\\Pi",!0);w(N,D,K,"Σ","\\Sigma",!0);w(N,D,K,"Υ","\\Upsilon",!0);w(N,D,K,"Φ","\\Phi",!0);w(N,D,K,"Ψ","\\Psi",!0);w(N,D,K,"Ω","\\Omega",!0);w(N,D,K,"A","Α");w(N,D,K,"B","Β");w(N,D,K,"E","Ε");w(N,D,K,"Z","Ζ");w(N,D,K,"H","Η");w(N,D,K,"I","Ι");w(N,D,K,"K","Κ");w(N,D,K,"M","Μ");w(N,D,K,"N","Ν");w(N,D,K,"O","Ο");w(N,D,K,"P","Ρ");w(N,D,K,"T","Τ");w(N,D,K,"X","Χ");w(N,D,K,"¬","\\neg",!0);w(N,D,K,"¬","\\lnot");w(N,D,K,"⊤","\\top");w(N,D,K,"⊥","\\bot");w(N,D,K,"∅","\\emptyset");w(N,U,K,"∅","\\varnothing");w(N,D,ot,"α","\\alpha",!0);w(N,D,ot,"β","\\beta",!0);w(N,D,ot,"γ","\\gamma",!0);w(N,D,ot,"δ","\\delta",!0);w(N,D,ot,"ϵ","\\epsilon",!0);w(N,D,ot,"ζ","\\zeta",!0);w(N,D,ot,"η","\\eta",!0);w(N,D,ot,"θ","\\theta",!0);w(N,D,ot,"ι","\\iota",!0);w(N,D,ot,"κ","\\kappa",!0);w(N,D,ot,"λ","\\lambda",!0);w(N,D,ot,"μ","\\mu",!0);w(N,D,ot,"ν","\\nu",!0);w(N,D,ot,"ξ","\\xi",!0);w(N,D,ot,"ο","\\omicron",!0);w(N,D,ot,"π","\\pi",!0);w(N,D,ot,"ρ","\\rho",!0);w(N,D,ot,"σ","\\sigma",!0);w(N,D,ot,"τ","\\tau",!0);w(N,D,ot,"υ","\\upsilon",!0);w(N,D,ot,"ϕ","\\phi",!0);w(N,D,ot,"χ","\\chi",!0);w(N,D,ot,"ψ","\\psi",!0);w(N,D,ot,"ω","\\omega",!0);w(N,D,ot,"ε","\\varepsilon",!0);w(N,D,ot,"ϑ","\\vartheta",!0);w(N,D,ot,"ϖ","\\varpi",!0);w(N,D,ot,"ϱ","\\varrho",!0);w(N,D,ot,"ς","\\varsigma",!0);w(N,D,ot,"φ","\\varphi",!0);w(N,D,Be,"∗","*",!0);w(N,D,Be,"+","+");w(N,D,Be,"−","-",!0);w(N,D,Be,"⋅","\\cdot",!0);w(N,D,Be,"∘","\\circ",!0);w(N,D,Be,"÷","\\div",!0);w(N,D,Be,"±","\\pm",!0);w(N,D,Be,"×","\\times",!0);w(N,D,Be,"∩","\\cap",!0);w(N,D,Be,"∪","\\cup",!0);w(N,D,Be,"∖","\\setminus",!0);w(N,D,Be,"∧","\\land");w(N,D,Be,"∨","\\lor");w(N,D,Be,"∧","\\wedge",!0);w(N,D,Be,"∨","\\vee",!0);w(N,D,K,"√","\\surd");w(N,D,qa,"⟨","\\langle",!0);w(N,D,qa,"∣","\\lvert");w(N,D,qa,"∥","\\lVert");w(N,D,ra,"?","?");w(N,D,ra,"!","!");w(N,D,ra,"⟩","\\rangle",!0);w(N,D,ra,"∣","\\rvert");w(N,D,ra,"∥","\\rVert");w(N,D,V,"=","=");w(N,D,V,":",":");w(N,D,V,"≈","\\approx",!0);w(N,D,V,"≅","\\cong",!0);w(N,D,V,"≥","\\ge");w(N,D,V,"≥","\\geq",!0);w(N,D,V,"←","\\gets");w(N,D,V,">","\\gt",!0);w(N,D,V,"∈","\\in",!0);w(N,D,V,"","\\@not");w(N,D,V,"⊂","\\subset",!0);w(N,D,V,"⊃","\\supset",!0);w(N,D,V,"⊆","\\subseteq",!0);w(N,D,V,"⊇","\\supseteq",!0);w(N,U,V,"⊈","\\nsubseteq",!0);w(N,U,V,"⊉","\\nsupseteq",!0);w(N,D,V,"⊨","\\models");w(N,D,V,"←","\\leftarrow",!0);w(N,D,V,"≤","\\le");w(N,D,V,"≤","\\leq",!0);w(N,D,V,"<","\\lt",!0);w(N,D,V,"→","\\rightarrow",!0);w(N,D,V,"→","\\to");w(N,U,V,"≱","\\ngeq",!0);w(N,U,V,"≰","\\nleq",!0);w(N,D,Js," ","\\ ");w(N,D,Js," ","\\space");w(N,D,Js," ","\\nobreakspace");w(ve,D,Js," ","\\ ");w(ve,D,Js," "," ");w(ve,D,Js," ","\\space");w(ve,D,Js," ","\\nobreakspace");w(N,D,Js,"","\\nobreak");w(N,D,Js,"","\\allowbreak");w(N,D,Q0,",",",");w(N,D,Q0,";",";");w(N,U,Be,"⊼","\\barwedge",!0);w(N,U,Be,"⊻","\\veebar",!0);w(N,D,Be,"⊙","\\odot",!0);w(N,D,Be,"⊕","\\oplus",!0);w(N,D,Be,"⊗","\\otimes",!0);w(N,D,K,"∂","\\partial",!0);w(N,D,Be,"⊘","\\oslash",!0);w(N,U,Be,"⊚","\\circledcirc",!0);w(N,U,Be,"⊡","\\boxdot",!0);w(N,D,Be,"△","\\bigtriangleup");w(N,D,Be,"▽","\\bigtriangledown");w(N,D,Be,"†","\\dagger");w(N,D,Be,"⋄","\\diamond");w(N,D,Be,"⋆","\\star");w(N,D,Be,"◃","\\triangleleft");w(N,D,Be,"▹","\\triangleright");w(N,D,qa,"{","\\{");w(ve,D,K,"{","\\{");w(ve,D,K,"{","\\textbraceleft");w(N,D,ra,"}","\\}");w(ve,D,K,"}","\\}");w(ve,D,K,"}","\\textbraceright");w(N,D,qa,"{","\\lbrace");w(N,D,ra,"}","\\rbrace");w(N,D,qa,"[","\\lbrack",!0);w(ve,D,K,"[","\\lbrack",!0);w(N,D,ra,"]","\\rbrack",!0);w(ve,D,K,"]","\\rbrack",!0);w(N,D,qa,"(","\\lparen",!0);w(N,D,ra,")","\\rparen",!0);w(ve,D,K,"<","\\textless",!0);w(ve,D,K,">","\\textgreater",!0);w(N,D,qa,"⌊","\\lfloor",!0);w(N,D,ra,"⌋","\\rfloor",!0);w(N,D,qa,"⌈","\\lceil",!0);w(N,D,ra,"⌉","\\rceil",!0);w(N,D,K,"\\","\\backslash");w(N,D,K,"∣","|");w(N,D,K,"∣","\\vert");w(ve,D,K,"|","\\textbar",!0);w(N,D,K,"∥","\\|");w(N,D,K,"∥","\\Vert");w(ve,D,K,"∥","\\textbardbl");w(ve,D,K,"~","\\textasciitilde");w(ve,D,K,"\\","\\textbackslash");w(ve,D,K,"^","\\textasciicircum");w(N,D,V,"↑","\\uparrow",!0);w(N,D,V,"⇑","\\Uparrow",!0);w(N,D,V,"↓","\\downarrow",!0);w(N,D,V,"⇓","\\Downarrow",!0);w(N,D,V,"↕","\\updownarrow",!0);w(N,D,V,"⇕","\\Updownarrow",!0);w(N,D,Gn,"∐","\\coprod");w(N,D,Gn,"⋁","\\bigvee");w(N,D,Gn,"⋀","\\bigwedge");w(N,D,Gn,"⨄","\\biguplus");w(N,D,Gn,"⋂","\\bigcap");w(N,D,Gn,"⋃","\\bigcup");w(N,D,Gn,"∫","\\int");w(N,D,Gn,"∫","\\intop");w(N,D,Gn,"∬","\\iint");w(N,D,Gn,"∭","\\iiint");w(N,D,Gn,"∏","\\prod");w(N,D,Gn,"∑","\\sum");w(N,D,Gn,"⨂","\\bigotimes");w(N,D,Gn,"⨁","\\bigoplus");w(N,D,Gn,"⨀","\\bigodot");w(N,D,Gn,"∮","\\oint");w(N,D,Gn,"∯","\\oiint");w(N,D,Gn,"∰","\\oiiint");w(N,D,Gn,"⨆","\\bigsqcup");w(N,D,Gn,"∫","\\smallint");w(ve,D,su,"…","\\textellipsis");w(N,D,su,"…","\\mathellipsis");w(ve,D,su,"…","\\ldots",!0);w(N,D,su,"…","\\ldots",!0);w(N,D,su,"⋯","\\@cdots",!0);w(N,D,su,"⋱","\\ddots",!0);w(N,D,K,"⋮","\\varvdots");w(ve,D,K,"⋮","\\varvdots");w(N,D,pn,"ˊ","\\acute");w(N,D,pn,"ˋ","\\grave");w(N,D,pn,"¨","\\ddot");w(N,D,pn,"~","\\tilde");w(N,D,pn,"ˉ","\\bar");w(N,D,pn,"˘","\\breve");w(N,D,pn,"ˇ","\\check");w(N,D,pn,"^","\\hat");w(N,D,pn,"⃗","\\vec");w(N,D,pn,"˙","\\dot");w(N,D,pn,"˚","\\mathring");w(N,D,ot,"","\\@imath");w(N,D,ot,"","\\@jmath");w(N,D,K,"ı","ı");w(N,D,K,"ȷ","ȷ");w(ve,D,K,"ı","\\i",!0);w(ve,D,K,"ȷ","\\j",!0);w(ve,D,K,"ß","\\ss",!0);w(ve,D,K,"æ","\\ae",!0);w(ve,D,K,"œ","\\oe",!0);w(ve,D,K,"ø","\\o",!0);w(ve,D,K,"Æ","\\AE",!0);w(ve,D,K,"Œ","\\OE",!0);w(ve,D,K,"Ø","\\O",!0);w(ve,D,pn,"ˊ","\\'");w(ve,D,pn,"ˋ","\\`");w(ve,D,pn,"ˆ","\\^");w(ve,D,pn,"˜","\\~");w(ve,D,pn,"ˉ","\\=");w(ve,D,pn,"˘","\\u");w(ve,D,pn,"˙","\\.");w(ve,D,pn,"¸","\\c");w(ve,D,pn,"˚","\\r");w(ve,D,pn,"ˇ","\\v");w(ve,D,pn,"¨",'\\"');w(ve,D,pn,"˝","\\H");w(ve,D,pn,"◯","\\textcircled");var l7={"--":!0,"---":!0,"``":!0,"''":!0};w(ve,D,K,"–","--",!0);w(ve,D,K,"–","\\textendash");w(ve,D,K,"—","---",!0);w(ve,D,K,"—","\\textemdash");w(ve,D,K,"‘","`",!0);w(ve,D,K,"‘","\\textquoteleft");w(ve,D,K,"’","'",!0);w(ve,D,K,"’","\\textquoteright");w(ve,D,K,"“","``",!0);w(ve,D,K,"“","\\textquotedblleft");w(ve,D,K,"”","''",!0);w(ve,D,K,"”","\\textquotedblright");w(N,D,K,"°","\\degree",!0);w(ve,D,K,"°","\\degree");w(ve,D,K,"°","\\textdegree",!0);w(N,D,K,"£","\\pounds");w(N,D,K,"£","\\mathsterling",!0);w(ve,D,K,"£","\\pounds");w(ve,D,K,"£","\\textsterling",!0);w(N,U,K,"✠","\\maltese");w(ve,U,K,"✠","\\maltese");var gv='0123456789/@."';for(var zh=0;zh<gv.length;zh++){var vv=gv.charAt(zh);w(N,D,K,vv,vv)}var bv='0123456789!@*()-=+";:?/.,';for(var Th=0;Th<bv.length;Th++){var yv=bv.charAt(Th);w(ve,D,K,yv,yv)}var Qp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Mh=0;Mh<Qp.length;Mh++){var mp=Qp.charAt(Mh);w(N,D,ot,mp,mp),w(ve,D,K,mp,mp)}w(N,U,K,"C","ℂ");w(ve,U,K,"C","ℂ");w(N,U,K,"H","ℍ");w(ve,U,K,"H","ℍ");w(N,U,K,"N","ℕ");w(ve,U,K,"N","ℕ");w(N,U,K,"P","ℙ");w(ve,U,K,"P","ℙ");w(N,U,K,"Q","ℚ");w(ve,U,K,"Q","ℚ");w(N,U,K,"R","ℝ");w(ve,U,K,"R","ℝ");w(N,U,K,"Z","ℤ");w(ve,U,K,"Z","ℤ");w(N,D,ot,"h","ℎ");w(ve,D,ot,"h","ℎ");var lt;for(var Yr=0;Yr<Qp.length;Yr++){var kn=Qp.charAt(Yr);lt=String.fromCharCode(55349,56320+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56372+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56424+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56580+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56684+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56736+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56788+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56840+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56944+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),Yr<26&&(lt=String.fromCharCode(55349,56632+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt),lt=String.fromCharCode(55349,56476+Yr),w(N,D,ot,kn,lt),w(ve,D,K,kn,lt))}lt="𝕜";w(N,D,ot,"k",lt);w(ve,D,K,"k",lt);for(var Sl=0;Sl<10;Sl++){var Ni=Sl.toString();lt=String.fromCharCode(55349,57294+Sl),w(N,D,ot,Ni,lt),w(ve,D,K,Ni,lt),lt=String.fromCharCode(55349,57314+Sl),w(N,D,ot,Ni,lt),w(ve,D,K,Ni,lt),lt=String.fromCharCode(55349,57324+Sl),w(N,D,ot,Ni,lt),w(ve,D,K,Ni,lt),lt=String.fromCharCode(55349,57334+Sl),w(N,D,ot,Ni,lt),w(ve,D,K,Ni,lt)}var Rf="ÐÞþ";for(var Lh=0;Lh<Rf.length;Lh++){var hp=Rf.charAt(Lh);w(N,D,ot,hp,hp),w(ve,D,K,hp,hp)}var Pf={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},xv={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},_v={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},_A={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Ml={mathClass:"",textClass:"",font:""},wv={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},jv={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Cv={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Ff={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Of={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},kv={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Bf={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Nv=[Pf,Pf,xv,xv,_v,_v,_A,Ml,Ml,Ml,wv,wv,jv,jv,Cv,Cv,Ff,Ff,Of,Of,kv,kv,Ml,Ml,Bf,Bf],wA=[Pf,Ml,Ff,Of,Bf],jA=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return Nv[a]}else if(120782<=r&&r<=120831){var l=Math.floor((r-120782)/10);return wA[l]}else{if(r===120485||r===120486)return Nv[0];if(120486<r&&r<120782)return Ml;throw new Se("Unsupported character: "+e)}},Nm=function(t,n,r){if(dn[r][t]){var a=dn[r][t].replace;a&&(t=a)}return{value:t,metrics:F2(t,n,r)}},ea=function(t,n,r,a,l){var i=Nm(t,n,r),u=i.metrics;t=i.value;var d;if(u){var m=u.italic;(r==="text"||a&&a.font==="mathit")&&(m=0),d=new Ia(t,u.height,u.depth,m,u.skew,u.width,l)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),d=new Ia(t,0,0,0,0,0,l);if(a){d.maxFontSize=a.sizeMultiplier,a.style.isTight()&&d.classes.push("mtight");var f=a.getColor();f&&(d.style.color=f)}return d},O2=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&Nm(t,"Main-Bold",n).metrics?ea(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||dn[n][t].font==="main"?ea(t,"Main-Regular",n,r,a):ea(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},CA=function(t,n,r){return r!=="textord"&&Nm(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Sm=function(t,n,r){var a=t.mode,l=t.text,i=["mord"],{font:u,fontFamily:d,fontWeight:m,fontShape:f}=n,h=a==="math"||a==="text"&&!!u,b=h?u:d,y="",g="";if(l.charCodeAt(0)===55349){var _=jA(l);y=_.font,g=_[a+"Class"]}if(y)return ea(l,y,a,n,i.concat(g));if(b){var C,k;if(b==="boldsymbol"){var S=CA(l,a,r);C=S.fontName,k=[S.fontClass]}else h?(C=Hf[u].fontName,k=[u]):(C=fp(d,m,f),k=[d,m,f]);if(Nm(l,C,a).metrics)return ea(l,C,a,n,i.concat(k));if(l7.hasOwnProperty(l)&&C.slice(0,10)==="Typewriter"){for(var A=[],I=0;I<l.length;I++)A.push(ea(l[I],C,a,n,i.concat(k)));return ei(A)}}if(r==="mathord")return ea(l,"Math-Italic",a,n,i.concat(["mathnormal"]));if(r==="textord"){var M=dn[a][l]&&dn[a][l].font;if(M==="ams"){var L=fp("amsrm",m,f);return ea(l,L,a,n,i.concat("amsrm",m,f))}else if(M==="main"||!M){var F=fp("textrm",m,f);return ea(l,F,a,n,i.concat(m,f))}else{var G=fp(M,m,f);return ea(l,G,a,n,i.concat(G,m,f))}}else throw new Error("unexpected type: "+r+" in makeOrd")},kA=(e,t)=>{if(Li(e.classes)!==Li(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},c7=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ia&&r instanceof Ia&&kA(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},B2=function(t){for(var n=0,r=0,a=0,l=0;l<t.children.length;l++){var i=t.children[l];i.height>n&&(n=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},xe=function(t,n,r,a){var l=new ou(t,n,r,a);return B2(l),l},qi=(e,t,n,r)=>new ou(e,t,n,r),Kc=function(t,n,r){var a=xe([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=Ee(a.height),a.maxFontSize=1,a},NA=function(t,n,r,a){var l=new km(t,n,r,a);return B2(l),l},ei=function(t){var n=new au(t);return B2(n),n},Jc=function(t,n){return t instanceof au?xe([],[t],n):t},SA=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,l=a,i=1;i<n.length;i++){var u=-n[i].shift-l-n[i].elem.depth,d=u-(n[i-1].elem.height+n[i-1].elem.depth);l=l+u,r.push({type:"kern",size:d}),r.push(n[i])}return{children:r,depth:a}}var m;if(t.positionType==="top"){for(var f=t.positionData,h=0;h<t.children.length;h++){var b=t.children[h];f-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}m=f}else if(t.positionType==="bottom")m=-t.positionData;else{var y=t.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")m=-y.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")m=-y.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:m}},zt=function(t,n){for(var{children:r,depth:a}=SA(t),l=0,i=0;i<r.length;i++){var u=r[i];if(u.type==="elem"){var d=u.elem;l=Math.max(l,d.maxFontSize,d.height)}}l+=2;var m=xe(["pstrut"],[]);m.style.height=Ee(l);for(var f=[],h=a,b=a,y=a,g=0;g<r.length;g++){var _=r[g];if(_.type==="kern")y+=_.size;else{var C=_.elem,k=_.wrapperClasses||[],S=_.wrapperStyle||{},A=xe(k,[m,C],void 0,S);A.style.top=Ee(-l-y-C.depth),_.marginLeft&&(A.style.marginLeft=_.marginLeft),_.marginRight&&(A.style.marginRight=_.marginRight),f.push(A),y+=C.height+C.depth}h=Math.min(h,y),b=Math.max(b,y)}var I=xe(["vlist"],f);I.style.height=Ee(b);var M;if(h<0){var L=xe([],[]),F=xe(["vlist"],[L]);F.style.height=Ee(-h);var G=xe(["vlist-s"],[new Ia("")]);M=[xe(["vlist-r"],[I,G]),xe(["vlist-r"],[F])]}else M=[xe(["vlist-r"],[I])];var O=xe(["vlist-t"],M);return M.length===2&&O.classes.push("vlist-t2"),O.height=b,O.depth=-h,O},u7=(e,t)=>{var n=xe(["mspace"],[],t),r=_n(e,t);return n.style.marginRight=Ee(r),n},fp=(e,t,n)=>{var r,a;switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return t==="textbf"&&n==="textit"?a="BoldItalic":t==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",r+"-"+a},Hf={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},d7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},p7=function(t,n){var[r,a,l]=d7[t],i=new Ii(r),u=new Xs([i],{width:Ee(a),height:Ee(l),style:"width:"+Ee(a),viewBox:"0 0 "+1e3*a+" "+1e3*l,preserveAspectRatio:"xMinYMin"}),d=qi(["overlay"],[u],n);return d.height=l,d.style.height=Ee(l),d.style.width=Ee(a),d},vn={number:3,unit:"mu"},$l={number:4,unit:"mu"},Os={number:5,unit:"mu"},$A={mord:{mop:vn,mbin:$l,mrel:Os,minner:vn},mop:{mord:vn,mop:vn,mrel:Os,minner:vn},mbin:{mord:$l,mop:$l,mopen:$l,minner:$l},mrel:{mord:Os,mop:Os,mopen:Os,minner:Os},mopen:{},mclose:{mop:vn,mbin:$l,mrel:Os,minner:vn},mpunct:{mord:vn,mop:vn,mrel:Os,mopen:vn,mclose:vn,mpunct:vn,minner:vn},minner:{mord:vn,mop:vn,mbin:$l,mrel:Os,mopen:vn,mpunct:vn,minner:vn}},AA={mord:{mop:vn},mop:{mord:vn,mop:vn},mbin:{},mrel:{},mopen:{},mclose:{mop:vn},mpunct:{},minner:{mop:vn}},m7={},Xp={},Yp={};function Re(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:i}=e,u={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},d=0;d<n.length;++d)m7[n[d]]=u;t&&(l&&(Xp[t]=l),i&&(Yp[t]=i))}function Xl(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Re({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Kp=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Un=function(t){return t.type==="ordgroup"?t.body:[t]},EA=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),DA=new Set(["rightmost","mrel","mclose","mpunct"]),zA={display:mt.DISPLAY,text:mt.TEXT,script:mt.SCRIPT,scriptscript:mt.SCRIPTSCRIPT},TA={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},tr=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var l=[],i=0;i<t.length;i++){var u=Tt(t[i],n);if(u instanceof au){var d=u.children;l.push(...d)}else l.push(u)}if(c7(l),!r)return l;var m=n;if(t.length===1){var f=t[0];f.type==="sizing"?m=n.havingSize(f.size):f.type==="styling"&&(m=n.havingStyle(zA[f.style]))}var h=xe([a[0]||"leftmost"],[],n),b=xe([a[1]||"rightmost"],[],n),y=r==="root";return Uf(l,(g,_)=>{var C=_.classes[0],k=g.classes[0];C==="mbin"&&DA.has(k)?_.classes[0]="mord":k==="mbin"&&EA.has(C)&&(g.classes[0]="mord")},{node:h},b,y),Uf(l,(g,_)=>{var C,k,S=Gf(_),A=Gf(g),I=S&&A?g.hasClass("mtight")?(C=AA[S])==null?void 0:C[A]:(k=$A[S])==null?void 0:k[A]:null;if(I)return u7(I,m)},{node:h},b,y),l},Uf=function(t,n,r,a,l){a&&t.push(a);for(var i=0;i<t.length;i++){var u=t[i],d=h7(u);if(d){Uf(d.children,n,r,null,l);continue}var m=!u.hasClass("mspace");if(m){var f=n(u,r.node);f&&(r.insertAfter?r.insertAfter(f):(t.unshift(f),i++))}m?r.node=u:l&&u.hasClass("newline")&&(r.node=xe(["leftmost"])),r.insertAfter=(h=>b=>{t.splice(h+1,0,b),i++})(i)}a&&t.pop()},h7=function(t){return t instanceof au||t instanceof km||t instanceof ou&&t.hasClass("enclosing")?t:null},Vf=function(t,n){var r=h7(t);if(r){var a=r.children;if(a.length){if(n==="right")return Vf(a[a.length-1],"right");if(n==="left")return Vf(a[0],"left")}}return t},Gf=function(t,n){if(!t)return null;n&&(t=Vf(t,n));var r=t.classes[0];return TA[r]||null},q0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return xe(n.concat(r))},Tt=function(t,n,r){if(!t)return xe();if(Xp[t.type]){var a=Xp[t.type](t,n);if(r&&n.size!==r.size){a=xe(n.sizingClasses(r),[a],n);var l=n.sizeMultiplier/r.sizeMultiplier;a.height*=l,a.depth*=l}return a}else throw new Se("Got group of unknown type: '"+t.type+"'")};function gp(e,t){var n=xe(["base"],e,t),r=xe(["strut"]);return r.style.height=Ee(n.height+n.depth),n.depth&&(r.style.verticalAlign=Ee(-n.depth)),n.children.unshift(r),n}function Wf(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=tr(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var l=[],i=[],u=0;u<r.length;u++)if(i.push(r[u]),r[u].hasClass("mbin")||r[u].hasClass("mrel")||r[u].hasClass("allowbreak")){for(var d=!1;u<r.length-1&&r[u+1].hasClass("mspace")&&!r[u+1].hasClass("newline");)u++,i.push(r[u]),r[u].hasClass("nobreak")&&(d=!0);d||(l.push(gp(i,t)),i=[])}else r[u].hasClass("newline")&&(i.pop(),i.length>0&&(l.push(gp(i,t)),i=[]),l.push(r[u]));i.length>0&&l.push(gp(i,t));var m;n?(m=gp(tr(n,t,!0),t),m.classes=["tag"],l.push(m)):a&&l.push(a);var f=xe(["katex-html"],l);if(f.setAttribute("aria-hidden","true"),m){var h=m.children[0];h.style.height=Ee(f.height+f.depth),f.depth&&(h.style.verticalAlign=Ee(-f.depth))}return f}function f7(e){return new au(e)}class $e{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Li(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Vn&&this.children[r+1]instanceof Vn){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Vn;)a+=this.children[++r].toText();t.appendChild(new Vn(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Ir(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ir(Li(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Vn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ir(this.toText())}toText(){return this.text}}class g7{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Ee(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Ee(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var MA=new Set(["\\imath","\\jmath"]),LA=new Set(["mrow","mtable"]),po=function(t,n,r){return dn[n][t]&&dn[n][t].replace&&t.charCodeAt(0)!==55349&&!(l7.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=dn[n][t].replace),new Vn(t)},H2=function(t){return t.length===1?t[0]:new $e("mrow",t)},IA={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},U2=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var r=e.mode,a=IA[n];if(a)return typeof a=="function"?a(e):a;var l=e.text;if(MA.has(l))return null;if(dn[r][l]){var i=dn[r][l].replace;i&&(l=i)}var u=Hf[n].fontName;return F2(l,u,r)?Hf[n].variant:null};function Ih(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Vn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Vn&&n.text===","}else return!1}var Ra=function(t,n,r){if(t.length===1){var a=Yt(t[0],n);return r&&a instanceof $e&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var l=[],i,u=0;u<t.length;u++){var d=Yt(t[u],n);if(d instanceof $e&&i instanceof $e){if(d.type==="mtext"&&i.type==="mtext"&&d.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...d.children);continue}else if(d.type==="mn"&&i.type==="mn"){i.children.push(...d.children);continue}else if(Ih(d)&&i.type==="mn"){i.children.push(...d.children);continue}else if(d.type==="mn"&&Ih(i))d.children=[...i.children,...d.children],l.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(i.type==="mn"||Ih(i))){var m=d.children[0];m instanceof $e&&m.type==="mn"&&(m.children=[...i.children,...m.children],l.pop())}else if(i.type==="mi"&&i.children.length===1){var f=i.children[0];if(f instanceof Vn&&f.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var h=d.children[0];h instanceof Vn&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),l.pop())}}}l.push(d),i=d}return l},Ri=function(t,n,r){return H2(Ra(t,n,r))},Yt=function(t,n){if(!t)return new $e("mrow");if(Yp[t.type])return Yp[t.type](t,n);throw new Se("Got group of unknown type: '"+t.type+"'")};function Sv(e,t,n,r,a){var l=Ra(e,n),i;l.length===1&&l[0]instanceof $e&&LA.has(l[0].type)?i=l[0]:i=new $e("mrow",l);var u=new $e("annotation",[new Vn(t)]);u.setAttribute("encoding","application/x-tex");var d=new $e("semantics",[i,u]),m=new $e("math",[d]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&m.setAttribute("display","block");var f=a?"katex":"katex-mathml";return xe([f],[m])}var qA=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],$v=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Av=function(t,n){return n.size<2?t:qA[t-1][n.size-1]};class Vs{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Vs.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=$v[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new Vs(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Av(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:$v[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Av(Vs.BASESIZE,t);return this.size===n&&this.textSize===Vs.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Vs.BASESIZE?["sizing","reset-size"+this.size,"size"+Vs.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=xA(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Vs.BASESIZE=6;var v7=function(t){return new Vs({style:t.displayMode?mt.DISPLAY:mt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},b7=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=xe(r,[t])}return t},RA=function(t,n,r){var a=v7(r),l;if(r.output==="mathml")return Sv(t,n,a,r.displayMode,!0);if(r.output==="html"){var i=Wf(t,a);l=xe(["katex"],[i])}else{var u=Sv(t,n,a,r.displayMode,!1),d=Wf(t,a);l=xe(["katex"],[u,d])}return b7(l,r)},PA=function(t,n,r){var a=v7(r),l=Wf(t,a),i=xe(["katex"],[l]);return b7(i,r)},FA={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},$m=function(t){var n=new $e("mo",[new Vn(FA[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},OA={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},BA=new Set(["widehat","widecheck","widetilde","utilde"]),Am=function(t,n){function r(){var u=4e5,d=t.label.slice(1);if(BA.has(d)&&"base"in t){var m=t.base.type==="ordgroup"?t.base.body.length:1,f,h,b;if(m>5)d==="widehat"||d==="widecheck"?(f=420,u=2364,b=.42,h=d+"4"):(f=312,u=2340,b=.34,h="tilde4");else{var y=[1,1,2,2,3,3][m];d==="widehat"||d==="widecheck"?(u=[0,1062,2364,2364,2364][y],f=[0,239,300,360,420][y],b=[0,.24,.3,.3,.36,.42][y],h=d+y):(u=[0,600,1033,2339,2340][y],f=[0,260,286,306,312][y],b=[0,.26,.286,.3,.306,.34][y],h="tilde"+y)}var g=new Ii(h),_=new Xs([g],{width:"100%",height:Ee(b),viewBox:"0 0 "+u+" "+f,preserveAspectRatio:"none"});return{span:qi([],[_],n),minWidth:0,height:b}}else{var C=[],k=OA[d];if(!k)throw new Error('No SVG data for "'+d+'".');var[S,A,I]=k,M=I/1e3,L=S.length,F,G;if(L===1){if(k.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');F=["hide-tail"],G=[k[3]]}else if(L===2)F=["halfarrow-left","halfarrow-right"],G=["xMinYMin","xMaxYMin"];else if(L===3)F=["brace-left","brace-center","brace-right"],G=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
445
|
-
`+L+" children.");for(var O=0;O<L;O++){var B=new Ii(S[O]),W=new Xs([B],{width:"400em",height:Ee(M),viewBox:"0 0 "+u+" "+I,preserveAspectRatio:G[O]+" slice"}),re=qi([F[O]],[W],n);if(L===1)return{span:re,minWidth:A,height:M};re.style.height=Ee(M),C.push(re)}return{span:xe(["stretchy"],C,n),minWidth:A,height:M}}}var{span:a,minWidth:l,height:i}=r();return a.height=i,a.style.height=Ee(i),l>0&&(a.style.minWidth=Ee(l)),a},HA=function(t,n,r,a,l){var i,u=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(i=xe(["stretchy",n],[],l),n==="fbox"){var d=l.color&&l.getColor();d&&(i.style.borderColor=d)}}else{var m=[];/^[bx]cancel$/.test(n)&&m.push(new qf({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&m.push(new qf({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new Xs(m,{width:"100%",height:Ee(u)});i=qi([],[f],l)}return i.height=u,i.style.height=Ee(u),i},UA={bin:1,close:1,inner:1,open:1,punct:1,rel:1},VA={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function GA(e){return e in UA}function gt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Em(e){var t=Dm(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Dm(e){return e&&(e.type==="atom"||VA.hasOwnProperty(e.type))?e:null}var y7=e=>{if(e instanceof Ia)return e;if(bA(e)&&e.children.length===1)return y7(e.children[0])},V2=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=gt(e.base,"accent"),n=r.base,e.base=n,a=vA(Tt(e,t)),e.base=r):(r=gt(e,"accent"),n=r.base);var l=Tt(n,t.havingCrampedStyle()),i=r.isShifty&&Ks(n),u=0;if(i){var d,m;u=(d=(m=y7(l))==null?void 0:m.skew)!=null?d:0}var f=r.label==="\\c",h=f?l.height+l.depth:Math.min(l.height,t.fontMetrics().xHeight),b;if(r.isStretchy)b=Am(r,t),b=zt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+Ee(2*u)+")",marginLeft:Ee(2*u)}:void 0}]});else{var y,g;r.label==="\\vec"?(y=p7("vec",t),g=d7.vec[1]):(y=Sm({mode:r.mode,text:r.label},t,"textord"),y=gA(y),y.italic=0,g=y.width,f&&(h+=y.depth)),b=xe(["accent-body"],[y]);var _=r.label==="\\textcircled";_&&(b.classes.push("accent-full"),h=l.height);var C=u;_||(C-=g/2),b.style.left=Ee(C),r.label==="\\textcircled"&&(b.style.top=".2em"),b=zt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-h},{type:"elem",elem:b}]})}var k=xe(["mord","accent"],[b],t);return a?(a.children[0]=k,a.height=Math.max(k.height,a.height),a.classes[0]="mord",a):k},x7=(e,t)=>{var n=e.isStretchy?$m(e.label):new $e("mo",[po(e.label,e.mode)]),r=new $e("mover",[Yt(e.base,t),n]);return r.setAttribute("accent","true"),r},WA=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Re({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Kp(t[0]),r=!WA.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:V2,mathmlBuilder:x7});Re({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:V2,mathmlBuilder:x7});Re({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=Tt(e.base,t),r=Am(e,t),a=e.label==="\\utilde"?.12:0,l=zt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return xe(["mord","accentunder"],[l],t)},mathmlBuilder:(e,t)=>{var n=$m(e.label),r=new $e("munder",[Yt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var vp=e=>{var t=new $e("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Re({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=Jc(Tt(e.body,r,t),t),l=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(l+"-arrow-pad");var i;e.below&&(r=t.havingStyle(n.sub()),i=Jc(Tt(e.below,r,t),t),i.classes.push(l+"-arrow-pad"));var u=Am(e,t),d=-t.fontMetrics().axisHeight+.5*u.height,m=-t.fontMetrics().axisHeight-.5*u.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(m-=a.depth);var f;if(i){var h=-t.fontMetrics().axisHeight+i.height+.5*u.height+.111;f=zt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]},{type:"elem",elem:i,shift:h}]})}else f=zt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]}]});return xe(["mrel","x-arrow"],[f],t)},mathmlBuilder(e,t){var n=$m(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=vp(Yt(e.body,t));if(e.below){var l=vp(Yt(e.below,t));r=new $e("munderover",[n,l,a])}else r=new $e("mover",[n,a])}else if(e.below){var i=vp(Yt(e.below,t));r=new $e("munder",[n,i])}else r=vp(),r=new $e("mover",[n,r]);return r}});function _7(e,t){var n=tr(e.body,t,!0);return xe([e.mclass],n,t)}function w7(e,t){var n,r=Ra(e.body,t);return e.mclass==="minner"?n=new $e("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new $e("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new $e("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Re({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Un(a),isCharacterBox:Ks(a)}},htmlBuilder:_7,mathmlBuilder:w7});var zm=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Re({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:zm(t[0]),body:Un(t[1]),isCharacterBox:Ks(t[1])}}});Re({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],l=t[0],i;r!=="\\stackrel"?i=zm(a):i="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Un(a)},d={type:"supsub",mode:l.mode,base:u,sup:r==="\\underset"?null:l,sub:r==="\\underset"?l:null};return{type:"mclass",mode:n.mode,mclass:i,body:[d],isCharacterBox:Ks(d)}},htmlBuilder:_7,mathmlBuilder:w7});Re({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:zm(t[0]),body:Un(t[0])}},htmlBuilder(e,t){var n=tr(e.body,t,!0),r=xe([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ra(e.body,t),r=new $e("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var ZA={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ev=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Dv=e=>e.type==="textord"&&e.text==="@",QA=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function XA(e,t,n){var r=ZA[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),l={type:"atom",text:r,mode:"math",family:"rel"},i=n.callFunction("\\Big",[l],[]),u=n.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[a,i,u]};return n.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function YA(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Se("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],l=0;l<t.length;l++){for(var i=t[l],u=Ev(),d=0;d<i.length;d++)if(!Dv(i[d]))u.body.push(i[d]);else{r.push(u),d+=1;var m=Em(i[d]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var h=0;h<2;h++){for(var b=!0,y=d+1;y<i.length;y++){if(QA(i[y],m)){b=!1,d=y;break}if(Dv(i[y]))throw new Se("Missing a "+m+" character to complete a CD arrow.",i[y]);f[h].body.push(i[y])}if(b)throw new Se("Missing a "+m+" character to complete a CD arrow.",i[d])}else throw new Se('Expected one of "<>AV=|." after @',i[d]);var g=XA(m,f,e),_={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};r.push(_),u=Ev()}l%2===0?r.push(u):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Re({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Jc(Tt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Ee(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new $e("mrow",[Yt(e.label,t)]);return n=new $e("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new $e("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Re({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Jc(Tt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new $e("mrow",[Yt(e.fragment,t)])}});Re({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=gt(t[0],"ordgroup"),a=r.body,l="",i=0;i<a.length;i++){var u=gt(a[i],"textord");l+=u.text}var d=parseInt(l),m;if(isNaN(d))throw new Se("\\@char has non-numeric argument "+l);if(d<0||d>=1114111)throw new Se("\\@char with invalid code point "+l);return d<=65535?m=String.fromCharCode(d):(d-=65536,m=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:n.mode,text:m}}});var j7=(e,t)=>{var n=tr(e.body,t.withColor(e.color),!1);return ei(n)},C7=(e,t)=>{var n=Ra(e.body,t.withColor(e.color)),r=new $e("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Re({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=gt(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Un(a)}},htmlBuilder:j7,mathmlBuilder:C7});Re({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=gt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var l=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:l}},htmlBuilder:j7,mathmlBuilder:C7});Re({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,l=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:l,size:a&>(a,"size").value}},htmlBuilder(e,t){var n=xe(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Ee(_n(e.size,t)))),n},mathmlBuilder(e,t){var n=new $e("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Ee(_n(e.size,t)))),n}});var Zf={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},k7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Se("Expected a control sequence",e);return t},KA=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},N7=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Re({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Zf[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Zf[r.text]),gt(t.parseFunction(),"internal");throw new Se("Invalid token after macro prefix",r)}});Re({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Se("Expected a control sequence",r);for(var l=0,i,u=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),u[l].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Se('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==l+1)throw new Se('Argument number "'+r.text+'" out of order');l++,u.push([])}else{if(r.text==="EOF")throw new Se("Expected a macro definition");u[l].push(r.text)}var{tokens:d}=t.gullet.consumeArg();return i&&d.unshift(i),(n==="\\edef"||n==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(a,{tokens:d,numArgs:l,delimiters:u},n===Zf[n]),{type:"internal",mode:t.mode}}});Re({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=k7(t.gullet.popToken());t.gullet.consumeSpaces();var a=KA(t);return N7(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Re({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=k7(t.gullet.popToken()),a=t.gullet.popToken(),l=t.gullet.popToken();return N7(t,r,l,n==="\\\\globalfuture"),t.gullet.pushToken(l),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var _0=function(t,n,r){var a=dn.math[t]&&dn.math[t].replace,l=F2(a||t,n,r);if(!l)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return l},G2=function(t,n,r,a){var l=r.havingBaseStyle(n),i=xe(a.concat(l.sizingClasses(r)),[t],r),u=l.sizeMultiplier/r.sizeMultiplier;return i.height*=u,i.depth*=u,i.maxFontSize=l.sizeMultiplier,i},S7=function(t,n,r){var a=n.havingBaseStyle(r),l=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Ee(l),t.height-=l,t.depth+=l},JA=function(t,n,r,a,l,i){var u=ea(t,"Main-Regular",l,a),d=G2(u,n,a,i);return S7(d,a,n),d},eE=function(t,n,r,a){return ea(t,"Size"+n+"-Regular",r,a)},$7=function(t,n,r,a,l,i){var u=eE(t,n,l,a),d=G2(xe(["delimsizing","size"+n],[u],a),mt.TEXT,a,i);return r&&S7(d,a,mt.TEXT),d},qh=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var l=xe(["delimsizinginner",a],[xe([],[ea(t,n,r)])]);return{type:"elem",elem:l}},Rh=function(t,n,r){var a=is["Size4-Regular"][t.charCodeAt(0)]?is["Size4-Regular"][t.charCodeAt(0)][4]:is["Size1-Regular"][t.charCodeAt(0)][4],l=new Ii("inner",cA(t,Math.round(1e3*n))),i=new Xs([l],{width:Ee(a),height:Ee(n),style:"width:"+Ee(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),u=qi([],[i],r);return u.height=n,u.style.height=Ee(n),u.style.width=Ee(a),{type:"elem",elem:u}},Qf=.008,bp={type:"kern",size:-1*Qf},tE=new Set(["|","\\lvert","\\rvert","\\vert"]),nE=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),A7=function(t,n,r,a,l,i){var u,d,m,f,h="",b=0;u=m=f=t,d=null;var y="Size1-Regular";t==="\\uparrow"?m=f="⏐":t==="\\Uparrow"?m=f="‖":t==="\\downarrow"?u=m="⏐":t==="\\Downarrow"?u=m="‖":t==="\\updownarrow"?(u="\\uparrow",m="⏐",f="\\downarrow"):t==="\\Updownarrow"?(u="\\Uparrow",m="‖",f="\\Downarrow"):tE.has(t)?(m="∣",h="vert",b=333):nE.has(t)?(m="∥",h="doublevert",b=556):t==="["||t==="\\lbrack"?(u="⎡",m="⎢",f="⎣",y="Size4-Regular",h="lbrack",b=667):t==="]"||t==="\\rbrack"?(u="⎤",m="⎥",f="⎦",y="Size4-Regular",h="rbrack",b=667):t==="\\lfloor"||t==="⌊"?(m=u="⎢",f="⎣",y="Size4-Regular",h="lfloor",b=667):t==="\\lceil"||t==="⌈"?(u="⎡",m=f="⎢",y="Size4-Regular",h="lceil",b=667):t==="\\rfloor"||t==="⌋"?(m=u="⎥",f="⎦",y="Size4-Regular",h="rfloor",b=667):t==="\\rceil"||t==="⌉"?(u="⎤",m=f="⎥",y="Size4-Regular",h="rceil",b=667):t==="("||t==="\\lparen"?(u="⎛",m="⎜",f="⎝",y="Size4-Regular",h="lparen",b=875):t===")"||t==="\\rparen"?(u="⎞",m="⎟",f="⎠",y="Size4-Regular",h="rparen",b=875):t==="\\{"||t==="\\lbrace"?(u="⎧",d="⎨",f="⎩",m="⎪",y="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(u="⎫",d="⎬",f="⎭",m="⎪",y="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(u="⎧",f="⎩",m="⎪",y="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(u="⎫",f="⎭",m="⎪",y="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(u="⎧",f="⎭",m="⎪",y="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(u="⎫",f="⎩",m="⎪",y="Size4-Regular");var g=_0(u,y,l),_=g.height+g.depth,C=_0(m,y,l),k=C.height+C.depth,S=_0(f,y,l),A=S.height+S.depth,I=0,M=1;if(d!==null){var L=_0(d,y,l);I=L.height+L.depth,M=2}var F=_+A+I,G=Math.max(0,Math.ceil((n-F)/(M*k))),O=F+G*M*k,B=a.fontMetrics().axisHeight;r&&(B*=a.sizeMultiplier);var W=O/2-B,re=[];if(h.length>0){var fe=O-_-A,he=Math.round(O*1e3),ne=uA(h,Math.round(fe*1e3)),we=new Ii(h,ne),je=Ee(b/1e3),J=Ee(he/1e3),oe=new Xs([we],{width:je,height:J,viewBox:"0 0 "+b+" "+he}),R=qi([],[oe],a);R.height=he/1e3,R.style.width=je,R.style.height=J,re.push({type:"elem",elem:R})}else{if(re.push(qh(f,y,l)),re.push(bp),d===null){var q=O-_-A+2*Qf;re.push(Rh(m,q,a))}else{var ee=(O-_-A-I)/2+2*Qf;re.push(Rh(m,ee,a)),re.push(bp),re.push(qh(d,y,l)),re.push(bp),re.push(Rh(m,ee,a))}re.push(bp),re.push(qh(u,y,l))}var z=a.havingBaseStyle(mt.TEXT),ke=zt({positionType:"bottom",positionData:W,children:re});return G2(xe(["delimsizing","mult"],[ke],z),mt.TEXT,a,i)},Ph=80,Fh=.08,Oh=function(t,n,r,a,l){var i=lA(t,a,r),u=new Ii(t,i),d=new Xs([u],{width:"400em",height:Ee(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return qi(["hide-tail"],[d],l)},rE=function(t,n){var r=n.havingBaseSizing(),a=M7("\\surd",t*r.sizeMultiplier,T7,r),l=r.sizeMultiplier,i=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),u,d,m,f,h;return a.type==="small"?(f=1e3+1e3*i+Ph,t<1?l=1:t<1.4&&(l=.7),d=(1+i+Fh)/l,m=(1+i)/l,u=Oh("sqrtMain",d,f,i,n),u.style.minWidth="0.853em",h=.833/l):a.type==="large"?(f=(1e3+Ph)*S0[a.size],m=(S0[a.size]+i)/l,d=(S0[a.size]+i+Fh)/l,u=Oh("sqrtSize"+a.size,d,f,i,n),u.style.minWidth="1.02em",h=1/l):(d=t+i+Fh,m=t+i,f=Math.floor(1e3*t+i)+Ph,u=Oh("sqrtTall",d,f,i,n),u.style.minWidth="0.742em",h=1.056),u.height=m,u.style.height=Ee(d),{span:u,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+i)*l}},E7=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),aE=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),D7=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),S0=[0,1.2,1.8,2.4,3],z7=function(t,n,r,a,l){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),E7.has(t)||D7.has(t))return $7(t,n,!1,r,a,l);if(aE.has(t))return A7(t,S0[n],!1,r,a,l);throw new Se("Illegal delimiter: '"+t+"'")},oE=[{type:"small",style:mt.SCRIPTSCRIPT},{type:"small",style:mt.SCRIPT},{type:"small",style:mt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],sE=[{type:"small",style:mt.SCRIPTSCRIPT},{type:"small",style:mt.SCRIPT},{type:"small",style:mt.TEXT},{type:"stack"}],T7=[{type:"small",style:mt.SCRIPTSCRIPT},{type:"small",style:mt.SCRIPT},{type:"small",style:mt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],iE=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},M7=function(t,n,r,a){for(var l=Math.min(2,3-a.style.size),i=l;i<r.length;i++){var u=r[i];if(u.type==="stack")break;var d=_0(t,iE(u),"math"),m=d.height+d.depth;if(u.type==="small"){var f=a.havingBaseStyle(u.style);m*=f.sizeMultiplier}if(m>n)return u}return r[r.length-1]},Xf=function(t,n,r,a,l,i){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;D7.has(t)?u=oE:E7.has(t)?u=T7:u=sE;var d=M7(t,n,u,a);return d.type==="small"?JA(t,d.style,r,a,l,i):d.type==="large"?$7(t,d.size,r,a,l,i):A7(t,n,r,a,l,i)},Bh=function(t,n,r,a,l,i){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,d=901,m=5/a.fontMetrics().ptPerEm,f=Math.max(n-u,r+u),h=Math.max(f/500*d,2*f-m);return Xf(t,h,!0,a,l,i)},zv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},lE=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Tv(e){return"isMiddle"in e}function Tm(e,t){var n=Dm(e);if(n&&lE.has(n.text))return n;throw n?new Se("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Se("Invalid delimiter type '"+e.type+"'",e)}Re({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Tm(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:zv[e.funcName].size,mclass:zv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?xe([e.mclass]):z7(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(po(e.delim,e.mode));var n=new $e("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Ee(S0[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Mv(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Re({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Se("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Tm(t[0],e).text,color:n}}});Re({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tm(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var l=gt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,t)=>{Mv(e);for(var n=tr(e.body,t,!0,["mopen","mclose"]),r=0,a=0,l=!1,i=0;i<n.length;i++){var u=n[i];Tv(u)?l=!0:(r=Math.max(n[i].height,r),a=Math.max(n[i].depth,a))}r*=t.sizeMultiplier,a*=t.sizeMultiplier;var d;if(e.left==="."?d=q0(t,["mopen"]):d=Bh(e.left,r,a,t,e.mode,["mopen"]),n.unshift(d),l)for(var m=1;m<n.length;m++){var f=n[m];if(Tv(f)){var h=f.isMiddle;n[m]=Bh(h.delim,r,a,h.options,e.mode,[])}}var b;if(e.right===".")b=q0(t,["mclose"]);else{var y=e.rightColor?t.withColor(e.rightColor):t;b=Bh(e.right,r,a,y,e.mode,["mclose"])}return n.push(b),xe(["minner"],n,t)},mathmlBuilder:(e,t)=>{Mv(e);var n=Ra(e.body,t);if(e.left!=="."){var r=new $e("mo",[po(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new $e("mo",[po(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return H2(n)}});Re({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tm(t[0],e);if(!e.parser.leftrightDepth)throw new Se("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=q0(t,[]):(n=z7(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?po("|","text"):po(e.delim,e.mode),r=new $e("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Mm=(e,t)=>{var n=Jc(Tt(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,l,i,u=Ks(e.body);if(r==="sout")l=xe(["stretchy","sout"]),l.height=t.fontMetrics().defaultRuleThickness/a,i=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var d=_n({number:.6,unit:"pt"},t),m=_n({number:.35,unit:"ex"},t),f=t.havingBaseSizing();a=a/f.sizeMultiplier;var h=n.height+n.depth+d+m;n.style.paddingLeft=Ee(h/2+d);var b=Math.floor(1e3*h*a),y=sA(b),g=new Xs([new Ii("phase",y)],{width:"400em",height:Ee(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});l=qi(["hide-tail"],[g],t),l.style.height=Ee(h),i=n.depth+d+m}else{/cancel/.test(r)?u||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var _,C,k=0;/box/.test(r)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),_=t.fontMetrics().fboxsep+(r==="colorbox"?0:k),C=_):r==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),_=4*k,C=Math.max(0,.25-n.depth)):(_=u?.2:0,C=_),l=HA(n,r,_,C,t),/fbox|boxed|fcolorbox/.test(r)?(l.style.borderStyle="solid",l.style.borderWidth=Ee(k)):r==="angl"&&k!==.049&&(l.style.borderTopWidth=Ee(k),l.style.borderRightWidth=Ee(k)),i=n.depth+C,e.backgroundColor&&(l.style.backgroundColor=e.backgroundColor,e.borderColor&&(l.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=zt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:i},{type:"elem",elem:n,shift:0}]});else{var A=/cancel|phase/.test(r)?["svg-align"]:[];S=zt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:l,shift:i,wrapperClasses:A}]})}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!u?xe(["mord","cancel-lap"],[S],t):xe(["mord"],[S],t)},Lm=(e,t)=>{var n,r=new $e(e.label.includes("colorbox")?"mpadded":"menclose",[Yt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+Ee(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Re({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=gt(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,body:i}},htmlBuilder:Mm,mathmlBuilder:Lm});Re({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=gt(t[0],"color-token").color,i=gt(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,borderColor:l,body:u}},htmlBuilder:Mm,mathmlBuilder:Lm});Re({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Re({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Mm,mathmlBuilder:Lm});Re({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:Mm,mathmlBuilder:Lm});Re({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var L7={};function us(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:i}=e,u={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},d=0;d<n.length;++d)L7[n[d]]=u;l&&(Xp[t]=l),i&&(Yp[t]=i)}var I7={};function P(e,t){I7[e]=t}class ga{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new ga(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Ma{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Ma(n,ga.range(this,t))}}function Lv(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var Im=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Se("{"+e.envName+"} can be used only in display mode.")},cE=new Set(["gather","gather*"]);function W2(e){if(!e.includes("ed"))return!e.includes("*")}function Oi(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:l,arraystretch:i,colSeparationType:u,autoTag:d,singleRow:m,emptySingleRow:f,maxNumCols:h,leqno:b}=t;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var y=e.gullet.expandMacroAsText("\\arraystretch");if(y==null)i=1;else if(i=parseFloat(y),!i||i<0)throw new Se("Invalid \\arraystretch: "+y)}e.gullet.beginGroup();var g=[],_=[g],C=[],k=[],S=d!=null?[]:void 0;function A(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function I(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new Ma("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(A(),k.push(Lv(e));;){var M=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var L={type:"ordgroup",mode:e.mode,body:M};n&&(L={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[L]}),g.push(L);var F=e.fetch().text;if(F==="&"){if(h&&g.length===h){if(m||u)throw new Se("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(F==="\\end"){I(),g.length===1&&L.type==="styling"&&L.body.length===1&&L.body[0].type==="ordgroup"&&L.body[0].body.length===0&&(_.length>1||!f)&&_.pop(),k.length<_.length+1&&k.push([]);break}else if(F==="\\\\"){e.consume();var G=void 0;e.gullet.future().text!==" "&&(G=e.parseSizeGroup(!0)),C.push(G?G.value:null),I(),k.push(Lv(e)),g=[],_.push(g),A()}else throw new Se("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:i,body:_,cols:l,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:k,colSeparationType:u,tags:S,leqno:b}}function Z2(e){return e.slice(0,1)==="d"?"display":"text"}var ds=function(t,n){var r,a,l=t.body.length,i=t.hLinesBeforeRow,u=0,d=new Array(l),m=[],f=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),h=1/n.fontMetrics().ptPerEm,b=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var y=n.havingStyle(mt.SCRIPT).sizeMultiplier;b=.2778*(y/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?_n({number:3,unit:"ex"},n):12*h,_=3*h,C=t.arraystretch*g,k=.7*C,S=.3*C,A=0;function I(Ze){for(var st=0;st<Ze.length;++st)st>0&&(A+=.25),m.push({pos:A,isDashed:Ze[st]})}for(I(i[0]),r=0;r<t.body.length;++r){var M=t.body[r],L=k,F=S;u<M.length&&(u=M.length);var G={cells:new Array(M.length),height:0,depth:0,pos:0};for(a=0;a<M.length;++a){var O=Tt(M[a],n);F<O.depth&&(F=O.depth),L<O.height&&(L=O.height),G.cells[a]=O}var B=t.rowGaps[r],W=0;B&&(W=_n(B,n),W>0&&(W+=S,F<W&&(F=W),W=0)),t.addJot&&r<t.body.length-1&&(F+=_),G.height=L,G.depth=F,A+=L,G.pos=A,A+=F+W,d[r]=G,I(i[r+1])}var re=A/2+n.fontMetrics().axisHeight,fe=t.cols||[],he=[],ne,we,je=[];if(t.tags&&t.tags.some(Ze=>Ze))for(r=0;r<l;++r){var J=d[r],oe=J.pos-re,R=t.tags[r],q=void 0;R===!0?q=xe(["eqn-num"],[],n):R===!1?q=xe([],[],n):q=xe([],tr(R,n,!0),n),q.depth=J.depth,q.height=J.height,je.push({type:"elem",elem:q,shift:oe})}for(a=0,we=0;a<u||we<fe.length;++a,++we){for(var ee,z=fe[we],ke=!0;((pe=z)==null?void 0:pe.type)==="separator";){var pe;if(ke||(ne=xe(["arraycolsep"],[]),ne.style.width=Ee(n.fontMetrics().doubleRuleSep),he.push(ne)),z.separator==="|"||z.separator===":"){var Me=z.separator==="|"?"solid":"dashed",ge=xe(["vertical-separator"],[],n);ge.style.height=Ee(A),ge.style.borderRightWidth=Ee(f),ge.style.borderRightStyle=Me,ge.style.margin="0 "+Ee(-f/2);var ze=A-re;ze&&(ge.style.verticalAlign=Ee(-ze)),he.push(ge)}else throw new Se("Invalid separator type: "+z.separator);we++,z=fe[we],ke=!1}if(!(a>=u)){var Pe=void 0;if(a>0||t.hskipBeforeAndAfter){var qe,Nt;Pe=(qe=(Nt=z)==null?void 0:Nt.pregap)!=null?qe:b,Pe!==0&&(ne=xe(["arraycolsep"],[]),ne.style.width=Ee(Pe),he.push(ne))}var Kt=[];for(r=0;r<l;++r){var Ut=d[r],Rn=Ut.cells[a];if(Rn){var Wn=Ut.pos-re;Rn.depth=Ut.depth,Rn.height=Ut.height,Kt.push({type:"elem",elem:Rn,shift:Wn})}}var $n=zt({positionType:"individualShift",children:Kt}),wr=xe(["col-align-"+(((ee=z)==null?void 0:ee.align)||"c")],[$n]);if(he.push(wr),a<u-1||t.hskipBeforeAndAfter){var mn,aa;Pe=(mn=(aa=z)==null?void 0:aa.postgap)!=null?mn:b,Pe!==0&&(ne=xe(["arraycolsep"],[]),ne.style.width=Ee(Pe),he.push(ne))}}}var nn=xe(["mtable"],he);if(m.length>0){for(var An=Kc("hline",n,f),qr=Kc("hdashline",n,f),Rr=[{type:"elem",elem:nn,shift:0}];m.length>0;){var hn=m.pop(),ba=hn.pos-re;hn.isDashed?Rr.push({type:"elem",elem:qr,shift:ba}):Rr.push({type:"elem",elem:An,shift:ba})}nn=zt({positionType:"individualShift",children:Rr})}if(je.length===0)return xe(["mord"],[nn],n);var le=zt({positionType:"individualShift",children:je}),Ce=xe(["tag"],[le],n);return ei([nn,Ce])},uE={c:"center ",l:"left ",r:"right "},ps=function(t,n){for(var r=[],a=new $e("mtd",[],["mtr-glue"]),l=new $e("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var u=t.body[i],d=[],m=0;m<u.length;m++)d.push(new $e("mtd",[Yt(u[m],n)]));t.tags&&t.tags[i]&&(d.unshift(a),d.push(a),t.leqno?d.unshift(l):d.push(l)),r.push(new $e("mtr",d))}var f=new $e("mtable",r),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);f.setAttribute("rowspacing",Ee(h));var b="",y="";if(t.cols&&t.cols.length>0){var g=t.cols,_="",C=!1,k=0,S=g.length;g[0].type==="separator"&&(b+="top ",k=1),g[g.length-1].type==="separator"&&(b+="bottom ",S-=1);for(var A=k;A<S;A++){var I=g[A];I.type==="align"?(y+=uE[I.align],C&&(_+="none "),C=!0):I.type==="separator"&&C&&(_+=I.separator==="|"?"solid ":"dashed ",C=!1)}f.setAttribute("columnalign",y.trim()),/[sd]/.test(_)&&f.setAttribute("columnlines",_.trim())}if(t.colSeparationType==="align"){for(var M=t.cols||[],L="",F=1;F<M.length;F++)L+=F%2?"0em ":"1em ";f.setAttribute("columnspacing",L.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var G="",O=t.hLinesBeforeRow;b+=O[0].length>0?"left ":"",b+=O[O.length-1].length>0?"right ":"";for(var B=1;B<O.length-1;B++)G+=O[B].length===0?"none ":O[B][0]?"dashed ":"solid ";return/[sd]/.test(G)&&f.setAttribute("rowlines",G.trim()),b!==""&&(f=new $e("menclose",[f]),f.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(f=new $e("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},q7=function(t,n){t.envName.includes("ed")||Im(t);var r=[],a=t.envName.includes("at")?"alignat":"align",l=t.envName==="split",i=Oi(t.parser,{cols:r,addJot:!0,autoTag:l?void 0:W2(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:l?2:void 0,leqno:t.parser.settings.leqno},"display"),u=0,d=0,m={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var f="",h=0;h<n[0].body.length;h++){var b=gt(n[0].body[h],"textord");f+=b.text}u=Number(f),d=u*2}var y=!d;i.body.forEach(function(k){for(var S=1;S<k.length;S+=2){var A=gt(k[S],"styling"),I=gt(A.body[0],"ordgroup");I.body.unshift(m)}if(y)d<k.length&&(d=k.length);else{var M=k.length/2;if(u<M)throw new Se("Too many math in a row: "+("expected "+u+", but got "+M),k[0])}});for(var g=0;g<d;++g){var _="r",C=0;g%2===1?_="l":g>0&&y&&(C=1),r[g]={type:"align",align:_,pregap:C,postgap:0}}return i.colSeparationType=y?"align":"alignat",i};us({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Dm(t[0]),r=n?[t[0]]:gt(t[0],"ordgroup").body,a=r.map(function(i){var u=Em(i),d=u.text;if("lcr".includes(d))return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new Se("Unknown column alignment: "+d,i)}),l={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Oi(e.parser,l,Z2(e.envName))},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,!"lcr".includes(n))throw new Se("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var l=Oi(e.parser,r,Z2(e.envName)),i=Math.max(0,...l.body.map(u=>u.length));return l.cols=new Array(i).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[l],left:t[0],right:t[1],rightColor:void 0}:l},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Oi(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Dm(t[0]),r=n?[t[0]]:gt(t[0],"ordgroup").body,a=r.map(function(u){var d=Em(u),m=d.text;if("lc".includes(m))return{type:"align",align:m};throw new Se("Unknown column alignment: "+m,u)});if(a.length>1)throw new Se("{subarray} can contain only one column");var l={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},i=Oi(e.parser,l,"script");if(i.body.length>0&&i.body[0].length>1)throw new Se("{subarray} can contain only one column");return i},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Oi(e.parser,t,Z2(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:q7,htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){cE.has(e.envName)&&Im(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:W2(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Oi(e.parser,t,"display")},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:q7,htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Im(e);var t={autoTag:W2(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Oi(e.parser,t,"display")},htmlBuilder:ds,mathmlBuilder:ps});us({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Im(e),YA(e.parser)},htmlBuilder:ds,mathmlBuilder:ps});P("\\nonumber","\\gdef\\@eqnsw{0}");P("\\notag","\\nonumber");Re({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Se(e.funcName+" valid only within array environment")}});var Iv=L7;Re({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new Se("Invalid environment name",a);for(var l="",i=0;i<a.body.length;++i)l+=gt(a.body[i],"textord").text;if(r==="\\begin"){if(!Iv.hasOwnProperty(l))throw new Se("No such environment: "+l,a);var u=Iv[l],{args:d,optArgs:m}=n.parseArguments("\\begin{"+l+"}",u),f={mode:n.mode,envName:l,parser:n},h=u.handler(f,d,m);n.expect("\\end",!1);var b=n.nextToken,y=gt(n.parseFunction(),"environment");if(y.name!==l)throw new Se("Mismatch: \\begin{"+l+"} matched by \\end{"+y.name+"}",b);return h}return{type:"environment",mode:n.mode,name:l,nameGroup:a}}});var R7=(e,t)=>{var n=e.font,r=t.withFont(n);return Tt(e.body,r)},P7=(e,t)=>{var n=e.font,r=t.withFont(n);return Yt(e.body,r)},qv={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Re({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=Kp(t[0]),l=r;return l in qv&&(l=qv[l]),{type:"font",mode:n.mode,font:l.slice(1),body:a}},htmlBuilder:R7,mathmlBuilder:P7});Re({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:zm(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:Ks(r)}}});Re({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:l}=n,i=n.parseExpression(!0,a);return{type:"font",mode:l,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:i}}},htmlBuilder:R7,mathmlBuilder:P7});var dE=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),l;l=t.havingStyle(r);var i=Tt(e.numer,l,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;i.height=i.height<u?u:i.height,i.depth=i.depth<d?d:i.depth}l=t.havingStyle(a);var m=Tt(e.denom,l,t),f,h,b;e.hasBarLine?(e.barSize?(h=_n(e.barSize,t),f=Kc("frac-line",t,h)):f=Kc("frac-line",t),h=f.height,b=f.height):(f=null,h=0,b=t.fontMetrics().defaultRuleThickness);var y,g,_;n.size===mt.DISPLAY.size?(y=t.fontMetrics().num1,h>0?g=3*b:g=7*b,_=t.fontMetrics().denom1):(h>0?(y=t.fontMetrics().num2,g=b):(y=t.fontMetrics().num3,g=3*b),_=t.fontMetrics().denom2);var C;if(f){var S=t.fontMetrics().axisHeight;y-i.depth-(S+.5*h)<g&&(y+=g-(y-i.depth-(S+.5*h))),S-.5*h-(m.height-_)<g&&(_+=g-(S-.5*h-(m.height-_)));var A=-(S-.5*h);C=zt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:_},{type:"elem",elem:f,shift:A},{type:"elem",elem:i,shift:-y}]})}else{var k=y-i.depth-(m.height-_);k<g&&(y+=.5*(g-k),_+=.5*(g-k)),C=zt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:_},{type:"elem",elem:i,shift:-y}]})}l=t.havingStyle(n),C.height*=l.sizeMultiplier/t.sizeMultiplier,C.depth*=l.sizeMultiplier/t.sizeMultiplier;var I;n.size===mt.DISPLAY.size?I=t.fontMetrics().delim1:n.size===mt.SCRIPTSCRIPT.size?I=t.havingStyle(mt.SCRIPT).fontMetrics().delim2:I=t.fontMetrics().delim2;var M,L;return e.leftDelim==null?M=q0(t,["mopen"]):M=Xf(e.leftDelim,I,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?L=xe([]):e.rightDelim==null?L=q0(t,["mclose"]):L=Xf(e.rightDelim,I,!0,t.havingStyle(n),e.mode,["mclose"]),xe(["mord"].concat(l.sizingClasses(t)),[M,xe(["mfrac"],[C]),L],t)},pE=(e,t)=>{var n=new $e("mfrac",[Yt(e.numer,t),Yt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=_n(e.barSize,t);n.setAttribute("linethickness",Ee(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var l=new $e("mo",[new Vn(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}if(a.push(n),e.rightDelim!=null){var i=new $e("mo",[new Vn(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}return H2(a)}return n},F7=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Re({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=t[1],i,u=null,d=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,u="(",d=")";break;case"\\\\bracefrac":i=!1,u="\\{",d="\\}";break;case"\\\\brackfrac":i=!1,u="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}var m=r==="\\cfrac",f=null;return m||r.startsWith("\\d")?f="display":r.startsWith("\\t")&&(f="text"),F7({type:"genfrac",mode:n.mode,numer:a,denom:l,continued:m,hasBarLine:i,leftDelim:u,rightDelim:d,barSize:null},f)},htmlBuilder:dE,mathmlBuilder:pE});Re({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var Rv=["display","text","script","scriptscript"],Pv=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Re({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],l=Kp(t[0]),i=l.type==="atom"&&l.family==="open"?Pv(l.text):null,u=Kp(t[1]),d=u.type==="atom"&&u.family==="close"?Pv(u.text):null,m=gt(t[2],"size"),f,h=null;m.isBlank?f=!0:(h=m.value,f=h.number>0);var b=null,y=t[3];if(y.type==="ordgroup"){if(y.body.length>0){var g=gt(y.body[0],"textord");b=Rv[Number(g.text)]}}else y=gt(y,"textord"),b=Rv[Number(y.text)];return F7({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:f,barSize:h,leftDelim:i,rightDelim:d},b)}});Re({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:gt(t[0],"size").value,token:a}}});Re({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=gt(t[1],"infix").size;if(!l)throw new Error("\\\\abovefrac expected size, but got "+String(l));var i=t[2],u=l.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:u,barSize:l,leftDelim:null,rightDelim:null}}});var O7=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?Tt(e.sup,t.havingStyle(n.sup()),t):Tt(e.sub,t.havingStyle(n.sub()),t),a=gt(e.base,"horizBrace")):a=gt(e,"horizBrace");var l=Tt(a.base,t.havingBaseStyle(mt.DISPLAY)),i=Am(a,t),u;if(a.isOver?u=zt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:i,wrapperClasses:["svg-align"]}]}):u=zt({positionType:"bottom",positionData:l.depth+.1+i.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:l}]}),r){var d=xe(["minner",a.isOver?"mover":"munder"],[u],t);a.isOver?u=zt({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:r}]}):u=zt({positionType:"bottom",positionData:d.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:d}]})}return xe(["minner",a.isOver?"mover":"munder"],[u],t)},mE=(e,t)=>{var n=$m(e.label);return new $e(e.isOver?"mover":"munder",[Yt(e.base,t),n])};Re({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:O7,mathmlBuilder:mE});Re({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=gt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Un(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=tr(e.body,t,!1);return NA(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Ri(e.body,t);return n instanceof $e||(n=new $e("mrow",[n])),n.setAttribute("href",e.href),n}});Re({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=gt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],l=0;l<r.length;l++){var i=r[l];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var u={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Un(u)}}});Re({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Un(t[0])}},htmlBuilder(e,t){var n=tr(e.body,t.withFont(""),!1);return ei(n)},mathmlBuilder(e,t){return new $e("mrow",Ra(e.body,t.withFont("")))}});Re({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,l=gt(t[0],"raw").string,i=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u,d={};switch(r){case"\\htmlClass":d.class=l,u={command:"\\htmlClass",class:l};break;case"\\htmlId":d.id=l,u={command:"\\htmlId",id:l};break;case"\\htmlStyle":d.style=l,u={command:"\\htmlStyle",style:l};break;case"\\htmlData":{for(var m=l.split(","),f=0;f<m.length;f++){var h=m[f],b=h.indexOf("=");if(b<0)throw new Se("\\htmlData key/value '"+h+"' missing equals sign");var y=h.slice(0,b),g=h.slice(b+1);d["data-"+y.trim()]=g}u={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(u)?{type:"html",mode:n.mode,attributes:d,body:Un(i)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=tr(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=xe(r,n,t);for(var l in e.attributes)l!=="class"&&e.attributes.hasOwnProperty(l)&&a.setAttribute(l,e.attributes[l]);return a},mathmlBuilder:(e,t)=>Ri(e.body,t)});Re({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Un(t[0]),mathml:Un(t[1])}},htmlBuilder:(e,t)=>{var n=tr(e.html,t,!1);return ei(n)},mathmlBuilder:(e,t)=>Ri(e.mathml,t)});var Hh=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Se("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!a7(r))throw new Se("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Re({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},l={number:.9,unit:"em"},i={number:0,unit:"em"},u="";if(n[0])for(var d=gt(n[0],"raw").string,m=d.split(","),f=0;f<m.length;f++){var h=m[f].split("=");if(h.length===2){var b=h[1].trim();switch(h[0].trim()){case"alt":u=b;break;case"width":a=Hh(b);break;case"height":l=Hh(b);break;case"totalheight":i=Hh(b);break;default:throw new Se("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var y=gt(t[0],"url").url;return u===""&&(u=y,u=u.replace(/^.*[\\/]/,""),u=u.substring(0,u.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:r.mode,alt:u,width:a,height:l,totalheight:i,src:y}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=_n(e.height,t),r=0;e.totalheight.number>0&&(r=_n(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=_n(e.width,t));var l={height:Ee(n+r)};a>0&&(l.width=Ee(a)),r>0&&(l.verticalAlign=Ee(-r));var i=new hA(e.src,e.alt,l);return i.height=n,i.depth=r,i},mathmlBuilder:(e,t)=>{var n=new $e("mglyph",[]);n.setAttribute("alt",e.alt);var r=_n(e.height,t),a=0;if(e.totalheight.number>0&&(a=_n(e.totalheight,t)-r,n.setAttribute("valign",Ee(-a))),n.setAttribute("height",Ee(r+a)),e.width.number>0){var l=_n(e.width,t);n.setAttribute("width",Ee(l))}return n.setAttribute("src",e.src),n}});Re({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=gt(t[0],"size");if(n.settings.strict){var l=r[1]==="m",i=a.value.unit==="mu";l?(i||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):i&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return u7(e.dimension,t)},mathmlBuilder(e,t){var n=_n(e.dimension,t);return new g7(n)}});Re({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=xe([],[Tt(e.body,t)]),n=xe(["inner"],[n],t)):n=xe(["inner"],[Tt(e.body,t)]);var r=xe(["fix"],[]),a=xe([e.alignment],[n,r],t),l=xe(["strut"]);return l.style.height=Ee(a.height+a.depth),a.depth&&(l.style.verticalAlign=Ee(-a.depth)),a.children.unshift(l),a=xe(["thinbox"],[a],t),xe(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new $e("mpadded",[Yt(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Re({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var l=n==="\\("?"\\)":"$",i=r.parseExpression(!1,l);return r.expect(l),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:i}}});Re({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Se("Mismatched "+e.funcName)}});var Fv=(e,t)=>{switch(t.style.size){case mt.DISPLAY.size:return e.display;case mt.TEXT.size:return e.text;case mt.SCRIPT.size:return e.script;case mt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Re({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Un(t[0]),text:Un(t[1]),script:Un(t[2]),scriptscript:Un(t[3])}},htmlBuilder:(e,t)=>{var n=Fv(e,t),r=tr(n,t,!1);return ei(r)},mathmlBuilder:(e,t)=>{var n=Fv(e,t);return Ri(n,t)}});var B7=(e,t,n,r,a,l,i)=>{e=xe([],[e]);var u=n&&Ks(n),d,m;if(t){var f=Tt(t,r.havingStyle(a.sup()),r);m={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-f.depth)}}if(n){var h=Tt(n,r.havingStyle(a.sub()),r);d={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var b;if(m&&d){var y=r.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+i;b=zt({positionType:"bottom",positionData:y,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Ee(-l)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Ee(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(d){var g=e.height-i;b=zt({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Ee(-l)},{type:"kern",size:d.kern},{type:"elem",elem:e}]})}else if(m){var _=e.depth+i;b=zt({positionType:"bottom",positionData:_,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Ee(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var C=[b];if(d&&l!==0&&!u){var k=xe(["mspace"],[],r);k.style.marginRight=Ee(l),C.unshift(k)}return xe(["mop","op-limits"],C,r)},H7=new Set(["\\smallint"]),iu=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=gt(e.base,"op"),a=!0):l=gt(e,"op");var i=t.style,u=!1;i.size===mt.DISPLAY.size&&l.symbol&&!H7.has(l.name)&&(u=!0);var d,m;if(l.symbol){var f=u?"Size2-Regular":"Size1-Regular",h="";if((l.name==="\\oiint"||l.name==="\\oiiint")&&(h=l.name.slice(1),l.name=h==="oiint"?"\\iint":"\\iiint"),d=ea(l.name,f,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),m=d.italic,h.length>0){var b=p7(h+"Size"+(u?"2":"1"),t);d=zt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:b,shift:u?.08:0}]}),l.name="\\"+h,d.classes.unshift("mop"),d.italic=m}}else if(l.body){var y=tr(l.body,t,!0);y.length===1&&y[0]instanceof Ia?(d=y[0],d.classes[0]="mop"):d=xe(["mop"],y,t)}else{for(var g=[],_=1;_<l.name.length;_++)g.push(O2(l.name[_],l.mode,t));d=xe(["mop"],g,t)}var C=0,k=0;if((d instanceof Ia||l.name==="\\oiint"||l.name==="\\oiiint")&&!l.suppressBaseShift){var S;C=(d.height-d.depth)/2-t.fontMetrics().axisHeight,k=(S=d.italic)!=null?S:0}return a?B7(d,n,r,t,i,k,C):(C&&(d.style.position="relative",d.style.top=Ee(C)),d)},X0=(e,t)=>{var n;if(e.symbol)n=new $e("mo",[po(e.name,e.mode)]),H7.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new $e("mo",Ra(e.body,t));else{n=new $e("mi",[new Vn(e.name.slice(1))]);var r=new $e("mo",[po("","text")]);e.parentIsSupSub?n=new $e("mrow",[n,r]):n=f7([n,r])}return n},hE={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Re({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return a.length===1&&(a=hE[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:iu,mathmlBuilder:X0});Re({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Un(r)}},htmlBuilder:iu,mathmlBuilder:X0});var fE={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Re({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:iu,mathmlBuilder:X0});Re({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:iu,mathmlBuilder:X0});Re({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=fE[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:iu,mathmlBuilder:X0});var U7=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=gt(e.base,"operatorname"),a=!0):l=gt(e,"operatorname");var i;if(l.body.length>0){for(var u=l.body.map(h=>{var b="text"in h?h.text:void 0;return typeof b=="string"?{type:"textord",mode:h.mode,text:b}:h}),d=tr(u,t.withFont("mathrm"),!0),m=0;m<d.length;m++){var f=d[m];f instanceof Ia&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=xe(["mop"],d,t)}else i=xe(["mop"],[],t);return a?B7(i,n,r,t,t.style,0,0):i},gE=(e,t)=>{for(var n=Ra(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var l=n[a];if(!(l instanceof g7))if(l instanceof $e)switch(l.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=l.children[0];l.children.length===1&&i instanceof Vn?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var u=n.map(f=>f.toText()).join("");n=[new Vn(u)]}var d=new $e("mi",n);d.setAttribute("mathvariant","normal");var m=new $e("mo",[po("","text")]);return e.parentIsSupSub?new $e("mrow",[d,m]):f7([d,m])};Re({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:Un(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:U7,mathmlBuilder:gE});P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Xl({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ei(tr(e.body,t,!1)):xe(["mord"],tr(e.body,t,!0),t)},mathmlBuilder(e,t){return Ri(e.body,t,!0)}});Re({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Tt(e.body,t.havingCrampedStyle()),r=Kc("overline-line",t),a=t.fontMetrics().defaultRuleThickness,l=zt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return xe(["mord","overline"],[l],t)},mathmlBuilder(e,t){var n=new $e("mo",[new Vn("‾")]);n.setAttribute("stretchy","true");var r=new $e("mover",[Yt(e.body,t),n]);return r.setAttribute("accent","true"),r}});Re({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Un(r)}},htmlBuilder:(e,t)=>{var n=tr(e.body,t.withPhantom(),!1);return ei(n)},mathmlBuilder:(e,t)=>{var n=Ra(e.body,t);return new $e("mphantom",n)}});P("\\hphantom","\\smash{\\phantom{#1}}");Re({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=xe(["inner"],[Tt(e.body,t.withPhantom())]),r=xe(["fix"],[]);return xe(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ra(Un(e.body),t),r=new $e("mphantom",n),a=new $e("mpadded",[r]);return a.setAttribute("width","0px"),a}});Re({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=gt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=Tt(e.body,t),r=_n(e.dy,t);return zt({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new $e("mpadded",[Yt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Re({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Re({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],l=gt(t[0],"size"),i=gt(t[1],"size");return{type:"rule",mode:r.mode,shift:a&>(a,"size").value,width:l.value,height:i.value}},htmlBuilder(e,t){var n=xe(["mord","rule"],[],t),r=_n(e.width,t),a=_n(e.height,t),l=e.shift?_n(e.shift,t):0;return n.style.borderRightWidth=Ee(r),n.style.borderTopWidth=Ee(a),n.style.bottom=Ee(l),n.width=r,n.height=a+l,n.depth=-l,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=_n(e.width,t),r=_n(e.height,t),a=e.shift?_n(e.shift,t):0,l=t.color&&t.getColor()||"black",i=new $e("mspace");i.setAttribute("mathbackground",l),i.setAttribute("width",Ee(n)),i.setAttribute("height",Ee(r));var u=new $e("mpadded",[i]);return a>=0?u.setAttribute("height",Ee(a)):(u.setAttribute("height",Ee(a)),u.setAttribute("depth",Ee(-a))),u.setAttribute("voffset",Ee(a)),u}});function V7(e,t,n){for(var r=tr(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,l=0;l<r.length;l++){var i=r[l].classes.indexOf("sizing");i<0?Array.prototype.push.apply(r[l].classes,t.sizingClasses(n)):r[l].classes[i+1]==="reset-size"+t.size&&(r[l].classes[i+1]="reset-size"+n.size),r[l].height*=a,r[l].depth*=a}return ei(r)}var Ov=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],vE=(e,t)=>{var n=t.havingSize(e.size);return V7(e.body,n,t)};Re({type:"sizing",names:Ov,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:Ov.indexOf(r)+1,body:l}},htmlBuilder:vE,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ra(e.body,n),a=new $e("mstyle",r);return a.setAttribute("mathsize",Ee(n.sizeMultiplier)),a}});Re({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,l=!1,i=n[0]&>(n[0],"ordgroup");if(i)for(var u,d=0;d<i.body.length;++d){var m=i.body[d];if(u=Em(m).text,u==="t")a=!0;else if(u==="b")l=!0;else{a=!1,l=!1;break}}else a=!0,l=!0;var f=t[0];return{type:"smash",mode:r.mode,body:f,smashHeight:a,smashDepth:l}},htmlBuilder:(e,t)=>{var n=xe([],[Tt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return xe(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var a=zt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return xe(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new $e("mpadded",[Yt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Re({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],l=t[0];return{type:"sqrt",mode:r.mode,body:l,index:a}},htmlBuilder(e,t){var n=Tt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Jc(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,l=a;t.style.id<mt.TEXT.id&&(l=t.fontMetrics().xHeight);var i=a+l/4,u=n.height+n.depth+i+a,{span:d,ruleWidth:m,advanceWidth:f}=rE(u,t),h=d.height-m;h>n.height+n.depth+i&&(i=(i+h-n.height-n.depth)/2);var b=d.height-n.height-i-m;n.style.paddingLeft=Ee(f);var y=zt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+b)},{type:"elem",elem:d},{type:"kern",size:m}]});if(e.index){var g=t.havingStyle(mt.SCRIPTSCRIPT),_=Tt(e.index,g,t),C=.6*(y.height-y.depth),k=zt({positionType:"shift",positionData:-C,children:[{type:"elem",elem:_}]}),S=xe(["root"],[k]);return xe(["mord","sqrt"],[S,y],t)}else return xe(["mord","sqrt"],[y],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new $e("mroot",[Yt(n,t),Yt(r,t)]):new $e("msqrt",[Yt(n,t)])}});var Yf={display:mt.DISPLAY,text:mt.TEXT,script:mt.SCRIPT,scriptscript:mt.SCRIPTSCRIPT};function bE(e){return e in Yf}Re({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!0,n),i=r.slice(1,r.length-5);if(!bE(i))throw new Error("Unknown style: "+i);return{type:"styling",mode:a.mode,style:i,body:l}},htmlBuilder(e,t){var n=Yf[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),V7(e.body,r,t)},mathmlBuilder(e,t){var n=Yf[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var a=Ra(e.body,r),l=new $e("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=i[e.style];return l.setAttribute("scriptlevel",u[0]),l.setAttribute("displaystyle",u[1]),l}});var yE=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===mt.DISPLAY.size||r.alwaysHandleSupSub);return a?iu:null}else if(r.type==="operatorname"){var l=r.alwaysHandleSupSub&&(n.style.size===mt.DISPLAY.size||r.limits);return l?U7:null}else{if(r.type==="accent")return Ks(r.base)?V2:null;if(r.type==="horizBrace"){var i=!t.sub;return i===r.isOver?O7:null}else return null}else return null};Xl({type:"supsub",htmlBuilder(e,t){var n=yE(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:l}=e,i=Tt(r,t),u,d,m=t.fontMetrics(),f=0,h=0,b=r&&Ks(r);if(a){var y=t.havingStyle(t.style.sup());u=Tt(a,y,t),b||(f=i.height-y.fontMetrics().supDrop*y.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());d=Tt(l,g,t),b||(h=i.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var _;t.style===mt.DISPLAY?_=m.sup1:t.style.cramped?_=m.sup3:_=m.sup2;var C=t.sizeMultiplier,k=Ee(.5/m.ptPerEm/C),S=null;if(d){var A=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(i instanceof Ia||A){var I;S=Ee(-((I=i.italic)!=null?I:0))}}var M;if(u&&d){f=Math.max(f,_,u.depth+.25*m.xHeight),h=Math.max(h,m.sub2);var L=m.defaultRuleThickness,F=4*L;if(f-u.depth-(d.height-h)<F){h=F-(f-u.depth)+d.height;var G=.8*m.xHeight-(f-u.depth);G>0&&(f+=G,h-=G)}var O=[{type:"elem",elem:d,shift:h,marginRight:k,marginLeft:S},{type:"elem",elem:u,shift:-f,marginRight:k}];M=zt({positionType:"individualShift",children:O})}else if(d){h=Math.max(h,m.sub1,d.height-.8*m.xHeight);var B=[{type:"elem",elem:d,marginLeft:S,marginRight:k}];M=zt({positionType:"shift",positionData:h,children:B})}else if(u)f=Math.max(f,_,u.depth+.25*m.xHeight),M=zt({positionType:"shift",positionData:-f,children:[{type:"elem",elem:u,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var W=Gf(i,"right")||"mord";return xe([W],[i,xe(["msupsub"],[M])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var l=[Yt(e.base,t)];e.sub&&l.push(Yt(e.sub,t)),e.sup&&l.push(Yt(e.sup,t));var i;if(n)i=r?"mover":"munder";else if(e.sub)if(e.sup){var m=e.base;m&&m.type==="op"&&m.limits&&t.style===mt.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(t.style===mt.DISPLAY||m.limits)?i="munderover":i="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===mt.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===mt.DISPLAY)?i="munder":i="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===mt.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===mt.DISPLAY)?i="mover":i="msup"}return new $e(i,l)}});Xl({type:"atom",htmlBuilder(e,t){return O2(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new $e("mo",[po(e.text,e.mode)]);if(e.family==="bin"){var r=U2(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var G7={mi:"italic",mn:"normal",mtext:"normal"};Xl({type:"mathord",htmlBuilder(e,t){return Sm(e,t,"mathord")},mathmlBuilder(e,t){var n=new $e("mi",[po(e.text,e.mode,t)]),r=U2(e,t)||"italic";return r!==G7[n.type]&&n.setAttribute("mathvariant",r),n}});Xl({type:"textord",htmlBuilder(e,t){return Sm(e,t,"textord")},mathmlBuilder(e,t){var n=po(e.text,e.mode,t),r=U2(e,t)||"normal",a;return e.mode==="text"?a=new $e("mtext",[n]):/[0-9]/.test(e.text)?a=new $e("mn",[n]):e.text==="\\prime"?a=new $e("mo",[n]):a=new $e("mi",[n]),r!==G7[a.type]&&a.setAttribute("mathvariant",r),a}});var Uh={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Vh={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xl({type:"spacing",htmlBuilder(e,t){if(Vh.hasOwnProperty(e.text)){var n=Vh[e.text].className||"";if(e.mode==="text"){var r=Sm(e,t,"textord");return r.classes.push(n),r}else return xe(["mspace",n],[O2(e.text,e.mode,t)],t)}else{if(Uh.hasOwnProperty(e.text))return xe(["mspace",Uh[e.text]],[],t);throw new Se('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Vh.hasOwnProperty(e.text))n=new $e("mtext",[new Vn(" ")]);else{if(Uh.hasOwnProperty(e.text))return new $e("mspace");throw new Se('Unknown type of space "'+e.text+'"')}return n}});var Bv=()=>{var e=new $e("mtd",[]);return e.setAttribute("width","50%"),e};Xl({type:"tag",mathmlBuilder(e,t){var n=new $e("mtable",[new $e("mtr",[Bv(),new $e("mtd",[Ri(e.body,t)]),Bv(),new $e("mtd",[Ri(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Hv={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Uv={"\\textbf":"textbf","\\textmd":"textmd"},xE={"\\textit":"textit","\\textup":"textup"},Vv=(e,t)=>{var n=e.font;if(n){if(Hv[n])return t.withTextFontFamily(Hv[n]);if(Uv[n])return t.withTextFontWeight(Uv[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(xE[n])};Re({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:Un(a),font:r}},htmlBuilder(e,t){var n=Vv(e,t),r=tr(e.body,n,!0);return xe(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Vv(e,t);return Ri(e.body,n)}});Re({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Tt(e.body,t),r=Kc("underline-line",t),a=t.fontMetrics().defaultRuleThickness,l=zt({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return xe(["mord","underline"],[l],t)},mathmlBuilder(e,t){var n=new $e("mo",[new Vn("‾")]);n.setAttribute("stretchy","true");var r=new $e("munder",[Yt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Re({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Tt(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return zt({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new $e("mpadded",[Yt(e.body,t)],["vcenter"]);return new $e("mrow",[n])}});Re({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Se("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Gv(e),r=[],a=t.havingStyle(t.style.text()),l=0;l<n.length;l++){var i=n[l];i==="~"&&(i="\\textasciitilde"),r.push(ea(i,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return xe(["mord","text"].concat(a.sizingClasses(t)),c7(r),a)},mathmlBuilder(e,t){var n=new Vn(Gv(e)),r=new $e("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Gv=e=>e.body.replace(/ /g,e.star?"␣":" "),Di=m7,W7=`[ \r
|
|
446
|
-
]`,_E="\\\\[a-zA-Z@]+",wE="\\\\[^\uD800-\uDFFF]",jE="("+_E+")"+W7+"*",CE=`\\\\(
|
|
447
|
-
|[ \r ]+
|
|
448
|
-
?)[ \r ]*`,Kf="[̀-ͯ]",kE=new RegExp(Kf+"+$"),NE="("+W7+"+)|"+(CE+"|")+"([!-\\[\\]-‧-豈-]"+(Kf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Kf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+jE)+("|"+wE+")");class Wv{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(NE,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Ma("EOF",new ga(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Se("Unexpected character: '"+t[n]+"'",new Ma(t[n],new ga(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var l=t.indexOf(`
|
|
449
|
-
`,this.tokenRegex.lastIndex);return l===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=l+1,this.lex()}return new Ma(a,new ga(this,n,this.tokenRegex.lastIndex))}}class SE{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Se("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var l=this.undefStack[this.undefStack.length-1];l&&!l.hasOwnProperty(t)&&(l[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var $E=I7;P("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});P("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});P("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});P("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});P("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});P("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");P("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Zv={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};P("\\char",function(e){var t=e.popToken(),n,r=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Se("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Zv[t.text],r==null||r>=n)throw new Se("Invalid base-"+n+" digit "+t.text);for(var a;(a=Zv[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var Q2=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Se("\\newcommand's first argument must be a macro name");var l=a[0].text,i=e.isDefined(l);if(i&&!t)throw new Se("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!i&&!n)throw new Se("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var u=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var d="",m=e.expandNextToken();m.text!=="]"&&m.text!=="EOF";)d+=m.text,m=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new Se("Invalid number of arguments: "+d);u=parseInt(d),a=e.consumeArg().tokens}return i&&r||e.macros.set(l,{tokens:a,numArgs:u}),""};P("\\newcommand",e=>Q2(e,!1,!0,!1));P("\\renewcommand",e=>Q2(e,!0,!1,!1));P("\\providecommand",e=>Q2(e,!0,!0,!0));P("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});P("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});P("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Di[n],dn.math[n],dn.text[n]),""});P("\\bgroup","{");P("\\egroup","}");P("~","\\nobreakspace");P("\\lq","`");P("\\rq","'");P("\\aa","\\r a");P("\\AA","\\r A");P("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");P("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");P("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");P("ℬ","\\mathscr{B}");P("ℰ","\\mathscr{E}");P("ℱ","\\mathscr{F}");P("ℋ","\\mathscr{H}");P("ℐ","\\mathscr{I}");P("ℒ","\\mathscr{L}");P("ℳ","\\mathscr{M}");P("ℛ","\\mathscr{R}");P("ℭ","\\mathfrak{C}");P("ℌ","\\mathfrak{H}");P("ℨ","\\mathfrak{Z}");P("\\Bbbk","\\Bbb{k}");P("\\llap","\\mathllap{\\textrm{#1}}");P("\\rlap","\\mathrlap{\\textrm{#1}}");P("\\clap","\\mathclap{\\textrm{#1}}");P("\\mathstrut","\\vphantom{(}");P("\\underbar","\\underline{\\text{#1}}");P("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');P("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");P("\\ne","\\neq");P("≠","\\neq");P("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");P("∉","\\notin");P("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");P("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");P("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");P("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");P("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");P("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");P("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");P("⟂","\\perp");P("‼","\\mathclose{!\\mkern-0.8mu!}");P("∌","\\notni");P("⌜","\\ulcorner");P("⌝","\\urcorner");P("⌞","\\llcorner");P("⌟","\\lrcorner");P("©","\\copyright");P("®","\\textregistered");P("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');P("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');P("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');P("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');P("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");P("⋮","\\vdots");P("\\varGamma","\\mathit{\\Gamma}");P("\\varDelta","\\mathit{\\Delta}");P("\\varTheta","\\mathit{\\Theta}");P("\\varLambda","\\mathit{\\Lambda}");P("\\varXi","\\mathit{\\Xi}");P("\\varPi","\\mathit{\\Pi}");P("\\varSigma","\\mathit{\\Sigma}");P("\\varUpsilon","\\mathit{\\Upsilon}");P("\\varPhi","\\mathit{\\Phi}");P("\\varPsi","\\mathit{\\Psi}");P("\\varOmega","\\mathit{\\Omega}");P("\\substack","\\begin{subarray}{c}#1\\end{subarray}");P("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");P("\\boxed","\\fbox{$\\displaystyle{#1}$}");P("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");P("\\implies","\\DOTSB\\;\\Longrightarrow\\;");P("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");P("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");P("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Qv={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},AE=new Set(["bin","rel"]);P("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Qv?t=Qv[n]:(n.slice(0,4)==="\\not"||n in dn.math&&AE.has(dn.math[n].group))&&(t="\\dotsb"),t});var X2={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};P("\\dotso",function(e){var t=e.future().text;return t in X2?"\\ldots\\,":"\\ldots"});P("\\dotsc",function(e){var t=e.future().text;return t in X2&&t!==","?"\\ldots\\,":"\\ldots"});P("\\cdots",function(e){var t=e.future().text;return t in X2?"\\@cdots\\,":"\\@cdots"});P("\\dotsb","\\cdots");P("\\dotsm","\\cdots");P("\\dotsi","\\!\\cdots");P("\\dotsx","\\ldots\\,");P("\\DOTSI","\\relax");P("\\DOTSB","\\relax");P("\\DOTSX","\\relax");P("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");P("\\,","\\tmspace+{3mu}{.1667em}");P("\\thinspace","\\,");P("\\>","\\mskip{4mu}");P("\\:","\\tmspace+{4mu}{.2222em}");P("\\medspace","\\:");P("\\;","\\tmspace+{5mu}{.2777em}");P("\\thickspace","\\;");P("\\!","\\tmspace-{3mu}{.1667em}");P("\\negthinspace","\\!");P("\\negmedspace","\\tmspace-{4mu}{.2222em}");P("\\negthickspace","\\tmspace-{5mu}{.277em}");P("\\enspace","\\kern.5em ");P("\\enskip","\\hskip.5em\\relax");P("\\quad","\\hskip1em\\relax");P("\\qquad","\\hskip2em\\relax");P("\\tag","\\@ifstar\\tag@literal\\tag@paren");P("\\tag@paren","\\tag@literal{({#1})}");P("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Se("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});P("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");P("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");P("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");P("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");P("\\newline","\\\\\\relax");P("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Z7=Ee(is["Main-Regular"][84][1]-.7*is["Main-Regular"][65][1]);P("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Z7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");P("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Z7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");P("\\hspace","\\@ifstar\\@hspacer\\@hspace");P("\\@hspace","\\hskip #1\\relax");P("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");P("\\ordinarycolon",":");P("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");P("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');P("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');P("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');P("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');P("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');P("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');P("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');P("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');P("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');P("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');P("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');P("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');P("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');P("∷","\\dblcolon");P("∹","\\eqcolon");P("≔","\\coloneqq");P("≕","\\eqqcolon");P("⩴","\\Coloneqq");P("\\ratio","\\vcentcolon");P("\\coloncolon","\\dblcolon");P("\\colonequals","\\coloneqq");P("\\coloncolonequals","\\Coloneqq");P("\\equalscolon","\\eqqcolon");P("\\equalscoloncolon","\\Eqqcolon");P("\\colonminus","\\coloneq");P("\\coloncolonminus","\\Coloneq");P("\\minuscolon","\\eqcolon");P("\\minuscoloncolon","\\Eqcolon");P("\\coloncolonapprox","\\Colonapprox");P("\\coloncolonsim","\\Colonsim");P("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");P("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");P("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");P("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");P("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");P("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");P("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");P("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");P("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");P("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");P("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");P("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");P("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");P("\\nleqq","\\html@mathml{\\@nleqq}{≰}");P("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");P("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");P("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");P("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");P("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");P("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");P("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");P("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");P("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");P("\\imath","\\html@mathml{\\@imath}{ı}");P("\\jmath","\\html@mathml{\\@jmath}{ȷ}");P("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");P("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");P("⟦","\\llbracket");P("⟧","\\rrbracket");P("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");P("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");P("⦃","\\lBrace");P("⦄","\\rBrace");P("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");P("⦵","\\minuso");P("\\darr","\\downarrow");P("\\dArr","\\Downarrow");P("\\Darr","\\Downarrow");P("\\lang","\\langle");P("\\rang","\\rangle");P("\\uarr","\\uparrow");P("\\uArr","\\Uparrow");P("\\Uarr","\\Uparrow");P("\\N","\\mathbb{N}");P("\\R","\\mathbb{R}");P("\\Z","\\mathbb{Z}");P("\\alef","\\aleph");P("\\alefsym","\\aleph");P("\\Alpha","\\mathrm{A}");P("\\Beta","\\mathrm{B}");P("\\bull","\\bullet");P("\\Chi","\\mathrm{X}");P("\\clubs","\\clubsuit");P("\\cnums","\\mathbb{C}");P("\\Complex","\\mathbb{C}");P("\\Dagger","\\ddagger");P("\\diamonds","\\diamondsuit");P("\\empty","\\emptyset");P("\\Epsilon","\\mathrm{E}");P("\\Eta","\\mathrm{H}");P("\\exist","\\exists");P("\\harr","\\leftrightarrow");P("\\hArr","\\Leftrightarrow");P("\\Harr","\\Leftrightarrow");P("\\hearts","\\heartsuit");P("\\image","\\Im");P("\\infin","\\infty");P("\\Iota","\\mathrm{I}");P("\\isin","\\in");P("\\Kappa","\\mathrm{K}");P("\\larr","\\leftarrow");P("\\lArr","\\Leftarrow");P("\\Larr","\\Leftarrow");P("\\lrarr","\\leftrightarrow");P("\\lrArr","\\Leftrightarrow");P("\\Lrarr","\\Leftrightarrow");P("\\Mu","\\mathrm{M}");P("\\natnums","\\mathbb{N}");P("\\Nu","\\mathrm{N}");P("\\Omicron","\\mathrm{O}");P("\\plusmn","\\pm");P("\\rarr","\\rightarrow");P("\\rArr","\\Rightarrow");P("\\Rarr","\\Rightarrow");P("\\real","\\Re");P("\\reals","\\mathbb{R}");P("\\Reals","\\mathbb{R}");P("\\Rho","\\mathrm{P}");P("\\sdot","\\cdot");P("\\sect","\\S");P("\\spades","\\spadesuit");P("\\sub","\\subset");P("\\sube","\\subseteq");P("\\supe","\\supseteq");P("\\Tau","\\mathrm{T}");P("\\thetasym","\\vartheta");P("\\weierp","\\wp");P("\\Zeta","\\mathrm{Z}");P("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");P("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");P("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");P("\\bra","\\mathinner{\\langle{#1}|}");P("\\ket","\\mathinner{|{#1}\\rangle}");P("\\braket","\\mathinner{\\langle{#1}\\rangle}");P("\\Bra","\\left\\langle#1\\right|");P("\\Ket","\\left|#1\\right\\rangle");var Q7=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.consumeArg().tokens,i=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var d=h=>b=>{e&&(b.macros.set("|",i),a.length&&b.macros.set("\\|",u));var y=h;if(!h&&a.length){var g=b.future();g.text==="|"&&(b.popToken(),y=!0)}return{tokens:y?a:r,numArgs:0}};t.macros.set("|",d(!1)),a.length&&t.macros.set("\\|",d(!0));var m=t.consumeArg().tokens,f=t.expandTokens([...l,...m,...n]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};P("\\bra@ket",Q7(!1));P("\\bra@set",Q7(!0));P("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");P("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");P("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");P("\\angln","{\\angl n}");P("\\blue","\\textcolor{##6495ed}{#1}");P("\\orange","\\textcolor{##ffa500}{#1}");P("\\pink","\\textcolor{##ff00af}{#1}");P("\\red","\\textcolor{##df0030}{#1}");P("\\green","\\textcolor{##28ae7b}{#1}");P("\\gray","\\textcolor{gray}{#1}");P("\\purple","\\textcolor{##9d38bd}{#1}");P("\\blueA","\\textcolor{##ccfaff}{#1}");P("\\blueB","\\textcolor{##80f6ff}{#1}");P("\\blueC","\\textcolor{##63d9ea}{#1}");P("\\blueD","\\textcolor{##11accd}{#1}");P("\\blueE","\\textcolor{##0c7f99}{#1}");P("\\tealA","\\textcolor{##94fff5}{#1}");P("\\tealB","\\textcolor{##26edd5}{#1}");P("\\tealC","\\textcolor{##01d1c1}{#1}");P("\\tealD","\\textcolor{##01a995}{#1}");P("\\tealE","\\textcolor{##208170}{#1}");P("\\greenA","\\textcolor{##b6ffb0}{#1}");P("\\greenB","\\textcolor{##8af281}{#1}");P("\\greenC","\\textcolor{##74cf70}{#1}");P("\\greenD","\\textcolor{##1fab54}{#1}");P("\\greenE","\\textcolor{##0d923f}{#1}");P("\\goldA","\\textcolor{##ffd0a9}{#1}");P("\\goldB","\\textcolor{##ffbb71}{#1}");P("\\goldC","\\textcolor{##ff9c39}{#1}");P("\\goldD","\\textcolor{##e07d10}{#1}");P("\\goldE","\\textcolor{##a75a05}{#1}");P("\\redA","\\textcolor{##fca9a9}{#1}");P("\\redB","\\textcolor{##ff8482}{#1}");P("\\redC","\\textcolor{##f9685d}{#1}");P("\\redD","\\textcolor{##e84d39}{#1}");P("\\redE","\\textcolor{##bc2612}{#1}");P("\\maroonA","\\textcolor{##ffbde0}{#1}");P("\\maroonB","\\textcolor{##ff92c6}{#1}");P("\\maroonC","\\textcolor{##ed5fa6}{#1}");P("\\maroonD","\\textcolor{##ca337c}{#1}");P("\\maroonE","\\textcolor{##9e034e}{#1}");P("\\purpleA","\\textcolor{##ddd7ff}{#1}");P("\\purpleB","\\textcolor{##c6b9fc}{#1}");P("\\purpleC","\\textcolor{##aa87ff}{#1}");P("\\purpleD","\\textcolor{##7854ab}{#1}");P("\\purpleE","\\textcolor{##543b78}{#1}");P("\\mintA","\\textcolor{##f5f9e8}{#1}");P("\\mintB","\\textcolor{##edf2df}{#1}");P("\\mintC","\\textcolor{##e0e5cc}{#1}");P("\\grayA","\\textcolor{##f6f7f7}{#1}");P("\\grayB","\\textcolor{##f0f1f2}{#1}");P("\\grayC","\\textcolor{##e3e5e6}{#1}");P("\\grayD","\\textcolor{##d6d8da}{#1}");P("\\grayE","\\textcolor{##babec2}{#1}");P("\\grayF","\\textcolor{##888d93}{#1}");P("\\grayG","\\textcolor{##626569}{#1}");P("\\grayH","\\textcolor{##3b3e40}{#1}");P("\\grayI","\\textcolor{##21242c}{#1}");P("\\kaBlue","\\textcolor{##314453}{#1}");P("\\kaGreen","\\textcolor{##71B307}{#1}");var X7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class EE{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new SE($E,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Wv(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new Ma("EOF",r.loc)),this.pushTokens(a),new Ma("",ga.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),l,i=0,u=0;do{if(l=this.popToken(),n.push(l),l.text==="{")++i;else if(l.text==="}"){if(--i,i===-1)throw new Se("Extra }",l)}else if(l.text==="EOF")throw new Se("Unexpected end of input in a macro argument, expected '"+(t&&r?t[u]:"}")+"'",l);if(t&&r)if((i===0||i===1&&t[u]==="{")&&l.text===t[u]){if(++u,u===t.length){n.splice(-u,u);break}}else u=0}while(i!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:l}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Se("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var l=this.popToken();if(r[a]!==l.text)throw new Se("Use of the macro doesn't match its definition",l)}}for(var i=[],u=0;u<t;u++)i.push(this.consumeArg(n&&n[u+1]).tokens);return i}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Se("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new Se("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var l=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){l=l.slice();for(var u=l.length-1;u>=0;--u){var d=l[u];if(d.text==="#"){if(u===0)throw new Se("Incomplete placeholder at end of macro body",d);if(d=l[--u],d.text==="#")l.splice(u+1,1);else if(/^[1-9]$/.test(d.text))l.splice(u,2,...i[+d.text-1]);else throw new Se("Not a valid argument number",d)}}}return this.pushTokens(l),l.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ma(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var l=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(l+1));)++l;for(var u=new Wv(a,this.settings),d=[],m=u.lex();m.text!=="EOF";)d.push(m),m=u.lex();d.reverse();var f={tokens:d,numArgs:l};return f}return a}isDefined(t){return this.macros.has(t)||Di.hasOwnProperty(t)||dn.math.hasOwnProperty(t)||dn.text.hasOwnProperty(t)||X7.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Di.hasOwnProperty(t)&&!Di[t].primitive}}var Xv=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,yp=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Gh={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Yv={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class qm{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new EE(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Se("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ma("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(qm.endOfExpression.has(a.text)||n&&a.text===n||t&&Di[a.text]&&Di[a.text].infix)break;var l=this.parseAtom(n);if(l){if(l.type==="internal")continue}else break;r.push(l)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var l=t[a];if(l.type==="infix"){if(n!==-1)throw new Se("only one infix operator per group",l.token);n=a,r=l.replaceWith}}if(n!==-1&&r){var i,u,d=t.slice(0,n),m=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?i=d[0]:i={type:"ordgroup",mode:this.mode,body:d},m.length===1&&m[0].type==="ordgroup"?u=m[0]:u={type:"ordgroup",mode:this.mode,body:m};var f;return r==="\\\\abovefrac"?f=this.callFunction(r,[i,t[n],u],[]):f=this.callFunction(r,[i,u],[]),[f]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var l;a=this.parseGroup(t)}while(((l=a)==null?void 0:l.type)==="internal");if(!a)throw new Se("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},l={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return l}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var l=this.fetch();if(l.text==="\\limits"||l.text==="\\nolimits"){if(n&&n.type==="op"){var i=l.text==="\\limits";n.limits=i,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=l.text==="\\limits");else throw new Se("Limit controls must follow a math operator",l);this.consume()}else if(l.text==="^"){if(r)throw new Se("Double superscript",l);r=this.handleSupSubscript("superscript")}else if(l.text==="_"){if(a)throw new Se("Double subscript",l);a=this.handleSupSubscript("subscript")}else if(l.text==="'"){if(r)throw new Se("Double superscript",l);var u={type:"textord",mode:this.mode,text:"\\prime"},d=[u];for(this.consume();this.fetch().text==="'";)d.push(u),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:d}}else if(yp[l.text]){var m=Xv.test(l.text),f=[];for(f.push(new Ma(yp[l.text])),this.consume();;){var h=this.fetch().text;if(!yp[h]||Xv.test(h)!==m)break;f.unshift(new Ma(yp[h])),this.consume()}var b=this.subparse(f);m?a={type:"ordgroup",mode:"math",body:b}:r={type:"ordgroup",mode:"math",body:b}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,l=Di[a];if(!l)return null;if(this.consume(),n&&n!=="atom"&&!l.allowedInArgument)throw new Se("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!l.allowedInText)throw new Se("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&l.allowedInMath===!1)throw new Se("Can't use function '"+a+"' in math mode",r);var{args:i,optArgs:u}=this.parseArguments(a,l);return this.callFunction(a,i,u,r,t)}callFunction(t,n,r,a,l){var i={funcName:t,parser:this,token:a,breakOnTokenText:l},u=Di[t];if(u&&u.handler)return u.handler(i,n,r);throw new Se("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],l=[],i=0;i<r;i++){var u=n.argTypes&&n.argTypes[i],d=i<n.numOptionalArgs;("primitive"in n&&n.primitive&&u==null||n.type==="sqrt"&&i===1&&l[0]==null)&&(u="primitive");var m=this.parseGroupOfType("argument to '"+t+"'",u,d);if(d)l.push(m);else if(m!=null)a.push(m);else throw new Se("Null argument, please report this as a bug")}return{args:a,optArgs:l}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var l=this.parseStringGroup("raw",r);return l!=null?{type:"raw",mode:"text",string:l.text}:null}case"primitive":{if(r)throw new Se("A primitive argument cannot be optional");var i=this.parseGroup(t);if(i==null)throw new Se("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Se("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",l;(l=this.fetch()).text!=="EOF";)a+=l.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,l="",i;(i=this.fetch()).text!=="EOF"&&t.test(l+i.text);)a=i,l+=a.text,this.consume();if(l==="")throw new Se("Invalid "+n+": '"+r.text+"'",r);return r.range(a,l)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Se("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new Se("Invalid size: '"+n.text+"'",n);var l={number:+(a[1]+a[2]),unit:a[3]};if(!a7(l))throw new Se("Invalid unit: '"+l.unit+"'",n);return{type:"size",mode:this.mode,value:l,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var l=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:l};return n&&this.switchMode(a),i}parseGroup(t,n){var r=this.fetch(),a=r.text,l;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,i),d=this.fetch();this.expect(i),this.gullet.endGroup(),l={type:"ordgroup",mode:this.mode,loc:ga.range(r,d),body:u,semisimple:a==="\\begingroup"||void 0}}else if(l=this.parseFunction(n,t)||this.parseSymbol(),l==null&&a[0]==="\\"&&!X7.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Se("Undefined control sequence: "+a,r);l=this.formatUnsupportedCmd(a),this.consume()}return l}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var l=a.text,i=t[r+1];if(!(!i||i.type!=="textord")){if(l==="-"&&i.text==="-"){var u=t[r+2];r+1<n&&u&&u.type==="textord"&&u.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:ga.range(a,u),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(a,i),text:"--"}),n-=1)}(l==="'"||l==="`")&&i.text===l&&(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(a,i),text:l+l}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Se(`\\verb assertion failed --
|
|
450
|
-
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}Yv.hasOwnProperty(n[0])&&!dn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=Yv[n[0]]+n.slice(1));var l=kE.exec(n);l&&(n=n.substring(0,l.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var i;if(dn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Rf.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var u=dn[this.mode][n].group,d=ga.range(t),m;GA(u)?m={type:"atom",mode:this.mode,family:u,loc:d,text:n}:m={type:u,mode:this.mode,loc:d,text:n},i=m}else if(n.charCodeAt(0)>=128)this.settings.strict&&(r7(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),i={type:"textord",mode:"text",loc:ga.range(t),text:n};else return null;if(this.consume(),l)for(var f=0;f<l[0].length;f++){var h=l[0][f];if(!Gh[h])throw new Se("Unknown accent ' "+h+"'",t);var b=Gh[h][this.mode]||Gh[h].text;if(!b)throw new Se("Accent "+h+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:ga.range(t),label:b,isStretchy:!1,isShifty:!0,base:i}}return i}}qm.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Y2=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new qm(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Se("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Ma("\\df@tag")])}]}return a},Y7=function(t,n,r){n.textContent="";var a=K2(t,r).toNode();n.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Y7=function(){throw new Se("KaTeX doesn't work in quirks mode.")});var DE=function(t,n){var r=K2(t,n).toMarkup();return r},zE=function(t,n){var r=new q2(n);return Y2(t,r)},K7=function(t,n,r){if(r.throwOnError||!(t instanceof Se))throw t;var a=xe(["katex-error"],[new Ia(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},K2=function(t,n){var r=new q2(n);try{var a=Y2(t,r);return RA(a,t,r)}catch(l){return K7(l,t,r)}},TE=function(t,n){var r=new q2(n);try{var a=Y2(t,r);return PA(a,t,r)}catch(l){return K7(l,t,r)}},ME="0.16.47",LE={Span:ou,Anchor:km,SymbolNode:Ia,SvgNode:Xs,PathNode:Ii,LineNode:qf},Kv={version:ME,render:Y7,renderToString:DE,ParseError:Se,SETTINGS_SCHEMA:Mf,__parse:zE,__renderToDomTree:K2,__renderToHTMLTree:TE,__setFontMetrics:yA,__defineSymbol:w,__defineFunction:Re,__defineMacro:P,__domTree:LE};const Ct={eof:null,dollarSign:36,leftParenthesis:40,rightParenthesis:41,asterisk:42,leftSquareBracket:91,backslash:92,rightSquareBracket:93},Jf={characterGroupPunctuation:2,tabSize:4},za={whitespace:"whitespace",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape",chunkString:"chunkString"},IE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M8.00003 0.3237C3.76075 0.3237 0.32373 3.76072 0.32373 8C0.32373 9.17603 0.589121 10.2922 1.0632 11.2901L1.35291 11.8989L2.5705 11.3205L2.28079 10.7117C1.89079 9.89074 1.67301 8.97167 1.67301 8C1.67301 4.50546 4.50549 1.67298 8.00003 1.67298C11.4946 1.67298 14.3271 4.50546 14.3271 8C14.3271 11.4945 11.4946 14.327 8.00003 14.327C7.28473 14.327 6.76077 14.277 6.29621 14.1487C5.83857 14.0224 5.40441 13.8109 4.88514 13.4488C4.12569 12.919 3.03778 12.7316 2.141 13.2978L2.12682 13.307L2.11264 13.3171L1.34886 13.854L1.79659 15.188L2.86122 14.4384C3.19068 14.2305 3.68325 14.2542 4.11326 14.5539C4.72789 14.9826 5.30042 15.2724 5.93762 15.4484C6.56803 15.6224 7.22776 15.6763 8.00003 15.6763C12.2393 15.6763 15.6763 12.2393 15.6763 8C15.6763 3.76072 12.2393 0.3237 8.00003 0.3237ZM7.32033 4.82535V7.32536H4.82538V8.67464H7.32033V11.1747H8.6696V8.67464H11.1747V7.32536H8.6696V4.82535H7.32033Z",fill:"currentColor"})}),qE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z",fill:"currentColor"}),o.jsx("path",{d:"M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z",fill:"currentColor"})]}),R0=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("g",{clipPath:"url(#clip0_1450_63327)",children:[o.jsx("path",{d:"M14.0861 5.51366C13.8717 5.0575 13.588 4.58542 13.2889 4.18108C13.208 4.07172 13.1596 4.04373 13.0243 4.03054C12.4277 3.97255 11.8245 4.05527 11.2269 3.9972C10.7224 3.94816 10.3133 3.71661 10.0115 3.30919C9.66986 2.84777 9.43973 2.31343 9.09824 1.85234C9.01771 1.74365 8.96805 1.71589 8.83354 1.70282C8.29432 1.65044 7.70402 1.65061 7.16656 1.70282C7.03205 1.71589 6.98239 1.74365 6.90186 1.85234C6.56067 2.31303 6.33025 2.84774 5.98855 3.30919C5.68681 3.71661 5.27774 3.94816 4.77317 3.9972C4.17564 4.05527 3.57239 3.97255 2.97585 4.03054C2.84046 4.04373 2.79208 4.07172 2.71115 4.18108C2.41212 4.58542 2.12835 5.0575 1.91403 5.51366C1.85299 5.64359 1.85286 5.7018 1.91403 5.8319C2.14865 6.33077 2.49748 6.76892 2.73237 7.26854C2.9594 7.7515 2.96041 8.24717 2.73338 8.73044C2.49837 9.23061 2.14891 9.66837 1.91403 10.1681C1.85291 10.2982 1.85299 10.3564 1.91403 10.4863C2.12856 10.9429 2.41185 11.4142 2.71115 11.8189C2.79208 11.9283 2.84046 11.9563 2.97585 11.9694C3.57239 12.0274 4.17564 11.9447 4.77317 12.0028C5.27774 12.0518 5.68681 12.2834 5.98855 12.6908C6.33024 13.1522 6.56037 13.6866 6.90186 14.1476C6.98239 14.2563 7.03205 14.2841 7.16656 14.2972C7.70402 14.3494 8.29432 14.3495 8.83354 14.2972C8.96805 14.2841 9.01771 14.2563 9.09824 14.1476C9.43944 13.687 9.66985 13.1522 10.0115 12.6908C10.3133 12.2834 10.7224 12.0518 11.2269 12.0028C11.8244 11.9447 12.4271 12.0275 13.0243 11.9694C13.1596 11.9563 13.208 11.9283 13.2889 11.8189C13.5891 11.4131 13.872 10.942 14.0861 10.4863C14.1471 10.3564 14.1472 10.2982 14.0861 10.1681C13.8513 9.66861 13.5017 9.23061 13.2667 8.73044C13.0397 8.24717 13.0407 7.7515 13.2677 7.26854C13.5026 6.7689 13.8513 6.33106 14.0861 5.8319C14.1472 5.7018 14.1471 5.64359 14.0861 5.51366ZM15.3035 6.40373C15.0685 6.90359 14.7188 7.34119 14.4841 7.84037C14.4231 7.97025 14.423 8.02855 14.4841 8.15861C14.7189 8.65833 15.0685 9.09611 15.3035 9.59626C15.5308 10.0801 15.5308 10.5744 15.3035 11.0582C15.052 11.5933 14.7225 12.1426 14.37 12.6191C14.0685 13.0265 13.6581 13.259 13.1536 13.3081C12.5566 13.366 11.9541 13.2835 11.3573 13.3414C11.2228 13.3545 11.1731 13.3823 11.0926 13.491C10.7511 13.9521 10.521 14.4864 10.1793 14.9478C9.87828 15.3542 9.46719 15.5869 8.96387 15.6358C8.34008 15.6964 7.66194 15.6966 7.03623 15.6358C6.53291 15.5869 6.12182 15.3542 5.82084 14.9478C5.47911 14.4863 5.24878 13.9517 4.90753 13.491C4.82701 13.3823 4.77734 13.3545 4.64284 13.3414C4.04647 13.2835 3.44373 13.366 2.84653 13.3081C2.34201 13.259 1.93164 13.0265 1.63013 12.6191C1.27867 12.144 0.948453 11.5941 0.696621 11.0582C0.469315 10.5744 0.469279 10.0801 0.696621 9.59626C0.931628 9.09613 1.2813 8.65807 1.51597 8.15861C1.57708 8.02855 1.57702 7.97025 1.51597 7.84037C1.28117 7.34095 0.931635 6.9036 0.696621 6.40373C0.469213 5.91992 0.469367 5.42562 0.696621 4.94183C0.948441 4.40587 1.27868 3.85598 1.63013 3.38092C1.93164 2.97349 2.34201 2.74095 2.84653 2.6919C3.44353 2.63397 4.04599 2.71649 4.64284 2.65856C4.77734 2.64549 4.82701 2.61774 4.90753 2.50904C5.24905 2.04792 5.47913 1.51362 5.82084 1.05219C6.12182 0.645806 6.53291 0.413119 7.03623 0.364178C7.66002 0.303556 8.33816 0.303369 8.96387 0.364178C9.46719 0.413119 9.87828 0.645806 10.1793 1.05219C10.521 1.51365 10.7513 2.04828 11.0926 2.50904C11.1731 2.61774 11.2228 2.64549 11.3573 2.65856C11.9541 2.71649 12.5566 2.63397 13.1536 2.6919C13.6581 2.74095 14.0685 2.97349 14.37 3.38092C14.7214 3.85598 15.0517 4.40587 15.3035 4.94183C15.5307 5.42562 15.5309 5.91992 15.3035 6.40373Z",fill:"currentColor"}),o.jsx("path",{d:"M9.13764 7.99999C9.13764 7.3715 8.62855 6.8624 8.00005 6.8624C7.37155 6.8624 6.86246 7.3715 6.86246 7.99999C6.86246 8.62849 7.37155 9.13759 8.00005 9.13759C8.62855 9.13759 9.13764 8.62849 9.13764 7.99999ZM10.4834 7.99999C10.4834 9.37126 9.37132 10.4833 8.00005 10.4833C6.62878 10.4833 5.51674 9.37126 5.51674 7.99999C5.51674 6.62873 6.62878 5.51669 8.00005 5.51669C9.37132 5.51669 10.4834 6.62873 10.4834 7.99999Z",fill:"currentColor"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1450_63327",children:o.jsx("rect",{width:16,height:16,fill:"currentColor"})})})]}),RE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M4.55146 8.00001C4.55146 8.63513 4.03659 9.15001 3.40146 9.15001C2.76634 9.15001 2.25146 8.63513 2.25146 8.00001C2.25146 7.36488 2.76634 6.85001 3.40146 6.85001C4.03659 6.85001 4.55146 7.36488 4.55146 8.00001Z",fill:"currentColor"}),o.jsx("path",{d:"M9.1476 8.00001C9.1476 8.63513 8.63273 9.15001 7.9976 9.15001C7.36248 9.15001 6.8476 8.63513 6.8476 8.00001C6.8476 7.36488 7.36248 6.85001 7.9976 6.85001C8.63273 6.85001 9.1476 7.36488 9.1476 8.00001Z",fill:"currentColor"}),o.jsx("path",{d:"M13.7486 8.00001C13.7486 8.63513 13.2338 9.15001 12.5986 9.15001C11.9635 9.15001 11.4486 8.63513 11.4486 8.00001C11.4486 7.36488 11.9635 6.85001 12.5986 6.85001C13.2338 6.85001 13.7486 7.36488 13.7486 8.00001Z",fill:"currentColor"})]}),J2=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z",fill:"currentColor"})}),PE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0762 1.37207C14.0846 1.37228 14.9021 2.19077 14.9023 3.19922C14.9022 4.20772 14.0847 5.02518 13.0762 5.02539C12.2967 5.02539 11.6325 4.53691 11.3701 3.84961H4.35547C4.79397 4.26458 5.15861 4.7644 5.41699 5.33496L7.10645 9.06738C7.88526 10.7875 9.55104 11.9228 11.4189 12.0371C11.7085 11.4109 12.3411 10.9756 13.0762 10.9756C14.0843 10.9759 14.9023 11.7936 14.9023 12.8018C14.9023 13.81 14.0843 14.6277 13.0762 14.6279C12.2534 14.6279 11.5574 14.0832 11.3291 13.335C8.9868 13.1879 6.89981 11.7612 5.92285 9.60352L4.23242 5.87109C3.67503 4.64033 2.44878 3.84961 1.09766 3.84961V2.54883C1.10665 2.54883 1.11601 2.54975 1.125 2.5498L11.3701 2.54883C11.6326 1.86151 12.2969 1.37207 13.0762 1.37207ZM13.0762 12.2764C12.7858 12.2764 12.5508 12.5114 12.5508 12.8018C12.5508 13.0921 12.7858 13.3281 13.0762 13.3281C13.3664 13.3279 13.6025 13.092 13.6025 12.8018C13.6025 12.5115 13.3664 12.2766 13.0762 12.2764ZM13.0762 2.67285C12.7855 2.67285 12.55 2.90861 12.5498 3.19922C12.5499 3.48987 12.7855 3.72559 13.0762 3.72559C13.3667 3.72538 13.6024 3.48975 13.6025 3.19922C13.6023 2.90874 13.3666 2.67306 13.0762 2.67285Z",fill:"currentColor"})}),FE=({size:e=14,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M4.25 2.82782L4.25 11.1722C4.25 11.6622 4.84243 11.9076 5.18891 11.5611L9.36109 7.38891C9.57588 7.17412 9.57588 6.82588 9.36109 6.61109L5.18891 2.43891C4.84243 2.09243 4.25 2.33782 4.25 2.82782Z",fill:"currentColor"})}),OE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z",fill:"currentColor"}),o.jsx("path",{d:"M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z",fill:"currentColor"})]}),BE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z",fill:"currentColor"})}),HE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M7.95889 1.52285C7.95888 0.826234 8.76055 0.467983 9.27669 0.875208L9.37524 0.967191L15.1317 7.18358C15.5582 7.64419 15.5582 8.35614 15.1317 8.81676L9.37524 15.0331C8.87034 15.578 7.95888 15.2205 7.95889 14.4775V10.8207C7.10614 10.8432 6.31361 10.9316 5.45468 11.2515C4.39484 11.6463 3.18248 12.413 1.64676 13.9425C1.4533 14.135 1.18329 14.1696 0.969086 14.0908C0.74748 14.0091 0.547307 13.7879 0.54859 13.4844L0.55516 13.1315C0.618924 11.3494 1.11153 9.29838 2.27656 7.63787C3.45289 5.96147 5.29554 4.71635 7.95889 4.54797V1.52285ZM9.20911 5.13366C9.20899 5.50567 8.9031 5.77687 8.56523 5.77755C5.99383 5.78282 4.33736 6.8762 3.29964 8.35496C2.54519 9.43014 2.10739 10.7283 1.9152 11.9939C3.04749 11.0323 4.0569 10.4385 5.01917 10.0801C6.29638 9.60449 7.4406 9.56343 8.56429 9.56295C8.9178 9.5628 9.20894 9.84909 9.20911 10.2068L9.20817 13.3737L14.1837 8.00017L9.20817 2.62571L9.20911 5.13366Z",fill:"currentColor"})}),e4=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z",fill:"currentColor"})}),UE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M9.94133 6.50173C11.3218 7.99603 11.3218 10.3011 9.94128 11.7954C9.88691 11.8542 9.82125 11.9196 9.72099 12.0198L7.75707 13.9838C7.65709 14.0838 7.592 14.1491 7.53334 14.2034C6.03906 15.5843 3.7327 15.5854 2.23827 14.2048C2.17933 14.1503 2.11374 14.0844 2.01315 13.9838C1.91318 13.8839 1.84922 13.8188 1.79495 13.7601C0.413857 12.2657 0.413909 9.95948 1.795 8.46503C1.84923 8.4064 1.91335 8.34115 2.01321 8.24129L3.79275 6.46313C3.71814 7.08101 3.75236 7.71445 3.90115 8.33518L3.00344 9.23151C2.89398 9.34097 2.8535 9.38307 2.82251 9.41658C1.93771 10.3744 1.93704 11.8514 2.82179 12.8092C2.85279 12.8427 2.89383 12.884 3.0034 12.9936C3.11272 13.1029 3.15429 13.1442 3.18777 13.1752C4.14561 14.0603 5.62381 14.0608 6.58178 13.1758C6.61532 13.1448 6.65722 13.1032 6.76685 12.9935L8.73077 11.0296C8.83999 10.9204 8.88142 10.8787 8.91238 10.8452C9.79744 9.88728 9.7969 8.40911 8.91173 7.45124C8.88074 7.41775 8.83944 7.3762 8.73011 7.26687C8.62082 7.15757 8.58061 7.11623 8.54712 7.08526C8.37347 6.92477 8.18243 6.79361 7.98088 6.69165L9.00289 5.66964C9.17506 5.78373 9.34035 5.91265 9.49663 6.05703C9.55538 6.11135 9.62026 6.17652 9.72036 6.27662C9.82094 6.3772 9.88686 6.4428 9.94133 6.50173Z",fill:"currentColor"}),o.jsx("path",{d:"M6.06816 9.49196C4.68626 7.99724 4.68667 5.68942 6.06885 4.19487C6.12268 4.13671 6.18789 4.07306 6.28706 3.9739L8.24541 2.01416C8.34478 1.91479 8.41018 1.85055 8.46845 1.79665C9.96301 0.414902 12.2689 0.414922 13.7635 1.79665C13.8217 1.85051 13.8866 1.91559 13.9858 2.01486C14.0849 2.11394 14.1502 2.17769 14.204 2.23583C15.5861 3.7304 15.5866 6.03823 14.2047 7.53291C14.1508 7.59125 14.0854 7.65638 13.9858 7.75595L12.1994 9.54098C12.2614 8.92982 12.2185 8.30587 12.0634 7.69657L12.9956 6.76573C13.1044 6.65692 13.1458 6.61529 13.1765 6.58205C14.0621 5.62404 14.0621 4.1454 13.1765 3.18738C13.1458 3.15419 13.104 3.1135 12.9956 3.00508C12.8877 2.89716 12.8471 2.85551 12.814 2.82485C11.8559 1.9389 10.376 1.93886 9.41794 2.82485C9.38479 2.85554 9.34381 2.89622 9.23564 3.00439L7.27728 4.96413C7.16875 5.07265 7.12708 5.11322 7.09636 5.14643C6.21074 6.10441 6.21153 7.58236 7.09705 8.5404C7.12775 8.57357 7.16826 8.61575 7.27659 8.72408C7.38456 8.83205 7.42647 8.87227 7.45958 8.90293C7.62849 9.0591 7.81309 9.1881 8.00856 9.28894L6.98795 10.3095C6.82111 10.1978 6.66052 10.0715 6.50872 9.93114C6.45057 9.87733 6.38547 9.81341 6.28637 9.71431C6.1871 9.61504 6.12202 9.55018 6.06816 9.49196Z",fill:"currentColor"})]}),t4=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M14.4782 4.84067L14.2138 10.1152C14.1102 12.1872 14.067 13.0115 13.3866 13.9607C13.1044 14.3546 12.7498 14.6912 12.3424 14.9535C11.8239 15.2872 11.2415 15.4316 10.5585 15.4998C9.88727 15.5668 9.04946 15.5656 7.99998 15.5656C6.95051 15.5656 6.1127 15.5668 5.44142 15.4998C4.75851 15.4316 4.17602 15.2872 3.65753 14.9535C3.25012 14.6912 2.89559 14.3546 2.61332 13.9607C1.93296 13.0115 1.88979 12.1872 1.78619 10.1152L1.52179 4.84067L2.89006 4.77277L3.15343 10.0463C3.26221 12.2218 3.32452 12.6015 3.72646 13.1624C3.90825 13.4161 4.13686 13.6334 4.39927 13.8023C4.66204 13.9714 5.00263 14.0792 5.57825 14.1367C6.16562 14.1953 6.92298 14.1963 7.99998 14.1963C9.07699 14.1963 9.83434 14.1953 10.4217 14.1367C10.9973 14.0792 11.3379 13.9714 11.6007 13.8023C11.8631 13.6334 12.0917 13.4161 12.2735 13.1624C12.6755 12.6015 12.7378 12.2218 12.8465 10.0463L13.1099 4.77277L14.4782 4.84067ZM5.43011 6.22849H6.7994V11.3909H5.43011V6.22849ZM9.20056 6.22849H10.5699V11.3909H9.20056V6.22849ZM8.53597 0.434431C9.17976 0.434431 9.6522 0.426926 10.0966 0.571258C10.2357 0.616451 10.3717 0.672554 10.502 0.738948C10.9182 0.951107 11.2464 1.29099 11.7015 1.74612L12.4978 2.54136H15.3742V3.91169H0.625732V2.54136H3.50218L4.29845 1.74612C4.75358 1.29099 5.08174 0.951107 5.49801 0.738948C5.62831 0.672554 5.76425 0.616451 5.90334 0.571258C6.34776 0.426926 6.82021 0.434431 7.46399 0.434431H8.53597ZM7.46399 1.80476C6.73208 1.80476 6.51641 1.81187 6.32617 1.87369C6.25545 1.89667 6.18668 1.92533 6.12041 1.95907C5.96398 2.03878 5.82348 2.16253 5.44142 2.54136H10.5585C10.1765 2.16253 10.036 2.03878 9.87955 1.95907C9.81329 1.92533 9.74452 1.89667 9.6738 1.87369C9.48356 1.81187 9.26789 1.80476 8.53597 1.80476H7.46399Z",fill:"currentColor"})}),VE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M11.0307 5.46369C11.0305 3.78995 9.6734 2.43357 7.99961 2.43357C6.32601 2.43379 4.96972 3.79009 4.96949 5.46369C4.96949 7.13748 6.32587 8.49455 7.99961 8.49477C9.67354 8.49477 11.0307 7.13762 11.0307 5.46369ZM12.3163 5.46369C12.3163 7.84777 10.3837 9.78042 7.99961 9.78042C5.61572 9.7802 3.68288 7.84763 3.68288 5.46369C3.6831 3.07993 5.61586 1.14718 7.99961 1.14695C10.3836 1.14695 12.3161 3.0798 12.3163 5.46369Z",fill:"currentColor"}),o.jsx("path",{d:"M8.00002 10.3316C11.7343 10.3316 14.1864 11.8997 15.0387 14.4445L14.4292 14.6483L13.8197 14.8531C13.1955 12.9893 11.3673 11.6182 8.00002 11.6182C4.63277 11.6182 2.80455 12.9893 2.18031 14.8531L1.5708 14.6483L0.961304 14.4445C1.81368 11.8997 4.26579 10.3316 8.00002 10.3316Z",fill:"currentColor"})]}),J7=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M15.3695 11.411L15.1234 12.8866C14.8869 14.3042 13.6603 15.3436 12.223 15.3436H3.77673C2.33958 15.3434 1.1128 14.3042 0.876343 12.8866L0.630249 11.411L2.05408 11.1747L2.29919 12.6493C2.41973 13.3713 3.04475 13.9001 3.77673 13.9003H12.223C12.9551 13.9002 13.58 13.3713 13.7006 12.6493L13.9457 11.1747L15.3695 11.411ZM8.72205 8.994C8.77717 8.93934 8.83792 8.88106 8.90271 8.81627L12.4828 5.23424L13.5043 6.25572L9.92224 9.8358C9.6395 10.1185 9.38763 10.3732 9.15857 10.5575C8.91892 10.7503 8.63953 10.9224 8.2865 10.9784C8.09711 11.0083 7.90363 11.0083 7.71423 10.9784C7.36106 10.9224 7.0809 10.7503 6.84119 10.5575C6.61215 10.3732 6.36022 10.1185 6.07751 9.8358L2.49646 6.25572L3.51697 5.23424L7.09705 8.81627C7.16219 8.88142 7.22331 8.94006 7.27869 8.99498V1.3065H8.72205V8.994Z",fill:"currentColor"})}),GE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z",fill:"currentColor"})}),WE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",children:[o.jsx("path",{d:"M5.19629 1.57104C5.81144 1.5711 6.38623 1.8786 6.72754 2.39038L7.19922 3.09839C7.28454 3.22635 7.42824 3.30344 7.58203 3.30347H12.1699C13.5039 3.30348 14.5859 4.38548 14.5859 5.71948V6.62671C15.2694 7.02689 15.6605 7.85012 15.4385 8.68726L14.3848 12.658C14.1037 13.7164 13.1449 14.4527 12.0498 14.4529H2.91699C1.51651 14.4529 0.451662 13.2814 0.501954 11.9519V3.98706C0.501954 2.65305 1.58396 1.57104 2.91797 1.57104H5.19629ZM3.7793 7.75562C3.30994 7.75562 2.89883 8.07153 2.77832 8.52515L1.91602 11.7722C1.74167 12.4291 2.23734 13.073 2.91699 13.073H12.0498C12.5191 13.0728 12.9304 12.757 13.0508 12.3035L14.1045 8.33374C14.1819 8.04202 13.9619 7.756 13.6602 7.75562H3.7793ZM2.91797 2.9519C2.34625 2.9519 1.88281 3.41534 1.88281 3.98706V7.2937C2.33068 6.7269 3.02249 6.37476 3.7793 6.37476H13.2051V5.71948C13.2051 5.14777 12.7416 4.68434 12.1699 4.68433H7.58203C6.96675 4.6843 6.39209 4.37595 6.05078 3.86401L5.5791 3.15601C5.49379 3.02821 5.34995 2.95196 5.19629 2.9519H2.91797Z",fill:"currentColor"}),o.jsx("path",{opacity:"0.2",d:"M13.6602 7.75525C13.9618 7.7556 14.1815 8.04179 14.1045 8.33337L13.0508 12.3031C12.9304 12.7567 12.5191 13.0725 12.0498 13.0726H2.91701C2.23744 13.0725 1.7417 12.4287 1.91603 11.7719L2.77834 8.52478C2.89898 8.07146 3.31018 7.75532 3.77931 7.75525H13.6602ZM5.1963 2.95154C5.34985 2.95159 5.49377 3.02803 5.57912 3.15564L6.0508 3.86365C6.39205 4.37553 6.96685 4.68385 7.58205 4.68396H12.1699C12.7416 4.68396 13.2049 5.14754 13.2051 5.71912V6.37439H3.77931C3.02267 6.37444 2.33067 6.72671 1.88283 7.29333V3.98669C1.88299 3.4152 2.34649 2.95168 2.91798 2.95154H5.1963Z",fill:"currentColor"})]}),ZE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{transform:"translate(1.5 2.429)",d:"M5.05582 0.518756L4.50669 0.86654L5.05582 0.518756ZM13 9.4837L13.65 9.4837L13.65 3.53962L13 3.53962L12.35 3.53962L12.35 9.4837L13 9.4837ZM11.3264 1.86603L11.3264 1.21603L6.52313 1.21603L6.52313 1.86603L6.52313 2.51603L11.3264 2.51603L11.3264 1.86603ZM5.58054 1.34727L6.12968 0.999489L5.60495 0.170972L5.05582 0.518756L4.50669 0.86654L5.03141 1.69506L5.58054 1.34727ZM4.11323 1.23058e-13L4.11323 -0.65L1.67359 -0.65L1.67359 5.00699e-14L1.67359 0.65L4.11323 0.65L4.11323 1.23058e-13ZM0 1.67359L-0.65 1.67359L-0.65 9.4837L0 9.4837L0.65 9.4837L0.65 1.67359L0 1.67359ZM11.3264 11.1573L11.3264 10.5073L1.67359 10.5073L1.67359 11.1573L1.67359 11.8073L11.3264 11.8073L11.3264 11.1573ZM0 9.4837L-0.65 9.4837C-0.65 10.767 0.390308 11.8073 1.67359 11.8073L1.67359 11.1573L1.67359 10.5073C1.10828 10.5073 0.65 10.049 0.65 9.4837L0 9.4837ZM1.67359 5.00699e-14L1.67359 -0.65C0.390307 -0.65 -0.65 0.390309 -0.65 1.67359L0 1.67359L0.65 1.67359C0.65 1.10828 1.10828 0.65 1.67359 0.65L1.67359 5.00699e-14ZM5.05582 0.518756L5.60495 0.170972C5.28121 -0.340193 4.71829 -0.65 4.11323 -0.65L4.11323 1.23058e-13L4.11323 0.65C4.27282 0.65 4.4213 0.731715 4.50669 0.86654L5.05582 0.518756ZM6.52313 1.86603L6.52313 1.21603C6.36354 1.21603 6.21507 1.13431 6.12968 0.999489L5.58054 1.34727L5.03141 1.69506C5.35515 2.20622 5.91808 2.51603 6.52313 2.51603L6.52313 1.86603ZM13 3.53962L13.65 3.53962C13.65 2.25634 12.6097 1.21603 11.3264 1.21603L11.3264 1.86603L11.3264 2.51603C11.8917 2.51603 12.35 2.97431 12.35 3.53962L13 3.53962ZM13 9.4837L12.35 9.4837C12.35 10.049 11.8917 10.5073 11.3264 10.5073L11.3264 11.1573L11.3264 11.8073C12.6097 11.8073 13.65 10.767 13.65 9.4837L13 9.4837Z",fill:"currentColor"})}),QE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M11.3496 8C11.3496 6.14985 9.85015 4.65039 8 4.65039C6.14985 4.65039 4.65039 6.14985 4.65039 8C4.65039 9.85015 6.14985 11.3496 8 11.3496C9.85015 11.3496 11.3496 9.85015 11.3496 8ZM12.6504 8C12.6504 10.5681 10.5681 12.6504 8 12.6504C5.43188 12.6504 3.34961 10.5681 3.34961 8C3.34961 5.43188 5.43188 3.34961 8 3.34961C10.5681 3.34961 12.6504 5.43188 12.6504 8Z",fill:"currentColor"}),o.jsx("path",{d:"M8.65039 0.5V2.5H7.34961V0.5H8.65039Z",fill:"currentColor"}),o.jsx("path",{d:"M8.65039 13.5V15.5H7.34961V13.5H8.65039Z",fill:"currentColor"}),o.jsx("path",{d:"M3.15808 2.24035L4.57229 3.65456L3.6525 4.57435L2.23829 3.16014L3.15808 2.24035Z",fill:"currentColor"}),o.jsx("path",{d:"M12.3505 11.4327L13.7647 12.8469L12.8449 13.7667L11.4307 12.3525L12.3505 11.4327Z",fill:"currentColor"}),o.jsx("path",{d:"M2.24537 12.8469L3.65958 11.4327L4.57937 12.3525L3.16516 13.7667L2.24537 12.8469Z",fill:"currentColor"}),o.jsx("path",{d:"M11.4377 3.65455L12.852 2.24033L13.7718 3.16012L12.3575 4.57434L11.4377 3.65455Z",fill:"currentColor"}),o.jsx("path",{d:"M0.5 7.35461H2.5V8.6554H0.5L0.5 7.35461Z",fill:"currentColor"}),o.jsx("path",{d:"M13.5 7.35461H15.5V8.6554H13.5V7.35461Z",fill:"currentColor"})]}),XE=({size:e=16,className:t})=>o.jsx("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M13.2764 9.52324C12.5607 9.97754 11.7177 10.242 10.7812 10.242C8.11386 10.2419 5.95042 8.07997 5.9502 5.41289C5.9502 4.48128 6.21453 3.61071 6.67188 2.87285C4.30332 3.4658 2.54992 5.60845 2.5498 8.16093C2.5498 11.1712 4.99103 13.6102 8 13.6102C10.5383 13.6102 12.6709 11.8724 13.2764 9.52324ZM7.05078 5.41289C7.051 7.47224 8.72116 9.1423 10.7812 9.14238C11.9248 9.14238 12.887 8.63397 13.5781 7.8084C13.7266 7.63106 13.9701 7.56547 14.1875 7.64433C14.4049 7.72329 14.5497 7.9297 14.5498 8.16093C14.5498 11.7766 11.6161 14.7098 8 14.7098C4.38402 14.7098 1.4502 11.7792 1.4502 8.16093C1.45033 4.54322 4.3812 1.61015 8 1.61015C8.23027 1.61015 8.43585 1.75352 8.51562 1.96953C8.59536 2.18554 8.53241 2.42829 8.35742 2.57793C7.55573 3.26311 7.05078 4.27876 7.05078 5.41289Z",fill:"currentColor"})}),YE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12.1665 13.5811V14.7803H3.66651V13.5811H12.1665Z",fill:"currentColor"}),o.jsx("path",{d:"M13.4453 7.02379C13.4453 6.04702 13.4452 5.3616 13.3887 4.83434C13.3333 4.31828 13.2302 4.02378 13.0723 3.80309C12.9446 3.62475 12.7877 3.46883 12.6094 3.34117C12.3887 3.18328 12.0942 3.08007 11.5781 3.02477C11.0508 2.96829 10.3655 2.96715 9.38867 2.96715H6.61035C5.63359 2.96715 4.94816 2.96827 4.4209 3.02477C3.90486 3.0801 3.61034 3.18321 3.38965 3.34117C3.21143 3.46878 3.05534 3.62487 2.92774 3.80309C2.76977 4.02377 2.66667 4.3183 2.61133 4.83434C2.55483 5.3616 2.55371 6.04702 2.55371 7.02379C2.55371 8.0006 2.55485 8.68596 2.61133 9.21324C2.66663 9.72936 2.76983 10.0238 2.92774 10.2445C3.0554 10.4228 3.21131 10.5797 3.38965 10.7074C3.61034 10.8654 3.90484 10.9685 4.4209 11.0238C4.94816 11.0803 5.63359 11.0804 6.61035 11.0804H9.38867C10.3654 11.0804 11.0508 11.0803 11.5781 11.0238C12.0941 10.9685 12.3887 10.8652 12.6094 10.7074C12.7877 10.5797 12.9446 10.4229 13.0723 10.2445C13.2301 10.0238 13.3334 9.72927 13.3887 9.21324C13.4452 8.68596 13.4453 8.00058 13.4453 7.02379ZM14.6455 7.02379C14.6455 7.97428 14.646 8.73509 14.5811 9.34117C14.5149 9.95828 14.3756 10.4858 14.0479 10.9437C13.8436 11.229 13.5938 11.4788 13.3086 11.683C12.8507 12.0108 12.3232 12.15 11.7061 12.2162C11.1 12.2811 10.3391 12.2806 9.38867 12.2806H6.61035C5.66018 12.2806 4.89991 12.2811 4.29395 12.2162C3.67684 12.15 3.14935 12.0108 2.69141 11.683C2.40613 11.4788 2.15639 11.229 1.95215 10.9437C1.62436 10.4858 1.4841 9.95828 1.41797 9.34117C1.35305 8.73511 1.35449 7.97424 1.35449 7.02379C1.35449 6.07366 1.35308 5.31333 1.41797 4.70738C1.4841 4.09028 1.62436 3.56279 1.95215 3.10485C2.15638 2.81956 2.40613 2.56982 2.69141 2.36559C3.14935 2.03779 3.67684 1.89753 4.29395 1.83141C4.8999 1.76652 5.66022 1.76793 6.61035 1.76793H9.38867C10.3391 1.76793 11.1 1.76649 11.7061 1.83141C12.3232 1.89753 12.8507 2.03779 13.3086 2.36559C13.5939 2.56982 13.8436 2.81957 14.0479 3.10485C14.3756 3.56279 14.5149 4.09028 14.5811 4.70738C14.646 5.31335 14.6455 6.07362 14.6455 7.02379Z",fill:"currentColor"})]}),KE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0997 8.54554C12.2905 8.54989 12.3541 8.58056 12.4535 8.74614L12.8849 9.46387C12.9851 9.63071 13.0464 9.66013 13.2388 9.66447H14.1138C14.3417 9.66448 14.3512 9.66937 14.4686 9.86507L14.892 10.5717C14.9942 10.7422 14.9948 10.8247 14.892 10.9961L14.4756 11.6906C14.3741 11.8677 14.3694 11.9379 14.4756 12.115L14.892 12.8096C14.9942 12.9801 14.9947 13.0625 14.892 13.234L14.4686 13.9406C14.3643 14.1028 14.3063 14.1354 14.1138 14.1412H13.2388C13.0465 14.1456 12.985 14.1752 12.8849 14.3418L12.4535 15.0595C12.353 15.2195 12.2895 15.2558 12.0997 15.2601H11.2237C10.9962 15.2601 10.9871 15.2548 10.8699 15.0595L10.4384 14.3418C10.3383 14.175 10.2767 14.1456 10.0846 14.1412H9.2096C9.01854 14.1355 8.95761 14.1006 8.85477 13.9406L8.43139 13.234C8.32562 13.0576 8.33148 12.9862 8.43139 12.8096L8.84771 12.115C8.95165 11.9416 8.94659 11.863 8.84771 11.6906L8.43139 10.9961C8.32767 10.8232 8.33411 10.7437 8.43139 10.5717L8.85477 9.86507C8.95447 9.69891 9.01875 9.67017 9.2096 9.66447H10.0846C10.2741 9.66441 10.3414 9.62547 10.4384 9.46387L10.8699 8.74614C10.987 8.55106 10.9963 8.54554 11.2237 8.54554H12.0997ZM11.6612 10.232C11.3326 10.7798 10.8155 11.0948 10.1743 11.106C10.4443 11.61 10.4425 12.1976 10.1743 12.6987C10.803 12.7096 11.3391 13.0359 11.6612 13.5727C11.9855 13.0323 12.5131 12.7098 13.148 12.6987C12.879 12.196 12.8789 11.6086 13.148 11.106C12.5076 11.0948 11.9894 10.7794 11.6612 10.232Z",fill:"currentColor"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51205 0.790627C9.19055 0.790649 10.7401 1.0691 11.892 1.54364C12.4664 1.78029 12.9719 2.07885 13.3436 2.4408C13.7171 2.80467 13.9916 3.27253 13.9918 3.82384V7.90442C13.6067 7.69532 13.1907 7.53597 12.7529 7.43366V5.66454C12.4928 5.82898 12.2028 5.97601 11.892 6.10405C10.74 6.57865 9.19071 6.85706 7.51205 6.85706C5.8337 6.85703 4.285 6.57852 3.13309 6.10405C2.82215 5.97593 2.53164 5.8291 2.27121 5.66454V7.4135C2.27134 7.75678 2.6066 8.27106 3.62502 8.73405C4.58641 9.17097 5.95762 9.45591 7.50499 9.45681C7.24582 9.83133 7.03684 10.2434 6.88706 10.6826C5.44388 10.6162 4.12516 10.3216 3.11192 9.86104C2.81708 9.72698 2.53185 9.56866 2.27121 9.38928V11.2542C2.27158 11.5974 2.60697 12.1109 3.62502 12.5737C4.41933 12.9347 5.4937 13.1898 6.71569 13.2693C6.80349 13.7128 6.9513 14.1345 7.14814 14.5273C5.60324 14.4862 4.18593 14.1889 3.11192 13.7007C2.01039 13.1998 1.03366 12.3814 1.03333 11.2542V3.82384C1.03352 3.27273 1.30721 2.80461 1.68049 2.4408C2.05211 2.07893 2.55887 1.78026 3.13309 1.54364C4.28492 1.06926 5.83393 0.790683 7.51205 0.790627ZM7.51205 2.02851C5.95492 2.02857 4.57354 2.29079 3.60486 2.68979C3.11958 2.88977 2.76667 3.11253 2.5454 3.32788C2.32671 3.54101 2.2714 3.7089 2.27121 3.82384C2.27121 3.93882 2.32624 4.10625 2.5454 4.3198C2.76667 4.53527 3.11927 4.75781 3.60486 4.9579C4.5736 5.35699 5.95467 5.61914 7.51205 5.61918C9.06942 5.61918 10.4505 5.35695 11.4192 4.9579C11.9051 4.75773 12.2584 4.53536 12.4797 4.3198C12.6988 4.10627 12.7529 3.93882 12.7529 3.82384C12.7527 3.70889 12.6984 3.54104 12.4797 3.32788C12.2584 3.11239 11.9049 2.88989 11.4192 2.68979C10.4505 2.29079 9.06925 2.02853 7.51205 2.02851Z",fill:"currentColor"})]}),JE=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M6.1 3.1Q6.6 7.8 11.3 8.3Q6.6 8.8 6.1 13.5Q5.6 8.8 0.9 8.3Q5.6 7.8 6.1 3.1Z",fill:"currentColor"}),o.jsx("path",{d:"M11.9 1Q12.2 3.7 14.9 4Q12.2 4.3 11.9 7Q11.6 4.3 8.9 4Q11.6 3.7 11.9 1Z",fill:"currentColor"}),o.jsx("path",{d:"M12.5 9.4Q12.7 11.4 14.7 11.6Q12.7 11.8 12.5 13.8Q12.3 11.8 10.3 11.6Q12.3 11.4 12.5 9.4Z",fill:"currentColor"})]}),eD=({size:e=16,className:t})=>o.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z",fill:"currentColor"}),o.jsx("path",{d:"M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z",fill:"currentColor"})]});var xp={};function Le({variant:e="ghost",size:t="md",icon:n,className:r,children:a,...l}){return o.jsxs("button",{type:"button",className:nt(xp.button,xp[e],xp[t],r),...l,children:[n!=null&&o.jsx("span",{className:xp.icon,children:n}),a]})}var Wh={};function La({icon:e,className:t,...n}){return o.jsxs("span",{className:nt(Wh.wrap,t),children:[e!=null&&o.jsx("span",{className:Wh.icon,children:e}),o.jsx("input",{className:Wh.input,...n})]})}async function tD(e){var r;if((r=navigator.clipboard)!=null&&r.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const t=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(t===void 0)return!1;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.left="-9999px",document.body.appendChild(n),n.select();try{return t("copy")}catch{return!1}finally{n.remove()}}var ts={};function rr({open:e,onClose:t,title:n,closeLabel:r="Close",description:a,children:l,footer:i,className:u,contentClassName:d,headless:m=!1}){return $.useEffect(()=>{if(!e)return;const f=h=>{h.key==="Escape"&&t()};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[e,t]),e?yx.createPortal(o.jsxs("div",{className:ts.root,role:"presentation",children:[o.jsx("div",{className:ts.mask,"aria-hidden":"true",onClick:t}),o.jsx("div",{className:nt(ts.dialog,u),role:"dialog","aria-modal":"true","aria-label":n,children:m?l:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:nt(ts.content,d),children:[o.jsxs("div",{className:ts.header,children:[o.jsx("h2",{className:ts.title,children:n}),o.jsx("button",{type:"button",className:ts.close,"aria-label":r,onClick:t,children:o.jsx(OE,{size:14})})]}),a!==void 0&&a!==""&&o.jsx("p",{className:ts.description,children:a}),l!==void 0&&o.jsx("div",{className:ts.body,children:l})]}),i!==void 0&&o.jsx("div",{className:ts.footer,children:i})]})})]}),document.body):null}var nD={};function rD({reconnecting:e,label:t="连接已断开,正在重连…"}){return e?o.jsx("div",{className:nD.banner,children:t}):null}const aD=[rk,ok,ik],oD=new Map([["python",()=>cn(()=>import("./python-B6aJPvgy.js"),[],import.meta.url)],["ruby",()=>cn(()=>import("./ruby-D1wBOK7G.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)],["go",()=>cn(()=>import("./go-C27-OAKa.js"),[],import.meta.url)],["rust",()=>cn(()=>import("./rust-B1yitclQ.js"),[],import.meta.url)],["java",()=>cn(()=>import("./java-CylS5w8V.js"),[],import.meta.url)],["c",()=>cn(()=>import("./c-BIGW1oBm.js"),[],import.meta.url)],["cpp",()=>cn(()=>import("./cpp-DddhVWhK.js"),__vite__mapDeps([6,7]),import.meta.url)],["csharp",()=>cn(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url)],["kotlin",()=>cn(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url)],["swift",()=>cn(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url)],["php",()=>cn(()=>import("./php-DTPkbJvq.js"),__vite__mapDeps([10,1,2,3,4,5]),import.meta.url)],["yaml",()=>cn(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url)],["toml",()=>cn(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url)],["ini",()=>cn(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url)],["markdown",()=>cn(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url)],["mdx",()=>cn(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url)],["html",()=>cn(()=>import("./html-CfGypltT.js").then(e=>e.a),__vite__mapDeps([1,2]),import.meta.url)],["css",()=>cn(()=>import("./css-CLj8gQPS.js"),[],import.meta.url)],["scss",()=>cn(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([11,2]),import.meta.url)],["less",()=>cn(()=>import("./less-B1dDrJ26.js"),[],import.meta.url)],["sql",()=>cn(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url)],["xml",()=>cn(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]),import.meta.url)],["lua",()=>cn(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([8,7]),import.meta.url)]]),sD=new Map([["typescript","typescript"],["ts","typescript"],["tsx","typescript"],["javascript","typescript"],["js","typescript"],["jsx","typescript"],["shellscript","shellscript"],["bash","shellscript"],["sh","shellscript"],["shell","shellscript"],["zsh","shellscript"],["json","json"],["jsonc","json"],["py","python"],["python","python"],["rb","ruby"],["ruby","ruby"],["go","go"],["rs","rust"],["rust","rust"],["java","java"],["c","c"],["cpp","cpp"],["cs","csharp"],["csharp","csharp"],["kotlin","kotlin"],["swift","swift"],["php","php"],["yaml","yaml"],["yml","yaml"],["toml","toml"],["ini","ini"],["md","markdown"],["markdown","markdown"],["mdx","mdx"],["html","html"],["css","css"],["scss","scss"],["less","less"],["sql","sql"],["xml","xml"],["lua","lua"]]),iD=gj({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),lD=tk({forgiving:!0,regexConstructor:e=>Ab(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let Jv;const cD=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function uD(){const e=fj({themes:[iD],langs:aD,engine:lD});for(const t of cD)e.codeToTokens(t.code,{lang:t.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function Jp(){return Jv??(Jv=uD()),Jv}const e5=new Set,e2=new Set;let e8=0;function dD(e){return e2.add(e),()=>{e2.delete(e)}}function t5(){return e8}function pD(e){const t=oD.get(e);return t===void 0||Jp().getLoadedLanguages().includes(e)?!0:(e5.has(e)||(e5.add(e),t().then(n=>{Jp().loadLanguageSync(n.default),e8+=1;for(const r of e2)r()})),!1)}var m6,h6;(h6=(m6=setTimeout(()=>{Jp()},0)).unref)==null||h6.call(m6);function mD(e,t){const n=t===void 0?void 0:sD.get(t.toLowerCase());if(n!==void 0&&pD(n))return Jp().codeToHtml(e,{lang:n,theme:"css-variables"})}const hD=2;function n5(e,t,n){var a;const r=(a=e.position)==null?void 0:a.start.offset;return r===void 0?-(n+1):t+r}var fD=class{constructor(e){ce(this,"parse");ce(this,"prevText","");ce(this,"tailStart",0);ce(this,"frozen",[]);ce(this,"generation",0);ce(this,"cached",null);this.parse=e}update(e){var l,i;if(this.cached!==null&&e===this.prevText)return this.cached;e.startsWith(this.prevText)||(this.prevText="",this.tailStart=0,this.frozen=[],this.generation+=1),this.prevText=e;const t=this.tailStart,n=this.parse(e.slice(t)).children;let r=Math.max(0,n.length-hD);if(r>0){const u=(i=(l=n[r-1])==null?void 0:l.position)==null?void 0:i.end.offset;if(u===void 0)r=0;else{for(const d of n.slice(0,r))this.frozen.push({node:d,key:n5(d,t,this.frozen.length)});this.tailStart=t+u}}const a=n.slice(r).map((u,d)=>({node:u,key:n5(u,t,d)}));return this.cached={frozen:[...this.frozen],tail:a,generation:this.generation},this.cached}};const gD=new RegExp(["\\p{Script_Extensions=Han}","\\p{Script_Extensions=Hiragana}","\\p{Script_Extensions=Katakana}","\\p{Script_Extensions=Hangul}","\\p{Script_Extensions=Bopomofo}"].join("|"),"u");function vD(e){return e!==null&&e>=0&&gD.test(String.fromCodePoint(e))}const bD=function(e,t,n){const r=this.parser.constructs.attentionMarkers.null;if(r===void 0)throw new Error("micromark CommonMark attention markers are unavailable");const a=r,l=this.previous,i=Xc(l);let u=Ct.eof;return d;function d(f){return f!==Ct.asterisk?n(f):(u=f,e.enter("attentionSequence"),m(f))}function m(f){if(f===u)return e.consume(f),m;const h=e.exit("attentionSequence"),b=Xc(f),y=!b||b===Jf.characterGroupPunctuation&&!!i||a.includes(f),g=!i||i===Jf.characterGroupPunctuation&&!!b||a.includes(l),_=h.end.offset-h.start.offset>=2&&W0(l)&&vD(f),C=g||_;return h._open=y,h._close=C,t(f)}},yD={name:"cjkFriendlyAttention",resolveAll:Wp.resolveAll,tokenize:bD},xD={text:{[Ct.asterisk]:yD}};function t8(){return xD}const _D=function(e){if(e!==Ct.backslash)return!0;const t=this.events.at(-1);return t===void 0?!1:t[1].type===za.characterEscape},wD=function(e,t,n){return r;function r(y){return y!==Ct.backslash?n(y):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(y),a)}function a(y){return y!==Ct.leftParenthesis?n(y):(e.consume(y),e.exit("mathTextSequence"),l)}function l(y){return y===Ct.eof?n(y):y===Ct.backslash?e.attempt({partial:!0,tokenize:h},f,i)(y):Ue(y)?(e.enter(za.lineEnding),e.consume(y),e.exit(za.lineEnding),l):u(y)}function i(y){return e.check({partial:!0,tokenize:b},n,u)(y)}function u(y){return e.enter("mathTextData"),e.consume(y),y===Ct.backslash?d:m}function d(y){return y===Ct.backslash?(e.consume(y),m):m(y)}function m(y){return y===Ct.eof||y===Ct.backslash||Ue(y)?(e.exit("mathTextData"),l(y)):(e.consume(y),m)}function f(y){return e.exit("mathText"),t(y)}function h(y,g,_){return C;function C(S){return S!==Ct.backslash?_(S):(y.enter("mathTextSequence"),y.consume(S),k)}function k(S){return S!==Ct.rightParenthesis?_(S):(y.consume(S),y.exit("mathTextSequence"),g)}}function b(y,g,_){return C;function C(S){return S!==Ct.backslash?_(S):(y.enter(za.chunkString),y.consume(S),k)}function k(S){return S!==Ct.leftParenthesis?_(S):(y.consume(S),y.exit(za.chunkString),g)}}};function n8(e,t,n,r){const a=function(l,i,u){const d=this;let m=!1;const f=d.events.at(-1),h=(f==null?void 0:f[1].type)===za.linePrefix?f[2].sliceSerialize(f[1],!0).length:0;return b;function b(O){return O!==e?u(O):(l.enter("mathFlow"),l.enter("mathFlowFence"),l.enter("mathFlowFenceSequence"),l.consume(O),y)}function y(O){return O!==t?u(O):(l.consume(O),l.exit("mathFlowFenceSequence"),l.exit("mathFlowFence"),e===Ct.dollarSign?g:_)}function g(O){return O===Ct.dollarSign?u(O):_(O)}function _(O){return O===Ct.eof?u(O):O===e&&(e!==Ct.dollarSign||!m)?l.attempt({partial:!0,tokenize:F},L,C)(O):Ue(O)?r?l.attempt(CD,k,u)(O):u(O):S(O)}function C(O){return e===Ct.backslash?l.check({partial:!0,tokenize:G},u,A)(O):A(O)}function k(O){return l.attempt({partial:!0,tokenize:F},L,h?ft(l,_,za.linePrefix,h+1):_)(O)}function S(O){return l.enter("mathFlowValue"),m=O===Ct.backslash,l.consume(O),M}function A(O){return l.enter("mathFlowValue"),m=!1,l.consume(O),I}function I(O){return O===e?(l.consume(O),M):M(O)}function M(O){return O===Ct.eof||O===e||Ue(O)?(l.exit("mathFlowValue"),_(O)):(m=O===Ct.backslash?!m:!1,l.consume(O),M)}function L(O){return l.exit("mathFlow"),i(O)}function F(O,B,W){return ft(O,re,za.linePrefix,Jf.tabSize);function re(ne){return ne!==e?W(ne):(O.enter("mathFlowFence"),O.enter("mathFlowFenceSequence"),O.consume(ne),fe)}function fe(ne){return ne!==n?W(ne):(O.consume(ne),O.exit("mathFlowFenceSequence"),ft(O,he,za.whitespace))}function he(ne){return ne!==Ct.eof&&!Ue(ne)?W(ne):(O.exit("mathFlowFence"),B(ne))}}function G(O,B,W){return re;function re(he){return he!==e?W(he):(O.enter(za.chunkString),O.consume(he),fe)}function fe(he){return he!==t?W(he):(O.consume(he),O.exit(za.chunkString),B)}}};return{concrete:!0,name:e===Ct.dollarSign?"sameLineDollarMathFlow":"backslashMathFlow",tokenize:a}}const jD=function(e,t,n){const r=this;return a;function a(i){return i===Ct.eof?t(i):Ue(i)?(e.enter(za.lineEnding),e.consume(i),e.exit(za.lineEnding),l):n(i)}function l(i){return r.parser.lazy[r.now().line]?n(i):t(i)}},CD={partial:!0,tokenize:jD},kD={name:"backslashMathText",previous:_D,tokenize:wD},ND=n8(Ct.backslash,Ct.leftSquareBracket,Ct.rightSquareBracket,!0),SD=n8(Ct.dollarSign,Ct.dollarSign,Ct.dollarSign,!1),$D={flow:{[Ct.backslash]:ND,[Ct.dollarSign]:SD},text:{[Ct.backslash]:kD}};function AD(){return $D}function ED(e){return Hb(e,{extensions:[n7(),t8()],mdastExtensions:[Wb()]})}function DD(e){return Hb(e,{extensions:[n7(),t8(),AD(),R$()],mdastExtensions:[Wb(),e$()]})}var Al={};function r8({code:e,lang:t,className:n,copyLabel:r="复制",copiedLabel:a="复制成功"}){const l=e.endsWith(`
|
|
451
|
-
`)?e.slice(0,-1):e,i=$.useMemo(()=>mD(l,t),[l,t,$.useSyncExternalStore(dD,t5,t5)]),u=$.useRef(null),[d,m]=$.useState(!1),f=$.useCallback(()=>{var b,y;d||tD(((y=(b=u.current)==null?void 0:b.querySelector("pre"))==null?void 0:y.textContent)??l).then(g=>{g&&(m(!0),window.setTimeout(()=>{m(!1)},1e3))})},[d,l]),h=i===void 0?o.jsx("pre",{className:Al.plain,children:o.jsx("code",{children:l})}):o.jsx("div",{dangerouslySetInnerHTML:{__html:i}});return o.jsxs("div",{ref:u,className:nt(Al.block,"md-code-block",n),children:[o.jsx("div",{className:Al.bannerWrap,children:o.jsxs("div",{className:Al.banner,children:[o.jsx("div",{className:Al.infostring,children:t??""}),o.jsx("div",{className:Al.action,children:o.jsx("button",{type:"button",className:Al.copyButton,onClick:f,children:d?a:r})})]})}),h]})}function zD(e){const t={};for(const n of e.split(";")){const r=n.indexOf(":");if(r===-1)continue;const a=n.slice(0,r).trim().replace(/-([a-z])/g,(l,i)=>i.toUpperCase());t[a]=n.slice(r+1).trim()}return t}function a8(e,t){if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType!==Node.ELEMENT_NODE)return null;const n=e,r={key:t};for(const l of n.attributes)l.name==="class"?r.className=l.value:l.name==="style"?r.style=zD(l.value):r[l.name]=l.value;const a=[...n.childNodes].map(a8);return a.length===0?$.createElement(n.localName,r):$.createElement(n.localName,r,...a)}function t2(e,t){let n;try{n=Kv.renderToString(e,{displayMode:t,throwOnError:!0})}catch(r){try{n=Kv.renderToString(e,{displayMode:t,strict:"ignore",throwOnError:!1})}catch{return o.jsx("span",{className:"katex-error",style:{color:"#cc0000"},title:String(r),children:e})}}return[...new DOMParser().parseFromString(n,"text/html").body.childNodes].map(a8)}var P0={};function o8(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}function TD(e){try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function n2(){return{definitions:new Map,footnotes:new Map}}function em(e,t){for(const n of e){if(n.type==="definition"){const r=n.identifier.toUpperCase();t.definitions.has(r)||t.definitions.set(r,n)}else if(n.type==="footnoteDefinition"){const r=n.identifier.toUpperCase();t.footnotes.has(r)||t.footnotes.set(r,n)}"children"in n&&em(n.children,t)}}function r2(e,t){return e.map(n=>r4(n.node,n.key,t)).filter(n=>n!==null)}function n4(e,t){const n=[];for(const r of e)(t||n.length>0)&&n.push(`
|
|
452
|
-
`),n.push(r);return t&&e.length>0&&n.push(`
|
|
453
|
-
`),n}function s8(e,t){const n=[];for(const[r,a]of e.entries())if(a.type==="paragraph")n.push({paragraph:qo(a.children,t)});else{const l=r4(a,r,t);l!==null&&n.push({element:l})}return n}function qo(e,t){return e.map((n,r)=>r4(n,r,t))}function r4(e,t,n){var r;switch(e.type){case"text":return e.value;case"paragraph":return o.jsx("p",{children:qo(e.children,n)},t);case"heading":return $.createElement(`h${e.depth}`,{key:t},...qo(e.children,n));case"blockquote":return o.jsx("blockquote",{children:n4(qo(e.children,n).filter(a=>a!==null),!0)},t);case"thematicBreak":return o.jsx("hr",{},t);case"break":return o.jsxs($.Fragment,{children:[o.jsx("br",{}),`
|
|
454
|
-
`]},t);case"strong":return o.jsx("strong",{children:qo(e.children,n)},t);case"emphasis":return o.jsx("em",{children:qo(e.children,n)},t);case"delete":return o.jsx("del",{children:qo(e.children,n)},t);case"inlineCode":{const a=e.value.replace(/\r?\n|\r/g," "),l=RD(a);if(l!==void 0)return o.jsx("code",{children:c8(l,[a],"link")},t);const i=n.inLink===!0||(r=n.fileMentions)==null?void 0:r.resolve(a);return i!==void 0?o.jsx("code",{children:o.jsx("button",{type:"button",className:P0.fileMention,title:i.title,"aria-label":i.label,onClick:i.open,children:a})},t):o.jsx("code",{children:a},t)}case"html":return e.value;case"code":return MD(e,t,n);case"math":return o.jsx($.Fragment,{children:t2(e.value,!0)},t);case"inlineMath":return o.jsx($.Fragment,{children:t2(e.value,!1)},t);case"list":return ID(e,t,n);case"listItem":return l8(e,i8(e),t,n);case"table":return qD(e,t,n);case"link":return u8(e.url,qo(e.children,{...n,inLink:!0}),t);case"linkReference":return PD(e,t,n);case"image":return d8(e.url,e.alt??"",t);case"imageReference":return FD(e,t,n);case"footnoteReference":return OD(e,t,n);case"definition":case"footnoteDefinition":return null;default:return null}}function MD(e,t,n){var l,i,u;const r=e.lang??void 0;if(e.value==="")return o.jsx("pre",{children:o.jsx("code",{className:r===void 0?void 0:`language-${r}`})},t);const a=r===void 0||(l=/^[\w-]+/.exec(r))==null?void 0:l[0];return!n.streaming&&a==="math"?o.jsx($.Fragment,{children:t2(`${e.value}
|
|
455
|
-
`,!0)},t):o.jsx(r8,{code:`${e.value}
|
|
456
|
-
`,lang:n.streaming?void 0:a,copyLabel:(i=n.codeLabels)==null?void 0:i.copyLabel,copiedLabel:(u=n.codeLabels)==null?void 0:u.copiedLabel},t)}function LD(e){return(e.spread??!1)||e.children.some(i8)}function i8(e){return e.spread??e.children.length>1}function ID(e,t,n){const r=LD(e),a={};return typeof e.start=="number"&&e.start!==1&&(a.start=e.start),e.children.some(l=>typeof l.checked=="boolean")&&(a.className="contains-task-list"),$.createElement(e.ordered===!0?"ol":"ul",{key:t,...a},...e.children.map((l,i)=>l8(l,r,i,n)))}function l8(e,t,n,r){const a=s8(e.children,r),l=typeof e.checked=="boolean";if(l){const d=o.jsx("input",{type:"checkbox",checked:e.checked===!0,disabled:!0},"task-checkbox"),m=a[0];m!==void 0&&"paragraph"in m?m.paragraph=m.paragraph.length>0?[d," ",...m.paragraph]:[d]:a.unshift({paragraph:[d]})}const i=[];for(const[d,m]of a.entries()){const f="paragraph"in m;(t||d!==0||!f)&&i.push(`
|
|
457
|
-
`),f?t?i.push(o.jsx("p",{children:m.paragraph},`p-${d}`)):i.push(o.jsx($.Fragment,{children:m.paragraph},`p-${d}`)):i.push(m.element)}const u=a[a.length-1];return u!==void 0&&(t||!("paragraph"in u))&&i.push(`
|
|
458
|
-
`),o.jsx("li",{className:l?"task-list-item":void 0,children:i},n)}function qD(e,t,n){const r=e.align??null,[a,...l]=e.children;return o.jsx("div",{className:P0.tableScroll,children:o.jsxs("table",{children:[a!==void 0&&o.jsx("thead",{children:r5(a,"th",r,0,n)}),l.length>0&&o.jsx("tbody",{children:l.map((i,u)=>r5(i,"td",r,u+1,n))})]})},t)}function r5(e,t,n,r,a){const l=n===null?e.children.length:n.length,i=[];for(let u=0;u<l;u++){const d=e.children[u],m=n==null?void 0:n[u];i.push($.createElement(t,{key:u,style:m==null?void 0:{textAlign:m}},...d===void 0?[]:qo(d.children,a)))}return o.jsx("tr",{children:i},r)}function c8(e,t,n){const r=o8(e);return r===""?o.jsx($.Fragment,{children:t},n):o.jsx("a",{href:r,...["http:","https:"].includes(new URL(r).protocol)?{target:"_blank",rel:"noopener noreferrer"}:{},children:t},n)}function u8(e,t,n){return c8(T2(e),t,n)}function RD(e){if(e.trim()===e)try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function d8(e,t,n){const r=TD(o8(T2(e)));return r===void 0?o.jsx("span",{className:P0.imageAlt,children:t},n):o.jsx("img",{className:P0.image,src:r,alt:t,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"},n)}function p8(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function PD(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?o.jsxs($.Fragment,{children:["[",qo(e.children,n),p8(e)]},t):u8(r.url,qo(e.children,{...n,inLink:!0}),t)}function FD(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?`![${e.alt??""}${p8(e)}`:d8(r.url,e.alt??"",t)}function OD(e,t,n){const r=e.identifier.toUpperCase(),a=n.footnoteCounts.get(r);return a===void 0&&n.footnoteOrder.push(r),n.footnoteCounts.set(r,(a??0)+1),o.jsx("sup",{children:String(n.footnoteOrder.indexOf(r)+1)},t)}function m8(e){const t=[];for(const n of e.footnoteOrder){const r=e.targets.footnotes.get(n);if(r===void 0)continue;const a=e.footnoteCounts.get(n)??0,l=[];for(let m=1;m<=a;m++)l.length>0&&l.push(" "),l.push("↩"),m>1&&l.push(o.jsx("sup",{children:String(m)},`re-${m}`));const i=s8(r.children,e),u=i[i.length-1],d=i.map((m,f)=>"paragraph"in m?o.jsxs("p",{children:[m.paragraph,m===u&&o.jsxs(o.Fragment,{children:[" ",l]})]},`p-${f}`):m.element);(u===void 0||!("paragraph"in u))&&d.push(...l),t.push(o.jsx("li",{id:`user-content-fn-${T2(n.toLowerCase())}`,children:n4(d,!0)},n))}return t.length===0?null:o.jsxs("section",{"data-footnotes":!0,className:"footnotes",children:[o.jsx("h2",{id:"footnote-label",className:"sr-only",children:"Footnotes"}),o.jsx("ol",{children:t})]},"footnotes")}function BD(e,t,n){const r=DD(e),a=n2();em(r.children,a);const l={streaming:!1,codeLabels:t,fileMentions:n,targets:a,footnoteOrder:[],footnoteCounts:new Map},i=n4(r2(r.children.map((d,m)=>({node:d,key:m})),l),!1),u=m8(l);return u===null?i:[...i,`
|
|
459
|
-
`,u]}var HD=class{constructor(e){ce(this,"codeLabels");ce(this,"parser",new fD(ED));ce(this,"generation",-1);ce(this,"frozenCount",0);ce(this,"frozenElements",[]);ce(this,"frozenTargets",n2());ce(this,"frozenFootnoteOrder",[]);ce(this,"frozenFootnoteCounts",new Map);ce(this,"lastText",null);ce(this,"lastRendered",[]);this.codeLabels=e}render(e){if(e===this.lastText)return this.lastRendered;const{frozen:t,tail:n,generation:r}=this.parser.update(e);r!==this.generation&&(this.generation=r,this.frozenCount=0,this.frozenElements=[],this.frozenTargets=n2(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=t.slice(this.frozenCount);em(a.map(m=>m.node),this.frozenTargets);const l={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(em(n.map(m=>m.node),l),a.length>0){const m={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:l,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},f=[...this.frozenElements];for(const h of r2(a,m))f.length>0&&f.push(`
|
|
460
|
-
`),f.push(h);this.frozenElements=f,this.frozenCount=t.length}const i={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:l,footnoteOrder:[...this.frozenFootnoteOrder],footnoteCounts:new Map(this.frozenFootnoteCounts)},u=[...this.frozenElements];for(const m of r2(n,i))u.length>0&&u.push(`
|
|
461
|
-
`),u.push(m);const d=m8(i);return d!==null&&u.push(`
|
|
462
|
-
`,d),this.lastText=e,this.lastRendered=u,this.lastRendered}};const Gl=$.memo(function({text:t,streaming:n=!1,codeLabels:r,fileMentions:a}){const l=$.useRef(null),i=$.useRef(r),u=$.useMemo(()=>n?((l.current===null||i.current!==r)&&(l.current=new HD(r),i.current=r),l.current.render(t)):(l.current=null,BD(t,r,a)),[t,n,r,a]);return o.jsx("div",{className:P0.markdown,children:u})});function Wl(e){if(!e.includes("$"))return e;const t=e.split(`
|
|
463
|
-
`);let n;return t.map(r=>{const a=/^\s*(`{3,}|~{3,})/.exec(r);return n!==void 0?(a!=null&&a[1][0]===n[0]&&a[1].length>=n.length&&(n=void 0),r):a!==null?(n=a[1],r):UD(r)}).join(`
|
|
464
|
-
`)}function UD(e){let t="",n=0;for(;n<e.length;){if(e[n]==="`"){let r=0;for(;e[n+r]==="`";)r++;const a="`".repeat(r),l=e.indexOf(a,n+r);if(l>=0){t+=e.slice(n,l+r),n=l+r;continue}t+=a,n+=r;continue}if(e[n]==="\\"&&n+1<e.length){t+=e.slice(n,n+2),n+=2;continue}t+=e[n]==="$"?"\\$":e[n],n++}return t}const Zl={copyLabel:"Copiar",copiedLabel:"Copiado"},VD="_planes_id60q_4",GD="_aviso_id60q_14",WD="_elegir_id60q_21",ZD="_pastilla_id60q_29 _secundario_1l1rx_39",QD="_boton_id60q_30 _secundario_1l1rx_39",XD="_cabecera_id60q_39",YD="_titulo_id60q_52",KD="_ruta_id60q_58",JD="_nota_id60q_68",ez="_tareas_id60q_74",tz="_tarea_id60q_74",nz="_fila_id60q_84",rz="_numero_id60q_99",az="_tituloDeTarea_id60q_105",oz="_estado_id60q_112",sz="_criterios_id60q_120",iz="_bloqueo_id60q_125",lz="_prosa_id60q_131",cz="_ficha_id60q_135",uz="_markdown_id60q_139",dz="_resumen_id60q_160",pz="_progreso_id60q_170",mz="_barra_id60q_201",hz="_pista_id60q_208",fz="_relleno_id60q_216",gz="_porcentaje_id60q_223",qt={planes:VD,aviso:GD,elegir:WD,pastilla:ZD,boton:QD,cabecera:XD,titulo:YD,ruta:KD,nota:JD,tareas:ez,tarea:tz,fila:nz,numero:rz,tituloDeTarea:az,estado:oz,criterios:sz,bloqueo:iz,prosa:lz,ficha:cz,markdown:uz,resumen:dz,progreso:pz,barra:mz,pista:hz,relleno:fz,porcentaje:gz};function vz({planes:e,error:t}){var b,y;const[n,r]=$.useState(void 0),[a,l]=$.useState(void 0),[i,u]=$.useState(!1);if($.useEffect(()=>{l(void 0),u(!1)},[n]),e===void 0)return o.jsx("p",{className:qt.aviso,children:t===void 0?"Leyendo los planes…":`No se han podido leer los planes: ${t}`});if(e.length===0)return o.jsx("p",{className:qt.aviso,children:"Este proyecto no tiene ningún plan."});const d=e.find(g=>g.nombre===n)??e[0],m=((b=d.tareas)==null?void 0:b.tareas)??[],f=m.filter(g=>g.criterios.total>0&&g.criterios.hechos===g.criterios.total).length,h=m.length>0&&m.every(g=>g.progreso!==void 0);return o.jsxs("div",{className:qt.planes,children:[e.length>1?o.jsx("div",{className:qt.elegir,role:"group","aria-label":"Planes del proyecto",children:e.map(g=>o.jsx("button",{type:"button",className:qt.pastilla,"aria-pressed":g.nombre===d.nombre,onClick:()=>r(g.nombre),children:g.nombre},g.nombre))}):null,o.jsxs("div",{className:qt.cabecera,children:[o.jsx("h2",{className:qt.titulo,children:((y=d.tareas)==null?void 0:y.titulo)??d.nombre}),o.jsx("span",{className:qt.ruta,children:`/planes/${d.nombre}/`}),d.plan===void 0?null:o.jsx("button",{type:"button",className:qt.boton,"aria-pressed":i,onClick:()=>u(g=>!g),children:i?"Ver las tareas":"Ver PLAN.md"})]}),i&&d.plan!==void 0?o.jsxs("div",{className:`${qt.markdown} md-cuerpo`,children:[d.plan.recortado?o.jsx("p",{className:qt.nota,children:"Recortado: el `PLAN.md` entero está en la carpeta del plan."}):null,o.jsx(Gl,{text:Wl(d.plan.texto),codeLabels:Zl})]}):d.tareas===void 0?o.jsx("p",{className:qt.aviso,children:`Este plan todavía no tiene tareas: tiene ${d.ficheros.length===0?"la carpeta vacía":d.ficheros.join(", ")}, y el TASKS.md es el que las descompone.`}):m.length===0?o.jsx("p",{className:qt.aviso,children:"El TASKS.md no tiene ninguna sección con forma de tarea («### 01 — Título»)."}):o.jsxs(o.Fragment,{children:[h?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:qt.resumen,"aria-label":"Por dónde va el plan",children:h8(m)}),o.jsx(f8,{tareas:m})]}):o.jsx("p",{className:qt.nota,children:`Según el plan: ${f} de ${m.length} ${m.length===1?"tarea":"tareas"} con todos sus criterios marcados. El estado y las casillas los marca el agente; nadie los ha medido.`}),o.jsx("ol",{className:qt.tareas,children:m.map(g=>o.jsx(yz,{tarea:g,abierta:a===g.numero,alPulsar:()=>l(_=>_===g.numero?void 0:g.numero)},g.numero))})]})]})}const a5={pendiente:"pendiente","en-curso":"en curso",implementada:"implementada, sin comprobar",finalizada:"finalizada: todos sus criterios comprobados"};function h8(e){const t=r=>e.filter(a=>a.progreso===r).length,n=[`${t("finalizada")} de ${e.length} finalizadas`];return t("implementada")>0&&n.push(`${t("implementada")} implementadas sin comprobar`),t("en-curso")>0&&n.push(`${t("en-curso")} en curso`),t("pendiente")>0&&n.push(`${t("pendiente")} pendientes`),`Según el plan: ${n.join(" · ")}.`}function bz(e){const t=e.reduce((r,a)=>r+a.criterios.total,0);if(t===0)return;const n=e.reduce((r,a)=>r+a.criterios.hechos,0);return{hechos:n,total:t,porcentaje:Math.round(n/t*100)}}function f8({tareas:e}){const t=bz(e);if(t===void 0)return null;const n=`${t.hechos} de ${t.total} criterios comprobados`;return o.jsxs("div",{className:qt.barra,children:[o.jsx("div",{className:qt.pista,role:"progressbar","aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.porcentaje,title:n,children:o.jsx("div",{className:qt.relleno,style:{width:`${t.porcentaje}%`}})}),o.jsx("span",{className:qt.porcentaje,children:`${t.porcentaje} %`})]})}function yz({tarea:e,abierta:t,alPulsar:n}){const r=e.bloqueadaPorTexto===void 0||/^[\dT\s,–—\-ay]+$/.test(e.bloqueadaPorTexto)||/^(ninguna|nada)\b[\s—–-]*(puede empezar ya)?\.?$/i.test(e.bloqueadaPorTexto);return o.jsxs("li",{className:qt.tarea,"data-progreso":e.progreso,children:[o.jsxs("button",{type:"button",className:qt.fila,"aria-expanded":t,onClick:n,children:[e.progreso===void 0?null:o.jsx("span",{className:qt.progreso,"data-progreso":e.progreso,role:"img","aria-label":a5[e.progreso],title:a5[e.progreso]}),o.jsx("span",{className:qt.numero,children:e.numero}),o.jsx("span",{className:qt.tituloDeTarea,children:e.titulo}),e.estado===void 0?null:o.jsx("span",{className:qt.estado,children:e.estado}),e.criterios.total===0?null:o.jsx("span",{className:qt.criterios,children:`${e.criterios.hechos} de ${e.criterios.total}`})]}),e.bloqueadaPor.length===0&&r?null:o.jsxs("p",{className:qt.bloqueo,children:[e.bloqueadaPor.length===0?"":`bloqueada por ${e.bloqueadaPor.join(", ")}`,r?null:o.jsx("span",{className:qt.prosa,children:`${e.bloqueadaPor.length===0?"":" · "}${e.bloqueadaPorTexto}`})]}),t?o.jsx("div",{className:`${qt.ficha} md-cuerpo`,children:o.jsx(Gl,{text:Wl(e.cuerpo),codeLabels:Zl})}):null]})}const xz="_caja_8ybgr_7",_z="_colecciones_8ybgr_5",wz="_detalle_8ybgr_21",jz="_lista_8ybgr_27",Cz="_aviso_8ybgr_52",kz="_vacio_8ybgr_59",Nz="_filtro_8ybgr_66",Sz="_fila_8ybgr_77",$z="_nombre_8ybgr_101",Az="_marca_8ybgr_108",Ez="_cuerpo_8ybgr_117",Dz="_cabecera_8ybgr_124",zz="_titulo_8ybgr_137",Tz="_ruta_8ybgr_143",Mz="_codigo_8ybgr_144",Lz="_recargar_8ybgr_157 _secundario_1l1rx_39",Iz="_seccion_8ybgr_162",qz="_seccionTitulo_8ybgr_166",Rz="_lineas_8ybgr_173",Pz="_campos_8ybgr_174",Fz="_tipo_8ybgr_196",Oz="_grupo_8ybgr_202",Bz="_subtitulo_8ybgr_212",Hz="_nota_8ybgr_218",Uz="_por_8ybgr_224",Vz="_desdeDonde_8ybgr_229",Gz="_enlace_8ybgr_236",et={caja:xz,colecciones:_z,detalle:wz,lista:jz,aviso:Cz,vacio:kz,filtro:Nz,fila:Sz,nombre:$z,marca:Az,cuerpo:Ez,cabecera:Dz,titulo:zz,ruta:Tz,codigo:Mz,recargar:Lz,seccion:Iz,seccionTitulo:qz,lineas:Rz,campos:Pz,tipo:Fz,grupo:Oz,subtitulo:Bz,nota:Hz,por:Uz,desdeDonde:Vz,enlace:Gz};function Wz({foto:e,error:t,conectado:n,alPedir:r,alAbrirFichero:a}){const l=e!==void 0||t!==void 0;$.useEffect(()=>{n===!1||l||r()},[l,n,r]);const[i,u]=$.useState(void 0),[d,m]=$.useState("");if(!l)return o.jsx("p",{className:et.aviso,children:"Leyendo el modelo del proyecto…"});if(e===void 0)return o.jsxs("p",{className:et.aviso,children:["No se ha podido leer el modelo del proyecto: ",t]});if(e.total===0)return o.jsxs("div",{className:et.vacio,children:[o.jsx("p",{className:et.aviso,children:"El índice no encuentra ninguna colección en este proyecto."}),o.jsx("button",{type:"button",className:et.recargar,onClick:r,children:"Volver a leer"})]});const f=new Map(e.colecciones.map(C=>[C.nombre.toLowerCase(),C])),h=C=>f.has(C.toLowerCase()),b=i===void 0?void 0:f.get(i.toLowerCase()),y=e.colecciones.filter(C=>C.nombre.toLowerCase().includes(d.trim().toLowerCase())),g=new Set(e.entrada.map(C=>C.toLowerCase())),_=new Set(e.login.map(C=>C.toLowerCase()));return o.jsx("div",{className:et.caja,children:o.jsxs("div",{className:et.colecciones,children:[o.jsx("div",{className:et.detalle,children:b===void 0?o.jsx(Zz,{foto:e,existe:h,alElegir:u,alPedir:r}):o.jsx(Qz,{coleccion:b,existe:h,alElegir:u,...a===void 0?{}:{alAbrirFichero:a}})}),o.jsxs("nav",{className:et.lista,"aria-label":"Colecciones del proyecto",children:[o.jsx("input",{className:et.filtro,type:"search",placeholder:"Filtrar colecciones","aria-label":"Filtrar colecciones",value:d,onChange:C=>m(C.target.value)}),o.jsx("button",{type:"button",className:et.fila,"aria-current":b===void 0?"true":void 0,onClick:()=>u(void 0),children:"Resumen del proyecto"}),y.map(C=>o.jsxs("button",{type:"button",className:et.fila,"aria-current":(b==null?void 0:b.nombre)===C.nombre?"true":void 0,onClick:()=>u(C.nombre),children:[o.jsx("span",{className:et.nombre,children:C.nombre}),g.has(C.nombre.toLowerCase())?o.jsx("span",{className:et.marca,children:"entrada"}):null,_.has(C.nombre.toLowerCase())?o.jsx("span",{className:et.marca,children:"login"}):null]},`${C.nombre}:${C.fichero}`)),e.total>e.colecciones.length?o.jsx("p",{className:et.nota,children:`Y ${e.total-e.colecciones.length} más que no caben en esta vista.`}):null]})]})})}function Zz({foto:e,existe:t,alElegir:n,alPedir:r}){return o.jsxs("div",{className:et.cuerpo,children:[o.jsxs("div",{className:et.cabecera,children:[o.jsx("h2",{className:et.titulo,children:`${e.total} ${e.total===1?"colección":"colecciones"}`}),o.jsx("button",{type:"button",className:et.recargar,onClick:r,children:"Volver a leer"})]}),o.jsx(Gc,{titulo:"Por dónde arranca",children:e.entrada.length===0&&e.login.length===0?o.jsx("p",{className:et.nota,children:"El `app.xml` no declara colecciones de entrada ni de login que el índice vea."}):o.jsxs("ul",{className:et.lineas,children:[e.entrada.map(a=>o.jsxs("li",{children:["entrada · ",o.jsx(tm,{nombre:a,existe:t,alElegir:n})]},`e:${a}`)),e.login.map(a=>o.jsxs("li",{children:["login · ",o.jsx(tm,{nombre:a,existe:t,alElegir:n})]},`l:${a}`))]})}),o.jsx(Gc,{titulo:"Referencias a colecciones que no existen",children:e.rotas.length===0?o.jsx("p",{className:et.nota,children:"Ninguna que el índice vea."}):o.jsx("ul",{className:et.lineas,children:e.rotas.map((a,l)=>o.jsxs("li",{children:[o.jsx(v8,{referencia:a,existe:t,alElegir:n}),` → ${a.hacia} `,o.jsx("span",{className:et.por,children:a.por})]},l))})})]})}function Qz({coleccion:e,existe:t,alElegir:n,alAbrirFichero:r}){return o.jsxs("div",{className:et.cuerpo,children:[o.jsxs("div",{className:et.cabecera,children:[o.jsx("h2",{className:et.titulo,children:e.nombre}),o.jsx("span",{className:et.ruta,children:e.fichero}),r===void 0?null:o.jsx("button",{type:"button",className:et.recargar,onClick:()=>r(e.fichero.replace(/^\//,"")),children:"Abrir"})]}),o.jsx(Gc,{titulo:`Campos · ${e.campos.length}`,children:e.campos.length===0?o.jsx("p",{className:et.nota,children:"Sin campos declarados."}):o.jsx("ul",{className:et.campos,children:e.campos.map(a=>o.jsxs("li",{children:[o.jsx("span",{className:et.codigo,children:a.nombre}),a.tipo===void 0?null:o.jsx("span",{className:et.tipo,children:a.tipo})]},a.nombre))})}),e.eventos.length+e.nodos.length+e.conexiones.length===0?null:o.jsx(Gc,{titulo:"Eventos, nodos y conexiones",children:o.jsxs("ul",{className:et.lineas,children:[e.eventos.map(a=>o.jsxs("li",{children:["evento · ",o.jsx("span",{className:et.codigo,children:a})]},`ev:${a}`)),e.nodos.map(a=>o.jsxs("li",{children:["nodo · ",o.jsx("span",{className:et.codigo,children:a})]},`no:${a}`)),e.conexiones.map(a=>o.jsxs("li",{children:["conexión · ",o.jsx("span",{className:et.codigo,children:a})]},`co:${a}`))]})}),o.jsx(Gc,{titulo:"Apunta a",children:e.apuntaA.length===0?o.jsx("p",{className:et.nota,children:"A nada que el índice vea."}):o.jsx(o5,{referencias:e.apuntaA,lado:"hacia",existe:t,alElegir:n})}),o.jsx(Gc,{titulo:"Le apuntan",children:e.leApuntan.length===0?o.jsxs("p",{className:et.nota,children:["Nada que el índice vea. No concluyas que no se usa: el índice no ve un"," ",o.jsx("span",{className:et.codigo,children:"getCollection(variable)"})," ni un nombre compuesto al ejecutar."]}):o.jsx(o5,{referencias:e.leApuntan,lado:"desde",existe:t,alElegir:n})})]})}const Xz=[{confianza:"resuelta",titulo:"Por atributo"},{confianza:"script",titulo:"Por script"},{confianza:"mencion",titulo:"Menciones",nota:"Señal floja: un texto que coincide con el nombre de una colección, no una llamada resuelta."}];function o5({referencias:e,lado:t,existe:n,alElegir:r}){return o.jsx(o.Fragment,{children:Xz.map(({confianza:a,titulo:l,nota:i})=>{const u=e.filter(d=>$y(d)===a);return u.length===0?null:o.jsxs("div",{className:et.grupo,"data-confianza":a,children:[o.jsx("p",{className:et.subtitulo,children:`${l} · ${u.length}`}),i===void 0?null:o.jsx("p",{className:et.nota,children:i}),o.jsx("ul",{className:et.lineas,children:u.map((d,m)=>o.jsxs("li",{children:[t==="hacia"?o.jsxs(o.Fragment,{children:[o.jsx(tm,{nombre:g8(d.hacia),existe:n,alElegir:r}),d.hacia.includes(".")?o.jsx("span",{className:et.codigo,children:d.hacia.slice(d.hacia.indexOf("."))}):null,o.jsx("span",{className:et.desdeDonde,children:` desde ${d.desde}`})]}):o.jsx(v8,{referencia:d,existe:n,alElegir:r})," ",o.jsx("span",{className:et.por,children:d.por})]},m))})]},a)})})}function g8(e){return e.split(/[.:]/)[0]}function tm({nombre:e,existe:t,alElegir:n}){return t(e)?o.jsx("button",{type:"button",className:et.enlace,onClick:()=>n(e),children:e}):o.jsx("span",{className:et.codigo,children:e})}function v8({referencia:e,existe:t,alElegir:n}){if(e.desde.startsWith("/"))return o.jsx("span",{className:et.codigo,children:e.desde});const r=g8(e.desde);return o.jsxs(o.Fragment,{children:[o.jsx(tm,{nombre:r,existe:t,alElegir:n}),e.desde.length>r.length?o.jsx("span",{className:et.codigo,children:e.desde.slice(r.length)}):null]})}function Gc({titulo:e,children:t}){return o.jsxs("section",{className:et.seccion,children:[o.jsx("h3",{className:et.seccionTitulo,children:e}),t]})}const Yz="_frame_1s1wd_10",Kz="_sidebarCol_1s1wd_39",Jz="_centerCol_1s1wd_46",eT="_detailsCol_1s1wd_53",tT="_handle_1s1wd_68",w0={frame:Yz,sidebarCol:Kz,centerCol:Jz,detailsCol:eT,handle:tT},nT="_root_6hsqj_6",rT="_header_6hsqj_8",aT="_titleRow_6hsqj_8",oT="_titleCluster_6hsqj_9",sT="_crumbs_6hsqj_9",iT="_crumbSeg_6hsqj_122",lT="_crumb_6hsqj_9",cT="_crumbCurrent_6hsqj_160",uT="_headerActions_6hsqj_9",dT="_headerUtilities_6hsqj_9",pT="_tabs_6hsqj_10",mT="_tab_6hsqj_10",hT="_tabActive_6hsqj_10",fT="_viewArea_6hsqj_10",gT="_body_6hsqj_10",xn={root:nT,header:rT,titleRow:aT,titleCluster:oT,crumbs:sT,crumbSeg:iT,crumb:lT,crumbCurrent:cT,headerActions:uT,headerUtilities:dT,tabs:pT,tab:mT,tabActive:hT,viewArea:fT,body:gT},a2=560,nm=360,rm=480,o2=1400;function vT({anchoVentana:e,anchoBarra:t,anchoPanel:n,barraPlegadaPorElUsuario:r,panelAbierto:a}){const l=Number.isFinite(e)&&e>0?e:Number.POSITIVE_INFINITY,i=Math.max(n,nm);return a?!r&&l>=t+a2+i?{barra:"abierta",panel:"columna"}:l>=a2+i?{barra:"plegada",panel:"columna"}:{barra:r?"plegada":"abierta",panel:"centro"}:{barra:r?"plegada":"abierta",panel:"cerrado"}}function s2(e,t){if(!Number.isFinite(e))return rm;const n=t===void 0||!Number.isFinite(t)?o2:Math.max(nm,Math.min(o2,Math.round(t-a2)));return Math.round(Math.min(Math.max(e,nm),n))}const bT="_alto_1583r_9",yT="_cabecera_1583r_16",xT="_tirador_1583r_36",_T="_tiradorEnFila_1583r_67",wT="_tiradorDelPanel_1583r_79",jT="_tiradorDelPanelEnFila_1583r_92",Pc={alto:bT,cabecera:yT,tirador:xT,tiradorEnFila:_T,tiradorDelPanel:wT,tiradorDelPanelEnFila:jT},am=320,i2=220,l2=560,b8=.6,s5=16;function i5(e,t){if(!Number.isFinite(e))return am;const n=t===void 0?l2:Math.max(i2,Math.min(l2,Math.round(t*b8)));return Math.round(Math.min(Math.max(e,i2),n))}function CT({centro:e,barra:t,panel:n,cabecera:r,barraContraida:a=!1,anchoBarra:l,anchoPanel:i,alRedimensionarBarra:u,alRedimensionarPanel:d}){const m=$.useRef(null),f=$.useRef(null),[h,b]=$.useState(0),[y,g]=$.useState(!1),_=i5(l??am),C=s2(i??rm),k=u!==void 0&&!a,S=d!==void 0&&n!==void 0,A=a?"0px":`min(${_}px, ${Math.round(b8*100)}vw)`,I=n===void 0?"0px":`${C}px`;return $.useEffect(()=>{const M=m.current;if(M===null||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{const F=M.getBoundingClientRect().width;F>0&&b(F)});return L.observe(M),()=>L.disconnect()},[]),o.jsxs("div",{ref:f,className:nt(w0.frame,Pc.alto),...y?{"data-dragging":"true"}:{},...n===void 0?{"data-details-collapsed":"true"}:{},style:{gridTemplateColumns:`${A} minmax(0, 1fr) ${I}`,...r===void 0?{}:{gridTemplateRows:"auto minmax(0, 1fr)"}},children:[r===void 0?null:o.jsx("div",{className:Pc.cabecera,children:r}),o.jsx("div",{className:w0.sidebarCol,children:a?null:t}),k?o.jsx(l5,{lado:"sidebar",etiqueta:"Ancho de la barra lateral",ancho:_,minimo:i2,maximo:l2,porOmision:am,izquierda:A,clase:Pc.tirador,...r===void 0?{}:{claseDeFila:Pc.tiradorEnFila},marcoNodo:f,medir:(M,L)=>M-L.left,acotar:i5,alPedir:u,alArrastrar:g}):null,o.jsx("div",{ref:m,className:nt(w0.centerCol,xn.root),style:h===0?void 0:{"--dsh-conversation-column-width":`${h}px`},children:e}),o.jsx("div",{className:nt(w0.detailsCol,xn.root),children:n}),S?o.jsx(l5,{lado:"details",etiqueta:"Ancho del panel",ancho:C,minimo:nm,maximo:o2,porOmision:rm,izquierda:`calc(100% - ${C}px)`,clase:Pc.tiradorDelPanel,...r===void 0?{}:{claseDeFila:Pc.tiradorDelPanelEnFila},marcoNodo:f,medir:(M,L)=>L.right-M,acotar:s2,alPedir:d,alArrastrar:g}):null]})}function l5({lado:e,etiqueta:t,ancho:n,minimo:r,maximo:a,porOmision:l,izquierda:i,clase:u,claseDeFila:d,marcoNodo:m,medir:f,acotar:h,alPedir:b,alArrastrar:y}){const[g,_]=$.useState(!1),C=A=>{_(A),y(A)},k=(A,I)=>{b(h(A,typeof window>"u"?void 0:window.innerWidth),I)},S=(A,I)=>{const M=m.current;M!==null&&k(f(A,M.getBoundingClientRect()),I)};return o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":t,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":a,tabIndex:0,className:nt(w0.handle,u,d),"data-side":e,...g?{"data-dragging":"true"}:{},style:{left:i},onPointerDown:A=>{var I,M;if(!(A.button>0)){A.preventDefault(),C(!0);try{(M=(I=A.currentTarget).setPointerCapture)==null||M.call(I,A.pointerId)}catch{}}},onPointerMove:A=>{g&&S(A.clientX,!1)},onPointerUp:A=>{g&&(C(!1),S(A.clientX,!0))},onPointerCancel:()=>{g&&(C(!1),k(n,!0))},onLostPointerCapture:()=>{g&&(C(!1),k(n,!0))},onKeyDown:A=>{const I=e==="details"?-1:1,M=A.key==="ArrowLeft"?n-s5*I:A.key==="ArrowRight"?n+s5*I:A.key==="Home"?r:A.key==="End"?a:void 0;M!==void 0&&(A.preventDefault(),k(M,!0))},onDoubleClick:()=>k(l,!0)})}const kT="_root_1tziz_20",NT="_regionArea_1tziz_79",ST="_footArea_1tziz_83",$T="_settingsArea_1tziz_338",_p={root:kT,regionArea:NT,footArea:ST,settingsArea:$T},AT="_root_1cpu6_7",ET="_sectionHeader_1cpu6_8",DT="_listArea_1cpu6_9",zT="_treeBody_1cpu6_9",TT="_fade_1cpu6_10",MT="_list_1cpu6_9",LT="_groupSection_1cpu6_10",IT="_empty_1cpu6_11",Kr={root:AT,sectionHeader:ET,listArea:DT,treeBody:zT,fade:TT,list:MT,groupSection:LT,empty:IT},qT="_projectRow_592sx_5",RT="_sessionRow_592sx_5",PT="_title_592sx_7",FT="_slot_592sx_6",OT="_chevron_592sx_6",BT="_folder_592sx_6",HT="_arrow_592sx_92",UT="_arrowOpen_592sx_96",VT="_projectText_592sx_7",GT="_meta_592sx_7",WT="_iconButton_592sx_8",Tr={projectRow:qT,sessionRow:RT,title:PT,slot:FT,chevron:OT,folder:BT,arrow:HT,arrowOpen:UT,projectText:VT,meta:GT,iconButton:WT},ZT="_triggerRow_kwik8_13",QT="_trigger_kwik8_13",XT="_triggerLabel_kwik8_69",Zh={triggerRow:ZT,trigger:QT,triggerLabel:XT};function Rm(e,t,n){$.useEffect(()=>{if(!e)return;const r=l=>{const i=t.current;i!==null&&l.target instanceof Node&&!i.contains(l.target)&&n()},a=l=>{l.key==="Escape"&&n()};return document.addEventListener("mousedown",r),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",a)}},[e,t,n])}const YT="_ancla_1klgz_8",KT="_menu_1klgz_18",JT="_opcion_1klgz_35",eM="_destructiva_1klgz_57",m0={ancla:YT,menu:KT,opcion:JT,destructiva:eM};function tM({titulo:e,className:t,alRenombrar:n,alBorrar:r}){const a=$.useRef(null),[l,i]=$.useState(!1),u=$.useCallback(()=>i(!1),[]);Rm(l,a,u);const d=m=>()=>{i(!1),m()};return o.jsxs("span",{className:nt(m0.ancla,t),"data-abierto":l?"":void 0,ref:a,children:[o.jsx("button",{type:"button",className:Tr.iconButton,"aria-label":`opciones de «${e}»`,"aria-haspopup":"menu","aria-expanded":l,onClick:()=>i(m=>!m),children:o.jsx(RE,{size:16})}),l?o.jsxs("div",{className:m0.menu,role:"menu",children:[o.jsxs("button",{type:"button",role:"menuitem",className:m0.opcion,onClick:d(n),children:[o.jsx(e4,{size:16}),"Renombrar"]}),o.jsxs("button",{type:"button",role:"menuitem",className:nt(m0.opcion,m0.destructiva),onClick:d(r),children:[o.jsx(t4,{size:16}),"Eliminar"]})]}):null]})}const nM=14;function Yl({children:e,lado:t=nM}){return o.jsx("svg",{"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function Pm(){return o.jsx(Yl,{lado:12,children:o.jsx("path",{d:"M19 9l-7 7-7-7"})})}function rM(){return o.jsxs(Yl,{children:[o.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),o.jsx("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"})]})}function aM(){return o.jsx(Yl,{children:o.jsx("path",{d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}function oM(){return o.jsx(Yl,{children:o.jsx("path",{d:"M13 10V3L4 14h7v7l9-11h-7z"})})}function sM(){return o.jsx(Yl,{lado:16,children:o.jsx("path",{d:"M5 10l7-7m0 0l7 7m-7-7v18"})})}function iM(){return o.jsx(Yl,{lado:16,children:o.jsx("path",{d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})}function lM(){return o.jsx(Yl,{children:o.jsx("path",{d:"M12 5v14M5 12h14"})})}const cM="_caja_h7izr_4",uM="_select_h7izr_15",dM="_aspecto_h7izr_28",pM="_flecha_h7izr_49",mM="_girando_h7izr_67 _girando_jnvvl_174",h0={caja:cM,select:uM,aspecto:dM,flecha:pM,girando:mM};function ls({className:e,children:t,cargando:n,...r}){return o.jsxs("span",{className:h0.caja,children:[o.jsx("select",{...r,...n===!0?{"aria-busy":"true"}:{},className:nt(e??h0.aspecto,h0.select),children:t}),o.jsx("span",{className:h0.flecha,"aria-hidden":"true",children:n===!0?o.jsx("span",{className:h0.girando}):o.jsx(Pm,{})})]})}const c5="/imagen-del-proyecto",hM="/icono-del-proyecto";function fM(e){return`${hM}?id=${encodeURIComponent(e)}`}function gM(e,t){return e.split(`](${c5}?`).join(`](${t}${c5}?`)}function om({children:e,lado:t,relleno:n,className:r,icono:a}){return o.jsx("svg",{...r===void 0?{}:{className:r},...a===void 0?{}:{"data-icono":a},"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:n===!0?"currentColor":"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function a4({size:e=14}){return o.jsxs(om,{lado:e,children:[o.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),o.jsx("circle",{cx:"9",cy:"7",r:"4"}),o.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),o.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}function vM({fijado:e,size:t=14}){return o.jsxs(om,{lado:t,relleno:e,children:[o.jsx("path",{d:"M12 17v5"}),o.jsx("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"})]})}function y8({id:e,lado:t,respaldo:n=null,className:r}){const[a,l]=$.useState(void 0);return a===e?o.jsx(o.Fragment,{children:n}):o.jsx("img",{...r===void 0?{}:{className:r},src:fM(e),alt:"","aria-hidden":"true",width:t,height:t,draggable:!1,"data-icono-de-app":"",onError:()=>l(e)})}const bM={webstudio:o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M110.34,31.68Q94.47,14.54,71.66,14.54T33,31.45a63.27,63.27,0,0,0-4.76,5.72L39.8,52.94a41.25,41.25,0,0,1,6.09-8.65Q56.51,32.72,71.74,32.72T97.5,44.44A39.87,39.87,0,0,1,108,72,39.72,39.72,0,0,1,97.42,99.47Q86.8,111.2,71.74,111.2T46,99.64a41.92,41.92,0,0,1-4.77-6.23L29.87,108.89c1,1.22,2,2.42,3.1,3.59q15.89,16.9,39,16.9a50.11,50.11,0,0,0,20.89-4.54,51.51,51.51,0,0,0,17.23-12.52,56.29,56.29,0,0,0,16.11-40.2A57.61,57.61,0,0,0,110.34,31.68Z"}),o.jsx("path",{fill:"#a4c9dd",d:"M24.76,89.06,35.45,74.22,24.76,59.55l-4.61-6.28A60.24,60.24,0,0,0,17.25,72a59.41,59.41,0,0,0,4,21.91l.23-.33Z"}),o.jsx("path",{fill:"#a4c9dd",d:"M86.22,90.19H57.08A12,12,0,0,1,52,67.35c0-.38-.06-.78-.06-1.16A13.72,13.72,0,0,1,78.34,61a6.63,6.63,0,0,1,4.45-1.66,6.87,6.87,0,0,1,6.85,6.85,6.78,6.78,0,0,1-1.09,3.7,10.28,10.28,0,0,1-2.33,20.3Z"}),o.jsx("path",{fill:"#fff",d:"M60.78,76.55a1.6,1.6,0,1,1,1.6-1.6A1.59,1.59,0,0,1,60.78,76.55Zm2.57-5.82a2,2,0,1,1,2-2A2,2,0,0,1,63.35,70.73Zm0,12a1.6,1.6,0,0,1,0-3.2,1.6,1.6,0,0,1,0,3.2Zm6.23-14.23a2.4,2.4,0,1,1,2.4-2.4A2.39,2.39,0,0,1,69.58,68.55Zm0,16.8a1.6,1.6,0,1,1,1.6-1.6A1.59,1.59,0,0,1,69.58,85.35ZM75.8,71.53a2.8,2.8,0,1,1,2.8-2.8A2.8,2.8,0,0,1,75.8,71.53Zm0,11.25a1.6,1.6,0,1,1,1.6-1.6A1.61,1.61,0,0,1,75.8,82.78Zm2.58-6.23A1.6,1.6,0,1,1,80,75,1.59,1.59,0,0,1,78.38,76.55Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]}),cloudstudio:o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M110.34,31.68Q94.47,14.54,71.66,14.54T33,31.45a63.27,63.27,0,0,0-4.76,5.72L39.8,53a41,41,0,0,1,6.09-8.66Q56.51,32.72,71.74,32.72T97.5,44.44A39.87,39.87,0,0,1,108,72,39.72,39.72,0,0,1,97.42,99.47Q86.8,111.2,71.74,111.2T46,99.64a41.48,41.48,0,0,1-4.77-6.24L29.87,108.89c1,1.22,2,2.42,3.1,3.59q15.89,16.9,39,16.9a50.11,50.11,0,0,0,20.89-4.54,51.51,51.51,0,0,0,17.23-12.52,56.29,56.29,0,0,0,16.11-40.2A57.61,57.61,0,0,0,110.34,31.68Z"}),o.jsx("path",{fill:"#cd8040",d:"M24.76,89.06,35.45,74.22,24.76,59.55l-4.61-6.28A60.28,60.28,0,0,0,17.25,72a59.41,59.41,0,0,0,4,21.91l.23-.33Z"}),o.jsx("path",{fill:"#cd8040",d:"M87.15,88.05H58a12,12,0,0,1-5.09-22.84c0-.4-.05-.78-.05-1.15a13.72,13.72,0,0,1,26.41-5.2,6.77,6.77,0,0,1,4.44-1.66,6.87,6.87,0,0,1,6.86,6.86,6.73,6.73,0,0,1-1.1,3.69,10.28,10.28,0,0,1-2.33,20.3Zm-7.1-18.61L70.63,60a.88.88,0,0,0-.62-.24.91.91,0,0,0-.62.24L60,69.41a1,1,0,0,0-.26.65.84.84,0,0,0,.85.85h6v9.43a.88.88,0,0,0,.86.86h5.14a.88.88,0,0,0,.86-.86V70.91h6a.86.86,0,0,0,.85-.85A.89.89,0,0,0,80.05,69.44Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]})},yM=o.jsxs(o.Fragment,{children:[o.jsxs("g",{children:[o.jsx("path",{fill:"#4cabd5",d:"M120,21.62Q100.15.18,71.64.18T23.29,21.32a78,78,0,0,0-6,7.16L31.82,48.19a50.81,50.81,0,0,1,7.62-10.82Q52.7,22.91,71.74,22.91t32.2,14.66A49.81,49.81,0,0,1,117.1,72a49.65,49.65,0,0,1-13.26,34.39Q90.58,121,71.74,121T39.55,106.56a51.56,51.56,0,0,1-6-7.79L19.41,118.12c1.22,1.52,2.5,3,3.88,4.49Q43.14,143.74,72,143.74a62.81,62.81,0,0,0,26.12-5.68,64.34,64.34,0,0,0,21.54-15.65q20.13-21.14,20.13-50.25A72,72,0,0,0,120,21.62Z"}),o.jsx("path",{fill:"#1f3c6e",d:"M13,93.33,26.38,74.79,13,56.44,7.25,48.6A75.47,75.47,0,0,0,3.63,72a74.23,74.23,0,0,0,5,27.38l.29-.4Z"})]}),o.jsx("g",{children:o.jsx("rect",{fill:"none",width:"144",height:"144"})})]});function o4({entorno:e,size:t=20,className:n}){return o.jsx("svg",{viewBox:"0 0 144 144",width:t,height:t,className:n,"aria-hidden":"true",focusable:"false",children:bM[e]??yM})}function eu(e,t=new Date){const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=new Intl.DateTimeFormat("es",{day:"numeric",month:"short",...n.getFullYear()===t.getFullYear()?{}:{year:"numeric"}}).format(n),a=new Intl.DateTimeFormat("es",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);return`${r} ${a}`}function xM(e,t=new Date){const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=(u,d)=>u.getFullYear()===d.getFullYear()&&u.getMonth()===d.getMonth()&&u.getDate()===d.getDate(),a=new Intl.DateTimeFormat("es",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(n);if(r(n,t))return`hoy a las ${a}`;const l=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return r(n,l)?`ayer a las ${a}`:`${new Intl.DateTimeFormat("es",{day:"numeric",month:"short",...n.getFullYear()===t.getFullYear()?{}:{year:"numeric"}}).format(n)} a las ${a}`}function _M(e){const t=new Date(e);if(!Number.isNaN(t.getTime()))return new Intl.DateTimeFormat("es",{dateStyle:"long",timeStyle:"medium"}).format(t)}const wM="_reseteoDeBoton_1wco0_16",jM="_filaConAccion_1wco0_28",CM="_filaAbierta_1wco0_44",kM="_sesionAbierta_1wco0_44",NM="_tituloActivo_1wco0_72",SM="_plegador_1wco0_85",$M="_glifoDeChevron_1wco0_102",AM="_glifoDeCarpeta_1wco0_106",EM="_iconoDeApp_1wco0_112",DM="_cuerpoDeFila_1wco0_118",zM="_entorno_1wco0_131",TM="_sinSesiones_1wco0_147",MM="_avisoOcultos_1wco0_157",LM="_textoDeAviso_1wco0_165",IM="_enlaceDeAviso_1wco0_174",qM="_historica_1wco0_195",RM="_rellenoDeSeccion_1wco0_254",PM="_accionesDeFila_1wco0_276",FM="_accionFija_1wco0_294",OM="_fijar_1wco0_305",BM="_compartido_1wco0_318",HM="_estadoLocal_1wco0_317",UM="_rotulo_1wco0_347",VM="_filaDeEntorno_1wco0_366",GM="_iconoDeEntorno_1wco0_381",WM="_marcaDeTarea_1wco0_394",ZM="_fichaDeSesion_1wco0_395",QM="_selloDeFecha_1wco0_396",XM="_actividad_1wco0_435",YM="_separadorDePie_1wco0_464",KM="_version_1wco0_470",JM="_filaConRama_1wco0_485",eL="_ramaDeProyecto_1wco0_495",ut={reseteoDeBoton:wM,filaConAccion:jM,filaAbierta:CM,sesionAbierta:kM,tituloActivo:NM,plegador:SM,glifoDeChevron:$M,glifoDeCarpeta:AM,iconoDeApp:EM,cuerpoDeFila:DM,entorno:zM,sinSesiones:TM,avisoOcultos:MM,textoDeAviso:LM,enlaceDeAviso:IM,historica:qM,rellenoDeSeccion:RM,accionesDeFila:PM,accionFija:FM,fijar:OM,compartido:BM,estadoLocal:HM,rotulo:UM,filaDeEntorno:VM,iconoDeEntorno:GM,marcaDeTarea:WM,fichaDeSesion:ZM,selloDeFecha:QM,actividad:XM,separadorDePie:YM,version:KM,filaConRama:JM,ramaDeProyecto:eL},tL=e=>e===void 0?void 0:eu(e);function x8(e){const t=e.filter(r=>r.ultimoTurno!==void 0),n=e.filter(r=>r.ultimoTurno===void 0).reverse();return t.sort((r,a)=>(a.ultimoTurno??"").localeCompare(r.ultimoTurno??"")),[...t,...n]}function nL({sesion:e,abriendo:t}){if(t)return o.jsx("span",{className:ut.actividad,title:"Abriendo…",children:"abriendo…"});if(e.trabajando===!0)return o.jsx("span",{className:ut.actividad,title:"El agente está trabajando…",children:"trabajando…"});const n=tL(e.ultimoTurno);return n===void 0?null:o.jsx("span",{className:ut.fichaDeSesion,children:o.jsx("span",{className:ut.selloDeFecha,children:n})})}function u5({p:e,desplegado:t,alPlegar:n,fijado:r,proyectoActivo:a,proyectoEnResumen:l,sesionActiva:i,abriendo:u,apagado:d,abriendoAlgo:m,alFijar:f,alAbrirProyecto:h,alNuevaSesion:b,alAbrirSesion:y,alAccionDeSesion:g}){const _=I=>u!==void 0&&u.proyecto===I&&u.sesion===void 0,C=I=>u!==void 0&&u.sesion===I,k=e.id===(l??a),S=e.id===t?o.jsx(WE,{size:16}):o.jsx(ZE,{size:16}),A=l===void 0?i:void 0;return o.jsxs("div",{className:Kr.groupSection,children:[o.jsxs("div",{className:nt(Tr.projectRow,ut.filaConAccion,k&&ut.filaAbierta,e.rama!==void 0&&ut.filaConRama),...k?{"aria-current":"true"}:{},..._(e.id)?{"aria-busy":"true"}:{},children:[o.jsx("button",{type:"button",className:nt(ut.reseteoDeBoton,Tr.iconButton,ut.fijar),"data-fijado":r?"":void 0,"aria-pressed":r,"aria-label":`${r?"dejar de fijar":"fijar"} ${e.nombre}`,title:r?"Dejar de fijar":"Fijar arriba",disabled:d,onClick:()=>f(e.id,!r),children:o.jsx(vM,{fijado:r,size:14})}),o.jsxs("button",{type:"button",className:nt(ut.reseteoDeBoton,ut.plegador),"aria-expanded":e.id===t,"aria-label":`${e.id===t?"plegar":"desplegar"} las sesiones de ${e.nombre}`,onClick:n,children:[o.jsx("span",{className:nt(Tr.slot,Tr.folder,ut.glifoDeCarpeta),"aria-hidden":"true",children:e.icono===!0?o.jsx(y8,{id:e.id,lado:16,className:ut.iconoDeApp,respaldo:S}):S}),o.jsx("span",{className:nt(Tr.slot,Tr.chevron,ut.glifoDeChevron),"aria-hidden":"true",children:o.jsx(FE,{size:14,className:nt(Tr.arrow,e.id===t&&Tr.arrowOpen)})})]}),o.jsxs("button",{type:"button",className:nt(ut.reseteoDeBoton,ut.cuerpoDeFila),disabled:d||m,onClick:()=>h(e.id),children:[o.jsxs("span",{className:Tr.projectText,children:[o.jsx("span",{className:nt(Tr.title,k&&ut.tituloActivo),children:e.nombre}),e.rama===void 0?null:o.jsx("span",{className:nt(Tr.meta,ut.ramaDeProyecto),title:`Rama de origen: ${e.rama}`,"aria-hidden":"true",children:e.rama})]}),_(e.id)?o.jsx("span",{className:ut.actividad,title:(u==null?void 0:u.descargando)===!0?"Descargando el proyecto…":"Abriendo…",children:(u==null?void 0:u.descargando)===!0?"descargando…":"abriendo…"}):e.trabajando===!0||e.id!==t&&e.sesiones.some(I=>I.trabajando===!0)?o.jsx("span",{className:ut.actividad,title:"El agente está trabajando en este proyecto…",children:"trabajando…"}):e.tareasEnCurso!==void 0&&e.tareasEnCurso>0?o.jsx("span",{className:ut.actividad,title:e.tareasEnCurso===1?"Una tarea de fondo está trabajando en este proyecto":`${e.tareasEnCurso} tareas de fondo están trabajando en este proyecto`,children:e.tareasEnCurso===1?"tarea en curso…":`${e.tareasEnCurso} tareas en curso…`}):null,e.compartido===!0?o.jsx("span",{className:ut.compartido,title:"Compartido contigo","aria-hidden":"true",children:o.jsx(a4,{size:14})}):null,o.jsx("span",{className:ut.estadoLocal,"data-local":e.local===!0?"":void 0,title:e.local===!0?"Descargado en este equipo":"No descargado: se bajará al abrirlo","aria-hidden":"true",children:e.local===!0?o.jsx(J2,{size:14}):o.jsx(J7,{size:14})})]}),o.jsx("span",{className:ut.accionFija,children:o.jsx("button",{type:"button",className:Tr.iconButton,disabled:d||m||e.trabajando===!0,...e.trabajando===!0?{title:"este proyecto está trabajando: pulsa su nombre para ver qué hace, y abre otra cuando termine"}:{},onClick:()=>b(e.id),"aria-label":`nueva sesión en ${e.nombre}`,children:o.jsx(IE,{size:16})})})]}),e.id!==t?null:e.sesiones.length===0?o.jsx("p",{className:nt(Kr.empty,ut.sinSesiones),children:"Sin sesiones todavía."}):x8(e.sesiones).map(I=>o.jsxs("div",{className:nt(Tr.sessionRow,ut.filaConAccion,I.id===A&&ut.sesionAbierta,I.historica&&ut.historica),...I.id===A?{"aria-current":"true"}:{},...C(I.id)?{"aria-busy":"true"}:{},children:[o.jsxs("button",{type:"button",className:nt(ut.reseteoDeBoton,ut.cuerpoDeFila),disabled:d||m||e.trabajando===!0&&I.trabajando!==!0,...e.trabajando===!0&&I.trabajando!==!0?{title:"este proyecto está trabajando en otra conversación: pulsa su nombre para verla"}:{},onClick:()=>y(e.id,I.id),children:[o.jsx("span",{className:Tr.slot,"aria-hidden":"true"}),o.jsx("span",{className:Tr.title,children:I.titulo!==""?I.titulo:I.deTarea?"Tarea de fondo":"Sin título"}),I.deTarea?o.jsx("span",{className:ut.marcaDeTarea,children:"Tarea"}):null,o.jsx(nL,{sesion:I,abriendo:C(I.id)})]}),d?null:o.jsx(tM,{titulo:I.titulo,className:ut.accionesDeFila,alRenombrar:()=>g(e.id,I.id,I.titulo,"renombrar"),alBorrar:()=>g(e.id,I.id,I.titulo,"borrar")})]},I.id))]})}const sm=4;function rL({entornos:e,entornoActivo:t,proyectos:n,visibles:r,fijados:a,proyectoActivo:l,proyectoEnResumen:i,sesionActiva:u,abriendo:d,alElegirEntorno:m,alAbrirSesion:f,alAbrirProyecto:h,alNuevaSesion:b,alAccionDeSesion:y,alFijar:g,alAbrirAjustes:_,alAbrirAjustesEnEntornos:C,conectado:k,version:S}){const A=k===!1,I=d!==void 0,M=d==null?void 0:d.entorno,L=M??t,F=n.filter(ne=>(a==null?void 0:a.includes(ne.id))===!0),G=n.filter(ne=>!F.includes(ne)),B=(r===void 0?n.slice(0,sm):n.filter(ne=>r.includes(ne.id))).filter(ne=>!F.includes(ne)),W=G.length-B.length,[re,fe]=$.useState(l);$.useEffect(()=>fe(l),[l]);const he=ne=>({p:ne,desplegado:re,alPlegar:()=>fe(ne.id===re?void 0:ne.id),proyectoActivo:l,proyectoEnResumen:i,sesionActiva:u,abriendo:d,apagado:A,abriendoAlgo:I,alFijar:g,alAbrirProyecto:h,alNuevaSesion:b,alAbrirSesion:f,alAccionDeSesion:y});return o.jsxs("nav",{className:_p.root,children:[o.jsx("div",{className:_p.regionArea,children:o.jsxs("div",{className:Kr.root,children:[o.jsxs("div",{className:Kr.sectionHeader,children:[o.jsx("span",{className:nt(Kr.sectionLabel,ut.rotulo),children:"Entorno"}),o.jsx("span",{className:ut.rellenoDeSeccion}),M===void 0?null:o.jsx("span",{className:ut.actividad,title:"Cambiando de entorno…",children:"cambiando…"})]}),e.length===0?o.jsx("p",{className:Kr.empty,children:"Sin entorno que enseñar aquí todavía."}):o.jsxs("div",{className:ut.filaDeEntorno,...M===void 0?{}:{"aria-busy":"true"},children:[o.jsx(o4,{entorno:L,size:20,className:ut.iconoDeEntorno}),o.jsx(ls,{className:ut.entorno,disabled:A||I,value:L,onChange:ne=>m(ne.target.value),children:e.map(ne=>o.jsx("option",{value:ne.id,children:ne.nombre},ne.id))})]}),o.jsx("div",{className:Kr.listArea,children:o.jsxs("div",{className:Kr.treeBody,children:[o.jsxs("div",{className:Kr.list,children:[F.length===0?null:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Kr.sectionHeader,children:[o.jsx("span",{className:nt(Kr.sectionLabel,ut.rotulo),children:"Proyectos fijados"}),o.jsx("span",{className:ut.rellenoDeSeccion})]}),F.map(ne=>o.jsx(u5,{...he(ne),fijado:!0},ne.id))]}),o.jsxs("div",{className:Kr.sectionHeader,children:[o.jsx("span",{className:nt(Kr.sectionLabel,ut.rotulo),children:"Proyectos"}),o.jsx("span",{className:ut.rellenoDeSeccion})]}),B.length===0?o.jsx("p",{className:Kr.empty,children:n.length===0?"Sin proyectos que enseñar aquí todavía.":F.length>0&&W===0?"Todos los elegidos están fijados arriba.":"Ninguno elegido para esta barra; elígelos en Ajustes."}):B.map(ne=>o.jsx(u5,{...he(ne),fijado:!1},ne.id)),W>0?o.jsx("div",{className:ut.avisoOcultos,children:o.jsxs("p",{className:ut.textoDeAviso,children:[W===1?"1 proyecto más sin enseñar":`${W} proyectos más sin enseñar`," · elígelos en"," ",o.jsx("button",{type:"button",className:ut.enlaceDeAviso,onClick:C??_,"aria-label":"Ajustes, pestaña Entornos",children:"Ajustes"})]})}):null]}),o.jsx("div",{className:Kr.fade,"aria-hidden":"true"})]})})]})}),o.jsxs("div",{className:_p.footArea,children:[o.jsx("div",{className:ut.separadorDePie,"aria-hidden":"true"}),o.jsx("div",{className:_p.settingsArea,children:o.jsx("div",{className:Zh.triggerRow,children:o.jsxs("button",{type:"button",className:Zh.trigger,onClick:_,children:[o.jsx(R0,{size:16}),o.jsx("span",{className:Zh.triggerLabel,children:"Ajustes"})]})})}),S===void 0?null:o.jsx("p",{className:ut.version,children:S})]})]})}const aL="_capa_a0o87_6",oL="_velo_a0o87_12",sL="_ventana_a0o87_24",iL="_titulo_a0o87_35",lL="_nota_a0o87_41",cL="_etiqueta_a0o87_48",uL="_campo_a0o87_55",dL="_acciones_a0o87_68",pL="_accion_a0o87_68 _secundario_1l1rx_39 _grande_1l1rx_26",mL="_principal_a0o87_89",hL="_fallo_a0o87_107",fL="_carga_a0o87_116",gL="_girando_a0o87_125 _girando_jnvvl_174",me={capa:aL,velo:oL,ventana:sL,titulo:iL,nota:lL,etiqueta:cL,campo:uL,acciones:dL,accion:pL,principal:mL,fallo:hL,carga:fL,girando:gL},vL="_aviso_rp6in_2",bL="_negativa_rp6in_12",_8={aviso:vL,negativa:bL};function yL({titulo:e}){return o.jsx("p",{className:_8.aviso,role:"note",children:`Esta conversación es de la tarea «${e}», que espera tu feedback. Lo que escribas puedes mandárselo para que siga en segundo plano, o seguir aquí tú.`})}function xL({titulo:e,conAdjuntos:t,alContinuarLaTarea:n,alSeguirAqui:r,alCancelar:a}){const[l,i]=$.useState(!1),[u,d]=$.useState(void 0);return o.jsx(rr,{open:!0,onClose:a,title:"¿A dónde va este mensaje?",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:m=>{m.target===m.currentTarget&&!l&&a()},children:o.jsxs("div",{className:me.ventana,children:[o.jsx("h2",{className:me.titulo,children:"¿A dónde va este mensaje?"}),o.jsx("p",{className:me.nota,children:`Esta conversación es de la tarea «${e}». Puedes mandárselo para que siga sola en segundo plano —se cierra esta conversación, que queda guardada, y la ves en vivo desde Tareas— o seguir aquí tú, con cada escritura aprobada.`}),t?o.jsx("p",{className:me.nota,children:"Lleva adjuntos: solo puede seguir aquí, el feedback de una tarea es texto."}):null,u!==void 0?o.jsx("p",{className:_8.negativa,role:"alert",children:`No se pudo: ${u}`}):null,o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,disabled:l,onClick:a,children:"Cancelar"}),o.jsx(Le,{variant:"outline",className:me.accion,disabled:l,onClick:r,children:"Seguir aquí en el chat"}),o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal}`,disabled:l||t,onClick:()=>{i(!0),d(void 0),n().catch(()=>"el envío falló").then(m=>{i(!1),m!==void 0&&d(m)})},children:l?"Enviando…":"Enviar y continuar la tarea"})]})]})})})}const _L="_label_io14u_7",wL="_icon_io14u_34",d5={label:_L,icon:wL},jL="_barraSuperior_co005_21",CL="_estado_co005_61",kL="_punto_co005_70",NL="_conectado_co005_76",SL="_desconectado_co005_83",$L="_plegar_co005_93",AL="_temaGrupo_co005_114",EL="_temaBoton_co005_128",DL="_ajustes_co005_152",zL="_marca_co005_173",TL="_separador_co005_184",ML="_marcaEnlace_co005_196",LL="_simbolo_co005_224",yr={barraSuperior:jL,estado:CL,punto:kL,conectado:NL,desconectado:SL,plegar:$L,temaGrupo:AL,temaBoton:EL,ajustes:DL,marca:zL,separador:TL,marcaEnlace:ML,simbolo:LL},IL=[{id:"sistema",etiqueta:"Como el sistema",Icono:YE},{id:"claro",etiqueta:"Claro",Icono:QE},{id:"oscuro",etiqueta:"Oscuro",Icono:XE}];function Qh({titulo:e,proyecto:t,modo:n,conectado:r,barraContraida:a,alAlternarBarra:l,panelAbierto:i,alAlternarPanel:u,alAbrirAjustes:d,apariencia:m,alCambiarApariencia:f,alIrAlEscritorio:h}){return o.jsx("header",{className:nt(xn.header,yr.barraSuperior),children:o.jsxs("div",{className:xn.titleRow,children:[o.jsxs("div",{className:xn.titleCluster,children:[l===void 0?null:o.jsx("button",{type:"button",className:yr.plegar,onClick:l,"aria-expanded":a!==!0,"aria-label":a===!0?"Mostrar la barra lateral":"Ocultar la barra lateral",title:a===!0?"Mostrar la barra lateral":"Ocultar la barra lateral",children:a===!0?"»":"«"}),h===void 0?o.jsxs("span",{className:yr.marca,children:[o.jsx("img",{className:yr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}):o.jsxs("button",{type:"button",className:nt(yr.marca,yr.marcaEnlace),onClick:h,title:"Volver al escritorio",children:[o.jsx("img",{className:yr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}),o.jsx("span",{className:yr.separador,"aria-hidden":"true",children:"/"}),o.jsxs("nav",{className:xn.crumbs,"aria-label":"dónde estás",children:[t===void 0||t===e?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:xn.crumbSeg,children:o.jsx("button",{type:"button",className:xn.crumb,disabled:!0,children:t})}),o.jsx("span",{className:yr.separador,"aria-hidden":"true",children:"/"})]}),o.jsx("span",{className:xn.crumbSeg,children:o.jsx("button",{type:"button",className:nt(xn.crumb,xn.crumbCurrent),disabled:!0,children:e})})]}),o.jsx("div",{className:xn.headerActions,children:n===void 0?null:o.jsxs("span",{className:d5.label,children:[o.jsx(PE,{className:d5.icon,size:16}),n==="cloud"?"modo cloud":"modo offline"]})})]}),o.jsxs("div",{className:xn.headerUtilities,children:[m===void 0||f===void 0?null:o.jsx("div",{className:yr.temaGrupo,role:"group","aria-label":"apariencia",children:IL.map(({id:b,etiqueta:y,Icono:g})=>o.jsx("button",{type:"button",className:yr.temaBoton,"aria-pressed":b===m,"data-puesto":b===m?"":void 0,title:y,"aria-label":y,onClick:()=>{b!==m&&f(b)},children:o.jsx(g,{size:16})},b))}),u===void 0?null:o.jsx("button",{type:"button",className:yr.ajustes,onClick:u,"aria-expanded":i===!0,"aria-label":i===!0?"Ocultar el panel":"Mostrar el panel",title:i===!0?"Ocultar el panel":"Mostrar el panel",children:o.jsx(qL,{abierto:i===!0})}),d===void 0?null:o.jsx("button",{type:"button",className:yr.ajustes,onClick:d,"aria-label":"Ajustes",title:"Ajustes",children:o.jsx(R0,{size:16})}),o.jsxs("span",{className:nt(yr.estado,r?yr.conectado:yr.desconectado),children:[o.jsx("span",{className:yr.punto,"aria-hidden":"true"}),r?"conectado":"sin conexión"]})]})]})})}function qL({abierto:e}){return o.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[o.jsx("rect",{x:1.75,y:2.75,width:12.5,height:10.5,rx:2,stroke:"currentColor",strokeWidth:1.3}),o.jsx("path",{d:"M10 3v10",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round"}),e?o.jsx("rect",{x:10,y:3,width:4.25,height:10,rx:1,fill:"currentColor",opacity:.55}):null]})}const RL="_cabecera_14uq7_17",PL="_tira_14uq7_37",FL="_pestana_14uq7_51",OL="_cerrar_14uq7_70",Rl={cabecera:RL,tira:PL,pestana:FL,cerrar:OL};function BL({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a}){const l=[{id:"ejecutar",etiqueta:"Ejecutar"},{id:"ficheros",etiqueta:"Ficheros"},{id:"revision",etiqueta:"Revisión"},{id:"colecciones",etiqueta:"Colecciones"},...a===!0?[{id:"planes",etiqueta:"Planes"}]:[],...r===!0?[{id:"artefactos",etiqueta:"Artefactos"}]:[],{id:"trazas",etiqueta:"Trazas"}];return o.jsxs("div",{className:Rl.cabecera,children:[o.jsx("button",{type:"button",className:Rl.cerrar,onClick:n,"aria-label":"Cerrar el panel",title:"Cerrar el panel",children:o.jsx("span",{"aria-hidden":"true",children:"×"})}),o.jsx("div",{className:nt(xn.tabs,Rl.tira),role:"tablist",children:l.map(i=>o.jsx("button",{type:"button",role:"tab","aria-selected":e===i.id,className:nt(xn.tab,Rl.pestana,e===i.id&&xn.tabActive),onClick:()=>t(i.id),children:i.etiqueta},i.id))})]})}function s4(e){if(e.fichero!==void 0)return e.linea===void 0?e.fichero:`${e.fichero}:${e.linea}`}function w8(e){return e.severidad==="error"?"✗":e.severidad==="warning"?"△":"·"}function i4(e){const t=[e.verde?"✓ verificación en verde":`✗ verificación: ${e.errores} error(es), ${e.avisos} aviso(s)`];for(const n of e.hallazgos??[]){const r=s4(n);t.push(` ${w8(n)} ${n.code}${r===void 0?"":` ${r}`} — ${n.mensaje}`)}return e.preexistentes!==void 0&&e.preexistentes>0&&t.push(` (y ${e.preexistentes} hallazgo(s) más en ficheros que este turno no tocó)`),t}function im(e){return e>=1e3?`${(e/1e3).toFixed(1)} s`:`${e} ms`}const HL="_trazas_7bpvr_14",UL="_barra_7bpvr_25",VL="_buscador_7bpvr_34",GL="_cuenta_7bpvr_46",WL="_accion_7bpvr_51 _secundario_1l1rx_39",ZL="_cuerpo_7bpvr_60",QL="_tabla_7bpvr_66",XL="_grupo_7bpvr_73",YL="_cabeceraDeGrupo_7bpvr_79",KL="_flecha_7bpvr_98",JL="_cuentaDeGrupo_7bpvr_103",eI="_fila_7bpvr_112",tI="_indice_7bpvr_150",nI="_etiquetaHueco_7bpvr_160",rI="_etiqueta_7bpvr_160",aI="_texto_7bpvr_246",oI="_tiempo_7bpvr_254",sI="_panel_7bpvr_263",iI="_cabeceraDePanel_7bpvr_273",lI="_situacion_7bpvr_281",cI="_cerrar_7bpvr_285",uI="_pestanasDePanel_7bpvr_301",dI="_pestanaDePanel_7bpvr_314",pI="_pestanaActiva_7bpvr_326",mI="_fallo_7bpvr_333",hI="_completo_7bpvr_343",fI="_tiempos_7bpvr_355",gI="_dato_7bpvr_359",vI="_cifra_7bpvr_364",bI="_nota_7bpvr_370",yI="_vacio_7bpvr_371",jt={trazas:HL,barra:UL,buscador:VL,cuenta:GL,accion:WL,cuerpo:ZL,tabla:QL,grupo:XL,cabeceraDeGrupo:YL,flecha:KL,cuentaDeGrupo:JL,fila:eI,indice:tI,etiquetaHueco:nI,etiqueta:rI,texto:aI,tiempo:oI,panel:sI,cabeceraDePanel:iI,situacion:lI,cerrar:cI,pestanasDePanel:uI,pestanaDePanel:dI,pestanaActiva:pI,fallo:mI,completo:hI,tiempos:fI,dato:gI,cifra:vI,nota:bI,vacio:yI},p5=200;function xI(e){const t=e.replace(/\s+/g," ").trim();return t.length>p5?t.slice(0,p5):t}function Dr(e,t,n,r={}){return{tipo:e,etiqueta:t,texto:xI(n),completo:n,...r}}function _I(e){switch(e.tipo){case"usuario":return[Dr("usuario","USUARIO",e.texto)];case"asistente":return[Dr("asistente","ASISTENTE",e.texto)];case"razonamiento":return[Dr("razonamiento","PIENSA",e.texto)];case"herramientas":return e.lineas.map((t,n)=>{var a;const r=(a=e.detalles)==null?void 0:a[n];return r===void 0?Dr("tool","TOOL",t):r.nombre===void 0?Dr("paso","PASO",t):Dr(r.error===void 0?"tool":"toolError",r.nombre,t,{nombre:r.nombre,...r.error===void 0?{}:{error:r.error}})});case"sistema":return[Dr("sistema","SISTEMA",e.texto)];case"sincronizacion":return e.lineas.map(t=>Dr("sistema",e.accion.toUpperCase(),t));case"artefacto":return[Dr("artefacto","ARTEFACTO",`${e.nombre} · ${e.bytes} B · ${e.ruta}`)];case"fase":return[Dr("fase",e.fase===void 0?"FASE":e.fase.toUpperCase(),e.texto,{ms:e.ms,...e.fase===void 0?{}:{fase:e.fase}})];case"fin":return[Dr("fin","FIN",e.modelo!==void 0?`fin del turno · ${e.modelo}`:"fin del turno",{ms:e.ms})];case"error":return[Dr("error","ERROR",e.texto)];case"consulta":return[Dr("sistema","CONSULTA",`${e.pregunta} · ${e.opciones.join(" · ")}`)];case"propuesta-de-tareas":return[Dr("sistema","PROPUESTA",`${e.motivo} · ${e.tareas.map(t=>t.titulo).join(" · ")}`)];case"propuesta-resuelta":return[Dr("sistema","PROPUESTA",e.encoladas===void 0?"descartada":`encoladas ${e.encoladas.length} tareas`)];case"verificacion":return i4(e).map(t=>Dr("paso","PASO",t));default:return e}}function wI(e){let t=0,n=0;return e.flatMap(r=>(r.tipo==="usuario"&&(t+=1),_I(r).map(a=>(n+=1,{...a,indice:n,turno:t}))))}function jI(e){const t=[];for(const n of e){let r=t.at(-1);(r===void 0||r.turno!==n.turno)&&(r={turno:n.turno,filas:[]},t.push(r)),r.filas.push(n),n.tipo==="fin"&&(r.ms=n.ms)}return t}function m5(e){return e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function CI({actos:e}){const[t,n]=$.useState(""),[r,a]=$.useState([]),[l,i]=$.useState(void 0),[u,d]=$.useState("resumen"),m=$.useMemo(()=>wI(e),[e]),f=$.useMemo(()=>{const y=m5(t.trim());return y===""?m:m.filter(g=>[g.completo,g.etiqueta,g.nombre??"",g.error??""].some(_=>m5(_).includes(y)))},[m,t]),h=$.useMemo(()=>jI(f),[f]),b=m.find(y=>y.indice===l);return m.length===0?o.jsx("p",{className:jt.vacio,children:"Todavía no hay trazas: esta sesión no ha hecho nada."}):o.jsxs("div",{className:jt.trazas,children:[o.jsxs("div",{className:jt.barra,role:"toolbar","aria-label":"Herramientas de las trazas",children:[o.jsx("input",{type:"search",className:jt.buscador,placeholder:"Buscar en las trazas…","aria-label":"Buscar en las trazas",value:t,onChange:y=>n(y.target.value)}),o.jsx("span",{className:jt.cuenta,children:f.length===m.length?`${m.length} filas`:`${f.length} de ${m.length} filas`}),o.jsx("button",{type:"button",className:jt.accion,onClick:()=>a(r.length>0?[]:h.map(y=>y.turno)),children:r.length>0?"Desplegar turnos":"Plegar turnos"})]}),o.jsxs("div",{className:jt.cuerpo,children:[o.jsx("div",{className:jt.tabla,children:f.length===0?o.jsxs("p",{className:jt.vacio,children:["Ninguna fila contiene «",t.trim(),"»."]}):h.map(y=>{const g=r.includes(y.turno);return o.jsxs("section",{className:jt.grupo,children:[o.jsxs("button",{type:"button",className:jt.cabeceraDeGrupo,"aria-expanded":!g,onClick:()=>a(g?r.filter(_=>_!==y.turno):[...r,y.turno]),children:[o.jsx("span",{className:jt.flecha,"aria-hidden":"true",children:g?"▸":"▾"}),o.jsx("span",{children:y.turno===0?"Antes del primer turno":`Turno ${y.turno}`}),o.jsxs("span",{className:jt.cuentaDeGrupo,children:[y.filas.length," ",y.filas.length===1?"fila":"filas",y.ms===void 0?"":` · ${im(y.ms)}`]})]}),g?null:y.filas.map(_=>o.jsxs("button",{type:"button",className:jt.fila,"data-tipo":_.tipo,"data-elegida":_.indice===l?"":void 0,"aria-pressed":_.indice===l,onClick:()=>i(_.indice===l?void 0:_.indice),children:[o.jsxs("span",{className:jt.indice,children:["#",_.indice]}),o.jsx("span",{className:jt.etiquetaHueco,children:o.jsx("span",{className:jt.etiqueta,"data-tipo":_.tipo,children:_.etiqueta})}),o.jsx("span",{className:jt.texto,children:_.texto}),o.jsx("span",{className:jt.tiempo,children:_.ms===void 0?"":im(_.ms)})]},_.indice))]},y.turno)})}),b===void 0?null:o.jsxs("aside",{className:jt.panel,"aria-label":"Detalle de la fila",children:[o.jsxs("header",{className:jt.cabeceraDePanel,children:[o.jsx("span",{className:jt.etiqueta,"data-tipo":b.tipo,children:b.etiqueta}),o.jsxs("span",{className:jt.situacion,children:["#",b.indice," ·"," ",b.turno===0?"antes del primer turno":`turno ${b.turno}`]}),o.jsx("button",{type:"button",className:jt.cerrar,"aria-label":"Cerrar el detalle",onClick:()=>i(void 0),children:"✕"})]}),o.jsxs("div",{className:jt.pestanasDePanel,role:"tablist","aria-label":"Detalle",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":u==="resumen",className:nt(jt.pestanaDePanel,u==="resumen"&&jt.pestanaActiva),onClick:()=>d("resumen"),children:"Resumen"}),o.jsx("button",{type:"button",role:"tab","aria-selected":u==="tiempos",className:nt(jt.pestanaDePanel,u==="tiempos"&&jt.pestanaActiva),onClick:()=>d("tiempos"),children:"Tiempos"})]}),u==="resumen"?b.error===void 0?o.jsx("pre",{className:jt.completo,children:b.completo}):o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:jt.fallo,role:"alert",children:[b.nombre," falló: ",b.error]}),o.jsx("pre",{className:jt.completo,children:b.completo})]}):o.jsx("div",{className:jt.tiempos,children:b.ms===void 0?o.jsx("p",{className:jt.nota,children:"Esta fila no lleva tiempo. Solo lo traen las fases y el fin del turno: el resto de actos no viaja con marca de tiempo, y ponerle una calculada aquí sería inventarla."}):o.jsxs("p",{className:jt.dato,children:[o.jsx("span",{className:jt.cifra,children:b.ms})," ms"]})})]})]})]})}function kI({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a,actos:l,ficheros:i,revision:u,colecciones:d,planes:m,artefactos:f,ejecutar:h}){return o.jsxs("section",{className:xn.body,"aria-label":"Panel",children:[o.jsx(BL,{pestana:e,alElegirPestana:t,alCerrar:n,...r===void 0?{}:{hayArtefactos:r},...a===void 0?{}:{hayPlanes:a}}),o.jsx("div",{className:xn.viewArea,children:e==="trazas"?o.jsx(CI,{actos:l}):e==="revision"?u:e==="colecciones"?d:e==="planes"?m:e==="artefactos"?f:e==="ejecutar"?h:i})]})}const h5=120;function j8(e){const n=(e.split(/[\\/]+/).at(-1)??"").replace(/[^A-Za-z0-9._-]/g,"_");if(!(n===""||n==="."||n===".."))return NI(n)}function NI(e){if(e.length<=h5)return e;const t=e.lastIndexOf("."),n=t>0&&e.length-t<=12?e.slice(t):"";return e.slice(0,h5-n.length)+n}function SI(){return o.jsx("path",{d:"M9.5 14.5l5-5M8 11L6 13a3.536 3.536 0 005 5l2-2M16 13l2-2a3.536 3.536 0 00-5-5l-2 2",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}const $I={openai:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z",anthropic:"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z",gemini:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",ollama:"M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z",nvidia:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z",groq:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z",xai:"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"},AI={"ollama-cloud":"ollama"};function c2({proveedor:e,size:t=20,...n}){const r=$I[AI[e]??e];return o.jsx("svg",{viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",focusable:"false",...n,children:r===void 0?o.jsx(SI,{}):o.jsx("path",{d:r})})}const EI="_envoltura_1u23z_5",DI="_conjunto_1u23z_34",zI="_pastilla_1u23z_52",TI="_rotulo_1u23z_70",MI="_menu_1u23z_104",LI="_grupo_1u23z_24",II="_proveedor_1u23z_141",qI="_punto_1u23z_162",RI="_modelos_1u23z_125",PI="_titulo_1u23z_203",FI="_modelo_1u23z_125",OI="_espera_1u23z_238",BI="_error_1u23z_239",HI="_filtro_1u23z_253",UI="_logo_1u23z_269",VI="_fuera_1u23z_284",GI="_vacio_1u23z_285",WI="_volverAMedir_1u23z_312",ZI="_puntoDeDispositivo_1u23z_330",pt={envoltura:EI,conjunto:DI,pastilla:zI,rotulo:TI,menu:MI,grupo:LI,proveedor:II,punto:qI,modelos:RI,titulo:PI,modelo:FI,espera:OI,error:BI,filtro:HI,logo:UI,fuera:VI,vacio:GI,volverAMedir:WI,puntoDeDispositivo:ZI},QI=8;function C8({actual:e,proveedores:t,alPedirCatalogo:n,alElegir:r,alAbrirAjustes:a,titulo:l="Modelo de trabajo",enLinea:i=!1}){const[u,d]=$.useState(!1),m=$.useRef(null),f=$.useCallback(()=>d(!1),[]),[h,b]=$.useState(void 0),[y,g]=$.useState([]),[_,C]=$.useState("");Rm(u,m,f);const k=M=>{if(C(""),h===M){b(void 0);return}b(M);const L=t.find(F=>F.id===M);(L==null?void 0:L.modelos)===void 0&&(L==null?void 0:L.error)===void 0&&!y.includes(M)&&(g(F=>[...F,M]),n(M))},S=M=>e!==void 0&&e.startsWith(`${M}/`),A=t.filter(M=>M.credencial==="puesta"||M.modelos!==void 0||S(M.id)),I=t.length-A.length;return o.jsxs("div",{className:pt.envoltura,ref:m,children:[o.jsxs("button",{type:"button",className:pt.pastilla,"aria-expanded":u,"aria-haspopup":"menu",onClick:()=>d(M=>!M),children:[e===void 0?null:o.jsx(c2,{proveedor:e.split("/")[0]??"",size:14,className:pt.logo}),e??"Elige modelo",o.jsx(Pm,{})]}),u?o.jsxs("div",{className:pt.menu,"data-en-linea":i?"":void 0,role:"menu","aria-label":l,children:[o.jsx("div",{className:pt.titulo,role:"presentation",children:l}),A.map(M=>{const L=e!==void 0&&e.startsWith(`${M.id}/`),F=M.modelos===void 0&&M.error===void 0&&y.includes(M.id),G=M.credencial!=="nativa"?M.credencial:M.error!==void 0?"sin-conexion":M.modelos!==void 0?"conecta":void 0;return o.jsxs("div",{className:pt.grupo,children:[o.jsxs("button",{type:"button",role:"menuitem",className:pt.proveedor,"aria-expanded":h===M.id,"data-actual":L?"":void 0,...L?{"aria-current":"true"}:{},onClick:()=>k(M.id),children:[G===void 0?null:o.jsx("span",{className:pt.punto,"data-credencial":G,"aria-hidden":"true",title:{puesta:"con credencial",falta:"sin credencial",conecta:"conectado","sin-conexion":"sin conexión"}[G]}),o.jsx(c2,{proveedor:M.id,size:16,className:pt.logo}),o.jsx("span",{children:M.nombre})]}),h===M.id?o.jsx("div",{className:pt.modelos,children:M.error!==void 0?o.jsx("p",{className:pt.error,role:"alert",children:M.error}):M.modelos===void 0?o.jsx("p",{className:pt.espera,children:F?"consultando…":"sin consultar"}):M.modelos.length===0?o.jsx("p",{className:pt.espera,children:"no ofrece ningún modelo de conversación"}):o.jsxs(o.Fragment,{children:[M.modelos.length>QI?o.jsx("input",{type:"search",className:pt.filtro,value:_,onChange:O=>C(O.target.value),placeholder:"filtrar…","aria-label":`filtrar los modelos de ${M.nombre}`}):null,M.modelos.filter(O=>{const B=_.trim().toLowerCase();return B===""||O.id.toLowerCase().includes(B)||(O.nombre??"").toLowerCase().includes(B)}).map(O=>{const B=`${M.id}/${O.id}`;return o.jsx("button",{type:"button",role:"menuitemradio","aria-checked":B===e,className:pt.modelo,"data-actual":B===e?"":void 0,onClick:()=>{d(!1),r(B)},children:O.nombre??O.id},O.id)})]})}):null]},M.id)}),A.length===0?o.jsx("p",{className:pt.vacio,children:"Ninguno comprobado todavía: pon una clave, o levanta Ollama."}):null,I===0?null:a===void 0?o.jsxs("p",{className:pt.fuera,children:[I," ",I===1?"proveedor más":"proveedores más"," sin comprobar."]}):o.jsxs("button",{type:"button",className:pt.fuera,onClick:a,children:[I," ",I===1?"proveedor más":"proveedores más"," sin comprobar · configúralos en Ajustes"]})]}):null]})}function XI({niveles:e,actual:t,conectado:n=!0,nota:r,alElegir:a}){const[l,i]=$.useState(!1),u=$.useRef(null),d=$.useCallback(()=>i(!1),[]);if(Rm(l,u,d),e===void 0||e.length===0)return null;const m=f=>{i(!1),a(f)};return o.jsxs("div",{className:pt.envoltura,ref:u,children:[o.jsxs("button",{type:"button",className:pt.pastilla,"aria-expanded":l,"aria-haspopup":"menu",disabled:!n,title:"Cuánto razona el modelo antes de contestar",onClick:()=>i(f=>!f),children:[t===void 0?"esfuerzo":o.jsxs(o.Fragment,{children:[o.jsx("span",{className:pt.rotulo,children:"pensar:"}),t]}),o.jsx(Pm,{})]}),l?o.jsxs("div",{className:pt.menu,role:"menu","aria-label":"esfuerzo de razonamiento",children:[o.jsx("div",{className:pt.titulo,role:"presentation",children:"Esfuerzo de razonamiento"}),o.jsxs("div",{className:pt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:pt.modelo,"data-actual":t===void 0?"":void 0,...t===void 0?{"aria-current":"true"}:{},onClick:()=>m(void 0),children:"Sin fijar"}),e.map(f=>o.jsx("button",{type:"button",role:"menuitem",className:pt.modelo,"data-actual":f===t?"":void 0,...f===t?{"aria-current":"true"}:{},onClick:()=>m(f),children:f},f))]}),o.jsx("p",{className:pt.espera,children:r??"Se guarda con la sesión. Sin fijar, decide el modelo."})]}):null]})}const f5={conectado:"conectado",arrancado:"arrancado",apagado:"apagado","sin-autorizar":"sin autorizar",offline:"offline","no-disponible":"no disponible"};function Pl(e){return e.estado==="conectado"&&e.clase!=="fisico"?f5.arrancado:f5[e.estado]}function zi(e){return e.estado==="conectado"||e.estado==="arrancado"}function k8(e){const t=e.dispositivos.filter(u=>u.clase==="fisico"),n=e.dispositivos.filter(u=>u.clase!=="fisico"),r=new Set(n.map(u=>u.avd).filter(u=>u!==void 0)),a=e.avds.filter(u=>!r.has(u)).map(u=>({id:`avd:${u}`,nombre:u,plataforma:"android",clase:"emulador",estado:"apagado",soloDefinicion:!0})),l=u=>(zi(u)?0:2)+(u.plataforma==="android"?0:1),i=[...n,...a].sort((u,d)=>l(u)-l(d));return{fisicos:t,virtuales:i}}function YI({elegido:e,informe:t,conectado:n=!0,alElegir:r,alMedir:a,enUso:l,proyectoActual:i}){const[u,d]=$.useState(!1),m=$.useRef(null),f=$.useCallback(()=>d(!1),[]);Rm(u,m,f);const{fisicos:h,virtuales:b}=t===void 0?{fisicos:[],virtuales:[]}:k8(t),y=[...h,...b],g=G=>G.plataforma==="android"?0:1,_=y.filter(G=>zi(G)).sort((G,O)=>g(G)-g(O)),C=h.filter(G=>!zi(G)),k=b.filter(G=>!zi(G)),S=t===void 0||y.some(G=>G.id===(e==null?void 0:e.id)),A=(l??[]).filter(G=>G.proyecto!==i),I=G=>{var O;return(O=A.find(B=>B.id===G))==null?void 0:O.proyecto},M=e===void 0?void 0:I(e.id),L=G=>{d(!1),r(G)},F=(G,O)=>O.length===0?null:o.jsxs("div",{className:pt.grupo,children:[o.jsx("div",{className:pt.titulo,role:"presentation",children:G}),O.map(B=>o.jsxs("button",{type:"button",role:"menuitem",className:pt.modelo,"data-actual":B.id===(e==null?void 0:e.id)?"":void 0,...B.id===(e==null?void 0:e.id)?{"aria-current":"true"}:{},disabled:B.soloDefinicion===!0,...B.soloDefinicion===!0?{title:"apagado — arráncalo para poder elegirlo"}:{},onClick:()=>L(B.id),children:[o.jsx("span",{className:pt.puntoDeDispositivo,"data-vivo":zi(B)?"":void 0,"aria-hidden":"true"}),B.plataforma==="android"?`${B.nombre} · Android`:B.nombre," · ",Pl(B),I(B.id)===void 0?null:o.jsx("span",{className:pt.espera,children:`en uso en ${I(B.id)}`})]},B.id))]});return o.jsxs("div",{className:pt.envoltura,ref:m,children:[o.jsxs("button",{type:"button",className:pt.pastilla,"aria-expanded":u,"aria-haspopup":"menu",disabled:!n,title:e===void 0?"Elige el dispositivo de esta sesión":`${S?e.nombre:`${e.nombre} — no está en la última medida`}${M===void 0?"":` — también lo usa ${M}`}`,onClick:()=>d(G=>!G),children:[o.jsx(rM,{}),o.jsxs("span",{children:[e===void 0?"Sin dispositivo":e.nombre,e!==void 0&&!S?" ·":null,M===void 0?null:o.jsx("span",{role:"img","aria-label":`también lo usa ${M}`,children:" ⚠"})]}),o.jsx(Pm,{})]}),u?o.jsxs("div",{className:pt.menu,role:"menu","aria-label":"dispositivo de la sesión",children:[o.jsx("div",{className:pt.titulo,role:"presentation",children:"Dispositivo de esta sesión"}),o.jsxs("div",{className:pt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:pt.modelo,"data-actual":e===void 0?"":void 0,onClick:()=>L(void 0),children:"Ninguno"}),e!==void 0&&!S?o.jsxs("button",{type:"button",role:"menuitem",className:pt.modelo,"data-actual":"",onClick:()=>L(e.id),children:[e.nombre," · no está en la última medida"]}):null,F("Disponibles ahora",_),F("Teléfonos y tablets",C),F("Simuladores y emuladores",k),t===void 0?o.jsx("p",{className:pt.espera,children:"Todavía no ha llegado ninguna medida de este equipo."}):y.length===0?o.jsx("p",{className:pt.espera,children:"No se ha encontrado ningún dispositivo. Los requisitos se instalan en Ajustes."}):null]}),a===void 0?null:o.jsxs("div",{className:pt.espera,children:[t===void 0?null:`Medido a las ${KI(t.medido)}. `,o.jsx("button",{type:"button",className:pt.volverAMedir,disabled:!n,onClick:()=>a(),children:"Volver a medir"})]}),o.jsx("p",{className:pt.espera,children:"Se guarda con la sesión. La usan la pestaña Ejecutar para lanzar la app y el agente cuando prueba en un aparato; sin elegir ninguno, prefiere un emulador."})]}):null]})}function KI(e){const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}const JI="_pista_tczu2_13",eq="_mitad_tczu2_29",g5={pista:JI,mitad:eq};function N8({actual:e,conectado:t=!0,rotulo:n="modo de escritura",alElegir:r}){const a=$.useRef(void 0);if(e===void 0)return null;const l=e,i=()=>a.current!==void 0&&a.current.desde===l?a.current.modo:l,u=[{modo:"supervisado",etiqueta:"Supervisado",que:"Cada escritura para y te enseña su diff antes de aplicarse",icono:aM},{modo:"autonomo",etiqueta:"Autónomo",que:"Las escrituras se aplican solas; cada turno dirá qué ficheros tocó. Subir a CloudStudio sigue pidiéndote permiso",icono:oM}];return o.jsx("div",{className:g5.pista,role:"group","aria-label":n,children:u.map(({modo:d,etiqueta:m,que:f,icono:h})=>o.jsxs("button",{type:"button",className:g5.mitad,"aria-pressed":d===e,"data-puesto":d===e?"":void 0,disabled:!t,title:f,onClick:()=>{d!==i()&&(a.current={modo:d,desde:l},r(d))},children:[o.jsx(h,{}),o.jsx("span",{children:m})]},d))})}function Rt(e){if(!Number.isFinite(e)||e<0)return"0";if(e<1e3)return String(Math.round(e));const[t,n]=e<1e6?[e/1e3,"k"]:[e/1e6,"M"];return`${t.toFixed(1).replace(".",",").replace(/,0$/,"")}${n}`}function u2(e,t){const n=Math.max(0,e.entrada-e.cache)+t.entrada,r=e.cache+t.cache;return{nueva:n,cache:r,salida:e.salida+t.salida,entradaTotal:n+r}}function tq(e){const t=[];for(const[r,a]of Object.entries(e)){const l=a.cuenta==="modelo"?Math.max(0,a.entrada-a.cache):a.entrada;l===0&&a.cache===0&&a.salida===0||t.push({id:r,cuenta:a.cuenta,nueva:l,cache:a.cache,salida:a.salida,sinDesglose:r.startsWith(Fy)})}const n=r=>r.nueva+r.cache+r.salida;return t.sort((r,a)=>Number(r.sinDesglose)-Number(a.sinDesglose)||n(a)-n(r))}const nq="_capa_1iva6_24",rq="_velo_1iva6_18",aq="_pregunta_1iva6_62",oq="_envoltorio_1iva6_85",sq="_enunciado_1iva6_91",iq="_titulo_1iva6_100",lq="_fila_1iva6_108",cq="_plan_1iva6_39",uq="_decisiones_1iva6_160",dq="_cancelar_1iva6_168 _secundario_1l1rx_39 _grande_1l1rx_26",pq="_fallo_1iva6_217",mq="_accion_1iva6_4 _primario_1l1rx_67 _grande_1l1rx_26",hq="_herramientas_1iva6_257",fq="_cuenta_1iva6_263",gq="_enlace_1iva6_270",vq="_arbol_1iva6_289",bq="_clase_1iva6_301",yq="_girando_1iva6_332 _girando_xl444_17",xq="_fin_1iva6_350",_q="_marcaDeFin_1iva6_361",wq="_detalle_1iva6_379",tt={capa:nq,velo:rq,pregunta:aq,envoltorio:oq,enunciado:sq,titulo:iq,fila:lq,plan:cq,decisiones:uq,cancelar:dq,fallo:pq,accion:mq,herramientas:hq,cuenta:fq,enlace:gq,arbol:vq,clase:bq,girando:yq,fin:xq,marcaDeFin:_q,detalle:wq},jq="_tarjeta_1ib8n_6",Cq="_cabecera_1ib8n_19",kq="_titulo_1ib8n_25",Nq="_subtitulo_1ib8n_32",Sq="_tabla_1ib8n_38",$q="_modelo_1ib8n_72",Aq="_total_1ib8n_86",Eq="_marca_1ib8n_102",Dq="_nota_1ib8n_111",zq="_acciones_1ib8n_117",Lo={tarjeta:jq,cabecera:Cq,titulo:kq,subtitulo:Nq,tabla:Sq,modelo:$q,total:Aq,marca:Eq,nota:Dq,acciones:zq};function Tq({porModelo:e,alCerrar:t}){const n=tq(e),r=$.useRef(null);$.useEffect(()=>{var u;return(u=r.current)==null?void 0:u.focus()},[]);const a=n.reduce((u,d)=>({nueva:u.nueva+d.nueva,cache:u.cache+d.cache,salida:u.salida+d.salida}),{nueva:0,cache:0,salida:0}),l=n.some(u=>u.cuenta==="externo"),i=n.some(u=>u.sinDesglose);return o.jsx(rr,{open:!0,onClose:t,title:"Tokens por modelo",headless:!0,className:tt.capa,children:o.jsx("div",{className:tt.velo,onClick:u=>{u.target===u.currentTarget&&t()},children:o.jsxs("div",{className:Lo.tarjeta,children:[o.jsxs("header",{className:Lo.cabecera,children:[o.jsx("p",{className:Lo.titulo,children:"Tokens por modelo"}),o.jsx("p",{className:Lo.subtitulo,children:"Lo que lleva gastado esta conversación, modelo a modelo."})]}),o.jsxs("table",{className:Lo.tabla,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"Modelo"}),o.jsx("th",{scope:"col",children:"Nueva"}),o.jsx("th",{scope:"col",children:"Caché"}),o.jsx("th",{scope:"col",children:"Salida"})]})}),o.jsx("tbody",{children:n.map(u=>o.jsxs("tr",{"data-sin-desglose":u.sinDesglose?"":void 0,children:[o.jsxs("th",{scope:"row",className:Lo.modelo,children:[u.id,u.cuenta==="externo"&&!u.sinDesglose?o.jsx("span",{className:Lo.marca,children:"externo"}):null]}),o.jsx("td",{title:String(u.nueva),children:Rt(u.nueva)}),o.jsx("td",{title:String(u.cache),children:Rt(u.cache)}),o.jsx("td",{title:String(u.salida),children:Rt(u.salida)})]},u.id))}),o.jsx("tfoot",{children:o.jsxs("tr",{className:Lo.total,children:[o.jsx("th",{scope:"row",children:"Total"}),o.jsx("td",{title:String(a.nueva),children:Rt(a.nueva)}),o.jsx("td",{title:String(a.cache),children:Rt(a.cache)}),o.jsx("td",{title:String(a.salida),children:Rt(a.salida)})]})})]}),i?o.jsx("p",{className:Lo.nota,children:"«Sin desglose» es lo gastado en turnos de antes de medir por modelo."}):null,l?o.jsx("p",{className:Lo.nota,children:"Un agente externo va contra su propia suscripción: se suman tokens, no coste."}):null,o.jsx("div",{className:Lo.acciones,children:o.jsx("button",{ref:r,type:"button",className:tt.accion,onClick:t,children:"Cerrar"})})]})})})}const Mq="_contador_pgufs_21",Lq="_separador_pgufs_37",Iq="_cifra_pgufs_43",qq="_rotulo_pgufs_52",Rq="_boton_pgufs_70",Io={contador:Mq,separador:Lq,cifra:Iq,rotulo:qq,boton:Rq};function Pq({consumo:e}){const[t,n]=$.useState(!1);if(e===void 0)return null;const{nueva:r,cache:a,salida:l,entradaTotal:i}=u2(e.modelo,e.externo);if(i===0&&l===0)return null;const u=e.externo.entrada>0||e.externo.salida>0,d=["Tokens de esta conversación",`· entrada total: ${i} — ${r} nueva + ${a} de caché`,`· modelo: ${e.modelo.entrada} entrada (caché INCLUIDA) / ${e.modelo.salida} salida`,...u?[`· agentes externos: ${e.externo.entrada} entrada (caché aparte) / ${e.externo.salida} salida`]:[],...u?["Las dos cuentas son de proveedores distintos: se suman TOKENS, no coste."]:[],"Se cuentan los turnos anteriores a este, así que sobreviven a cerrar y reabrir la sesión."].join(`
|
|
465
|
-
`),m=o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"↑"}),o.jsx("span",{className:Io.cifra,children:Rt(r)}),o.jsx("span",{className:Io.rotulo,children:"nueva"}),o.jsx("span",{"aria-hidden":"true",className:Io.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"⟳"}),o.jsx("span",{className:Io.cifra,children:Rt(a)}),o.jsx("span",{className:Io.rotulo,children:"caché"}),o.jsx("span",{"aria-hidden":"true",className:Io.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:Io.cifra,children:Rt(l)}),o.jsx("span",{className:Io.rotulo,children:"salida"})]}),f=e.porModelo;return f===void 0||Object.keys(f).length===0?o.jsx("span",{className:Io.contador,title:d,children:m}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:`${Io.contador} ${Io.boton}`,title:`${d}
|
|
466
|
-
Pulsa para verlo por modelo.`,"aria-haspopup":"dialog",onClick:()=>n(!0),children:m}),t?o.jsx(Tq,{porModelo:f,alCerrar:()=>n(!1)}):null]})}const Fq="_envoltura_yc651_15",Oq="_compositor_yc651_42",Bq="_motor_yc651_97",Hq="_dispositivo_yc651_116",Uq="_entrada_yc651_152",Vq="_controles_yc651_226",Gq="_acciones_yc651_218",Wq="_gasto_yc651_266",Zq="_enviar_yc651_290",Qq="_parar_yc651_362",Xq="_anexar_yc651_491 _secundario_1l1rx_39",Yq="_fichas_yc651_512",Kq="_ficha_yc651_512",Jq="_nombreDeFicha_yc651_528",eR="_estadoDeFicha_yc651_537",tR="_quitarFicha_yc651_547",xr={envoltura:Fq,compositor:Oq,motor:Bq,dispositivo:Hq,entrada:Uq,controles:Vq,acciones:Gq,gasto:Wq,enviar:Zq,parar:Qq,anexar:Xq,fichas:Yq,ficha:Kq,nombreDeFicha:Jq,estadoDeFicha:eR,quitarFicha:tR};function nR(e,t){if(!t.has(e))return e;const n=e.lastIndexOf("."),r=n>0?e.slice(0,n):e,a=n>0?e.slice(n):"";let l=2;for(;t.has(`${r}-${l}${a}`);)l+=1;return`${r}-${l}${a}`}function rR(e){var n;const t=(n=e.split("/")[1])==null?void 0:n.split("+")[0];return t===void 0||t===""?"bin":t}function aR({conectado:e,turnoEnVuelo:t=!1,hayPendiente:n=!1,consumo:r,oculto:a=!1,alParar:l,modelos:i,alPedirCatalogo:u,alElegirModelo:d,alElegirEsfuerzo:m,alAbrirAjustes:f,dispositivo:h,dispositivos:b,modoDeEscritura:y,alElegirModoDeEscritura:g,alElegirDispositivo:_,dispositivosEnUso:C,proyectoActual:k,alMedirDispositivos:S,alSubirAdjunto:A,alEnviar:I,borrador:M}){var pe,Me;const[L,F]=$.useState(""),G=$.useRef(null),O=$.useRef(null),[B,W]=$.useState([]),re=$.useRef(0),[fe,he]=$.useState(!1),ne=A!==void 0&&e,we=async ge=>{if(A===void 0)return;const ze=new Set(B.map(Pe=>Pe.nombre));for(const Pe of ge){const qe=re.current;re.current+=1;const Nt=j8(Pe.name);if(Nt===void 0){W(Rn=>[...Rn,{id:qe,nombre:Pe.name,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const Kt=nR(Nt,ze);ze.add(Kt),W(Rn=>[...Rn,{id:qe,nombre:Kt,estado:"subiendo"}]);const Ut=await A(Pe,Kt);W(Rn=>Rn.map(Wn=>Wn.id===qe?Ut.ok?{...Wn,estado:"listo",nombre:Ut.nombre??Wn.nombre}:{...Wn,estado:"falló",...Ut.motivo===void 0?{}:{motivo:Ut.motivo}}:Wn))}},je=ge=>W(ze=>ze.filter(Pe=>Pe.id!==ge)),J=ge=>{ne&&(ge.preventDefault(),he(!1),we(Array.from(ge.dataTransfer.files)))},oe=ge=>{var qe;if(!ne)return;const ze=Array.from(((qe=ge.clipboardData)==null?void 0:qe.files)??[]);if(ze.length===0)return;ge.preventDefault();const Pe=ze.map((Nt,Kt)=>new File([Nt],`pegado-${Kt+1}.${rR(Nt.type)}`,{type:Nt.type}));we(Pe)};$.useEffect(()=>{var ge;M!==void 0&&(F(ze=>ze.trim()===""?M.texto:`${ze.replace(/\s+$/,"")}
|
|
467
|
-
${M.texto}`),(ge=G.current)==null||ge.focus())},[M==null?void 0:M.id]);const R=$.useRef(!1);$.useEffect(()=>{var ze;const ge=R.current&&!n;R.current=n,ge&&!a&&e&&((ze=G.current)==null||ze.focus())},[n,a,e]);const q=B.some(ge=>ge.estado==="subiendo"),ee=B.some(ge=>ge.estado==="falló"),z=()=>{if(n||q||ee)return;const ge=L.trim(),ze=B.filter(Pe=>Pe.estado==="listo").map(Pe=>Pe.nombre);ge===""&&ze.length===0||(I(ge,ze),F(""),W([]))},ke=ge=>{ge.key==="Enter"&&!ge.shiftKey&&(ge.preventDefault(),z())};return o.jsx("div",{className:xr.envoltura,hidden:a,children:o.jsxs("div",{className:xr.compositor,"data-trabajando":t?"":void 0,"data-con-texto":L===""?void 0:"","data-arrastrando":fe?"":void 0,onDragOver:ge=>{ne&&(ge.preventDefault(),he(!0))},onDragLeave:()=>he(!1),onDrop:J,children:[o.jsxs("div",{className:xr.motor,children:[o.jsx("div",{className:xr.gasto,children:o.jsx(Pq,{...r===void 0?{}:{consumo:r}})}),_===void 0?null:o.jsx("div",{className:xr.dispositivo,children:o.jsx(YI,{...h===void 0?{}:{elegido:h},...b===void 0?{}:{informe:b},conectado:e,alElegir:_,...S===void 0?{}:{alMedir:S},...C===void 0?{}:{enUso:C},...k===void 0?{}:{proyectoActual:k}})})]}),o.jsx("textarea",{ref:G,className:xr.entrada,value:L,disabled:!e||n,placeholder:e?n?"responde arriba antes de seguir":`Pregunta sobre XOne, o /comando…
|
|
468
|
-
Enter envía · Shift+Enter salta de línea`:"sin conexión con XOneCode",title:"Pregunta sobre la plataforma, pide un cambio en una colección o en un script, o escribe /comando",onChange:ge=>F(ge.target.value),onKeyDown:ke,onPaste:oe}),B.length===0?null:o.jsx("ul",{className:xr.fichas,children:B.map(ge=>o.jsxs("li",{className:xr.ficha,"data-estado":ge.estado,children:[o.jsx("span",{className:xr.nombreDeFicha,children:ge.nombre}),o.jsx("span",{className:xr.estadoDeFicha,...ge.estado==="falló"?{title:ge.motivo??"no se pudo subir"}:{},children:ge.estado==="subiendo"?"subiendo…":ge.estado==="listo"?"listo":"falló"}),o.jsx("button",{type:"button",className:xr.quitarFicha,"aria-label":`Quitar ${ge.nombre}`,onClick:()=>je(ge.id),children:"Quitar"})]},ge.id))}),o.jsxs("div",{className:xr.controles,children:[A===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:xr.anexar,disabled:!e,"aria-label":"Anexar ficheros",title:"Anexar ficheros (también puedes soltarlos o pegarlos)",onClick:()=>{var ge;return(ge=O.current)==null?void 0:ge.click()},children:o.jsx(lM,{})}),o.jsx("input",{ref:O,hidden:!0,type:"file",multiple:!0,onChange:ge=>{we(Array.from(ge.target.files??[])),ge.target.value=""}})]}),g===void 0?null:o.jsx(N8,{...y===void 0?{}:{actual:y},conectado:e,alElegir:g}),o.jsxs("div",{className:xr.acciones,children:[o.jsxs("div",{className:pt.conjunto,children:[i!==void 0?o.jsx(C8,{...i.actual===void 0?{}:{actual:i.actual},proveedores:i.proveedores,alPedirCatalogo:ge=>u==null?void 0:u(ge),alElegir:ge=>d==null?void 0:d(ge),...f===void 0?{}:{alAbrirAjustes:f}}):null,m===void 0?null:o.jsx(XI,{...(i==null?void 0:i.esfuerzo)===void 0?{}:{niveles:i.esfuerzo.niveles},...((pe=i==null?void 0:i.esfuerzo)==null?void 0:pe.actual)===void 0?{}:{actual:i.esfuerzo.actual},...((Me=i==null?void 0:i.esfuerzo)==null?void 0:Me.nota)===void 0?{}:{nota:i.esfuerzo.nota},conectado:e,alElegir:m})]}),t?o.jsx("button",{type:"button",className:`${xr.enviar} ${xr.parar}`,disabled:!e||l===void 0,"aria-label":"Parar",title:"Parar el turno",onClick:()=>l==null?void 0:l(),children:"■"}):o.jsx("button",{type:"button",className:xr.enviar,disabled:!e||q||ee,"aria-label":"Enviar",...q?{title:"espera a que termine de subir el adjunto"}:ee?{title:"quita el adjunto que falló antes de enviar"}:{},onClick:z,children:o.jsx(sM,{})})]})]})]})})}const Xh=48,oR=1e3;function Yh(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function S8(e,t={}){const n=$.useRef(null),r=$.useRef(!0),[a,l]=$.useState(!0),i=$.useRef(0);$.useEffect(()=>{const f=n.current;if(f!==null){if(r.current){f.scrollTop=f.scrollHeight,l(!0);return}l(Yh(f)<=Xh)}},[e]);const u=t.vigilarTamano===!0;$.useEffect(()=>{const f=n.current;if(!u||f===null||typeof ResizeObserver>"u")return;const h=()=>{r.current||l(Yh(f)<=Xh)},b=new ResizeObserver(h);b.observe(f);for(const y of Array.from(f.children))b.observe(y);return()=>b.disconnect()},[u]);const d=$.useCallback(()=>{const f=n.current;if(f===null)return;const h=Yh(f)<=Xh;if(i.current!==0){if(!h&&Date.now()<i.current)return;i.current=0}r.current=h,l(h)},[]),m=$.useCallback(()=>{const f=n.current;f!==null&&(r.current=!0,l(!0),typeof f.scrollTo=="function"?(i.current=Date.now()+oR,f.scrollTo({top:f.scrollHeight,behavior:"smooth"})):f.scrollTop=f.scrollHeight)},[]);return{nodo:n,alDesplazar:d,alFinal:a,bajar:m}}function sR(e,t,n){let r=0;for(let a=Math.max(0,t);a<e.length;a++)n(e[a],a)&&r++;return r}function iR(e,t,n){const r=$.useRef(e),a=$.useRef(n);return(t||n!==a.current)&&(r.current=e,a.current=n),r.current>e&&(r.current=e),r.current}function l4(e){if(e!==void 0)return e.rol==="orquestador"?"orquestador":e.nombre??"especialista"}function lR(e,t,n){const r=[];let a=n,l;return e.forEach((i,u)=>{var m,f;const d=l4((m=t==null?void 0:t[u])==null?void 0:m.origen);(l===void 0||d!==a)&&(l={...d===void 0||d===a?{}:{rotulo:d},lineas:[]},r.push(l),a=d),((f=t==null?void 0:t[u])==null?void 0:f.error)!==void 0&&(l.fallidas??(l.fallidas=[])).push(l.lineas.length),l.lineas.push(i)}),{trozos:r,ultimo:a}}function cR(e){let t=0;for(const n of e)if(n.tipo==="herramientas")for(const r of n.detalles??[])(r==null?void 0:r.error)!==void 0&&t++;return t}function $8(e,t){const[n,r]=$.useState(void 0);return $.useEffect(()=>{if(!e){r(void 0);return}const a=Date.now();r(0);const l=setInterval(()=>r(Math.floor((Date.now()-a)/1e3)),1e3);return()=>clearInterval(l)},[e,t]),n}const uR="_boton_13o2m_10",dR={boton:uR};function F0({texto:e,etiqueta:t="Copiar"}){const[n,r]=$.useState("quieto"),a=$.useRef(void 0);$.useEffect(()=>()=>clearTimeout(a.current),[]);const l=async()=>{clearTimeout(a.current);try{await navigator.clipboard.writeText(e),r("copiado")}catch{r("fallo")}a.current=setTimeout(()=>r("quieto"),2e3)},i=n==="copiado"?"Copiado":n==="fallo"?"No se pudo copiar":t;return o.jsx("button",{type:"button",className:dR.boton,"data-estado":n,title:i,"aria-label":i,onClick:()=>void l(),children:n==="copiado"?o.jsx(J2,{size:14}):o.jsx(BE,{size:14})})}const pR="_coste_g2gtu_11",mR="_cifra_g2gtu_22",hR="_cache_g2gtu_28",f0={coste:pR,cifra:mR,cache:hR};function A8(e){return e.modelo.entrada+e.modelo.salida+e.externo.entrada+e.externo.salida>0}function fR({consumo:e,ambito:t="turno"}){const n=e.modelo.entrada+e.externo.entrada,r=e.modelo.salida+e.externo.salida,a=e.modelo.cache+e.externo.cache;if(!A8(e))return null;const l=t==="sesion",i=e.externo.entrada>0||e.externo.salida>0,u=[l?`Gastado en esta sesión: ${n+r} tokens en total`:"Trabajo de este turno",`· modelo: ${e.modelo.entrada} entrada / ${e.modelo.salida} salida`,...i?[`· agentes externos: ${e.externo.entrada} entrada / ${e.externo.salida} salida`]:[],...a>0?[`· caché leída: ${a} (no va sumada a la entrada)`]:[],...i?["Las dos cuentas son de proveedores distintos: se suman TOKENS, no coste."]:[]].join(`
|
|
469
|
-
`);return o.jsxs("span",{className:f0.coste,title:u,"aria-label":l?`Esta sesión: ${n+r} tokens en total, ${n} de entrada y ${r} de salida${a>0?`, con ${a} de caché`:""}`:`${n} de entrada, ${r} de salida${a>0?`, ${a} de caché`:""}`,children:[l?o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"Σ"}),o.jsx("span",{className:f0.cifra,children:Rt(n+r)})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"↑"}),o.jsx("span",{className:f0.cifra,children:Rt(n)}),o.jsx("span",{"aria-hidden":"true",children:" "}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:f0.cifra,children:Rt(r)})]}),a>0&&!l&&o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:f0.cache,children:[Rt(a)," caché"]})]})]})}function E8({ms:e,consumo:t}){const n=e===void 0?null:`${Math.round(e/100)/10}s`,r=t===void 0?null:o.jsx(fR,{consumo:t});return n===null&&r===null?null:o.jsxs(o.Fragment,{children:[n,n!==null&&r!==null?" · ":null,r]})}const gR=14;function lo({children:e,lado:t=gR}){return o.jsx("svg",{"aria-hidden":"true",focusable:"false",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e})}function vR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function bR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"m16 18 6-6-6-6"}),o.jsx("path",{d:"m8 6-6 6 6 6"})]})}function yR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),o.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),o.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),o.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function xR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"M12 15V3"}),o.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),o.jsx("path",{d:"m7 10 5 5 5-5"})]})}const Kh="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",Jh="M14 2v5a1 1 0 0 0 1 1h5";function _R({forma:e}){switch(e){case"pagina":return o.jsxs(lo,{lado:18,children:[o.jsx("path",{d:Kh}),o.jsx("path",{d:Jh}),o.jsx("path",{d:"M10 12.5 8 15l2 2.5"}),o.jsx("path",{d:"m14 12.5 2 2.5-2 2.5"})]});case"panel":return o.jsxs(lo,{lado:18,children:[o.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),o.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),o.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),o.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]});case"texto":return o.jsxs(lo,{lado:18,children:[o.jsx("path",{d:Kh}),o.jsx("path",{d:Jh}),o.jsx("path",{d:"M10 9H8"}),o.jsx("path",{d:"M16 13H8"}),o.jsx("path",{d:"M16 17H8"})]});case"imagen":return o.jsxs(lo,{lado:18,children:[o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),o.jsx("circle",{cx:"9",cy:"9",r:"2"}),o.jsx("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]});case"fichero":return o.jsxs(lo,{lado:18,children:[o.jsx("path",{d:Kh}),o.jsx("path",{d:Jh})]})}}function wR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"M5 12h14"}),o.jsx("path",{d:"m12 5 7 7-7 7"})]})}function jR({lado:e=12}){return o.jsxs(lo,{lado:e,children:[o.jsx("path",{d:"M15 3h6v6"}),o.jsx("path",{d:"M10 14 21 3"}),o.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})}function CR(){return o.jsxs(lo,{children:[o.jsx("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),o.jsx("path",{d:"M21 3v5h-5"})]})}const kR=new Map([["xne","xml"],["xml","xml"],["js","javascript"],["css","css"],["ini","ini"],["json","json"],["md","markdown"],["html","html"],["svg","xml"]]);function lm(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");if(!(n<=0))return kR.get(t.slice(n+1).toLowerCase())}const NR="_imagen_1uv9z_5",SR="_nota_1uv9z_32",v5={imagen:NR,nota:SR};function cm({mime:e,base64:t,alt:n,bytes:r}){return o.jsxs("div",{className:v5.imagen,children:[o.jsx("img",{src:`data:${e};base64,${t}`,alt:n}),o.jsxs("p",{className:v5.nota,children:[Ro(r)," KB"]})]})}function Ro(e){return Math.max(1,Math.round(e/1024))}function $R(e,t,n=3){const r=e.replace(/\r\n/g,`
|
|
470
|
-
`).split(`
|
|
471
|
-
`);if(r.length>1&&r[r.length-1]===""&&r.pop(),!Number.isInteger(t)||t<1||t>r.length)return;const a=Math.max(1,t-n),l=Math.min(r.length,t+n),i=[];for(let u=a;u<=l;u++)i.push({numero:u,texto:r[u-1],marcada:u===t});return{desde:a,lineas:i}}const AR="_visor_1gka3_4",ER="_bloque_1gka3_13",DR="_extracto_1gka3_51",zR="_lineaDelExtracto_1gka3_62",TR="_numero_1gka3_70",MR="_aviso_1gka3_79",Fc={visor:AR,bloque:ER,extracto:DR,lineaDelExtracto:zR,numero:TR,aviso:MR};function D8({texto:e,lenguaje:t,linea:n}){const r=$.useRef(null),a=n===void 0?void 0:$R(e,n);return $.useEffect(()=>{const l=r.current;if(l===null||n===void 0||a===void 0)return;let i=!1;const u=()=>{const f=l.querySelectorAll(".line")[n-1];for(const h of l.querySelectorAll(".line[data-marcada]"))h!==f&&delete h.dataset.marcada;f!==void 0&&(f.dataset.marcada="",!i&&typeof f.scrollIntoView=="function"&&(f.scrollIntoView({block:"center"}),i=!0))};if(u(),typeof MutationObserver>"u")return;const d=new MutationObserver(u);return d.observe(l,{childList:!0,subtree:!0}),()=>d.disconnect()},[e,n]),o.jsxs("div",{className:Fc.visor,ref:r,children:[n===void 0?null:a===void 0?o.jsx("p",{className:Fc.aviso,children:`El fichero ya no tiene línea ${n}: ha cambiado desde el hallazgo.`}):o.jsx("div",{className:Fc.extracto,"aria-label":`Línea ${n}`,children:a.lineas.map(l=>o.jsxs("div",{className:Fc.lineaDelExtracto,"data-marcada":l.marcada?"":void 0,children:[o.jsx("span",{className:Fc.numero,children:l.numero}),o.jsx("span",{children:l.texto})]},l.numero))}),o.jsx(r8,{code:e,lang:t,copyLabel:"Copiar",copiedLabel:"Copiado",className:Fc.bloque})]})}const LR="_caja_1c0hw_10",IR="_artefactos_1c0hw_6",qR="_visor_1c0hw_24",RR="_lista_1c0hw_32",PR="_cabecera_1c0hw_58",FR="_nombre_1c0hw_73",OR="_mandos_1c0hw_79",BR="_caras_1c0hw_86",HR="_cara_1c0hw_86",UR="_descargar_1c0hw_120",VR="_marco_1c0hw_141",GR="_iframe_1c0hw_154",WR="_markdown_1c0hw_164",ZR="_aviso_1c0hw_171",QR="_nota_1c0hw_179",XR="_rotulo_1c0hw_186",YR="_fila_1c0hw_196",KR="_filaNombre_1c0hw_225",JR="_filaPeso_1c0hw_231",Bt={caja:LR,artefactos:IR,visor:qR,lista:RR,cabecera:PR,nombre:FR,mandos:OR,caras:BR,cara:HR,descargar:UR,marco:VR,iframe:GR,markdown:WR,aviso:ZR,nota:QR,rotulo:XR,fila:YR,filaNombre:KR,filaPeso:JR},b5="/artefactos/",z8=e=>e.startsWith(b5)?e.slice(b5.length):e;function Qc(e,t=!1,n){return`/artefacto?n=${encodeURIComponent(z8(e))}${t?"&descargar=1":""}${n===void 0?"":`&tema=${n}`}`}function eP(){const e=()=>document.body.hasAttribute("data-ds-dark-theme")?"oscuro":"claro",[t,n]=$.useState(e);return $.useEffect(()=>{const r=new MutationObserver(()=>n(e()));return r.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>r.disconnect()},[]),t}function tP({lista:e,contenidos:t,elegido:n,alElegir:r,alPedir:a,conectado:l}){var B;const[i,u]=$.useState("vista"),d=e.find(W=>W.ruta===n);$.useEffect(()=>{if(e.length!==0){if(n===void 0){r(e[e.length-1].ruta);return}e.some(W=>W.ruta===n)||r(void 0)}},[e,n,r]);const m=$.useRef(null),f=eP(),h=typeof document<"u"&&document.fullscreenEnabled===!0,b=d==null?void 0:d.mime,y=b==="text/html",g=b==="text/x-openui",_=y||g,C=b!==void 0&&b.startsWith("image/"),k=b==="text/markdown",A=_||C||k||(b==="text/plain"||b==="application/json"||b==="text/csv"),I=n===void 0?void 0:t[n],M=A&&!(_&&i==="vista");$.useEffect(()=>{l===!1||n===void 0||!M||t[n]===void 0&&a(z8(n))},[l,n,M,t,a]);const L=(I==null?void 0:I.mime)!==void 0&&I.base64!==void 0,F=L&&(I==null?void 0:I.mime)==="image/svg+xml"&&I.texto!==void 0,G=L&&!F,O=_||k&&(I==null?void 0:I.error)===void 0;return e.length===0?o.jsx("p",{className:Bt.aviso,children:"Esta sesión no ha dejado ningún artefacto todavía. Los dibuja el agente cuando le pides un diagrama, un panel o un informe."}):o.jsx("div",{className:Bt.caja,children:o.jsxs("div",{className:Bt.artefactos,children:[o.jsx("div",{className:Bt.visor,children:d===void 0?o.jsx("p",{className:Bt.aviso,children:"Elige un artefacto de la lista."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Bt.cabecera,children:[o.jsx("span",{className:Bt.nombre,children:d.nombre}),o.jsxs("div",{className:Bt.mandos,children:[O?o.jsx("div",{className:Bt.caras,role:"group","aria-label":"Cómo se enseña el artefacto",children:["vista","fuente"].map(W=>o.jsx("button",{type:"button",className:Bt.cara,"aria-pressed":i===W,"data-activa":i===W?"":void 0,onClick:()=>u(W),"aria-label":W==="vista"?"Vista":"Fuente",title:W==="vista"?"Ver el artefacto como se pinta":"Ver el texto del artefacto",children:W==="vista"?o.jsx(vR,{}):o.jsx(bR,{})},W))}):null,_&&i==="vista"&&h?o.jsx("button",{type:"button",className:Bt.descargar,"aria-label":"Pantalla completa",title:"Ver el artefacto a pantalla completa (Esc para salir)",onClick:()=>{var W,re;return void((re=(W=m.current)==null?void 0:W.requestFullscreen)==null?void 0:re.call(W).catch(()=>{}))},children:o.jsx(yR,{})}):null,o.jsx("a",{className:Bt.descargar,href:Qc(d.ruta,!0),download:d.nombre,"aria-label":"Descargar",title:`Descargar ${d.nombre}`,children:o.jsx(xR,{})})]})]}),_&&i==="vista"?o.jsxs("div",{className:Bt.marco,ref:m,children:[o.jsx("iframe",{className:Bt.iframe,src:g?Qc(d.ruta,!1,f):Qc(d.ruta),title:d.nombre,sandbox:"allow-scripts"}),g?o.jsxs("p",{className:Bt.nota,children:["Un programa de OpenUI, pintado con su librería de componentes. Corre aislado y"," ",o.jsx("strong",{children:"sin red"}),": no habla con la consola ni carga nada de fuera, así que se ve igual sin conexión."]}):o.jsxs("p",{className:Bt.nota,children:["Corre aislado: no puede hablar con la consola ni leer tus datos. Las skills que lo escriben cargan tipografías y diagramas de un CDN, así que"," ",o.jsx("strong",{children:"sin conexión no se ve entero"}),"."]})]}):A?I===void 0?o.jsxs("p",{className:Bt.aviso,children:["Trayendo ",d.nombre,"…"]}):I.error!==void 0?o.jsxs("p",{className:Bt.aviso,children:["No se puede enseñar este artefacto: ",I.error,"."]}):G?o.jsx(cm,{mime:I.mime,base64:I.base64,alt:d.nombre,bytes:I.bytes}):I.mime!==void 0&&I.base64===void 0&&I.binario?o.jsxs("p",{className:Bt.aviso,children:["Es una imagen de ",Ro(I.bytes)," KB: pesa más de lo que se trae por el cable. Descárgala para verla."]}):I.binario?o.jsxs("p",{className:Bt.aviso,children:["Son ",Ro(I.bytes)," KB de datos binarios. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[F?o.jsxs(o.Fragment,{children:[o.jsx(cm,{mime:I.mime,base64:I.base64,alt:d.nombre,bytes:I.bytes}),o.jsx("p",{className:Bt.rotulo,children:"Código"})]}):null,I.recortado?o.jsxs("p",{className:Bt.nota,children:["Recortado a ",Ro(((B=I.texto)==null?void 0:B.length)??0)," KB de ",Ro(I.bytes)," KB: descárgalo para verlo entero."]}):null,k&&i==="vista"?o.jsx("div",{className:`${Bt.markdown} md-cuerpo`,children:o.jsx(Gl,{text:Wl(I.texto??""),codeLabels:Zl})}):o.jsx(D8,{texto:I.texto??"",...lm(d.nombre)===void 0?{}:{lenguaje:lm(d.nombre)}})]}):o.jsxs("p",{className:Bt.aviso,children:["No se sabe enseñar este artefacto aquí (",Ro(d.bytes)," KB): no reconocemos su tipo, y adivinarlo sería peor que decirlo. Descárgalo para abrirlo con tu editor."]})]})}),o.jsxs("aside",{className:Bt.lista,"aria-label":"Artefactos de la sesión",children:[e.map(W=>o.jsxs("button",{type:"button",className:Bt.fila,"aria-current":W.ruta===n||void 0,"data-elegido":W.ruta===n?"":void 0,onClick:()=>r(W.ruta),children:[o.jsx("span",{className:Bt.filaNombre,children:W.nombre}),o.jsxs("span",{className:Bt.filaPeso,children:[Ro(W.bytes)," KB"]})]},W.ruta)),o.jsx("p",{className:Bt.nota,children:"Viven con esta sesión: no entran en git ni suben a CloudStudio, y se van si la borras."})]})]})})}function nP(e){const t=e.lastIndexOf("."),n=t>0?e.slice(t+1).toLowerCase():"";switch(n){case"html":case"htm":return{etiqueta:"HTML",forma:"pagina"};case"openui":return{etiqueta:"OpenUI",forma:"panel"};case"md":return{etiqueta:"Markdown",forma:"texto"};case"txt":return{etiqueta:"Texto",forma:"texto"};case"json":case"csv":return{etiqueta:n.toUpperCase(),forma:"texto"};case"svg":return{etiqueta:"SVG",forma:"imagen"};case"png":case"jpg":case"jpeg":case"gif":case"webp":return{etiqueta:"Imagen",forma:"imagen"};case"":return{etiqueta:"Fichero",forma:"fichero"};default:return{etiqueta:n.toUpperCase(),forma:"fichero"}}}function rP(e,t){if(!t)for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.tipo==="usuario")return;if(r.tipo!=="consulta")continue;const a=Array.isArray(r.opciones)?r.opciones.filter(l=>typeof l=="string"&&l.trim()!==""):[];return a.length===0||typeof r.pregunta!="string"?void 0:{indice:n,pregunta:r.pregunta,opciones:a}}}function aP(e,t){return[`
|
|
472
|
-
|
|
473
|
-
`+e.trim(),...t.length===0?[]:["",...t.map((n,r)=>`${r+1}. ${n}`),"","Contesta con el número o con tus palabras."]].join(`
|
|
474
|
-
`)}function y5(e,t,n){const r=aP(t,n);return e.endsWith(r)?e.slice(0,e.length-r.length).trimEnd():e}const oP="_tarjeta_1xjze_5",sP="_registro_1xjze_22",iP="_respuestaPropia_1xjze_43",lP="_cabecera_1xjze_48",cP="_marca_1xjze_59",uP="_enunciado_1xjze_71",dP="_opciones_1xjze_80",pP="_opcion_1xjze_80",mP="_radio_1xjze_110",hP="_otra_1xjze_116",fP="_campo_1xjze_122",gP="_decisiones_1xjze_137",bn={tarjeta:oP,registro:sP,respuestaPropia:iP,cabecera:lP,marca:cP,enunciado:uP,opciones:dP,opcion:pP,radio:mP,otra:hP,campo:fP,decisiones:gP};function vP({pregunta:e,opciones:t,alElegir:n,respondida:r}){const[a,l]=$.useState(void 0),[i,u]=$.useState(""),[d,m]=$.useState(!1),[f,h]=$.useState(!1),b=$.useRef(!1),y=$.useRef(!0);$.useEffect(()=>(y.current=!0,()=>{y.current=!1}),[]);const g=$.useId();if(n===void 0){const k=r===void 0?-1:t.indexOf(r.trim());return o.jsxs("section",{className:bn.tarjeta,"aria-label":`Pregunta del agente: ${e}`,children:[o.jsxs("p",{className:bn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:bn.marca,children:"?"}),r===void 0?"Pregunta del agente":"Pregunta del agente · contestada"]}),o.jsx("p",{className:bn.enunciado,children:e}),o.jsx("ul",{className:bn.registro,children:t.map((S,A)=>o.jsx("li",{"data-elegida":A===k?"":void 0,children:S},A))}),r!==void 0&&k===-1?o.jsx("p",{className:bn.respuestaPropia,children:`Contestaste: ${r}`}):null]})}const _=a==="otra"?i.trim():a===void 0?"":t[a]??"",C=()=>{b.current||_===""||(b.current=!0,m(!0),h(!1),Promise.resolve(n(_)).then(k=>{k===!1&&(b.current=!1,y.current&&m(!1))},()=>{b.current=!1,y.current&&(m(!1),h(!0))}))};return o.jsxs("section",{className:bn.tarjeta,"aria-label":e,children:[o.jsxs("p",{className:bn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:bn.marca,children:"?"}),"El agente necesita una respuesta"]}),o.jsx("p",{className:bn.enunciado,children:e}),o.jsxs("div",{role:"radiogroup","aria-label":e,className:bn.opciones,children:[t.map((k,S)=>o.jsxs("label",{className:bn.opcion,"data-elegida":a===S?"":void 0,children:[o.jsx("input",{type:"radio",name:g,className:bn.radio,checked:a===S,disabled:d,onChange:()=>l(S)}),o.jsx("span",{children:k})]},S)),o.jsxs("label",{className:`${bn.opcion} ${bn.otra}`,"data-elegida":a==="otra"?"":void 0,children:[o.jsx("input",{type:"radio",name:g,className:bn.radio,checked:a==="otra",disabled:d,onChange:()=>l("otra"),"aria-label":"Otra respuesta"}),o.jsx("textarea",{className:bn.campo,rows:2,placeholder:"O contesta con tus palabras…","aria-label":"Tu respuesta",value:i,disabled:d,onChange:k=>{u(k.target.value),l("otra")}})]})]}),o.jsx("div",{className:bn.decisiones,children:o.jsx(Le,{type:"button",className:tt.accion,disabled:d||_==="",onClick:C,children:d?"Enviando…":"Responder"})}),f?o.jsx("p",{className:tt.fallo,role:"alert",children:"La respuesta no llegó a xonecode: el envío falló. Vuelve a pulsar «Responder» cuando la conexión se recupere."}):null]})}const bP="_motivo_prhdl_3",yP="_tareas_prhdl_9",xP="_tarea_prhdl_9",_P="_titulo_prhdl_28",wP="_adjuntos_prhdl_34",jP="_etiqueta_prhdl_35",CP="_peticion_prhdl_41",kP="_plegable_prhdl_47",NP="_advertencia_prhdl_57",Bs={motivo:bP,tareas:yP,tarea:xP,titulo:_P,adjuntos:wP,etiqueta:jP,peticion:CP,plegable:kP,advertencia:NP};function SP({motivo:e,tareas:t,resuelta:n,alEncolar:r,alHacerEnChat:a,alDescartar:l}){const[i,u]=$.useState({}),[d,m]=$.useState(!1),[f,h]=$.useState({}),[b,y]=$.useState(void 0),g=$.useRef(!1),_=$.useRef(!0);$.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const C=n===void 0&&r!==void 0,k=I=>i[I]??t[I].peticion,S=I=>{g.current||(g.current=!0,m(!0),y(void 0),I().catch(()=>"el envío falló: vuelve a intentarlo cuando la conexión se recupere").then(M=>{g.current=!1,_.current&&(m(!1),M!==void 0&&y(M))}))},A=n===void 0?`El agente propone ${t.length} tareas de fondo, en orden`:n.encoladas!==void 0?`Propuesta de ${t.length} tareas · encoladas en orden`:n.enChat===!0?`Propuesta de ${t.length} tareas · se hace en esta conversación`:`Propuesta de ${t.length} tareas · descartada`;return o.jsxs("section",{className:bn.tarjeta,"aria-label":"Propuesta de tareas de fondo",children:[o.jsxs("p",{className:bn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:bn.marca,children:"⇢"}),A]}),o.jsx("p",{className:Bs.motivo,children:e}),o.jsx("ol",{className:Bs.tareas,children:t.map((I,M)=>o.jsxs("li",{className:Bs.tarea,children:[o.jsx("p",{className:Bs.titulo,children:`${M+1}. ${I.titulo}`}),I.adjuntos!==void 0&&I.adjuntos.length>0?o.jsx("p",{className:Bs.adjuntos,children:`Adjuntos: ${I.adjuntos.map(L=>L.replace(/^\/adjuntos\//,"")).join(", ")}`}):null,C?o.jsxs(o.Fragment,{children:[o.jsx("label",{className:Bs.etiqueta,htmlFor:`propuesta-${M}-encargo`,children:"Encargo"}),o.jsx("textarea",{id:`propuesta-${M}-encargo`,className:bn.campo,rows:6,value:k(M),disabled:d,onChange:L=>{const F=L.target.value;u(G=>({...G,[M]:F}))}})]}):o.jsxs("details",{className:Bs.plegable,onToggle:L=>{const F=L.currentTarget.open;h(G=>({...G,[M]:F}))},children:[o.jsx("summary",{children:"Ver el encargo"}),f[M]===!0?o.jsx("p",{className:Bs.peticion,children:I.peticion}):null]})]},M))}),C?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Bs.advertencia,children:`Se crearán ${t.length} tareas de fondo que corren EN ORDEN y escriben sin pedir aprobación. No arrancan mientras tengas abierta la consola de este proyecto.`}),o.jsxs("div",{className:bn.decisiones,children:[o.jsx(Le,{type:"button",variant:"outline",className:tt.cancelar,disabled:d||l===void 0,onClick:()=>l!==void 0&&S(l),children:"Descartar"}),a===void 0?null:o.jsx(Le,{type:"button",variant:"outline",className:tt.cancelar,disabled:d,onClick:()=>S(a),children:"Hacerlo aquí en el chat"}),o.jsx(Le,{type:"button",variant:"primary",className:tt.accion,disabled:d,onClick:()=>S(()=>r(t.map((I,M)=>k(M).trim()===""?t[M].peticion:k(M)))),children:d?"Un momento…":"Encolar en orden"})]})]}):null,b!==void 0?o.jsx("p",{className:tt.fallo,role:"alert",children:`No se pudo: ${b}`}):null]})}const $P="_visor_1wkto_3",AP="_imagen_1wkto_19",EP="_pie_1wkto_30",DP="_nombre_1wkto_38",zP="_acciones_1wkto_49",TP="_enlace_1wkto_55",Oc={visor:$P,imagen:AP,pie:EP,nombre:DP,acciones:zP,enlace:TP};function MP({ruta:e,nombre:t,alCerrar:n,alAbrirEnArtefactos:r}){const a=$.useRef(null);return $.useEffect(()=>{var i;const l=document.activeElement;return(i=a.current)==null||i.focus(),()=>{var u;return(u=l==null?void 0:l.focus)==null?void 0:u.call(l)}},[]),o.jsx(rr,{open:!0,onClose:n,title:t,headless:!0,className:tt.capa,children:o.jsx("div",{className:tt.velo,onClick:l=>{l.target===l.currentTarget&&n()},children:o.jsxs("figure",{className:Oc.visor,children:[o.jsx("img",{className:Oc.imagen,src:Qc(e),alt:t}),o.jsxs("figcaption",{className:Oc.pie,children:[o.jsx("span",{className:Oc.nombre,children:t}),o.jsxs("span",{className:Oc.acciones,children:[r===void 0?null:o.jsx(Le,{type:"button",variant:"outline",className:tt.cancelar,onClick:r,children:"Abrir en Artefactos"}),o.jsx("a",{className:`${tt.cancelar} ${Oc.enlace}`,href:Qc(e,!0),download:t,children:"Descargar"}),o.jsx("button",{ref:a,type:"button",className:tt.accion,onClick:n,children:"Cerrar"})]})]})]})})})}const LP="_root_t3u4o_5",IP="_scroll_t3u4o_5",qP="_column_t3u4o_6",RP="_flowItem_t3u4o_9",lr={root:LP,scroll:IP,column:qP,flowItem:RP},PP="_flujo_1i1ea_20",FP="_inicioDeTurno_1i1ea_26",OP="_globo_1i1ea_45",BP="_usuario_1i1ea_56",HP="_error_1i1ea_57",UP="_adjuntosDelMensaje_1i1ea_95",VP="_adjuntoDelMensaje_1i1ea_111",GP="_asistente_1i1ea_125",WP="_textoTenue_1i1ea_159",ZP="_trabajo_1i1ea_166",QP="_paso_1i1ea_177",XP="_resumenFallos_1i1ea_202",YP="_giro_1i1ea_208",KP="_trozoDeTrabajo_1i1ea_240",JP="_memoriaDelTurno_1i1ea_247",eF="_quienTrabaja_1i1ea_256",tF="_fase_1i1ea_264",nF="_pensando_1i1ea_270",rF="_resumen_1i1ea_202",aF="_cierre_1i1ea_286",oF="_detalleDePulso_1i1ea_311",sF="_pensado_1i1ea_321",iF="_acciones_1i1ea_329",lF="_hora_1i1ea_338",cF="_accionesDelUsuario_1i1ea_348",uF="_relectura_1i1ea_360",dF="_trabajoAlAbrir_1i1ea_374",pF="_sistema_1i1ea_397",mF="_sinAprobacion_1i1ea_371",hF="_textoDelAviso_1i1ea_425",fF="_cerrarAviso_1i1ea_431",gF="_bienvenida_1i1ea_445",vF="_bienvenidaTitulo_1i1ea_456",bF="_artefactosDelTramo_1i1ea_474",yF="_capturas_1i1ea_498",xF="_captura_1i1ea_498",_F="_capturaSola_1i1ea_527",wF="_capturaAbrir_1i1ea_532",jF="_artefacto_1i1ea_474",CF="_artefactoCuerpo_1i1ea_564",kF="_artefactoIcono_1i1ea_574",NF="_artefactoTexto_1i1ea_580",SF="_artefactoNombre_1i1ea_587",$F="_artefactoMeta_1i1ea_596",AF="_artefactoPeso_1i1ea_603",EF="_artefactoAbrir_1i1ea_610",DF="_artefactoIr_1i1ea_624",zF="_pasoActual_1i1ea_638",TF="_pensandoAhora_1i1ea_650",MF="_lineaEnVuelo_1i1ea_674",LF="_enVuelo_1i1ea_681",IF="_veredictoEnRojo_1i1ea_692",qF="_veredictoCabecera_1i1ea_707",RF="_hallazgos_1i1ea_712",PF="_hallazgo_1i1ea_712",FF="_hallazgoTexto_1i1ea_729",OF="_hallazgoDonde_1i1ea_736",BF="_hallazgoAcciones_1i1ea_741",HF="_hallazgoBoton_1i1ea_747 _secundario_1l1rx_39",UF="_veredictoNota_1i1ea_751",VF="_irAlFinal_1i1ea_760",GF="_irAlFinalCuenta_1i1ea_792",Ie={flujo:PP,inicioDeTurno:FP,globo:OP,usuario:BP,error:HP,adjuntosDelMensaje:UP,adjuntoDelMensaje:VP,asistente:GP,textoTenue:WP,trabajo:ZP,paso:QP,resumenFallos:XP,giro:YP,trozoDeTrabajo:KP,memoriaDelTurno:JP,quienTrabaja:eF,fase:tF,pensando:nF,resumen:rF,cierre:aF,detalleDePulso:oF,pensado:sF,acciones:iF,hora:lF,accionesDelUsuario:cF,relectura:uF,trabajoAlAbrir:dF,sistema:pF,sinAprobacion:mF,textoDelAviso:hF,cerrarAviso:fF,bienvenida:gF,bienvenidaTitulo:vF,artefactosDelTramo:bF,capturas:yF,captura:xF,capturaSola:_F,capturaAbrir:wF,artefacto:jF,artefactoCuerpo:CF,artefactoIcono:kF,artefactoTexto:NF,artefactoNombre:SF,artefactoMeta:$F,artefactoPeso:AF,artefactoAbrir:EF,artefactoIr:DF,pasoActual:zF,pensandoAhora:TF,lineaEnVuelo:MF,enVuelo:LF,veredictoEnRojo:IF,veredictoCabecera:qF,hallazgos:RF,hallazgo:PF,hallazgoTexto:FF,hallazgoDonde:OF,hallazgoAcciones:BF,hallazgoBoton:HF,veredictoNota:UF,irAlFinal:VF,irAlFinalCuenta:GF};function ef(e){return typeof e.pregunta=="string"&&Array.isArray(e.opciones)&&e.opciones.length>0&&e.opciones.every(t=>typeof t=="string"&&t.trim()!=="")}function x5(e){return typeof e.id=="string"&&typeof e.motivo=="string"&&Array.isArray(e.tareas)&&e.tareas.length>0&&e.tareas.every(t=>typeof t=="object"&&t!==null&&typeof t.titulo=="string"&&typeof t.peticion=="string"&&(t.adjuntos===void 0||Array.isArray(t.adjuntos)&&t.adjuntos.every(n=>typeof n=="string")))}const d2="Pensando…";function WF({tramo:e,pasos:t,segundosEnVuelo:n,pasoActual:r,segundosDelPaso:a}){const{nodo:l,alDesplazar:i}=S8(e.actos.length),u=cR(e.actos);return o.jsxs("details",{className:`${lr.flowItem} ${Ie.pensando}`,onToggle:d=>{!d.currentTarget.open||l.current===null||(l.current.scrollTop=l.current.scrollHeight)},children:[o.jsx("summary",{className:Ie.resumen,children:e.terminado?o.jsxs(o.Fragment,{children:[`Trabajo del agente · ${t} ${t===1?"paso":"pasos"}`,u===0?null:o.jsx("span",{className:Ie.resumenFallos,children:` · ${u} ${u===1?"falló":"fallaron"}`}),e.ms===void 0&&e.consumo===void 0?null:o.jsxs(o.Fragment,{children:[" · ",o.jsx(E8,{ms:e.ms,consumo:e.consumo})]})]}):o.jsxs("span",{className:Ie.lineaEnVuelo,children:[o.jsx("span",{"aria-hidden":"true",className:Ie.giro}),o.jsx("span",{className:Ie.enVuelo,children:n===void 0?"Trabajando…":`Trabajando… · ${n} s`}),r===void 0?null:o.jsxs("span",{className:Ie.pasoActual,children:[" · ",r===d2?o.jsx("span",{className:Ie.pensandoAhora,children:d2}):r,a===void 0?"":` · ${a} s`]})]})}),o.jsxs("div",{className:Ie.detalleDePulso,ref:l,onScroll:i,children:[e.memoria===void 0?null:o.jsx("p",{className:Ie.memoriaDelTurno,children:e.memoria.por.length===0?"Memoria del proyecto · pedida":`Memoria del proyecto · pedida por ${e.memoria.por.map(d=>l4(d)).join(", ")}`}),ZF(e.actos).map(({acto:d,trozos:m},f)=>{var h;if(d.tipo==="razonamiento"){const b=(h=m==null?void 0:m[0])==null?void 0:h.rotulo;return o.jsxs($.Fragment,{children:[b===void 0?null:o.jsx("p",{className:Ie.quienTrabaja,children:b}),o.jsx("p",{className:`${Ie.textoTenue} ${Ie.pensado}`,children:d.texto})]},f)}return d.tipo==="herramientas"?(m??[]).map((b,y)=>o.jsxs("div",{className:Ie.trozoDeTrabajo,children:[b.rotulo===void 0?null:o.jsx("p",{className:Ie.quienTrabaja,children:b.rotulo}),o.jsx("ul",{className:Ie.trabajo,children:b.lineas.map((g,_)=>{var C;return o.jsx("li",{className:`${Ie.textoTenue} ${Ie.paso}`,"data-fallo":(C=b.fallidas)!=null&&C.includes(_)?"":void 0,children:g},_)})})]},`${f}-${y}`)):d.tipo==="verificacion"?o.jsx("ul",{className:Ie.trabajo,children:i4(d).map((b,y)=>o.jsx("li",{className:Ie.textoTenue,children:b},y))},f):d.tipo==="fase"?o.jsxs("p",{className:`${Ie.textoTenue} ${Ie.fase}`,children:[d.texto," · ",Math.round(d.ms/100)/10,"s"]},f):null})]})]})}function ZF(e){let t;return e.map(n=>{if(n.tipo==="razonamiento"&&n.origen!==void 0){const l=l4(n.origen),i=l===t?[]:[{...l===void 0?{}:{rotulo:l},lineas:[]}];return t=l,{acto:n,trozos:i}}if(n.tipo!=="herramientas")return{acto:n};const{trozos:r,ultimo:a}=lR(n.lineas,n.detalles,t);return t=a,{acto:n,trozos:r}})}function QF(e){const t=s4(e);return`Corrige ${e.code}${t===void 0?"":` en ${t}`}: ${e.mensaje}`}function XF({veredicto:e,alAbrirFichero:t,alPedirCorreccion:n}){return o.jsxs("section",{className:`${lr.flowItem} ${Ie.veredictoEnRojo}`,"aria-label":"Verificación en rojo",children:[o.jsx("p",{className:Ie.veredictoCabecera,children:`✗ La verificación sigue en rojo · ${e.errores} ${e.errores===1?"error":"errores"}, ${e.avisos} ${e.avisos===1?"aviso":"avisos"}`}),(e.hallazgos??[]).length===0?null:o.jsx("ul",{className:Ie.hallazgos,children:(e.hallazgos??[]).map((r,a)=>{const l=s4(r);return o.jsxs("li",{className:Ie.hallazgo,children:[o.jsxs("span",{className:Ie.hallazgoTexto,children:[`${w8(r)} `,l===void 0?null:o.jsx("code",{className:Ie.hallazgoDonde,children:l}),` ${r.code} — ${r.mensaje}`]}),r.fichero===void 0?null:o.jsxs("span",{className:Ie.hallazgoAcciones,children:[t===void 0?null:o.jsx("button",{type:"button",className:Ie.hallazgoBoton,onClick:()=>t(r.fichero,r.linea),children:"Abrir"}),n===void 0?null:o.jsx("button",{type:"button",className:Ie.hallazgoBoton,title:"Deja la petición escrita en el compositor; no se envía sola",onClick:()=>n(QF(r)),children:"Pedir corrección"})]})]},a)})}),e.preexistentes===void 0||e.preexistentes===0?null:o.jsx("p",{className:Ie.veredictoNota,children:`Y ${e.preexistentes} ${e.preexistentes===1?"hallazgo":"hallazgos"} más en ficheros que este turno no tocó.`})]})}const _5=e=>e.mime!==void 0&&e.mime.startsWith("image/");function YF({actos:e,alAbrir:t}){const[n,r]=$.useState(void 0),a=e.length===1;return o.jsxs("div",{className:Ie.capturas,children:[e.map((l,i)=>o.jsx("button",{type:"button",className:Ie.capturaAbrir,onClick:()=>r(l),"aria-label":`Ampliar ${l.nombre}`,title:`${l.nombre} · ${Math.max(1,Math.round(l.bytes/1024))} KB`,children:o.jsx("img",{className:`${Ie.captura} ${a?Ie.capturaSola:""}`,src:Qc(l.ruta),alt:l.nombre})},i)),n===void 0?null:o.jsx(MP,{ruta:n.ruta,nombre:n.nombre,alCerrar:()=>r(void 0),...t===void 0?{}:{alAbrirEnArtefactos:()=>{r(void 0),t(n.ruta)}}})]})}function KF({acto:e,sesion:t,alAbrir:n}){const r=t===void 0?e.ruta:`.xonecode/sesiones/${t}/artefactos/${e.ruta.slice(12)}`,a=nP(e.nombre),l=`${Math.max(1,Math.round(e.bytes/1024))} KB`,i=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Ie.artefactoIcono,children:o.jsx(_R,{forma:a.forma})}),o.jsxs("span",{className:Ie.artefactoTexto,children:[o.jsx("span",{className:Ie.artefactoNombre,children:e.nombre}),o.jsxs("span",{className:Ie.artefactoMeta,children:[a.etiqueta," · ",o.jsx("span",{className:Ie.artefactoPeso,children:l})]})]})]});return o.jsxs("div",{className:Ie.artefacto,title:"No es un fichero del proyecto: vive con esta sesión, no entra en git y no sube a CloudStudio.",children:[n===void 0?o.jsx("div",{className:Ie.artefactoCuerpo,children:i}):o.jsxs("button",{type:"button",className:`${Ie.artefactoCuerpo} ${Ie.artefactoAbrir}`,"aria-label":`Abrir ${e.nombre}`,onClick:()=>n(e.ruta),children:[i,o.jsxs("span",{"aria-hidden":"true",className:Ie.artefactoIr,children:["Abrir ",o.jsx(wR,{})]})]}),o.jsx(F0,{texto:r,etiqueta:"Copiar la ruta del artefacto"})]})}const JF=new Set(["razonamiento","herramientas","fase","artefacto","verificacion"]),w5={aviso:{titulo:"Verificaciones",uno:"aviso",varios:"avisos",markdown:!1},permiso:{titulo:"Permisos",uno:"escritura",varios:"escrituras",markdown:!1},resumen:{titulo:"Resumen del contexto",uno:"resumen",varios:"resúmenes",markdown:!0}},eO=2e4;function tO(){const[e,t]=$.useState(!0);return $.useEffect(()=>{const n=setTimeout(()=>t(!1),eO);return()=>clearTimeout(n)},[]),e?o.jsxs("div",{role:"note",className:`${lr.flowItem} ${Ie.sinAprobacion}`,onClick:()=>t(!1),children:[o.jsxs("p",{className:Ie.textoDelAviso,children:["Esta sesión va en ",o.jsx("strong",{children:"modo autónomo"}),": los cambios se aplican solos y cada turno te dirá qué ficheros tocó. Subir a CloudStudio sigue pidiéndote permiso. Vuelve a ",o.jsx("strong",{children:"supervisado"})," en la pastilla de la caja."]}),o.jsx("button",{type:"button",className:Ie.cerrarAviso,"aria-label":"Cerrar el aviso",title:"Cerrar el aviso",children:"×"})]}):null}function nO({actos:e,turnoEnVuelo:t=!1,historica:n=!1,sinAprobacion:r=!1,trabajoAlAbrir:a,segundosEnVuelo:l,proyecto:i,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:f,alPedirCorreccion:h,alResponderConsulta:b,alEncolarPropuesta:y,alHacerPropuestaEnChat:g,alDescartarPropuesta:_}){const C=rP(e,t),k=new Map;for(const J of e)J.tipo!=="propuesta-resuelta"||typeof J.propuesta!="string"||k.set(J.propuesta,Array.isArray(J.encoladas)?{encoladas:J.encoladas}:J.enChat===!0?{enChat:!0}:{});const S=new Map,A=new Map;for(const[J,oe]of e.entries())if(!(oe.tipo!=="consulta"||!ef(oe))){for(let R=J-1;R>=0;R--){const q=e[R];if(q.tipo==="usuario")break;if(q.tipo==="asistente"){S.set(R,{pregunta:oe.pregunta,opciones:oe.opciones});break}}for(let R=J+1;R<e.length;R++){const q=e[R];if(q.tipo==="usuario"){A.set(J,q.texto);break}}}const I=e.map(J=>J.tipo).lastIndexOf("asistente"),M=(()=>{for(let J=e.length-1;J>=0;J-=1){const oe=e[J];if(oe.tipo==="usuario"||oe.tipo==="asistente")return;if(oe.tipo==="razonamiento")return d2;if(oe.tipo==="herramientas"&&oe.lineas.length>0)return oe.lineas[oe.lineas.length-1]}})(),L=$8(t===!0&&M!==void 0,M),F=[];let G,O,B=[];const W=new Map;for(const[J,oe]of e.entries())oe.tipo==="artefacto"&&W.set(oe.ruta,J);for(const[J,oe]of e.entries())if(oe.tipo!=="sincronizacion"&&!(oe.tipo==="consulta"&&!ef(oe))&&oe.tipo!=="propuesta-resuelta"&&!(oe.tipo==="propuesta-de-tareas"&&!x5(oe))&&!(oe.tipo==="artefacto"&&W.get(oe.ruta)!==J)){if(oe.tipo==="sistema"&&oe.clase!==void 0&&oe.clase in w5){const R=oe.clase;(O===void 0||O.clase!==R)&&(O={desde:J,clase:R,actos:[]},F.push({tipo:"harness",tramo:O})),O.actos.push(oe);continue}if(O=void 0,JF.has(oe.tipo)){if(G===void 0){const R=B[B.length-1];R!==void 0&&(R.terminado=!0),G={desde:J,actos:[],terminado:!1},F.push({tipo:"pulso",tramo:G}),B.push(G)}G.actos.push(oe);continue}if(oe.tipo==="usuario"){for(const R of B)R.terminado=!0;B=[]}if(G=void 0,oe.tipo==="fin"){const R=B[B.length-1];oe.memoria!==void 0&&B[0]!==void 0&&(B[0].memoria=oe.memoria);for(let q=B.length-1;q>=0;q--){const ee=B[q],z=[...ee.actos].reverse().find(ke=>ke.tipo==="verificacion");if(z!==void 0){z.tipo==="verificacion"&&!z.verde&&(ee.rojoFinal=z);break}}for(const q of B)q.terminado=!0;B=[],R!==void 0?(R.ms=oe.ms,oe.consumo!==void 0&&(R.consumo=oe.consumo)):oe.consumo!==void 0&&A8(oe.consumo)&&F.push({tipo:"cierre",desde:J,ms:oe.ms,consumo:oe.consumo});continue}F.push({tipo:"acto",acto:oe,indice:J})}const{nodo:re,alDesplazar:fe,alFinal:he,bajar:ne}=S8(e,{vigilarTamano:!0}),we=sR(e,iR(e.length,he,d),(J,oe)=>{if(J.tipo==="error")return!0;if(J.tipo==="consulta")return ef(J);if(J.tipo==="propuesta-de-tareas")return x5(J);if(J.tipo!=="asistente")return!1;const R=S.get(oe);return(R===void 0?J.texto:y5(J.texto,R.pregunta,R.opciones))!==""}),je=we===0?"Ir al final de la conversación":`Ir al final de la conversación · ${we} ${we===1?"mensaje nuevo":"mensajes nuevos"}`;return o.jsxs("div",{className:lr.root,children:[o.jsx("div",{className:lr.scroll,ref:re,onScroll:fe,children:o.jsxs("div",{className:`${lr.column} ${Ie.flujo}`,children:[e.length===0&&!n?o.jsxs("section",{className:`${lr.flowItem} ${Ie.bienvenida}`,"aria-label":"sesión nueva",children:[o.jsx("h2",{className:Ie.bienvenidaTitulo,children:i===void 0?"Sesión nueva":`Sesión nueva en ${i}`}),o.jsxs("p",{children:["Pide algo en la caja de abajo: una pantalla nueva, un cambio en un ",o.jsx("code",{children:".xne"}),", una duda de XOne. El agente lee el proyecto, propone los cambios y"," ",o.jsx("strong",{children:"te pide aprobación antes de escribir"})," ningún fichero."]}),u===void 0?null:o.jsxs("p",{children:["Trabajará con ",o.jsx("code",{children:u}),"; se cambia en la pastilla de la caja."]})]}):null,r?o.jsx(tO,{}):null,a===void 0?null:o.jsxs("div",{role:"note",className:`${lr.flowItem} ${Ie.trabajoAlAbrir}`,children:["Cuando abriste esta sesión, el proyecto ya tenía"," ",o.jsxs("strong",{children:[a.total," ",a.total===1?"fichero":"ficheros"," sin commitear"]}),". No los ha escrito esta conversación: pueden ser de otra sesión, de una tarea de fondo o tuyos de antes.",o.jsx("ul",{children:a.ficheros.map(J=>o.jsx("li",{children:J},J))}),a.total>a.ficheros.length?o.jsxs(o.Fragment,{children:["y ",a.total-a.ficheros.length," más"]}):null]}),n?o.jsx("p",{role:"note",className:`${lr.flowItem} ${Ie.relectura}`,children:"Conversación reabierta: el agente no la recuerda. Lo que escribas empieza un hilo nuevo sobre este proyecto, con esta conversación a la vista pero no en su memoria."}):null,F.map(J=>{if(J.tipo==="cierre")return o.jsx("p",{className:`${lr.flowItem} ${Ie.pensando} ${Ie.cierre}`,children:o.jsx(E8,{ms:J.ms,consumo:J.consumo})},`cierre-${J.desde}`);if(J.tipo==="harness"){const{tramo:q}=J,{titulo:ee,uno:z,varios:ke,markdown:pe}=w5[q.clase],Me=q.actos.length;return o.jsxs("details",{className:`${lr.flowItem} ${Ie.pensando}`,children:[o.jsx("summary",{className:Ie.resumen,children:`${ee} · ${Me} ${Me===1?z:ke}`}),o.jsx("div",{className:Ie.detalleDePulso,children:q.actos.map((ge,ze)=>pe?o.jsx("div",{role:"note",className:"md-cuerpo",children:o.jsx(Gl,{text:Wl(ge.texto),codeLabels:Zl})},ze):o.jsx("p",{role:"note",className:Ie.sistema,children:ge.texto},ze))})]},`harness-${q.desde}`)}if(J.tipo==="pulso"){const{tramo:q}=J,ee=q.actos.reduce((ze,Pe)=>ze+(Pe.tipo==="artefacto"?0:Pe.tipo==="herramientas"?Pe.lineas.length:1),0),z=q.actos.filter(ze=>ze.tipo==="artefacto"),ke=z.filter(_5),pe=z.filter(ze=>!_5(ze)),Me=o.jsx(WF,{tramo:q,pasos:ee,...l===void 0?{}:{segundosEnVuelo:l},...M===void 0?{}:{pasoActual:M},...L===void 0?{}:{segundosDelPaso:L}},`pulso-${q.desde}`),ge=q.rojoFinal===void 0?null:o.jsx(XF,{veredicto:q.rojoFinal,...f===void 0?{}:{alAbrirFichero:f},...h===void 0?{}:{alPedirCorreccion:h}});return z.length===0?ge===null?Me:o.jsxs($.Fragment,{children:[Me,ge]},`pulso-${q.desde}`):o.jsxs($.Fragment,{children:[Me,ge,o.jsxs("div",{className:`${lr.flowItem} ${Ie.artefactosDelTramo}`,children:[ke.length===0?null:o.jsx(YF,{actos:ke,alAbrir:m}),pe.map((ze,Pe)=>o.jsx(KF,{acto:ze,sesion:d,alAbrir:m},`${q.desde}-${Pe}`))]})]},`pulso-${q.desde}`)}const{acto:oe,indice:R}=J;if(oe.tipo==="usuario")return o.jsxs("div",{className:`${lr.flowItem} ${Ie.globo} ${Ie.usuario} ${Ie.inicioDeTurno}`,children:[oe.texto===""?null:oe.texto,oe.adjuntos===void 0||oe.adjuntos.length===0?null:o.jsx("ul",{className:Ie.adjuntosDelMensaje,children:oe.adjuntos.map((q,ee)=>o.jsx("li",{className:Ie.adjuntoDelMensaje,children:q},`${R}-${ee}`))}),o.jsxs("div",{className:`${Ie.acciones} ${Ie.accionesDelUsuario}`,children:[o.jsx(j5,{cuando:oe.cuando,clase:Ie.hora}),oe.texto===""?null:o.jsx(F0,{texto:oe.texto,etiqueta:"Copiar el mensaje"})]})]},R);if(oe.tipo==="propuesta-de-tareas"){const q=k.get(oe.id),ee=oe.id;return o.jsx("div",{className:lr.flowItem,children:o.jsx(SP,{motivo:oe.motivo,tareas:oe.tareas,...q===void 0?{}:{resuelta:q},...q===void 0&&y!==void 0?{alEncolar:z=>y(ee,z),..._===void 0?{}:{alDescartar:()=>_(ee)},...g===void 0?{}:{alHacerEnChat:()=>g(ee)}}:{}})},R)}if(oe.tipo==="consulta"){const q=(C==null?void 0:C.indice)===R&&b!==void 0,ee=A.get(R);return o.jsx("div",{className:lr.flowItem,children:o.jsx(vP,{pregunta:oe.pregunta,opciones:oe.opciones,...q?{alElegir:b}:{},...ee===void 0?{}:{respondida:ee}})},R)}if(oe.tipo==="asistente"){const q=S.get(R),ee=q===void 0?oe.texto:y5(oe.texto,q.pregunta,q.opciones);return ee===""?null:o.jsxs("div",{className:`${lr.flowItem} ${Ie.globo} ${Ie.asistente} md-cuerpo`,children:[o.jsx(Gl,{text:Wl(ee),streaming:t&&R===I,codeLabels:Zl}),o.jsxs("div",{className:Ie.acciones,children:[o.jsx(j5,{cuando:oe.cuando,clase:Ie.hora}),o.jsx(F0,{texto:oe.texto,etiqueta:"Copiar la respuesta"})]})]},R)}return oe.tipo==="sistema"?o.jsx("p",{role:"note",className:`${lr.flowItem} ${Ie.sistema}`,children:oe.texto},R):oe.tipo==="error"?o.jsx("p",{className:`${lr.flowItem} ${Ie.globo} ${Ie.error}`,children:oe.texto},R):null})]})}),he?null:o.jsxs("button",{type:"button",className:Ie.irAlFinal,"aria-label":je,title:je,onClick:ne,children:[o.jsx(iM,{}),we===0?null:o.jsx("span",{className:Ie.irAlFinalCuenta,"aria-hidden":"true",children:we>99?"99+":we})]})]})}function j5({cuando:e,clase:t}){if(e===void 0)return null;const n=xM(e);if(n===void 0)return null;const r=_M(e);return o.jsx("time",{className:t,dateTime:e,...r===void 0?{}:{title:r},children:n})}function rO({actos:e,turnoEnVuelo:t,historica:n,sinAprobacion:r,trabajoAlAbrir:a,segundosEnVuelo:l,proyecto:i,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:f,alPedirCorreccion:h,alResponderConsulta:b,alEncolarPropuesta:y,alHacerPropuestaEnChat:g,alDescartarPropuesta:_}){return o.jsx("div",{className:xn.body,children:o.jsx("div",{className:xn.viewArea,children:o.jsx(nO,{actos:e,turnoEnVuelo:t===!0,historica:n===!0,sinAprobacion:r===!0,...a===void 0?{}:{trabajoAlAbrir:a},...l===void 0?{}:{segundosEnVuelo:l},...i===void 0?{}:{proyecto:i},...u===void 0?{}:{modelo:u},...d===void 0?{}:{sesion:d},...m===void 0?{}:{alAbrirArtefacto:m},...f===void 0?{}:{alAbrirFichero:f},...h===void 0?{}:{alPedirCorreccion:h},...b===void 0?{}:{alResponderConsulta:b},...y===void 0?{}:{alEncolarPropuesta:y},..._===void 0?{}:{alDescartarPropuesta:_},...g===void 0?{}:{alHacerPropuestaEnChat:g}})})})}const aO="_barra_65uy2_4",oO="_pieza_65uy2_16",sO="_separador_65uy2_20",ns={barra:aO,pieza:oO,separador:sO};function iO(e,t){if(e===void 0||e<=0)return"";const n=t!==void 0?` (${Math.round(e/t*100)}%)`:"",r=t!==void 0?`/${Rt(t)}`:"";return`ctx ${Rt(e)}${r}${n}`}function lO({turnos:e,pasos:t,ms:n,contexto:r,tope:a,segundosEnVuelo:l}){const i=iO(r,a);return o.jsxs("footer",{className:ns.barra,children:[o.jsxs("span",{className:ns.pieza,children:[e," turno",e===1?"":"s"]}),o.jsx("span",{className:ns.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:ns.pieza,children:[t," paso",t===1?"":"s"]}),l!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:ns.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:ns.pieza,children:["trabajando · ",l," s"]})]}):n!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:ns.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:ns.pieza,children:im(n)})]}):null,i!==""&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:ns.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:ns.pieza,children:i})]})]})}const cO="_avisoDeConexion_i8cof_17",uO={avisoDeConexion:cO};function g0({conectado:e}){return o.jsx("div",{className:uO.avisoDeConexion,children:o.jsx(rD,{reconnecting:!e,label:"sin conexión con XOneCode — reintentando…"})})}function c4(e){const t=[];for(const n of e){const r=n.split("/");let a=t,l="";r.forEach((i,u)=>{l=l===""?i:`${l}/${i}`;const d=u===r.length-1;let m=a.find(f=>f.nombre===i&&f.hijos!==void 0==!d);m===void 0&&(m=d?{nombre:i,ruta:l}:{nombre:i,ruta:l,hijos:[]},a.push(m)),d||(a=m.hijos)})}return t}function Fm(e){return e.hijos===void 0?[e.ruta]:e.hijos.flatMap(Fm)}function T8(e,t){const n=Fm(e),r=n.filter(a=>t.has(a)).length;return r===0?"ninguna":r===n.length?"todas":"algunas"}function C5(e,t){const n=new Set(t),r=T8(e,t)!=="todas";for(const a of Fm(e))r?n.add(a):n.delete(a);return n}function O0(e){return e!==void 0&&e.error===void 0&&typeof e.texto=="string"&&typeof e.huella=="string"&&!e.recortado&&!e.binario&&(e.codificacion===void 0||e.codificacion==="utf-8"||e.codificacion==="latin1")&&e.mime===void 0}function k5(e){if(!(e===void 0||e.error!==void 0||O0(e))){if(e.mime!==void 0)return"No se puede editar: es una imagen";if(e.binario)return"No se puede editar: es binario";if(e.recortado)return"No se puede editar: el fichero pasa del tope de tamaño"}}function p2(e){const t=(e.match(/\r\n/g)??[]).length,n=(e.match(/\n/g)??[]).length-t;return t>n?`\r
|
|
475
|
-
`:`
|
|
476
|
-
`}function N5(e){return e.replace(/\r\n?/g,`
|
|
477
|
-
`)}function dO(e,t){return t===`
|
|
478
|
-
`?e:e.replace(/\n/g,`\r
|
|
479
|
-
`)}const pO=1e6;function mO(e){return new TextEncoder().encode(JSON.stringify(e)).length<=pO}const hO=new Map([["xne","xne"],["js","js"],["css","css"],["xml","xml"],["ini","config"],["json","config"],["png","imagen"],["jpg","imagen"],["jpeg","imagen"],["gif","imagen"],["webp","imagen"],["svg","imagen"],["db","bd"],["sqlite","bd"],["md","markdown"],["ttf","fuente"],["otf","fuente"],["woff","fuente"],["woff2","fuente"]]);function M8(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");return n<=0?void 0:t.slice(n+1).toLowerCase()}function L8(e){const t=M8(e);return(t===void 0?void 0:hO.get(t))??"otro"}const fO=new Map([["xne","XML de XOne"],["xml","XML"],["svg","XML"],["js","JavaScript"],["css","CSS"],["md","Markdown"],["json","JSON"],["ini","INI"],["html","HTML"]]);function gO(e){if(e==="")return 0;const t=(e.match(/\n/g)??[]).length;return e.endsWith(`
|
|
480
|
-
`)?t:t+1}function tf(e,t,n){if(t===void 0||t.error!==void 0)return[];if(t.texto===void 0)return[];const r=M8(e),a=[(r===void 0?void 0:fO.get(r))??"Texto"];if(!t.recortado){const i=gO(t.texto);a.push(`${i} ${i===1?"línea":"líneas"}`)}t.codificacion!==void 0&&a.push(t.codificacion==="utf-8"?"UTF-8":"Latin-1");const l=t.texto.includes(`
|
|
481
|
-
`)?n??p2(t.texto):void 0;return l!==void 0&&a.push(l===`\r
|
|
482
|
-
`?"CRLF":"LF"),a}const vO="_icono_y2rpu_6",bO="_xne_y2rpu_11",yO="_js_y2rpu_15",xO="_css_y2rpu_1",_O="_xml_y2rpu_23",wO="_config_y2rpu_26",jO="_otro_y2rpu_27",CO="_imagen_y2rpu_31",kO="_bd_y2rpu_35",NO="_markdown_y2rpu_39",SO="_fuente_y2rpu_40",$O="_carpeta_y2rpu_44",wp={icono:vO,xne:bO,js:yO,css:xO,xml:_O,config:wO,otro:jO,imagen:CO,bd:kO,markdown:NO,fuente:SO,carpeta:$O};function um({ruta:e,carpeta:t=!1,abierta:n=!1,tamano:r=16}){if(t)return o.jsx(om,{lado:r,className:`${wp.icono} ${wp.carpeta}`,icono:n?"carpeta-abierta":"carpeta",children:n?o.jsx("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"}):o.jsx("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"})});const a=L8(e);return o.jsxs(om,{lado:r,className:`${wp.icono} ${wp[a]??""}`,icono:a,children:[o.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),o.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),AO[a]]})}const AO={xne:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"m10 13-2 2 2 2"}),o.jsx("path",{d:"m14 17 2-2-2-2"})]}),xml:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"m9.5 13-2 2 2 2"}),o.jsx("path",{d:"m14.5 17 2-2-2-2"}),o.jsx("path",{d:"m12.8 12.5-1.6 5"})]}),js:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"}),o.jsx("path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"})]}),css:o.jsx("path",{d:"m10.5 12-1 6M14.5 12l-1 6M8.5 14h7M8 16.5h7"}),config:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M8 13h.5M11.5 13H16M8 17h4.5M15.5 17H16"}),o.jsx("circle",{cx:"10",cy:"13",r:"1.5"}),o.jsx("circle",{cx:"14",cy:"17",r:"1.5"})]}),imagen:o.jsxs(o.Fragment,{children:[o.jsx("circle",{cx:"10",cy:"12",r:"2"}),o.jsx("path",{d:"m20 17-1.3-1.3a2.4 2.4 0 0 0-3.4 0L9 22"})]}),bd:o.jsxs(o.Fragment,{children:[o.jsx("ellipse",{cx:"12",cy:"12.3",rx:"3.5",ry:"1.3"}),o.jsx("path",{d:"M8.5 12.3v4.4c0 .7 1.6 1.3 3.5 1.3s3.5-.6 3.5-1.3v-4.4"})]}),markdown:o.jsxs(o.Fragment,{children:[o.jsx("path",{d:"M7.5 18v-6l2 2.5 2-2.5v6"}),o.jsx("path",{d:"M15.5 12v6M13.8 16.3l1.7 1.7 1.7-1.7"})]}),fuente:o.jsx("path",{d:"m9 18 3-7 3 7M10.1 15.5h3.8"}),otro:null},EO="_nivel_18ce8_5",DO="_hoja_18ce8_14",zO="_carpeta_18ce8_15",TO="_nombre_18ce8_48",MO="_flecha_18ce8_63",LO="_insignia_18ce8_72",IO="_guia_18ce8_81",qO="_fila_18ce8_104",RO="_casilla_18ce8_117",PO="_alFinal_18ce8_132",FO="_cuenta_18ce8_137",fa={nivel:EO,hoja:DO,carpeta:zO,nombre:TO,flecha:MO,insignia:LO,guia:IO,fila:qO,casilla:RO,alFinal:PO,cuenta:FO};function OO(e){return`arbol-grupo-${e.replace(/[^A-Za-z0-9_-]/g,"_")}`}const m2=e=>8+e*14;function nf(e){return Array.from({length:e},(t,n)=>o.jsx("span",{className:fa.guia,style:{left:m2(n)+5},"data-guia":"","aria-hidden":"true"},n))}function u4({nodos:e,elegida:t,alElegir:n,filtro:r="",insignia:a,abiertas:l="primer-nivel",seleccion:i,variante:u="plano"}){const d=u==="explorador",[m,f]=$.useState(new Set),h=r.trim().toLowerCase(),b=$.useId(),y=L=>`${b}${OO(L)}`,g=L=>L.hijos===void 0?L.ruta.toLowerCase().includes(h):L.hijos.some(g),_=(L,F)=>{if(h!=="")return!0;const G=l==="todas"||l==="primer-nivel"&&F===0;return m.has(L.ruta)?!G:G},C=L=>f(F=>{const G=new Set(F);return G.has(L)?G.delete(L):G.add(L),G}),k=L=>{if(i===void 0)return null;const F=T8(L,i.marcadas);return o.jsx("input",{type:"checkbox",className:fa.casilla,"aria-label":`Subir ${L.ruta}`,checked:F==="todas",disabled:i.bloqueada===!0,ref:G=>{G!==null&&(G.indeterminate=F==="algunas")},onChange:()=>i.alCambiar(C5(L,i.marcadas))})},S=(L,F,G)=>i===void 0?G:o.jsxs("div",{className:fa.fila,style:{paddingLeft:m2(F)},children:[nf(F),k(L),G]}),A=L=>i===void 0?m2(L):4,I=L=>{if(!d||i===void 0)return null;const F=Fm(L),G=F.filter(O=>i.marcadas.has(O)).length;return o.jsxs("span",{className:fa.cuenta,"aria-hidden":"true",children:[G,"/",F.length]})},M=(L,F,G)=>o.jsx("ul",{id:G,className:fa.nivel,role:F===0?"tree":"group","data-explorador":d?"":void 0,children:L.filter(g).map(O=>O.hijos===void 0?o.jsx("li",{role:"none",children:S(O,F,o.jsxs("button",{type:"button",role:"treeitem",className:fa.hoja,style:{paddingLeft:A(F)},"aria-level":F+1,"data-fichero":L8(O.ruta),...O.ruta===t?{"aria-current":"true"}:{},"data-elegida":O.ruta===t?"":void 0,onClick:()=>i===void 0?n(O.ruta):i.bloqueada===!0?void 0:i.alCambiar(C5(O,i.marcadas)),children:[i===void 0?nf(F):null,o.jsx("span",{className:fa.flecha,"aria-hidden":"true"}),o.jsx(um,{ruta:O.ruta}),a===void 0||d?null:o.jsx("span",{className:fa.insignia,children:a(O.ruta)}),o.jsx("span",{className:fa.nombre,children:O.nombre}),a===void 0||!d?null:o.jsx("span",{className:`${fa.insignia} ${fa.alFinal}`,children:a(O.ruta)})]}))},O.ruta):o.jsxs("li",{role:"none",children:[S(O,F,o.jsxs("button",{type:"button",role:"treeitem",className:fa.carpeta,style:{paddingLeft:A(F)},"aria-expanded":_(O,F),"aria-level":F+1,"aria-label":O.nombre,"aria-owns":_(O,F)?y(O.ruta):void 0,onClick:()=>C(O.ruta),children:[i===void 0?nf(F):null,o.jsx("span",{className:fa.flecha,"aria-hidden":"true",children:_(O,F)?"▾":"▸"}),o.jsx(um,{ruta:O.ruta,carpeta:!0,abierta:_(O,F)}),o.jsx("span",{className:fa.nombre,children:O.nombre}),I(O)]})),_(O,F)?M(O.hijos,F+1,y(O.ruta)):null]},O.ruta))});return M(e,0)}const I8="s",q8="n",B0=()=>{};function Ll({texto:e,oculta:t=!1,alResponder:n,anidado:r=!1,decision:a,progreso:l,alCerrar:i}){const[u,d]=$.useState(""),[m,f]=$.useState(!1),[h,b]=$.useState(!1),y=$.useRef(!0);$.useEffect(()=>(y.current=!0,()=>{y.current=!1}),[]);const g=(k,S)=>{m||(f(!0),b(!1),Promise.resolve(S===void 0?n(k):n(k,S)).catch(()=>{y.current&&(f(!1),b(!0))}))},_=h?o.jsx("p",{className:tt.fallo,role:"alert",children:"La respuesta no llegó a xonecode: el envío falló. Vuelve a enviarla cuando la conexión se recupere."}):null;if(a!==void 0&&a.seleccionable===!0)return o.jsx(BO,{texto:e,decision:a,enviando:m,fallo:_,alResponder:g,...l===void 0?{}:{progreso:l},...i===void 0?{}:{alCerrar:i}});if(a!==void 0&&(l==null?void 0:l.fase)==="terminada")return o.jsx(R8,{texto:e,progreso:l,alCerrar:i??B0});if(a!==void 0){const k=(l==null?void 0:l.fase)==="trabajando";return o.jsx(rr,{open:!0,onClose:B0,title:e,headless:!0,className:tt.capa,children:o.jsx("div",{className:tt.velo,children:o.jsxs("div",{className:tt.pregunta,children:[o.jsx("p",{className:tt.titulo,children:e}),o.jsx("pre",{className:tt.plan,children:a.lineas.map((S,A)=>o.jsxs($.Fragment,{children:[A>0?`
|
|
483
|
-
`:null,o.jsx("span",{"data-cambio":S.cambio,children:S.texto})]},A))}),o.jsxs("div",{className:tt.decisiones,children:[o.jsxs(Le,{type:"button",variant:"primary",className:tt.accion,disabled:m||k,"aria-busy":k,onClick:()=>g(I8),children:[k?o.jsx("span",{className:tt.girando,"aria-hidden":"true"}):null,k?l.operacion==="bajar"?"Actualizando…":"Subiendo…":"Aceptar"]}),o.jsx(Le,{type:"button",variant:"outline",className:tt.cancelar,disabled:m||k,onClick:()=>g(q8),children:"Cancelar"})]}),_]})})})}const C=t?"pregunta-secreto":"pregunta-respuesta";return o.jsxs("form",{className:tt.pregunta,"data-anidado":r?"":void 0,onSubmit:k=>{k.preventDefault(),g(u)},children:[o.jsx("label",{className:tt.enunciado,htmlFor:C,children:e}),o.jsxs("div",{className:tt.fila,children:[o.jsx(La,{id:C,className:tt.envoltorio,autoFocus:!0,type:t?"password":"text",autoComplete:t?"off":void 0,value:u,onChange:k=>d(k.target.value)}),o.jsx(Le,{type:"submit",variant:r?"outline":"primary",className:tt.accion,disabled:m,children:"Aceptar"})]}),_]})}function BO({texto:e,decision:t,enviando:n,fallo:r,alResponder:a,progreso:l,alCerrar:i}){const u=(l==null?void 0:l.fase)==="trabajando",d=$.useMemo(()=>t.lineas.flatMap(C=>C.ruta===void 0?[]:[{ruta:C.ruta,cambio:C.cambio??"modificado"}]),[t]),m=$.useMemo(()=>c4(d.map(C=>C.ruta)),[d]),f=$.useMemo(()=>new Map(d.map(C=>[C.ruta,C.cambio])),[d]),[h,b]=$.useState(()=>new Set(d.map(C=>C.ruta))),y=d.length,g=d.filter(C=>h.has(C.ruta)).length,_=n||u;return(l==null?void 0:l.fase)==="terminada"?o.jsx(R8,{texto:e,progreso:l,alCerrar:i??B0}):o.jsx(rr,{open:!0,onClose:B0,title:e,headless:!0,className:tt.capa,children:o.jsx("div",{className:tt.velo,children:o.jsxs("div",{className:tt.pregunta,"data-seleccionable":"",children:[o.jsx("p",{className:tt.titulo,children:e}),o.jsxs("div",{className:tt.herramientas,children:[o.jsxs("span",{className:tt.cuenta,"aria-live":"polite",children:[g," de ",y," ",y===1?"fichero":"ficheros"]}),o.jsx("button",{type:"button",className:tt.enlace,disabled:_||g===y,onClick:()=>b(new Set(d.map(C=>C.ruta))),children:"Seleccionar todo"}),o.jsx("button",{type:"button",className:tt.enlace,disabled:_||g===0,onClick:()=>b(new Set),children:"Deseleccionar todo"})]}),o.jsx("div",{className:tt.arbol,children:o.jsx(u4,{nodos:m,alElegir:()=>{},abiertas:"todas",variante:"explorador",seleccion:{marcadas:h,alCambiar:b,bloqueada:_},insignia:C=>{const k=f.get(C)??"modificado";return o.jsx("span",{className:tt.clase,"data-clase":k,"aria-label":k,children:k==="nuevo"?"A":k==="borrado"?"D":"M"})}})}),o.jsxs("div",{className:tt.decisiones,children:[o.jsxs(Le,{type:"button",variant:"primary",className:tt.accion,disabled:_||g===0,"aria-busy":u,onClick:()=>a(I8,d.filter(C=>h.has(C.ruta)).map(C=>C.ruta)),children:[u?o.jsx("span",{className:tt.girando,"aria-hidden":"true"}):null,u?"Subiendo…":"Aceptar"]}),o.jsx(Le,{type:"button",variant:"outline",className:tt.cancelar,disabled:_,onClick:()=>a(q8),children:"Cancelar"})]}),r]})})})}function R8({texto:e,progreso:t,alCerrar:n}){const{resultado:r,bajados:a,error:l,operacion:i}=t,u=i==="subir",d=l===void 0&&(u?r!==void 0&&r.fallidos===0&&r.subidos>0:a!==void 0);let m,f;l!==void 0?(m=u?"No se ha podido subir":"No se ha podido actualizar el repo local",f=l):u?d&&r!==void 0?(m="Todo subido correctamente",f=`${r.subidos} ${r.subidos===1?"fichero subido":"ficheros subidos"} a CloudStudio.`):r===void 0?(m="La subida no ha terminado bien",f=t.motivo??"No consta cómo terminó. Esto es lo que contó la operación:"):r.subidos===0&&r.fallidos===0?(m="No se ha subido nada",f=`Subidos ${r.subidos}, fallaron ${r.fallidos}. Lo que falló sigue pendiente y se reintenta en la próxima subida.`):(m="La subida ha terminado con fallos",f=`Subidos ${r.subidos}, fallaron ${r.fallidos}. Lo que falló sigue pendiente y se reintenta en la próxima subida.`):(m=d?"Repo local actualizado":"La actualización no ha terminado bien",f=a!==void 0?`${a} ${a===1?"fichero bajado":"ficheros bajados"} de la rama.`:t.motivo??"No consta cómo terminó. Esto es lo que contó la operación:");const h=d?[]:t.lineas.slice(-12),b=u&&l===void 0?(r==null?void 0:r.avisos)??[]:[];return o.jsx(rr,{open:!0,onClose:B0,title:e,headless:!0,className:tt.capa,children:o.jsx("div",{className:tt.velo,children:o.jsxs("div",{className:tt.pregunta,"data-seleccionable":"",children:[o.jsxs("div",{className:tt.fin,"data-bien":d?"":void 0,role:"status",children:[o.jsx("span",{className:tt.marcaDeFin,"aria-hidden":"true",children:d?"✓":"!"}),o.jsx("p",{className:tt.titulo,children:m}),o.jsx("p",{className:tt.detalle,children:f}),b.map(y=>o.jsxs("p",{className:tt.detalle,"data-aviso":"",children:["Aviso: ",y,"."]},y))]}),h.length===0?null:o.jsx("pre",{className:tt.plan,children:h.join(`
|
|
484
|
-
`)}),o.jsx("div",{className:tt.decisiones,children:o.jsx(Le,{type:"button",variant:"primary",className:tt.accion,autoFocus:!0,onClick:n,children:"Aceptar"})})]})})})}const HO="_capa_1xucd_11",UO="_velo_1xucd_9",VO="_tarjeta_1xucd_25",GO="_titulo_1xucd_65",WO="_cuerpo_1xucd_17",ZO="_pendiente_1xucd_86",QO="_descripcion_1xucd_92",XO="_ruta_1xucd_97",YO="_origen_1xucd_103",KO="_diff_1xucd_33",JO="_linea_1xucd_118",eB="_signo_1xucd_126",tB="_plegado_1xucd_143",nB="_anadido_1xucd_175",rB="_quitado_1xucd_180",aB="_igual_1xucd_185",oB="_fallo_1xucd_173",sB="_acciones_1xucd_197",iB="_accion_1xucd_197 _secundario_1l1rx_39 _grande_1l1rx_26",cr={capa:HO,velo:UO,tarjeta:VO,titulo:GO,cuerpo:WO,pendiente:ZO,descripcion:QO,ruta:XO,origen:YO,diff:KO,linea:JO,signo:eB,plegado:tB,anadido:nB,quitado:rB,igual:aB,fallo:oB,acciones:sB,accion:iB},lB=3,cB=3,S5=e=>e.tipo==="igual";function uB(e,t=lB){const n=[];let r=[];const a=()=>{r.length>0&&n.push({clase:"lineas",lineas:r}),r=[]};let l=0;for(;l<e.length;){const i=e[l];if(!S5(i)){r.push(i),l+=1;continue}let u=l;for(;u<e.length&&S5(e[u]);)u+=1;const d=e.slice(l,u),m=u<e.length,h=l>0?Math.min(t,d.length):0,b=m?Math.min(t,d.length-h):0,y=d.length-h-b;y<cB?r.push(...d):(r.push(...d.slice(0,h)),a(),n.push({clase:"plegado",lineas:d.slice(h,h+y)}),r.push(...d.slice(h+y))),l=u}return a(),n}const dB="approve",jp="reject",pB={igual:!0,anadido:!0,quitado:!0};function mB(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.descripcion=="string"}function hB(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.texto=="string"&&typeof t.tipo=="string"&&Object.prototype.hasOwnProperty.call(pB,t.tipo)}const fB={anadido:"+",quitado:"-",igual:" "};function $5({linea:e}){return o.jsxs("div",{className:nt(cr.linea,cr[e.tipo]),children:[o.jsx("span",{className:cr.signo,"aria-hidden":"true",children:fB[e.tipo]}),o.jsx("span",{children:e.texto})]})}function gB({lineas:e}){const t=$.useMemo(()=>uB(e),[e]),[n,r]=$.useState([]);return o.jsx(o.Fragment,{children:t.map((a,l)=>a.clase==="lineas"?a.lineas.map((i,u)=>o.jsx($5,{linea:i},`${l}-${u}`)):n.includes(l)?a.lineas.map((i,u)=>o.jsx($5,{linea:i},`${l}-${u}`)):o.jsx("button",{type:"button",className:cr.plegado,onClick:()=>r(i=>[...i,l]),children:a.lineas.length===1?"… 1 línea sin cambios":`… ${a.lineas.length} líneas sin cambios`},l))})}function vB({pendientes:e,ficheros:t,diffs:n,alDecidir:r}){const a=$.useMemo(()=>e.filter(mB),[e]),l=$.useRef(!1),i=$.useRef(!0),u=$.useRef(null),[d,m]=$.useState(!1),f=$.useCallback(b=>{if(l.current)return;l.current=!0,m(!1);const y=r(Object.fromEntries(a.map(g=>[g.id,b])));Promise.resolve(y).catch(()=>{l.current=!1,i.current&&m(!0)})},[r,a]),h=$.useRef(f);return h.current=f,$.useEffect(()=>{const b=u.current;return i.current=!0,()=>{(b==null?void 0:b.isConnected)!==!0&&(i.current=!1,h.current(jp))}},[]),o.jsx(rr,{open:!0,onClose:()=>f(jp),title:"Aprobación de escrituras",headless:!0,className:cr.capa,children:o.jsx("div",{className:cr.velo,onClick:b=>{b.target===b.currentTarget&&f(jp)},children:o.jsxs("div",{className:cr.tarjeta,ref:u,children:[o.jsx("h2",{className:cr.titulo,children:a.length===1?"1 escritura pide aprobación":`${a.length} escrituras piden aprobación`}),o.jsx("div",{className:cr.cuerpo,children:a.map(b=>{const y=t[b.id],g=(n[b.id]??[]).filter(hB);return o.jsxs("section",{className:cr.pendiente,children:[o.jsx("p",{className:cr.descripcion,children:b.descripcion}),typeof y=="string"&&y!==""?o.jsx("p",{className:cr.ruta,children:y}):null,o.jsxs("p",{className:cr.origen,children:["quién: ",b.origen]}),o.jsx("div",{className:cr.diff,children:o.jsx(gB,{lineas:g})})]},b.id)})}),d?o.jsx("p",{className:cr.fallo,role:"alert",children:"La decisión no llegó a xonecode: el envío falló. Nada se ha aplicado; vuelve a pulsar cuando la conexión se recupere."}):null,o.jsxs("div",{className:cr.acciones,children:[o.jsx(Le,{variant:"outline",className:cr.accion,onClick:()=>f(jp),children:"Rechazar"}),o.jsx(Le,{variant:"primary",className:cr.accion,onClick:()=>f(dB),children:"Aprobar"})]})]})})})}const bB="_selector_w6qhg_14",yB="_opcion_w6qhg_29",xB="_titulo_w6qhg_53",_B="_opciones_w6qhg_58",wB="_etiqueta_w6qhg_101",jB="_detalle_w6qhg_105",CB="_acciones_w6qhg_111",kB="_cancelar_w6qhg_32",NB="_fallo_w6qhg_136",SB="_aviso_w6qhg_142",rs={selector:bB,opcion:yB,titulo:xB,opciones:_B,etiqueta:wB,detalle:jB,acciones:CB,cancelar:kB,fallo:NB,aviso:SB};function A5({titulo:e,opciones:t,aviso:n,alElegir:r,anidado:a=!1}){const[l,i]=$.useState(!1),[u,d]=$.useState(!1),m=$.useRef(!0),f=$.useRef(()=>{});$.useEffect(()=>(m.current=!0,()=>{m.current=!1}),[]);const h=b=>{l||(i(!0),d(!1),Promise.resolve(r(b)).catch(()=>{m.current&&(i(!1),d(!0))}))};return $.useEffect(()=>{const b=y=>{y.key==="Escape"&&f.current()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[]),f.current=()=>h(void 0),o.jsxs("div",{className:rs.selector,"data-anidado":a?"":void 0,role:"group","aria-label":e,children:[o.jsx("p",{className:rs.titulo,children:e}),n!==void 0&&n!==""?o.jsx("p",{className:rs.aviso,role:"alert",children:n}):null,o.jsx("ul",{className:rs.opciones,children:t.map(b=>o.jsx("li",{children:o.jsxs(Le,{variant:"outline",className:rs.opcion,disabled:l,onClick:()=>h(b.id),children:[o.jsx("span",{className:rs.etiqueta,children:b.etiqueta}),b.detalle!==void 0&&b.detalle!==""?o.jsx("span",{className:rs.detalle,children:b.detalle}):null]})},b.id))}),o.jsx("div",{className:rs.acciones,children:o.jsx(Le,{variant:"outline",className:rs.cancelar,disabled:l,onClick:()=>h(void 0),children:"Cancelar"})}),u?o.jsx("p",{className:rs.fallo,role:"alert",children:"La elección no llegó a xonecode: el envío falló. Vuelve a elegir cuando la conexión se recupere."}):null]})}const $B="_wizard_ava2x_10",AB="_etiqueta_ava2x_16",EB="_envoltorio_ava2x_24",DB="_campo_ava2x_28",zB="_nota_ava2x_41",TB="_aviso_ava2x_48",MB="_estado_ava2x_53",LB="_acciones_ava2x_58",IB="_accion_ava2x_3 _primario_1l1rx_67 _grande_1l1rx_26",_r={wizard:$B,etiqueta:AB,envoltorio:EB,campo:DB,nota:zB,aviso:TB,estado:MB,acciones:LB,accion:IB},qB=new Set(["127.0.0.1","localhost","::1","[::1]"]),d4="La URL del MCP debe ser https:// — solo se admite http:// en 127.0.0.1 o localhost, para un on-premise en desarrollo.";function dm(e){let t;try{t=new URL(e)}catch{return!1}return t.username!==""||t.password!==""?!1:t.protocol==="https:"?!0:t.protocol==="http:"&&qB.has(t.hostname)}function RB({pasos:e,proveedores:t,entornos:n,rutaDeCredencial:r,aviso:a,alGuardarCredencial:l,alRegistrarEntorno:i}){var F,G;const[u,d]=$.useState(0),[m,f]=$.useState(((F=t[0])==null?void 0:F.id)??""),[h,b]=$.useState(""),[y,g]=$.useState(!1),[_,C]=$.useState(((G=n[0])==null?void 0:G.url)??""),[k,S]=$.useState(void 0),A=e[u];if(A===void 0)return null;const I=a===void 0?null:o.jsx("p",{className:_r.aviso,role:"alert",children:a}),M=()=>d(O=>O+1),L=u+1<e.length;if(A==="cuenta"){const O=B=>{B.preventDefault(),l(m,h),b(""),g(!0)};return o.jsxs("form",{className:_r.wizard,onSubmit:O,children:[o.jsx("label",{className:_r.etiqueta,htmlFor:"wizard-proveedor",children:"Proveedor"}),o.jsx("select",{id:"wizard-proveedor",className:_r.campo,value:m,onChange:B=>f(B.target.value),children:t.map(B=>o.jsx("option",{value:B.id,children:B.nombre},B.id))}),o.jsx("label",{className:_r.etiqueta,htmlFor:"wizard-clave",children:"Clave de API"}),o.jsx(La,{id:"wizard-clave",className:_r.envoltorio,type:"password",autoComplete:"off",value:h,onChange:B=>b(B.target.value)}),o.jsx("p",{className:_r.nota,children:"La clave no se guarda en el navegador: viaja a XOneCode y se escribe en el fichero de credenciales, con permisos 0600."}),I,y?o.jsx("p",{className:_r.estado,role:"status",children:r!==void 0?`Credencial guardada en ${r}. Queda escrita aunque canceles lo que viene después.`:"Credencial enviada a XOneCode; el servidor dirá dónde queda escrita."}):null,o.jsxs("div",{className:_r.acciones,children:[y?null:o.jsx(Le,{type:"submit",variant:"primary",className:_r.accion,children:"Guardar"}),y&&L?o.jsx(Le,{type:"button",variant:"primary",className:_r.accion,onClick:M,children:"Continuar"}):null]})]})}if(A==="entorno"){const O=B=>{if(B.preventDefault(),!dm(_)){S(d4);return}S(void 0),i({id:"",nombre:"",url:_})};return o.jsxs("form",{className:_r.wizard,onSubmit:O,children:[o.jsx("label",{className:_r.etiqueta,htmlFor:"wizard-url",children:"URL del MCP"}),o.jsx(La,{id:"wizard-url",className:_r.envoltorio,value:_,placeholder:"https://mcp.ejemplo.com/mcp",onChange:B=>C(B.target.value)}),k!==void 0?o.jsx("p",{className:_r.aviso,role:"alert",children:k}):null,I,o.jsx("div",{className:_r.acciones,children:o.jsx(Le,{type:"submit",variant:"primary",className:_r.accion,children:"Registrar"})})]})}return null}const PB="_splash_xvqmu_13",FB={splash:PB};function OB(){return o.jsx("div",{className:FB.splash})}const BB="_marca_pm4iz_10",HB="_fila_pm4iz_22",UB="_placa_pm4iz_33",VB="_simbolo_pm4iz_45",GB="_trazoCian_pm4iz_50",WB="_trazoCielo_pm4iz_54",ZB="_puntoNaranja_pm4iz_58",QB="_textoDeMarca_pm4iz_62",XB="_xone_pm4iz_68",YB="_code_pm4iz_72",KB="_eslogan_pm4iz_76",JB="_grande_pm4iz_91",ro={marca:BB,fila:HB,placa:UB,simbolo:VB,trazoCian:GB,trazoCielo:WB,puntoNaranja:ZB,textoDeMarca:QB,xone:XB,code:YB,eslogan:KB,grande:JB};function E5({grande:e}){return o.jsxs("div",{className:`${ro.marca}${e===!0?` ${ro.grande}`:""}`,children:[o.jsxs("div",{className:ro.fila,children:[o.jsx("div",{className:ro.placa,children:o.jsxs("svg",{className:ro.simbolo,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("path",{d:"M28 26C34 20 44 20 50 26L74 50C80 56 80 66 74 72C68 78 58 78 52 72L28 48C22 42 22 32 28 26Z",className:ro.trazoCian,strokeWidth:"8",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M72 26C66 20 56 20 50 26L26 50C20 56 20 66 26 72C32 78 42 78 48 72L72 48C78 42 78 32 72 26Z",className:ro.trazoCielo,strokeWidth:"8",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:"50",cy:"49",r:"6",className:ro.puntoNaranja})]})}),o.jsxs("span",{className:ro.textoDeMarca,children:[o.jsx("span",{className:ro.xone,children:"XOne"}),o.jsx("span",{className:ro.code,children:"Code"})]})]}),o.jsx("p",{className:ro.eslogan,children:"Entorno de desarrollo con IA para aplicaciones nativas y en la nube"})]})}const eH="_envoltura_5qajg_14",tH="_contenido_5qajg_3",rf={envoltura:eH,contenido:tH};function nH({children:e,centrada:t}){return o.jsxs("div",{className:rf.envoltura,children:[o.jsx(OB,{}),t===!0?o.jsxs("div",{className:rf.contenido,children:[o.jsx(E5,{grande:!0}),e]}):o.jsxs(o.Fragment,{children:[o.jsx(E5,{}),o.jsx("div",{className:rf.contenido,children:e})]})]})}const rH="_bienvenida_1pv9l_7",aH="_saludo_1pv9l_13",oH="_texto_1pv9l_19",af={bienvenida:rH,saludo:aH,texto:oH};function sH({nombre:e}){return o.jsxs("div",{className:af.bienvenida,children:[o.jsx("p",{className:af.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:af.texto,children:"Esto es XOneCode. Antes de empezar hace falta el modelo con el que vas a trabajar y el entorno de CloudStudio de tu proyecto — solo hace falta una vez."})]})}const iH="_pasos_1284o_5",lH="_paso_1284o_5",cH="_marcador_1284o_44",uH="_etiqueta_1284o_77",dH="_volver_1284o_100",El={pasos:iH,paso:lH,marcador:cH,etiqueta:uH,volver:dH};function pH({pasos:e,alVolver:t}){return o.jsx("ol",{className:El.pasos,"aria-label":"Pasos del alta",children:e.map((n,r)=>{const a=r>0&&e[r-1].estado==="hecho";return o.jsx("li",{className:El.paso,"data-estado":n.estado,"data-conector":r>0?a?"hecho":"pendiente":void 0,"aria-current":n.estado==="actual"?"step":void 0,children:n.estado==="hecho"&&t!==void 0?o.jsxs("button",{type:"button",className:El.volver,onClick:()=>t(n.id),title:`Volver a ${n.etiqueta.toLowerCase()}`,children:[o.jsx("span",{className:El.marcador,"data-estado":n.estado,"aria-hidden":"true",children:"✓"}),o.jsx("span",{className:El.etiqueta,"data-estado":n.estado,children:n.etiqueta})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:El.marcador,"data-estado":n.estado,"aria-hidden":"true",children:n.estado==="hecho"?"✓":null}),o.jsx("span",{className:El.etiqueta,"data-estado":n.estado,children:n.etiqueta})]})},n.id)})})}const mH="_tarjeta_1sdjm_7",hH={tarjeta:mH};function fH({nombre:e,pasos:t,alVolverAPaso:n,children:r}){return o.jsxs("div",{className:hH.tarjeta,children:[o.jsx(sH,{nombre:e}),o.jsx(pH,{pasos:t,...n===void 0?{}:{alVolver:n}}),r]})}const gH="_fase_1vb0v_5",vH="_punto_1vb0v_22",D5={fase:gH,punto:vH};function bH({texto:e}){return o.jsxs("p",{className:D5.fase,role:"status","aria-live":"polite",children:[o.jsx("span",{className:D5.punto,"aria-hidden":"true"}),e]})}const yH="_escritorio_2bfx7_7",xH="_contenido_2bfx7_15",_H="_portada_2bfx7_20",wH="_saludo_2bfx7_24",jH="_subtitulo_2bfx7_32",CH="_entorno_2bfx7_41",kH="_entornoNombre_2bfx7_55",NH="_punto_2bfx7_64",SH="_empezar_2bfx7_78 _primario_1l1rx_67",$H="_empezarTarea_2bfx7_79 _secundario_1l1rx_39",AH="_entornoUrl_2bfx7_93",EH="_vacio_2bfx7_99",DH="_enlace_2bfx7_104",zH="_rejilla_2bfx7_116",TH="_tarjeta_2bfx7_125",MH="_cabeceraDeTarjeta_2bfx7_158",LH="_resto_2bfx7_173",IH="_nombreDeProyecto_2bfx7_184",qH="_compartido_2bfx7_204",RH="_marca_2bfx7_212",PH="_accionesDeTarjeta_2bfx7_244",FH="_pie_2bfx7_266",OH="_modelo_2bfx7_272",BH="_iconoDeEntorno_2bfx7_279",en={escritorio:yH,contenido:xH,portada:_H,saludo:wH,subtitulo:jH,entorno:CH,entornoNombre:kH,punto:NH,empezar:SH,empezarTarea:$H,entornoUrl:AH,vacio:EH,enlace:DH,rejilla:zH,tarjeta:TH,cabeceraDeTarjeta:MH,resto:LH,nombreDeProyecto:IH,compartido:qH,marca:RH,accionesDeTarjeta:PH,pie:FH,modelo:OH,iconoDeEntorno:BH},HH="_envoltura_2m29n_4",UH="_boton_2m29n_24 _secundario_1l1rx_39",VH="_exito_2m29n_41",GH="_resultado_2m29n_54",WH="_hora_2m29n_67",ZH="_desfase_2m29n_75",Po={envoltura:HH,boton:UH,exito:VH,resultado:GH,hora:WH,desfase:ZH};function h2({dispositivo:e,conectado:t,medidoDeLaFoto:n,alVerificar:r}){var f;const[a,l]=$.useState(!1),i=(f=e.verificado)==null?void 0:f.medido;$.useEffect(()=>l(!1),[i]),$.useEffect(()=>{t||l(!1)},[t]);const u=e.verificado,d=e.estado==="conectado"||e.estado==="arrancado",m=u!==void 0&&n!==void 0&&u.ok!==d&&u.medido>n;return o.jsxs("span",{className:Po.envoltura,children:[u===void 0?null:o.jsxs("span",{className:Po.resultado,"data-ok":u.ok?"":void 0,children:[o.jsx("span",{"aria-hidden":"true",children:u.ok?"✓":"✕"}),o.jsx("span",{children:u.detalle}),o.jsx("span",{className:Po.hora,children:z5(u.medido)}),m?o.jsxs("span",{className:Po.desfase,children:["la lista es de las ",z5(n)]}):null]}),r===void 0||e.soloDefinicion===!0?null:o.jsx("button",{type:"button",className:nt(Po.boton,Po.exito),disabled:!t||a,title:`Habla con ${e.nombre} y espera respuesta`,onClick:()=>{l(!0),r(e.id)},children:a?"Verificando…":"Verificar"})]})}function z5(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const QH="_giro_zx45q_4",XH="_icono_zx45q_23",YH="_girando_zx45q_29",$0={giro:QH,icono:XH,girando:YH};function Pi({className:e}){return o.jsx("span",{className:e===void 0?$0.giro:`${$0.giro} ${e}`,"aria-hidden":"true"})}const KH="_equipo_tqt2p_8",JH="_cabecera_tqt2p_16",eU="_titulo_tqt2p_22",tU="_sistema_tqt2p_30",nU="_actualizar_tqt2p_38 _secundario_1l1rx_39",rU="_bloques_tqt2p_43",aU="_bloque_tqt2p_43",oU="_plataforma_tqt2p_54",sU="_resumen_tqt2p_61",iU="_cuenta_tqt2p_62",lU="_nota_tqt2p_63",cU="_fallo_tqt2p_69",uU="_filas_tqt2p_75",dU="_fila_tqt2p_75",pU="_punto_tqt2p_90",mU="_nombre_tqt2p_111",hU="_etiqueta_tqt2p_121",fU="_detalle_tqt2p_128",Jn={equipo:KH,cabecera:JH,titulo:eU,sistema:tU,actualizar:nU,bloques:rU,bloque:aU,plataforma:oU,resumen:sU,cuenta:iU,nota:lU,fallo:cU,filas:uU,fila:dU,punto:pU,nombre:mU,etiqueta:hU,detalle:fU},P8="Vuelve a mirar qué dispositivos y simuladores hay en este equipo";function gU({informe:e,conectado:t,alActualizar:n,alVerificar:r}){const[a,l]=$.useState(!1),i=e==null?void 0:e.medido;$.useEffect(()=>l(!1),[i]),$.useEffect(()=>{t||l(!1)},[t]);const u=e===void 0?void 0:yU(e),d=e===void 0?void 0:xU(e);return o.jsxs("section",{className:Jn.equipo,"aria-label":"tu equipo",children:[o.jsxs("div",{className:Jn.cabecera,children:[o.jsx("h2",{className:Jn.titulo,children:"Tu equipo"}),e===void 0?null:o.jsx("span",{className:Jn.sistema,children:vU[e.sistema]}),n===void 0?null:o.jsxs("button",{type:"button",className:Jn.actualizar,title:P8,disabled:!t||a||e===void 0,"aria-busy":a,onClick:()=>{l(!0),n()},children:[a?o.jsx(Pi,{}):null,a?"Refrescando…":"Refrescar"]})]}),e===void 0?o.jsx("p",{className:Jn.nota,children:"Consultando qué dispositivos y simuladores hay en este equipo…"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Jn.bloques,children:[o.jsx(T5,{titulo:"Android",...u,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}}),o.jsx(T5,{titulo:"iOS",...d,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}})]}),o.jsxs("p",{className:Jn.nota,children:["Medido a las ",_U(e.medido),".",e.herramientas.some(m=>m.nombre==="adb"&&m.estado==="ok")?" Medir arranca el demonio de adb si no estaba corriendo, y esta medida ya lo hizo.":""]})]})]})}const vU={mac:"macOS",windows:"Windows",linux:"Linux",otro:"sistema desconocido"},bU={emulador:"emulador",simulador:"simulador",fisico:"dispositivo"};function T5({titulo:e,resumen:t,filas:n,cuentas:r,fallos:a,conectado:l,medido:i,alVerificar:u}){return o.jsxs("div",{className:Jn.bloque,children:[o.jsx("h3",{className:Jn.plataforma,children:e}),t===void 0?null:o.jsx("p",{className:Jn.resumen,children:t}),n.length===0?null:o.jsx("ul",{className:Jn.filas,children:n.map(d=>o.jsxs("li",{className:Jn.fila,"data-estado":d.estado,children:[o.jsx("span",{className:Jn.punto,"aria-hidden":"true"}),o.jsx("span",{className:Jn.nombre,children:d.nombre}),o.jsxs("span",{className:Jn.etiqueta,children:[bU[d.clase]," · ",Pl(d)]}),d.detalle===void 0?null:o.jsx("span",{className:Jn.detalle,children:d.detalle}),o.jsx(h2,{dispositivo:d,conectado:l,medidoDeLaFoto:i,...u===void 0?{}:{alVerificar:u}})]},d.id))}),r.map(d=>o.jsx("p",{className:Jn.cuenta,children:d},d)),a.map(d=>o.jsx("p",{className:Jn.fallo,children:d},d))]})}function F8(e){return{filas:e.filter(t=>t.estado!=="apagado"),apagados:e.filter(t=>t.estado==="apagado")}}function pm(e,t){return e.herramientas.find(n=>n.nombre===t)}function f2(e,t,n){return`${e} ${e===1?t:n}`}function yU(e){const t=pm(e,"adb"),n=pm(e,"emulator"),{filas:r}=F8(e.dispositivos.filter(i=>i.plataforma==="android")),a=[],l=[];if((t==null?void 0:t.estado)==="desactivada"&&(n==null?void 0:n.estado)==="desactivada")return{resumen:"Android no se mira: está desactivado en Ajustes.",filas:[],cuentas:a,fallos:l};if((t==null?void 0:t.estado)==="no-encontrada"&&(n==null?void 0:n.estado)==="no-encontrada")return{resumen:"Sin SDK de Android: no hay adb ni emulator en el PATH ni en ANDROID_HOME.",filas:[],cuentas:a,fallos:l};for(const i of[t,n])(i==null?void 0:i.estado)==="fallo"&&l.push(`${i.nombre} falló: ${i.detalle??"sin motivo"}`),(i==null?void 0:i.estado)==="no-encontrada"&&a.push(`${i.nombre} no está instalado.`),(i==null?void 0:i.estado)==="desactivada"&&a.push(`${i.nombre} no se ha mirado: desactivado en Ajustes.`);return(t==null?void 0:t.estado)==="ok"&&r.length===0&&a.push("adb no ve ningún dispositivo ni emulador."),(n==null?void 0:n.estado)==="ok"&&a.push(e.avds.length===0?"Ningún AVD definido para el emulador.":`${f2(e.avds.length,"AVD definido","AVD definidos")}: ${e.avds.join(", ")}.`),{filas:r,cuentas:a,fallos:l}}function xU(e){const t=pm(e,"xcrun"),n=pm(e,"devicectl"),r=[],a=[];if((t==null?void 0:t.estado)==="desactivada"&&(n==null?void 0:n.estado)==="desactivada")return{resumen:"iOS no se mira: está desactivado en Ajustes.",filas:[],cuentas:r,fallos:a};if((t==null?void 0:t.estado)==="no-aplica")return{resumen:"Los simuladores y dispositivos iOS solo se detectan en macOS.",filas:[],cuentas:r,fallos:a};if((t==null?void 0:t.estado)==="no-encontrada")return{resumen:`Sin herramientas de desarrollo de Xcode${t.detalle===void 0?"":` (${t.detalle})`}.`,filas:[],cuentas:r,fallos:a};const{filas:l,apagados:i}=F8(e.dispositivos.filter(u=>u.plataforma==="ios"));if((t==null?void 0:t.estado)==="fallo"&&a.push(`simctl falló: ${t.detalle??"sin motivo"}`),(n==null?void 0:n.estado)==="fallo"&&a.push(`devicectl falló: ${n.detalle??"sin motivo"}`),(t==null?void 0:t.estado)==="desactivada"&&r.push("Los simuladores no se miran: desactivados en Ajustes."),(n==null?void 0:n.estado)==="desactivada"&&r.push("Los iPhone y iPad no se miran: desactivados en Ajustes."),(t==null?void 0:t.estado)==="ok"){const u=l.filter(d=>d.clase==="simulador").length;i.length>0?r.push(u===0?`${f2(i.length,"simulador disponible","simuladores disponibles")}, ninguno arrancado.`:`${f2(i.length,"simulador más","simuladores más")}, apagados.`):u===0&&r.push("Ningún simulador iOS disponible.")}return(n==null?void 0:n.estado)==="ok"&&!l.some(u=>u.clase==="fisico")&&r.push("Ningún iPhone o iPad conectado."),{filas:l,cuentas:r,fallos:a}}function _U(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function O8(e){return e.sesion!==void 0&&e.estado!=="en-proceso"}const wU="_acciones_ok0yz_12",jU="_avisoConexion_ok0yz_22",CU="_boton_ok0yz_29",kU="_destructiva_ok0yz_54",NU="_feedback_ok0yz_62",SU="_etiquetaFeedback_ok0yz_69",$U="_campoFeedback_ok0yz_74",AU="_botonFeedback_ok0yz_89",EU="_pista_ok0yz_110",Jr={acciones:wU,avisoConexion:jU,boton:CU,destructiva:kU,feedback:NU,etiquetaFeedback:SU,campoFeedback:$U,botonFeedback:AU,pista:EU};function p4({tarea:e,conectado:t,alReintentar:n,alDescartar:r,alTerminar:a,alEnviarFeedback:l,alContinuar:i,alArrancarAhora:u,puedeArrancar:d,esperaPorTuConsola:m}){const[f,h]=$.useState(!1),[b,y]=$.useState(void 0),[g,_]=$.useState(!1),C=re=>{g||(_(!0),y(void 0),re(e.id).catch(()=>"el envío falló").then(fe=>{_(!1),fe!==void 0&&y(fe)}))},k=t===!1,S=Hy[e.estado],A=e.estado==="requiere-atencion",I=A&&S.includes("nuevo")&&n!==void 0,M=A&&S.includes("terminada")&&a!==void 0,L=A&&S.includes("nuevo")&&l!==void 0,F=A&&S.includes("nuevo")&&l===void 0,G=r!==void 0,O=A&&S.includes("nuevo")&&i!==void 0,B=e.estado==="nuevo"&&d===!0&&u!==void 0,W=e.estado==="nuevo"&&d===!0&&m===!0;return!I&&!M&&!L&&!F&&!G&&!O&&!B?null:o.jsxs("div",{className:Jr.acciones,role:"group","aria-label":"Acciones de la tarea",children:[k?o.jsx("p",{className:Jr.avisoConexion,children:"Sin conexión: no se puede mandar nada hasta reconectar."}):null,W?o.jsx("p",{className:Jr.pista,children:"Esperando: no arranca mientras tengas abierta la consola de este proyecto."}):null,B?o.jsx("button",{type:"button",className:Jr.boton,disabled:k||g,title:"Cierra tu conversación en este proyecto (queda guardada) y arranca la tarea",onClick:()=>C(u),children:"Arrancar ahora"}):null,O?o.jsx("button",{type:"button",className:Jr.boton,disabled:k||g,onClick:()=>C(i),children:"Continuar"}):null,I?o.jsx("button",{type:"button",className:Jr.boton,disabled:k,onClick:()=>n(e.id),children:"Reintentar"}):null,M?o.jsx("button",{type:"button",className:Jr.boton,disabled:k,onClick:()=>a(e.id),children:"Dar por bueno"}):null,G?o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Jr.boton,disabled:k,onClick:()=>h(!0),children:"Descartar"}),f?o.jsx(DU,{tarea:e,onCancelar:()=>h(!1),onConfirmar:()=>{r(e.id),h(!1)}}):null]}):null,L?o.jsx(zU,{id:e.id,apagado:k,alEnviar:l}):F?o.jsx("p",{className:Jr.pista,children:"Se resuelve editando la tarea para añadir tu feedback: sigue desde ahí."}):null,b!==void 0?o.jsx("p",{className:Jr.pista,role:"alert",children:`No se pudo: ${b}`}):null]})}function DU({tarea:e,onCancelar:t,onConfirmar:n}){return o.jsx(rr,{open:!0,onClose:t,title:"Descartar tarea",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:me.ventana,children:[o.jsx("h2",{className:me.titulo,children:"Descartar tarea"}),o.jsxs("p",{className:me.nota,children:["Se para el turno de «",e.titulo,"» si está en marcha, y se borra todo: el encargo y sus adjuntos. No hay papelera."]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:t,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal} ${Jr.destructiva}`,onClick:n,children:"Sí, descartar"})]})]})})})}function zU({id:e,apagado:t,alEnviar:n}){const[r,a]=$.useState(""),l=r.trim();return o.jsxs("form",{className:Jr.feedback,onSubmit:i=>{i.preventDefault(),!(l===""||t)&&(n(e,l),a(""))},children:[o.jsx("label",{className:Jr.etiquetaFeedback,htmlFor:`feedback-${e}`,children:"Tu feedback"}),o.jsx("textarea",{id:`feedback-${e}`,className:Jr.campoFeedback,rows:2,value:r,disabled:t,onChange:i=>a(i.target.value),placeholder:"Se manda al agente en el mismo hilo…"}),o.jsx("button",{type:"submit",className:Jr.botonFeedback,disabled:l===""||t,children:"Enviar y continuar"})]})}const TU="_entrega_168bg_5",MU="_frase_168bg_12",LU="_detalle_168bg_21",IU="_salvedad_168bg_30",qU="_hallazgos_168bg_39",Hs={entrega:TU,frase:MU,detalle:LU,salvedad:IU,hallazgos:qU};function Om({tarea:e}){const t=e.veredicto,n=e.estado==="terminada";if(!n&&t===void 0)return null;const r=e.terminadaAMano===!0,a=(t==null?void 0:t.hallazgos)??[],l=t!==void 0&&e.motivo!==void 0&&e.motivo.includes(t.resumen);return o.jsxs("div",{className:Hs.entrega,children:[n?r?o.jsx("p",{className:Hs.frase,"data-via":"persona",children:"La dio por buena una persona, sin verificador y sin juez."}):t===void 0?o.jsx("p",{className:Hs.frase,"data-via":"sin-constancia",children:"No consta ningún veredicto de esta entrega."}):t.veredicto==="verde"?o.jsxs("p",{className:Hs.frase,"data-via":"juez",children:["El juez de QA la aprobó: ",t.resumen]}):o.jsxs("p",{className:Hs.frase,"data-via":"raro",children:["Terminada, pero el juez de QA había dicho «",t.veredicto,"»: ",t.resumen]}):l?null:o.jsxs("p",{className:Hs.frase,"data-via":"juez-pendiente",children:["El juez de QA dijo «",t.veredicto,"»: ",t.resumen]}),n&&r&&t!==void 0?o.jsxs("p",{className:Hs.detalle,children:["El juez de QA había dicho «",t.veredicto,"»: ",t.resumen]}):null,!n||(t==null?void 0:t.salvedad)===void 0?null:o.jsxs("p",{className:Hs.salvedad,children:["Se entregó con una condición menos: ",t.salvedad]}),a.length===0?null:o.jsx("ul",{className:Hs.hallazgos,children:a.map(i=>o.jsx("li",{children:i},i))})]})}const RU="_envoltura_xtc5o_7",PU="_boton_xtc5o_16",FU="_panel_xtc5o_33",OU="_nota_xtc5o_42",BU="_motivo_xtc5o_49",HU="_ficheros_xtc5o_55",UU="_listaDeFicheros_xtc5o_65",VU="_transcript_xtc5o_80",GU="_usuario_xtc5o_91",WU="_asistente_xtc5o_92",ZU="_pulso_xtc5o_107",QU="_sistema_xtc5o_108",XU="_razonamiento_xtc5o_121",YU="_razonamientoTexto_xtc5o_130",KU="_error_xtc5o_136",JU="_artefacto_xtc5o_143",eV="_vacio_xtc5o_149",yn={envoltura:RU,boton:PU,panel:FU,nota:OU,motivo:BU,ficheros:HU,listaDeFicheros:UU,transcript:VU,usuario:GU,asistente:WU,pulso:ZU,sistema:QU,razonamiento:XU,razonamientoTexto:YU,error:KU,artefacto:JU,vacio:eV};function m4({tarea:e,corriendoAqui:t,conectado:n,mirando:r,mirada:a,alMirar:l,alDejarDeMirar:i}){const u=r===e.id,d=l!==void 0&&i!==void 0&&e.estado==="en-proceso"&&t===!0&&n!==!1;return!u&&!d?null:o.jsxs("div",{className:yn.envoltura,children:[o.jsx("button",{type:"button",className:yn.boton,"aria-expanded":u,onClick:()=>u?i(e.id):l(e.id),children:u?"Dejar de ver lo que hace":"Ver lo que hace"}),u?o.jsx(tV,{tarea:e,corriendoAqui:t,mirada:a}):null]})}function tV({tarea:e,corriendoAqui:t,mirada:n}){const r=(n==null?void 0:n.tarea)===e.id?n.actos:[],a=e.estado==="en-proceso"&&t===!0;return o.jsxs("div",{className:yn.panel,"aria-label":`Lo que hace: ${e.titulo}`,children:[o.jsxs("p",{className:yn.nota,children:["Es ",o.jsx("strong",{children:"su conversación"}),", la misma que se lee al abrir la sesión cuando acabe — no un registro aparte. De ",o.jsx("strong",{children:"solo lectura"}),": para intervenir, contéstale con el feedback de su tarjeta cuando la tarea lo pida."]}),e.motivo===void 0?null:o.jsx("p",{className:yn.motivo,children:e.motivo}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:yn.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:yn.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:yn.listaDeFicheros,children:e.autorizadas.map(l=>o.jsx("li",{children:o.jsx("code",{children:l})},l))})]}),o.jsx(Om,{tarea:e}),r.length===0?o.jsx("p",{className:yn.vacio,children:a?"Todavía no ha pintado nada. En cuanto empiece, aparecerá aquí.":"Esta tarea ya no corre aquí. Lo que hizo está en su conversación: pulsa su título en la tarjeta para abrirla."}):o.jsx("ul",{className:yn.transcript,children:r.map((l,i)=>o.jsx("li",{children:o.jsx(nV,{acto:l})},i))})]})}function nV({acto:e}){switch(e.tipo){case"usuario":return o.jsx("p",{className:yn.usuario,children:e.texto});case"asistente":return o.jsx("p",{className:yn.asistente,children:e.texto});case"razonamiento":return o.jsxs("details",{className:yn.razonamiento,children:[o.jsx("summary",{children:"Razonamiento"}),o.jsx("p",{className:yn.razonamientoTexto,children:e.texto})]});case"herramientas":return o.jsx("p",{className:yn.pulso,children:e.lineas.join(`
|
|
485
|
-
`)});case"fase":return o.jsx("p",{className:yn.pulso,children:e.texto});case"sistema":return o.jsx("p",{className:yn.sistema,children:e.texto});case"sincronizacion":return o.jsx("p",{className:yn.sistema,children:e.lineas.join(`
|
|
486
|
-
`)});case"error":return o.jsx("p",{className:yn.error,children:e.texto});case"artefacto":return o.jsxs("p",{className:yn.artefacto,children:["Artefacto: ",e.nombre," (",e.bytes," B)"]});case"fin":return null;case"consulta":return o.jsx("p",{className:yn.sistema,children:`Opciones: ${e.opciones.join(" · ")}`});case"propuesta-de-tareas":return o.jsx("p",{className:yn.sistema,children:`Propuso ${e.tareas.length} tareas: ${e.tareas.map(t=>t.titulo).join(" · ")}`});case"propuesta-resuelta":return null;case"verificacion":return o.jsx("p",{className:yn.pulso,children:i4(e).join(`
|
|
487
|
-
`)});default:return e}}const rV="_aviso_qbdl5_5",aV={aviso:rV};function B8({corriendoAqui:e,ejecutaOtroProceso:t,donde:n}){return e?null:o.jsx("p",{className:aV.aviso,role:"note",children:t===!0?o.jsxs(o.Fragment,{children:["Las tareas las ejecuta otro proceso: aquí se ven, pero ",n," no avanza — ábrelo desde el proceso que las corre para verlas moverse. Y una tarea que crees desde aquí se queda en «Nuevo» hasta que ese proceso vuelva a mirar la cola por su cuenta —al acabar otra tarea, o al reiniciarlo—: no se le avisa."]}):t===!1?o.jsx(o.Fragment,{children:"Ahora mismo no las ejecuta nadie en esta máquina: aquí falló el arranque de las tareas de fondo, y no hay ningún otro proceso con la cola. Una tarea que crees desde aquí se queda en «Nuevo» y no va a arrancar hasta que una consola tome el relevo — reinicia esta."}):o.jsx(o.Fragment,{children:"Aquí no se ejecutan las tareas, y no se ha podido saber si las ejecuta otro proceso: una que crees desde aquí puede quedarse en «Nuevo» sin que nadie la coja."})})}const oV="_kanban_1i05m_6",sV="_titulo_1i05m_17",iV="_vacio_1i05m_24",lV="_columnas_1i05m_30",cV="_columna_1i05m_30",uV="_encabezado_1i05m_47",dV="_cuenta_1i05m_60",pV="_tarjetas_1i05m_65",mV="_tarjeta_1i05m_65",hV="_proyecto_1i05m_95",fV="_tituloDeTarea_1i05m_100",gV="_tituloBoton_1i05m_109",vV="_cuando_1i05m_126",bV="_bloqueada_1i05m_134",yV="_motivo_1i05m_139",xV="_ficheros_1i05m_149",_V="_listaDeFicheros_1i05m_159",wV="_enlaceRevision_1i05m_171",tn={kanban:oV,titulo:sV,vacio:iV,columnas:lV,columna:cV,encabezado:uV,cuenta:dV,tarjetas:pV,tarjeta:mV,proyecto:hV,tituloDeTarea:fV,tituloBoton:gV,cuando:vV,bloqueada:bV,motivo:yV,ficheros:xV,listaDeFicheros:_V,enlaceRevision:wV},jV=[{estado:"nuevo",etiqueta:"Nuevo"},{estado:"en-proceso",etiqueta:"En proceso"},{estado:"requiere-atencion",etiqueta:"Esperando feedback"},{estado:"terminada",etiqueta:"Terminada"}];function H8(e){const t=e.empezada??e.creada,n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function CV({cola:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,alMirar:u,alDejarDeMirar:d,mirando:m,mirada:f,proyectoActivo:h,conectado:b}){return e.lista.length===0?o.jsxs("section",{className:tn.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:tn.titulo,children:"Tareas"}),o.jsx("p",{className:tn.vacio,children:"Ninguna tarea todavía. Se crean desde un proyecto, y se ejecutan solas."})]}):o.jsxs("section",{className:tn.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:tn.titulo,children:"Tareas"}),o.jsx(B8,{corriendoAqui:e.corriendoAqui,...e.ejecutaOtroProceso===void 0?{}:{ejecutaOtroProceso:e.ejecutaOtroProceso},donde:"este kanban"}),o.jsx("div",{className:tn.columnas,children:jV.map(y=>{const g=e.lista.filter(_=>_.estado===y.estado);return o.jsxs("div",{className:tn.columna,children:[o.jsxs("h3",{className:tn.encabezado,children:[y.etiqueta," ",o.jsx("span",{className:tn.cuenta,children:g.length})]}),o.jsx("ul",{className:tn.tarjetas,children:g.map(_=>y.estado==="requiere-atencion"?o.jsx(NV,{tarea:_,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,conectado:b,corriendoAqui:e.corriendoAqui,...u===void 0?{}:{alMirar:u},...d===void 0?{}:{alDejarDeMirar:d},...m===void 0?{}:{mirando:m},...f===void 0?{}:{mirada:f}},_.id):o.jsx(kV,{tarea:_,alAbrirSesion:t,alDescartar:a,conectado:b,corriendoAqui:e.corriendoAqui,...u===void 0?{}:{alMirar:u},...d===void 0?{}:{alDejarDeMirar:d},...m===void 0?{}:{mirando:m},...f===void 0?{}:{mirada:f},bloqueadaPorProyectoAbierto:e.corriendoAqui&&_.estado==="nuevo"&&h!==void 0&&_.proyecto===h},_.id))})]},y.estado)})})]})}function kV({tarea:e,alAbrirSesion:t,alDescartar:n,conectado:r,corriendoAqui:a,alMirar:l,alDejarDeMirar:i,mirando:u,mirada:d,bloqueadaPorProyectoAbierto:m}){return o.jsx("li",{children:o.jsxs("div",{className:tn.tarjeta,children:[o.jsx("span",{className:tn.proyecto,children:e.proyectoNombre}),O8(e)&&t!==void 0?o.jsx("button",{type:"button",className:tn.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:tn.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:tn.cuando,children:H8(e)}),u===e.id?null:o.jsx(Om,{tarea:e}),m===!0?o.jsx("span",{className:tn.bloqueada,children:"Esperando a que se cierre el proyecto: mientras alguien lo tenga abierto, gana la persona."}):null,o.jsx(m4,{tarea:e,conectado:r,corriendoAqui:a,...l===void 0?{}:{alMirar:l},...i===void 0?{}:{alDejarDeMirar:i},...u===void 0?{}:{mirando:u},...d===void 0?{}:{mirada:d}}),o.jsx(p4,{tarea:e,conectado:r,alDescartar:n})]})})}function NV({tarea:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,conectado:u,corriendoAqui:d,alMirar:m,alDejarDeMirar:f,mirando:h,mirada:b}){return o.jsx("li",{children:o.jsxs("div",{className:tn.tarjeta,"data-atencion":"",children:[o.jsx("span",{className:tn.proyecto,children:e.proyectoNombre}),O8(e)&&t!==void 0?o.jsx("button",{type:"button",className:tn.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:tn.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:tn.cuando,children:H8(e)}),h===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:tn.motivo,children:e.motivo}),o.jsx(Om,{tarea:e}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:tn.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:tn.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:tn.listaDeFicheros,children:e.autorizadas.map(y=>o.jsx("li",{children:o.jsx("code",{children:y})},y))})]})]}),o.jsx(p4,{tarea:e,conectado:u,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i}),o.jsx(m4,{tarea:e,conectado:u,corriendoAqui:d,...m===void 0?{}:{alMirar:m},...f===void 0?{}:{alDejarDeMirar:f},...h===void 0?{}:{mirando:h},...b===void 0?{}:{mirada:b}}),e.sesion!==void 0&&n!==void 0?o.jsx("button",{type:"button",className:tn.enlaceRevision,onClick:()=>n(e.proyecto,e.sesion),children:"Ver qué cambió, en Revisión"}):null]})})}function SV({nombre:e,entorno:t,proyectos:n,modelo:r,alNuevaSesion:a,alAbrirAjustes:l,conectado:i,visibles:u,fijados:d,dispositivos:m,alActualizarDispositivos:f,alVerificarDispositivo:h,alNuevaTarea:b,tareas:y,alAbrirSesionDeTarea:g,alAbrirRevisionDeTarea:_,alReintentarTarea:C,alDescartarTarea:k,alTerminarTarea:S,alEnviarFeedback:A,alMirarTarea:I,alDejarDeMirarTarea:M,mirandoTarea:L,mirada:F,proyectoActivo:G}){const O=i===!1,B=n.filter(he=>(d==null?void 0:d.includes(he.id))===!0),W=u===void 0?n.slice(0,sm):n.filter(he=>u.includes(he.id)),re=[...B,...W.filter(he=>!B.includes(he))],fe=n.filter(he=>!re.includes(he));return o.jsx("div",{className:en.escritorio,children:o.jsxs("div",{className:en.contenido,children:[o.jsxs("header",{className:en.portada,children:[o.jsx("h1",{className:en.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:en.subtitulo,children:"Elige un proyecto para empezar a trabajar, o sigue una conversación de antes."}),t===void 0?null:o.jsxs("p",{className:en.entorno,children:[o.jsx(o4,{entorno:t.id,size:20,className:en.iconoDeEntorno}),o.jsx("span",{className:en.punto,"data-sin-conexion":O?"":void 0,"aria-hidden":"true"}),o.jsx("span",{className:en.entornoNombre,children:t.nombre}),o.jsx("span",{className:en.entornoUrl,children:t.url})]})]}),n.length===0?o.jsxs("p",{className:en.vacio,children:[t===void 0?"No hay ningún entorno registrado todavía. Se registra en Ajustes, con su URL.":"Este entorno no ha devuelto ningún proyecto."," ",o.jsx("button",{type:"button",className:en.enlace,onClick:l,children:"Abrir Ajustes"})]}):o.jsxs(o.Fragment,{children:[o.jsx("section",{"aria-label":"proyectos elegidos",children:o.jsx("ul",{className:en.rejilla,children:re.map(he=>o.jsxs("li",{className:en.tarjeta,"data-local":he.local===!0?"":void 0,children:[o.jsxs("div",{className:en.cabeceraDeTarjeta,children:[o.jsx("h2",{className:en.nombreDeProyecto,children:he.nombre}),he.compartido===!0?o.jsx("span",{className:en.compartido,role:"img","aria-label":"compartido contigo",title:"Compartido contigo",children:o.jsx(a4,{size:16})}):null,o.jsx("span",{className:en.marca,"data-local":he.local===!0?"":void 0,children:he.local===!0?"en tu equipo":"sin descargar"})]}),o.jsxs("div",{className:en.accionesDeTarjeta,children:[o.jsx("button",{type:"button",className:en.empezar,disabled:O,onClick:()=>a(he.id),children:"Nueva sesión"}),b===void 0?null:o.jsx("button",{type:"button",className:en.empezarTarea,disabled:O,onClick:()=>b(he.id),children:"Nueva tarea"})]})]},he.id))})}),fe.length===0?null:o.jsxs("p",{className:en.resto,children:[fe.length===1?"Otro proyecto del entorno":`Otros ${fe.length} proyectos del entorno`," sin enseñar"," ",o.jsx("button",{type:"button",className:en.enlace,onClick:l,children:"Elígelos en Ajustes"})]})]}),y===void 0?o.jsx("p",{className:en.vacio,children:"Todavía no ha llegado la cola de tareas en background."}):o.jsx(CV,{cola:y,...g===void 0?{}:{alAbrirSesion:g},..._===void 0?{}:{alAbrirRevision:_},...C===void 0?{}:{alReintentar:C},...k===void 0?{}:{alDescartar:k},...S===void 0?{}:{alTerminar:S},...A===void 0?{}:{alEnviarFeedback:A},...I===void 0?{}:{alMirar:I},...M===void 0?{}:{alDejarDeMirar:M},...L===void 0?{}:{mirando:L},...F===void 0?{}:{mirada:F},...G===void 0?{}:{proyectoActivo:G},conectado:i}),o.jsx(gU,{...m===void 0?{}:{informe:m},conectado:!O,...f===void 0?{}:{alActualizar:f},...h===void 0?{}:{alVerificar:h}}),r===void 0?null:o.jsxs("p",{className:en.pie,children:["Trabajará con ",o.jsx("span",{className:en.modelo,children:r}),". Se cambia en Ajustes o desde la pastilla del compositor."]})]})})}function $V({proyecto:e,local:t,ramas:n,aviso:r,descargando:a,alEmpezar:l,alCerrar:i}){const[u,d]=$.useState(void 0),m=u!==void 0&&n.includes(u)?u:n[0],f=a===!0,h=!t&&n.length===0&&r===void 0;return o.jsx(rr,{open:!0,onClose:()=>{},title:"Nueva sesión",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,children:o.jsxs("div",{className:me.ventana,...f||h?{"aria-busy":"true"}:{},children:[o.jsxs("h2",{className:me.titulo,children:["Nueva sesión en ",e.nombre]}),t?o.jsx("p",{className:me.nota,children:"La copia local ya está en tu equipo: se abre y ya."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:me.nota,children:"Este proyecto todavía no está en tu equipo. Al empezar se descarga entero desde CloudStudio, y eso puede tardar."}),o.jsx("label",{className:me.etiqueta,htmlFor:"nueva-sesion-rama",children:"Rama de origen"}),o.jsx(ls,{id:"nueva-sesion-rama",className:me.campo,value:m??"",disabled:n.length===0||f,cargando:h,onChange:b=>d(b.target.value),children:n.length===0?o.jsx("option",{value:"",children:h?"cargando las ramas…":"sin ramas que elegir"}):n.map(b=>o.jsx("option",{value:b,children:b},b))}),f?o.jsxs("p",{className:me.carga,role:"status",children:[o.jsx("span",{className:me.girando,"aria-hidden":"true"}),"Descargando proyecto…"]}):r!==void 0?o.jsxs("p",{className:me.fallo,role:"alert",children:[n.length===0?"No se pudieron consultar las ramas":"No se pudo descargar el proyecto",": ",r]}):null]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:i,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal}`,disabled:f||!t&&m===void 0,onClick:()=>l(t?void 0:m),children:"Empezar"})]})]})})})}const AV=3e4;function Kl(e,t,n=AV){const[r,a]=$.useState(!1),l=$.useRef(e);$.useEffect(()=>{l.current!==e&&(l.current=e,a(!1))},[e]),$.useEffect(()=>{t===!1&&a(!1)},[t]),$.useEffect(()=>{if(!r)return;const u=setTimeout(()=>a(!1),n);return()=>clearTimeout(u)},[r,n]);const i=$.useCallback(()=>a(!0),[]);return{esperando:r,empezar:i}}const EV="_capa_15nix_8",DV="_velo_15nix_14",zV="_ventana_15nix_29",TV="_titulo_15nix_50",MV="_autorizacion_15nix_62",LV="_nota_15nix_73",IV="_etiqueta_15nix_80",qV="_filaDeEncargo_15nix_87",RV="_campo_15nix_95",PV="_adjuntos_15nix_115",FV="_adjunto_15nix_115",OV="_nombreDeAdjunto_15nix_130",BV="_peso_15nix_139",HV="_estado_15nix_140",UV="_acciones_15nix_151",VV="_accion_15nix_151 _secundario_1l1rx_39 _grande_1l1rx_26",GV="_principal_15nix_169",WV="_fallo_15nix_186",Et={capa:EV,velo:DV,ventana:zV,titulo:TV,autorizacion:MV,nota:LV,etiqueta:IV,filaDeEncargo:qV,campo:RV,adjuntos:PV,adjunto:FV,nombreDeAdjunto:OV,peso:BV,estado:HV,acciones:UV,accion:VV,principal:GV,fallo:WV},ZV=()=>{},QV=18e4;function XV({proyecto:e,local:t,alAbrirProyecto:n,puedeAugmentar:r=!0,encargoPropuesto:a,alAugmentar:l,alSubirAdjunto:i,alEncolar:u,alCerrar:d}){const[m,f]=$.useState(""),[h,b]=$.useState(void 0),y=$.useRef(null),[g,_]=$.useState([]),C=h??(a==null?void 0:a.encargo)??"",k=Kl(a,!0,QV),S=g.some(L=>L.estado==="subiendo"),A=g.some(L=>L.estado==="falló"),I=m.trim()!==""&&!S&&!A,M=async L=>{const F=new Set(g.map(G=>G.nombre));for(const G of Array.from(L??[])){const O=j8(G.name);if(O===void 0){_(re=>[...re,{nombre:G.name,bytes:G.size,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const B=F.has(O);if(F.add(O),_(re=>[...re,B?{nombre:O,bytes:G.size,estado:"falló",motivo:"ya hay un adjunto con ese nombre"}:{nombre:O,bytes:G.size,estado:"subiendo"}]),B)continue;const W=await i(G,O);_(re=>re.map(fe=>fe.nombre===O&&fe.estado==="subiendo"?{...fe,estado:W.ok?"listo":"falló",...W.ok||W.motivo===void 0?{}:{motivo:W.motivo}}:fe))}};return o.jsx(rr,{open:!0,onClose:ZV,title:"Nueva tarea",headless:!0,className:Et.capa,children:o.jsx("div",{className:Et.velo,children:o.jsxs("div",{className:Et.ventana,children:[o.jsxs("h2",{className:Et.titulo,children:["Nueva tarea en ",e.nombre]}),t?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Et.fallo,role:"alert",children:["Este proyecto todavía no está en tu equipo, así que ",o.jsx("strong",{children:"no se puede crear una tarea"})," para él: al cogerla se aparcaría diciendo que el proyecto no está, y ahí se quedaría."]}),o.jsx("p",{className:Et.nota,children:"Ábrelo una vez para traértelo —desde ahí se descarga— y luego vuelve a esta ventana."}),o.jsxs("div",{className:Et.acciones,children:[o.jsx(Le,{variant:"outline",className:Et.accion,onClick:d,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${Et.accion} ${Et.principal}`,onClick:n,children:"Abrir el proyecto"})]})]}),t?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Et.autorizacion,children:["Esta tarea trabaja sola: ",o.jsx("strong",{children:"escribe en el proyecto sin pedirte permiso"})," fichero por fichero. Crearla es autorizarlo. Después se puede revisar lo que tocó, en la pestaña Revisión de su sesión."]}),o.jsx("label",{className:Et.etiqueta,htmlFor:"nueva-tarea-peticion",children:"Qué hay que hacer"}),o.jsx("textarea",{id:"nueva-tarea-peticion",className:Et.campo,rows:3,value:m,onChange:L=>f(L.target.value),placeholder:"Que la lista de clientes se pueda buscar por NIF"}),o.jsxs("div",{className:Et.filaDeEncargo,children:[o.jsx("label",{className:Et.etiqueta,htmlFor:"nueva-tarea-encargo",children:"Encargo (lo que se le manda al agente)"}),r?o.jsxs(Le,{variant:"outline",className:Et.accion,disabled:m.trim()===""||k.esperando,"aria-busy":k.esperando,onClick:()=>{k.empezar(),l(m)},children:[k.esperando?o.jsx(Pi,{}):null,"Preparar el encargo"]}):null]}),r?null:o.jsx("p",{className:Et.nota,children:"En esta consola no hay con qué preparar el encargo, así que se manda tu texto tal cual."}),(a==null?void 0:a.error)===void 0?null:o.jsxs("p",{className:Et.fallo,role:"alert",children:["No se pudo preparar el encargo (",a.error,"). Puedes encolarla con tu texto tal cual."]}),o.jsx("textarea",{id:"nueva-tarea-encargo",className:Et.campo,rows:8,value:C,onChange:L=>b(L.target.value),placeholder:"Se rellena con «Preparar el encargo», y se puede editar. Vacío, se manda tu texto tal cual."}),o.jsxs("div",{className:Et.filaDeEncargo,children:[o.jsx("span",{className:Et.etiqueta,children:"Adjuntar ficheros"}),o.jsx(Le,{variant:"outline",className:Et.accion,onClick:()=>{var L;return(L=y.current)==null?void 0:L.click()},children:"Elegir ficheros…"})]}),o.jsx("input",{ref:y,hidden:!0,type:"file",multiple:!0,onChange:L=>{M(L.target.files),L.target.value=""}}),o.jsxs("p",{className:Et.nota,children:["El agente puede ",o.jsx("strong",{children:"leer"})," estos ficheros en «/adjuntos/», de solo lectura; una imagen ",o.jsx("strong",{children:"no la ve"})," todavía. Si el trabajo depende de mirar una captura, descríbela por escrito."]}),g.length===0?null:o.jsx("ul",{className:Et.adjuntos,children:g.map((L,F)=>o.jsxs("li",{className:Et.adjunto,"data-estado":L.estado,children:[o.jsx("span",{className:Et.nombreDeAdjunto,children:L.nombre}),o.jsx("span",{className:Et.peso,children:YV(L.bytes)}),o.jsx("span",{className:Et.estado,children:L.estado==="subiendo"?"subiendo…":L.estado==="listo"?"listo":L.motivo??"no se pudo subir"})]},`${L.nombre}-${F}`))}),o.jsxs("div",{className:Et.acciones,children:[o.jsx(Le,{variant:"outline",className:Et.accion,onClick:d,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${Et.accion} ${Et.principal}`,disabled:!I,onClick:()=>{I&&u({peticion:m.trim(),encargo:C.trim()===""?m.trim():C})},children:"Encolar"})]})]}):null]})})})}function YV(e){return e<1e3?`${e} B`:e<1e6?`${Math.round(e/1e3)} KB`:`${(e/1e6).toFixed(1)} MB`}const KV="_destructiva_bd4l4_13",Bm={destructiva:KV};function JV({pendiente:e,esLaAbierta:t,alConfirmar:n,alCerrar:r}){const[a,l]=$.useState(e.titulo),i=e.accion==="borrar",u=i||a.trim()!=="";return o.jsx(rr,{open:!0,onClose:r,title:i?"Eliminar sesión":"Renombrar sesión",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:d=>{d.target===d.currentTarget&&r()},children:o.jsxs("div",{className:me.ventana,children:[o.jsx("h2",{className:me.titulo,children:i?"Eliminar sesión":"Renombrar sesión"}),i?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:me.nota,children:["Se borra «",e.titulo,"» entera: la conversación guardada y la lista de ficheros que tocó. No hay papelera."]}),t?o.jsx("p",{className:me.nota,children:"Es la que estás mirando ahora, así que la consola se cerrará y volverás al escritorio."}):null]}):o.jsxs(o.Fragment,{children:[o.jsx("label",{className:me.etiqueta,htmlFor:"accion-sesion-titulo",children:"Nombre"}),o.jsx("input",{id:"accion-sesion-titulo",className:me.campo,value:a,autoFocus:!0,onChange:d=>l(d.target.value),onKeyDown:d=>{d.key==="Enter"&&u&&n(a)}})]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:r,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:nt(me.accion,me.principal,i&&Bm.destructiva),disabled:!u,onClick:()=>n(i?void 0:a),children:i?"Eliminar":"Guardar"})]})]})})})}const M5=["fondo","capa1","capa2","capa3","texto","texto2","texto3","borde","acento","sobreAcento","peligro","exito","aviso","negocio","sombra","cambio","palabraClave","cadena","funcion","comentario","constante","parametro","puntuacion","enlace","expresionDeCadena"],U8=[{id:"xonecode-oscuro",nombre:"XOneCode",modo:"oscuro",muestra:{fondo:"#151517",texto:"#cfd3d6",acento:"#00a3e0"}},{id:"github-oscuro",nombre:"GitHub Dark",modo:"oscuro",semillas:{fondo:"#0d1117",capa1:"#161b22",capa2:"#21262d",capa3:"#30363d",texto:"#e6edf3",texto2:"#9198a1",texto3:"#7d8590",borde:"#30363d",acento:"#1f6feb",sobreAcento:"#ffffff",peligro:"#f85149",exito:"#3fb950",aviso:"#d29922",negocio:"#a371f7",sombra:"#010409",cambio:"#1f6feb",palabraClave:"#ff7b72",cadena:"#a5d6ff",funcion:"#d2a8ff",comentario:"#8b949e",constante:"#79c0ff",parametro:"#ffa657",puntuacion:"#c9d1d9",enlace:"#58a6ff",expresionDeCadena:"#a5d6ff"}},{id:"one-oscuro",nombre:"One Dark",modo:"oscuro",semillas:{fondo:"#282c34",capa1:"#21252b",capa2:"#2c313a",capa3:"#333842",texto:"#abb2bf",texto2:"#9da5b4",texto3:"#7f848e",borde:"#3e4451",acento:"#61afef",sobreAcento:"#282c34",peligro:"#e06c75",exito:"#98c379",aviso:"#e5c07b",negocio:"#c678dd",sombra:"#181a1f",cambio:"#61afef",palabraClave:"#c678dd",cadena:"#98c379",funcion:"#61afef",comentario:"#7f848e",constante:"#d19a66",parametro:"#e06c75",puntuacion:"#abb2bf",enlace:"#56b6c2",expresionDeCadena:"#98c379"}},{id:"dracula",nombre:"Dracula",modo:"oscuro",semillas:{fondo:"#282a36",capa1:"#21222c",capa2:"#343746",capa3:"#44475a",texto:"#f8f8f2",texto2:"#c9c9d1",texto3:"#8c94b8",borde:"#44475a",acento:"#bd93f9",sobreAcento:"#282a36",peligro:"#ff5555",exito:"#50fa7b",aviso:"#f1fa8c",negocio:"#ff79c6",sombra:"#191a21",cambio:"#8be9fd",palabraClave:"#ff79c6",cadena:"#f1fa8c",funcion:"#50fa7b",comentario:"#6272a4",constante:"#bd93f9",parametro:"#ffb86c",puntuacion:"#f8f8f2",enlace:"#8be9fd",expresionDeCadena:"#f1fa8c"}},{id:"xonecode-claro",nombre:"XOneCode",modo:"claro",muestra:{fondo:"#ffffff",texto:"#61666b",acento:"#00a3e0"}},{id:"github-claro",nombre:"GitHub Light",modo:"claro",semillas:{fondo:"#ffffff",capa1:"#f6f8fa",capa2:"#ffffff",capa3:"#eaeef2",texto:"#1f2328",texto2:"#59636e",texto3:"#6e7781",borde:"#d0d7de",acento:"#0969da",sobreAcento:"#ffffff",peligro:"#d1242f",exito:"#1a7f37",aviso:"#9a6700",negocio:"#8250df",sombra:"#1f2328",cambio:"#0969da",palabraClave:"#cf222e",cadena:"#0a3069",funcion:"#8250df",comentario:"#6e7781",constante:"#0550ae",parametro:"#953800",puntuacion:"#1f2328",enlace:"#0969da",expresionDeCadena:"#0a3069"}},{id:"one-claro",nombre:"One Light",modo:"claro",semillas:{fondo:"#fafafa",capa1:"#f0f0f1",capa2:"#ffffff",capa3:"#e5e5e6",texto:"#383a42",texto2:"#50525c",texto3:"#696c77",borde:"#dbdbdc",acento:"#3a6fe0",sobreAcento:"#ffffff",peligro:"#e45649",exito:"#50a14f",aviso:"#c18401",negocio:"#a626a4",sombra:"#383a42",cambio:"#4078f2",palabraClave:"#a626a4",cadena:"#50a14f",funcion:"#4078f2",comentario:"#a0a1a7",constante:"#986801",parametro:"#e45649",puntuacion:"#383a42",enlace:"#0184bc",expresionDeCadena:"#50a14f"}},{id:"ayu-claro",nombre:"Ayu Light",modo:"claro",semillas:{fondo:"#fcfcfc",capa1:"#f3f4f5",capa2:"#ffffff",capa3:"#e7eaed",texto:"#5c6166",texto2:"#646a71",texto3:"#828a92",borde:"#d8dce0",acento:"#ffaa33",sobreAcento:"#1f2328",peligro:"#e65050",exito:"#4c9a2a",aviso:"#c27c10",negocio:"#a37acc",sombra:"#3d424d",cambio:"#399ee6",palabraClave:"#fa8d3e",cadena:"#86b300",funcion:"#f2ae49",comentario:"#787b80",constante:"#a37acc",parametro:"#f07171",puntuacion:"#5c6166",enlace:"#399ee6",expresionDeCadena:"#4cbf99"}}];function V8(e){return U8.filter(t=>t.modo===e)}function G8(e,t){return U8.find(n=>n.id===e&&n.modo===t)??V8(t)[0]}const eG="_fila_1dzlz_5",tG="_rotulo_1dzlz_11",nG="_opciones_1dzlz_17",rG="_opcion_1dzlz_17",aG="_muestra_1dzlz_44",oG="_linea_1dzlz_56",sG="_pastilla_1dzlz_63",iG="_nombre_1dzlz_70",lG="_nota_1dzlz_75",Us={fila:eG,rotulo:tG,opciones:nG,opcion:rG,muestra:aG,linea:oG,pastilla:sG,nombre:iG,nota:lG};function cG({modo:e,elegido:t,enVigor:n,rotulo:r,alElegir:a}){return o.jsxs("div",{className:Us.fila,children:[o.jsx("span",{className:Us.rotulo,children:r}),o.jsx("div",{role:"group","aria-label":r,className:Us.opciones,children:V8(e).map(l=>{const i=l.semillas,u=i!==void 0?{fondo:i.fondo,texto:i.texto2,acento:i.acento}:l.muestra,d=u===void 0?void 0:{"--muestra-fondo":u.fondo,"--muestra-texto":u.texto,"--muestra-acento":u.acento},m=l.id===t;return o.jsxs("button",{type:"button","aria-label":l.nombre,"aria-pressed":m,className:Us.opcion,onClick:()=>{m||a(l.id)},children:[o.jsxs("span",{"data-muestra":!0,className:Us.muestra,style:d,children:[o.jsx("span",{className:Us.linea}),o.jsx("span",{className:Us.pastilla})]}),o.jsx("span",{className:Us.nombre,children:l.nombre})]},l.id)})}),n?null:o.jsxs("p",{className:Us.nota,children:["Elegirlo pone la consola en ",e,"."]})]})}function uG({avd:e,conectado:t,alArrancar:n,resultado:r}){const[a,l]=$.useState(!1);return $.useEffect(()=>{r!==void 0&&r.avd===e&&l(!1)},[r,e]),o.jsxs("span",{className:Po.envoltura,children:[r===void 0||a?null:o.jsxs("span",{className:Po.resultado,"data-ok":r.ok?"":void 0,children:[o.jsx("span",{"aria-hidden":"true",children:r.ok?"✓":"✕"}),o.jsx("span",{children:r.detalle})]}),o.jsx("button",{type:"button",className:Po.boton,disabled:t!==!0||a,title:`Arranca ${e} y espera a que el aparato aparezca`,onClick:()=>{l(!0),n(e)},children:a?"Arrancando…":"Arrancar"})]})}const dG="_envoltura_mq7nr_5",pG="_celdaDePuerto_mq7nr_9",mG="_celdaDeCasilla_mq7nr_10",hG="_campo_mq7nr_20",fG="_campoDePuerto_mq7nr_28 _campoDeNombreConBoton_1byta_924",gG="_puerto_mq7nr_33",vG="_motivo_mq7nr_39",Dl={envoltura:dG,celdaDePuerto:pG,celdaDeCasilla:mG,campo:hG,campoDePuerto:fG,puerto:gG,motivo:vG};function bG({avd:e,ajuste:t,conPuerto:n,conectado:r,ajustes:a,alCambiar:l}){const[i,u]=$.useState(String((t==null?void 0:t.puerto)??"")),[d,m]=$.useState(void 0),f=$.useRef(void 0);$.useEffect(()=>{f.current=void 0,u(String((t==null?void 0:t.puerto)??"")),m(void 0)},[t==null?void 0:t.puerto]);const h=()=>{const b=i.trim()===""?Number.NaN:Number(i);if(Number.isInteger(b)&&b===(t==null?void 0:t.puerto)){m(void 0);return}const y=qy(b,e,a);m(y),!(y!==void 0||f.current===b)&&(f.current=b,l({puerto:b}))};return o.jsxs("span",{className:Dl.envoltura,children:[o.jsx("span",{className:Dl.celdaDePuerto,children:n?o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:Dl.campoDePuerto,children:["Puerto",o.jsx("input",{type:"number",inputMode:"numeric",className:Dl.puerto,"aria-invalid":d===void 0?void 0:!0,value:i,disabled:r!==!0,"aria-label":`Puerto del túnel de ${e}`,title:"El puerto de este Mac que lleva al 8443 del aparato. Cada emulador, el suyo.",onChange:b=>{f.current=void 0,u(b.target.value)},onKeyDown:b=>{b.key==="Enter"&&h()},onBlur:h})]}),d===void 0?null:o.jsx("span",{className:Dl.motivo,role:"alert",children:d})]}):null}),o.jsx("span",{className:Dl.celdaDeCasilla,children:o.jsxs("label",{className:Dl.campo,children:[o.jsx("input",{type:"checkbox",checked:(t==null?void 0:t.sinVentana)===!0,disabled:r!==!0,"aria-label":`Arrancar ${e} sin ventana`,onChange:b=>l({sinVentana:b.target.checked})}),"Sin ventana"]})})]})}const yG="_envoltura_6fxfv_1",xG="_titulo_6fxfv_9 _subsubencabezado_1byta_511",_G="_fila_6fxfv_14 _campoDeNombreConBoton_1byta_924",wG="_campo_6fxfv_19",jG="_boton_6fxfv_28 _boton_2m29n_24 _secundario_1l1rx_39",CG="_motivo_6fxfv_32",kG="_estado_6fxfv_37",NG="_log_6fxfv_52",as={envoltura:yG,titulo:xG,fila:_G,campo:wG,boton:jG,motivo:CG,estado:kG,log:NG},L5={corriendo:"En curso",ok:"Creado",fallo:"Falló",cancelada:"Cancelado",colgada:"Sin respuesta"},SG="El emulador nuevo sale de este: la imagen del sistema, el modelo de teléfono, la RAM y el disco.";function $G(e,t){const n="Marcada: clona el emulador entero —el framework de XOne, las apps, sus datos y su estado—, así que el nuevo queda listo para desplegar. Sin marcar: el nuevo arranca vacío, con la misma configuración.";return t?`${n}
|
|
488
|
-
|
|
489
|
-
Ahora no se puede: ${e} está encendido y, mientras corre, sus discos están bloqueados. Páralo para clonarlo.`:n}function AG({avds:e,conectado:t,alCrear:n,progreso:r,enMarcha:a=[]}){const[l,i]=$.useState(""),[u,d]=$.useState(void 0),[m,f]=$.useState(!1),h=u!==void 0&&e.includes(u)?u:e[0],b=h!==void 0&&a.includes(h),y=m&&!b,g=r,_=(g==null?void 0:g.estado)==="ok",C=$.useRef(void 0);$.useEffect(()=>{if(h===void 0){_&&i("");return}const I=Py(h,e);i(M=>!_&&M!==""&&M!==C.current?M:(C.current=I,I))},[h,_]);const k=(g==null?void 0:g.estado)==="corriendo",S=v6(l.trim(),e),A=l.trim()===""?void 0:S;return o.jsxs("div",{className:as.envoltura,children:[o.jsx("h4",{className:as.titulo,children:"Nuevo emulador"}),h===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:as.campo,title:SG,children:[o.jsx("span",{children:"Copia de:"}),o.jsx(ls,{value:h,"aria-label":"Emulador del que copiar",disabled:t!==!0||k,onChange:I=>d(I.target.value),children:e.map(I=>o.jsx("option",{value:I,children:I},I))})]}),o.jsxs("label",{className:as.campo,title:$G(h,b),children:[o.jsx("input",{type:"checkbox",checked:y,disabled:t!==!0||k||b,onChange:I=>f(I.target.checked)}),o.jsx("span",{children:"Copiar también lo instalado (framework y apps)"}),b?o.jsxs("span",{className:as.motivo,children:[h," está encendido: pulsa «Parar» en su fila para poder clonarlo"]}):null]})]}),o.jsxs("div",{className:as.fila,children:[o.jsx("input",{type:"text",value:l,placeholder:"Nombre del emulador","aria-label":"Nombre del emulador nuevo","aria-invalid":A===void 0?void 0:!0,disabled:t!==!0||k,onChange:I=>i(I.target.value)}),o.jsx("button",{type:"button",className:as.boton,disabled:t!==!0||k||S!==void 0,title:"Crea un emulador de Android nuevo",onClick:()=>h===void 0?n(l.trim()):n(l.trim(),{base:h,conDatos:y}),children:k?"Creando…":"Crear emulador"})]}),A===void 0?null:o.jsx("span",{className:as.motivo,children:A}),g===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:as.estado,"data-estado":g.estado,children:[g.titulo===""?L5[g.estado]:`${g.titulo} · ${L5[g.estado]}`,g.motivo===void 0?null:`: ${g.motivo}`]}),g.lineas.length===0?null:o.jsx("pre",{className:as.log,children:g.lineas.slice(-5).join(`
|
|
490
|
-
`)})]})]})}const EG="_log_fjsyo_2 _log_6fxfv_52",DG={log:EG},zG=1e4;function TG({avd:e,alConfirmar:t,alCerrar:n,progreso:r}){const[a,l]=$.useState(""),[i,u]=$.useState(!1),[d,m]=$.useState(!1),f=$.useRef(r),h=i&&r!==f.current?r:void 0,b=i&&(h===void 0||h.estado==="corriendo"),y=(h==null?void 0:h.estado)==="corriendo",g=a.trim()===e;$.useEffect(()=>{(h==null?void 0:h.estado)==="ok"&&n()},[h==null?void 0:h.estado]),$.useEffect(()=>{if(!i||h!==void 0)return;const C=setTimeout(()=>{u(!1),m(!0)},zG);return()=>clearTimeout(C)},[i,h]);const _=()=>{f.current=r,m(!1),u(!0),t()};return o.jsx(rr,{open:!0,onClose:()=>y?void 0:n(),title:"Eliminar emulador",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:C=>{C.target===C.currentTarget&&!y&&n()},children:o.jsxs("div",{className:me.ventana,role:"alertdialog","aria-label":`Eliminar el emulador ${e}`,children:[o.jsx("h2",{className:me.titulo,children:"Eliminar emulador"}),o.jsxs("p",{className:me.nota,children:["Se elimina «",e,"» de este equipo: ",o.jsx("strong",{children:"el emulador y todo lo instalado en él"})," —apps, datos y su estado guardado—. No hay papelera."]}),o.jsx("p",{className:me.nota,children:"No se toca la imagen del sistema ni los demás emuladores, y los nuevos se podrán seguir creando."}),o.jsxs("label",{className:me.etiqueta,htmlFor:"eliminar-emulador-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"eliminar-emulador-nombre",className:me.campo,value:a,autoFocus:!0,autoComplete:"off",spellCheck:!1,disabled:b,onChange:C=>l(C.target.value),onKeyDown:C=>{C.key==="Enter"&&g&&!b&&_()}}),d?o.jsx("p",{className:me.fallo,role:"alert",children:"El servidor no empezó a eliminarlo: puede que haya otro trabajo en marcha o que el emulador se haya encendido. Vuelve a intentarlo."}):null,h===void 0||h.estado==="corriendo"?null:o.jsxs("p",{className:me.fallo,role:"alert",children:["No se ha eliminado: ",h.motivo??"el gestor de emuladores no pudo"]}),h===void 0||h.lineas.length===0?null:o.jsx("pre",{className:DG.log,children:h.lineas.slice(-5).join(`
|
|
491
|
-
`)}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,disabled:y,onClick:n,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:nt(me.accion,me.principal,Bm.destructiva),disabled:!g||b,onClick:_,children:b?"Eliminando…":"Eliminar"})]})]})})})}const MG=1500;function h4(e,t){const n=$.useRef(t);n.current=t;const r=t!==void 0;$.useEffect(()=>{if(!e||!r)return;let a=0;const l=()=>{var u;if(document.visibilityState!=="visible")return;const i=Date.now();i-a<MG||(a=i,(u=n.current)==null||u.call(n))};return l(),window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[e,r])}const LG="_nota_e0xu9_10",IG="_vacio_e0xu9_11",qG="_pista_e0xu9_12",RG="_problemas_e0xu9_38",PG="_filas_e0xu9_48",FG="_fila_e0xu9_48",OG="_cabeceraDeFila_e0xu9_64",BG="_nombre_e0xu9_70",HG="_relleno_e0xu9_75",UG="_motor_e0xu9_82",VG="_origen_e0xu9_83",GG="_lectura_e0xu9_84",WG="_ejecucion_e0xu9_85",ZG="_descripcion_e0xu9_123 _instrucciones_e0xu9_267",QG="_confirmar_e0xu9_132",XG="_accion_e0xu9_151 _secundario_1l1rx_39",YG="_icono_e0xu9_168",KG="_iconoDestructivo_e0xu9_190",JG="_destructiva_e0xu9_198",eW="_formulario_e0xu9_205",tW="_campo_e0xu9_215",nW="_rotulo_e0xu9_251",rW="_casilla_e0xu9_257",aW="_instrucciones_e0xu9_267",oW="_botones_e0xu9_294",sW="_aviso_e0xu9_304",iW="_principal_e0xu9_323 _primario_1l1rx_67",lW="_restaurar_e0xu9_353",cW="_accionDeFila_e0xu9_370",uW="_pestanas_e0xu9_395",dW="_pestana_e0xu9_395",pW="_cuenta_e0xu9_429",mW="_panelDePestana_e0xu9_440",hW="_nuevo_e0xu9_457",fW="_listaDeSkills_e0xu9_469",gW="_casillaDeSkill_e0xu9_485",vW="_textoDeSkill_e0xu9_519",bW="_nombreDeSkill_e0xu9_527",yW="_costeDeSkill_e0xu9_533",xW="_descripcionDeSkill_e0xu9_549",_W="_skillHuerfana_e0xu9_568",Te={nota:LG,vacio:IG,pista:qG,problemas:RG,filas:PG,fila:FG,cabeceraDeFila:OG,nombre:BG,relleno:HG,motor:UG,origen:VG,lectura:GG,ejecucion:WG,descripcion:ZG,confirmar:QG,accion:XG,icono:YG,iconoDestructivo:KG,destructiva:JG,formulario:eW,campo:tW,rotulo:nW,casilla:rW,instrucciones:aW,botones:oW,aviso:sW,principal:iW,restaurar:lW,accionDeFila:cW,pestanas:uW,pestana:dW,cuenta:pW,panelDePestana:mW,nuevo:hW,listaDeSkills:fW,casillaDeSkill:gW,textoDeSkill:vW,nombreDeSkill:bW,costeDeSkill:yW,descripcionDeSkill:xW,skillHuerfana:_W};function g2(e){return e==="modelo"||e==="claude-code"}const wW=[{id:"modelo",etiqueta:"Un modelo",detalle:"corre dentro de XOneCode, con las tools del proyecto"},{id:"claude-code",etiqueta:"Claude Code",detalle:"lanza un Claude Code sobre el proyecto; si escribe, apruebas cada cambio"},{id:"codex",etiqueta:"Codex",detalle:"lanza el `codex` que tengas instalado; si escribe, apruebas cada cambio"},{id:"opencode",etiqueta:"OpenCode",detalle:"lanza el `opencode` que tengas instalado; si escribe, apruebas cada cambio"}],jW="Un agente externo corre fuera de XOneCode, con su propia cuenta y su propia configuración. Si le dejas escribir, cada escritura te llega con su diff para que la apruebes, y las guardas del proyecto siguen puestas: no ESCRIBE en .env, .git, .xonecode, una vista aplanada ni fuera de la carpeta. Borrar y renombrar no se le conceden.",CW={"claude-code":"Leer también está guardado: no puede leer .env, .git, .xonecode, una vista aplanada ni nada de fuera del proyecto.",codex:"OJO: leer NO está guardado. Su sandbox solo le impide ESCRIBIR, así que puede leer .env, .git, .xonecode y ficheros de fuera del proyecto. No lo uses en un proyecto cuyos secretos no quieras que salgan de tu máquina.",opencode:"Leer está guardado por reglas de su configuración: no puede leer .env, .git, .xonecode, una vista aplanada ni nada de fuera del proyecto."};function kW(){return{nombre:"",descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}const NW={modelo:"El del papel que le toque","claude-code":"El que use Claude Code",codex:"El que use Codex",opencode:"El que use OpenCode"},SW={modelo:"— de tus proveedores comprobados","claude-code":"— los alias de Claude Code",codex:"— los que ofrece tu Codex",opencode:"— los que ofrece tu OpenCode"};function I5({alPulsar:e}){return o.jsx(Le,{variant:"outline",className:nt(Te.principal,Te.nuevo),onClick:e,children:"Nuevo subagente"})}const W8=/^[a-z0-9]+(-[a-z0-9]+)*$/;function $W(e){if(e.trim()!==""){if(e!==e.trim())return"no puede empezar ni acabar con espacios";if(e!==e.toLowerCase())return"no puede llevar mayúsculas: va todo en minúsculas";if(!W8.test(e))return"solo vale minúsculas, dígitos y guiones sencillos (ni espacios, ni acentos, ni guion al principio o al final)"}}function AW(e){const t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t!==""&&W8.test(t)?t:void 0}const q5=[{clave:"serie",titulo:"De XOneCode",vacio:"No tienes en disco ninguno de los que trae XOneCode."},{clave:"propios",titulo:"Tuyos",vacio:"No has creado ninguno. «Nuevo subagente» escribe el primero."}],R5=e=>e==="claude-code"||e==="codex"||e==="opencode";function EW({agentes:e,problemas:t,hayProyecto:n,proveedores:r,modelosDeMotor:a,alPedirModelosDeMotor:l,alPedirCatalogo:i,catalogoDeSkills:u,alGuardar:d,alBorrar:m,alRestaurar:f}){var q,ee;const[h,b]=$.useState(void 0),[y,g]=$.useState(!1),[_,C]=$.useState("global"),[k,S]=$.useState(void 0),[A,I]=$.useState("serie"),[M,L]=$.useState(void 0),F=(r??[]).filter(z=>z.credencial==="puesta"||z.modelos!==void 0),G=z=>{var ke;return z.motor==="modelo"?F.some(pe=>(pe.modelos??[]).some(Me=>`${pe.id}/${Me.id}`===z.modelo)):(((ke=a==null?void 0:a[z.motor])==null?void 0:ke.modelos)??[]).some(pe=>pe.id===z.modelo)},O=h==null?void 0:h.motor;$.useEffect(()=>{O===void 0||!R5(O)||(a==null?void 0:a[O])===void 0&&(l==null||l(O))},[O,a,l]);const B=F.filter(z=>z.modelos===void 0&&z.error===void 0),W=(()=>{var ge,ze,Pe;const z=h==null?void 0:h.modelo;if(z===void 0||(h==null?void 0:h.motor)!=="modelo")return[];const ke=z.indexOf("/");if(ke<=0)return[];const pe=z.slice(0,ke),Me=z.slice(ke+1);return((Pe=(ze=(ge=(r??[]).find(qe=>qe.id===pe))==null?void 0:ge.modelos)==null?void 0:ze.find(qe=>qe.id===Me))==null?void 0:Pe.esfuerzos)??[]})(),re=B.map(z=>z.id).join(",");$.useEffect(()=>{if(!(O!=="modelo"||re===""))for(const z of re.split(","))i==null||i(z)},[O,re,i]);const fe={serie:(e??[]).filter(z=>z.semilla!==void 0),propios:(e??[]).filter(z=>z.semilla===void 0)},he=h!==void 0&&h.nombre.trim()!==""&&h.nombre!==M&&(e??[]).some(z=>z.nombre===h.nombre.trim()),ne=h===void 0?void 0:$W(h.nombre),we=h===void 0?void 0:AW(h.nombre),je=h===void 0?void 0:he?`Ya hay un subagente que se llama «${h.nombre.trim()}». Elige otro nombre, o borra ese primero.`:ne===void 0?void 0:`El nombre ${ne}.${we===void 0?"":` Prueba con «${we}».`}`,J=()=>{S(void 0),L(void 0),b(kW()),g(!0),C(n?"proyecto":"global")},oe=()=>{b(void 0),g(!1)},R=()=>{if(h===void 0)return;const z=M!==void 0&&M!==h.nombre?M:void 0;d(h,_,z),oe()};return e===void 0?o.jsx("p",{className:Te.nota,children:"Consultando los subagentes…"}):o.jsxs(o.Fragment,{children:[h!==void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Te.nota,children:["Cada subagente es un fichero ",o.jsx("code",{children:".md"})," en ",o.jsx("code",{children:".xonecode/agentes/"}),". Los globales valen en todos los proyectos; los de un proyecto solo en ese, y pisan al global del mismo nombre."]}),t!==void 0&&t.length>0?o.jsx("ul",{className:Te.problemas,role:"alert",children:t.map(z=>o.jsx("li",{children:z},z))}):null,e.length===0?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Te.vacio,children:"No hay ningún subagente. Sin ninguno, el orquestador no tiene en quién delegar."}),o.jsx(I5,{alPulsar:J})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Te.pestanas,role:"tablist","aria-label":"Subagentes por origen",children:q5.map(z=>o.jsxs("button",{type:"button",role:"tab",className:Te.pestana,"aria-selected":z.clave===A,"data-actual":z.clave===A?"":void 0,onClick:()=>{I(z.clave),S(void 0)},children:[z.titulo,fe[z.clave].length>0?o.jsx("span",{className:Te.cuenta,children:fe[z.clave].length}):null]},z.clave))}),o.jsxs("div",{role:"tabpanel",className:Te.panelDePestana,children:[A==="propios"?o.jsx(I5,{alPulsar:J}):null,fe[A].length===0?o.jsx("p",{className:Te.vacio,children:q5.find(z=>z.clave===A).vacio}):o.jsx("ul",{className:Te.filas,children:fe[A].map(z=>o.jsx(DW,{agente:z,abierta:k,alAbrir:S,alEditar:()=>{S(void 0),C(z.origen==="proyecto"?"proyecto":"global"),L(z.nombre),b({...z}),g(!1)},alBorrar:()=>m(z.nombre,z.origen==="proyecto"?"proyecto":"global"),alRestaurar:()=>f(z.nombre)},z.nombre))})]})]})]}),h===void 0?null:o.jsxs("div",{className:Te.formulario,children:[o.jsxs("label",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Nombre",h.semilla===void 0?null:o.jsx("span",{className:Te.pista,children:" — no se cambia: lo trae XOneCode"})]}),o.jsx(La,{value:h.nombre,disabled:!y&&h.semilla!==void 0,onChange:z=>b({...h,nombre:z.target.value})})]}),o.jsxs("label",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Cuándo usarlo ",o.jsx("span",{className:Te.pista,children:"— lo lee el orquestador para elegirlo"})]}),o.jsx("textarea",{className:Te.descripcion,rows:4,value:h.descripcion,onChange:z=>b({...h,descripcion:z.target.value})})]}),o.jsxs("label",{className:Te.campo,children:[o.jsx("span",{className:Te.rotulo,children:"Motor"}),o.jsx(ls,{value:h.motor,onChange:z=>b({...h,motor:z.target.value,modelo:void 0}),children:wW.map(z=>o.jsxs("option",{value:z.id,children:[z.etiqueta," — ",z.detalle]},z.id))})]}),o.jsxs("label",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Modelo ",o.jsx("span",{className:Te.pista,children:SW[h.motor]??""})]}),o.jsxs(ls,{value:h.modelo??"",onChange:z=>b({...h,...z.target.value===""?{modelo:void 0}:{modelo:z.target.value}}),children:[o.jsx("option",{value:"",children:NW[h.motor]??"El que le toque"}),h.motor==="modelo"?F.filter(z=>(z.modelos??[]).length>0).map(z=>o.jsx("optgroup",{label:z.nombre,children:(z.modelos??[]).map(ke=>o.jsx("option",{value:`${z.id}/${ke.id}`,children:ke.nombre??ke.id},`${z.id}/${ke.id}`))},z.id)):(((q=a==null?void 0:a[h.motor])==null?void 0:q.modelos)??[]).map(z=>o.jsx("option",{value:z.id,children:z.nombre},z.id)),h.modelo!==void 0&&!G(h)?o.jsxs("option",{value:h.modelo,children:[h.modelo," — el que ya tenía"]}):null]}),h.motor==="modelo"&&B.length>0?o.jsxs("p",{className:Te.pista,children:["Consultando los modelos de ",B.map(z=>z.nombre).join(", "),"…"]}):null,R5(h.motor)&&((ee=a==null?void 0:a[h.motor])==null?void 0:ee.error)!==void 0?o.jsx("p",{className:Te.aviso,role:"alert",children:a[h.motor].error}):null]}),h.motor==="modelo"&&W.length>0?o.jsxs("label",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Esfuerzo"," ",o.jsx("span",{className:Te.pista,children:"— cuánto razona antes de contestar"})]}),o.jsxs(ls,{value:h.esfuerzo??"",onChange:z=>b({...h,...z.target.value===""?{esfuerzo:void 0}:{esfuerzo:z.target.value}}),children:[o.jsx("option",{value:"",children:"Sin fijar — decide el modelo"}),W.map(z=>o.jsx("option",{value:z,children:z},z))]})]}):null,o.jsxs("label",{className:Te.casilla,children:[o.jsx("input",{type:"checkbox",checked:h.soloLectura,onChange:z=>b({...h,soloLectura:z.target.checked})}),o.jsxs("span",{children:["Solo lectura ",o.jsx("span",{className:Te.pista,children:"— si escribe, sus cambios pasan por tu aprobación"})]})]}),g2(h.motor)?o.jsxs("label",{className:Te.casilla,children:[o.jsx("input",{type:"checkbox",checked:h.ejecucion===!0,onChange:z=>b(z.target.checked?{...h,ejecucion:!0}:(({ejecucion:ke,...pe})=>pe)(h))}),o.jsxs("span",{children:["Ejecuta comandos"," ",o.jsx("span",{className:Te.pista,children:h.motor==="modelo"?"— alcanza tu máquina entera: no lo acotan ni los permisos de fichero ni la aprobación de escrituras":"— solo los scripts de sus skills, por su nombre: corren en tu máquina sin pasar por la aprobación"})]})]}):null,h.motor==="modelo"?null:o.jsxs("p",{className:Te.aviso,children:[jW," ",CW[h.motor]??"",h.ejecucion===!0&&!g2(h.motor)?" Y «ejecuta comandos» no se aplica con este motor: el hijo corre en otro proceso, con la shell cerrada.":"",h.esfuerzo!==void 0?" El «esfuerzo» tampoco se aplica: el modelo lo construye el hijo, con su propia configuración.":""]}),o.jsx(zW,{elegidas:h.skills,...u===void 0?{}:{catalogo:u},alCambiar:z=>b({...h,skills:z})}),o.jsxs("label",{className:Te.campo,children:[o.jsx("span",{className:Te.rotulo,children:"Instrucciones"}),o.jsx("textarea",{className:Te.instrucciones,rows:8,value:h.instrucciones,onChange:z=>b({...h,instrucciones:z.target.value})})]}),n?o.jsxs("label",{className:Te.campo,children:[o.jsx("span",{className:Te.rotulo,children:"Dónde se guarda"}),o.jsxs(ls,{value:_,onChange:z=>C(z.target.value==="proyecto"?"proyecto":"global"),children:[o.jsx("option",{value:"proyecto",children:"En este proyecto"}),o.jsx("option",{value:"global",children:"Global — en todos"})]})]}):o.jsx("p",{className:Te.pista,children:"Se guarda como global: no hay ningún proyecto abierto."}),je===void 0?null:o.jsx("p",{className:Te.aviso,children:je}),o.jsxs("div",{className:Te.botones,children:[o.jsx(Le,{variant:"outline",className:Te.accion,onClick:oe,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:Te.principal,disabled:je!==void 0||h.nombre.trim()===""||h.descripcion.trim()==="",onClick:R,children:"Guardar"})]})]})]})}function DW({agente:e,abierta:t,alAbrir:n,alEditar:r,alBorrar:a,alRestaurar:l}){const i=e,u=(t==null?void 0:t.nombre)===i.nombre?t.que:void 0,d=m=>n(u===m?void 0:{nombre:i.nombre,que:m});return o.jsxs("li",{className:Te.fila,children:[o.jsxs("div",{className:Te.cabeceraDeFila,children:[o.jsx("span",{className:Te.nombre,children:i.nombre}),o.jsx("span",{className:Te.motor,children:i.motor}),i.origen===void 0?null:o.jsx("span",{className:Te.origen,children:i.origen}),i.soloLectura?o.jsx("span",{className:Te.lectura,children:"solo lectura"}):null,i.ejecucion===!0&&g2(i.motor)?o.jsx("span",{className:Te.ejecucion,title:"Puede ejecutar comandos en esta máquina",children:"ejecuta"}):null,o.jsx("span",{className:Te.relleno}),o.jsx("button",{type:"button",className:Te.icono,"aria-label":`Editar ${i.nombre}`,title:"Editar",onClick:()=>{n(void 0),r()},children:o.jsx(e4,{size:18})}),i.semilla===void 0?o.jsx("button",{type:"button",className:nt(Te.icono,Te.iconoDestructivo),"aria-label":`Eliminar ${i.nombre}`,title:"Eliminar",onClick:()=>d("borrar"),children:o.jsx(t4,{size:18})}):null]}),o.jsx("p",{className:Te.descripcion,children:i.descripcion}),i.semilla==="modificada"&&u!=="restaurar"?o.jsxs("p",{className:Te.restaurar,children:["Lo has editado, así que las mejoras que publiquemos en él ya no te llegan."," ",o.jsx(Le,{variant:"outline",className:Te.accionDeFila,onClick:()=>d("restaurar"),children:"Restaurar el de serie"})]}):null,u==="borrar"?o.jsxs("p",{className:Te.confirmar,children:["Se borra el fichero de «",i.nombre,"». No hay papelera."," ",o.jsx(Le,{variant:"outline",className:Te.destructiva,onClick:()=>{a(),n(void 0)},children:"Eliminar"})]}):null,u==="restaurar"?o.jsxs("p",{className:Te.confirmar,children:["Se pisa tu versión de «",i.nombre,"» con la de XOneCode. Lo que hayas escrito no vuelve."," ",o.jsx(Le,{variant:"outline",className:Te.destructiva,onClick:()=>{l(),n(void 0)},children:"Restaurar"})]}):null]})}function zW({elegidas:e,catalogo:t,alCambiar:n}){if(t===void 0)return o.jsxs("label",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Skills ",o.jsx("span",{className:Te.pista,children:"— separadas por comas"})]}),o.jsx(La,{value:e.join(", "),onChange:i=>n(i.target.value.split(",").map(u=>u.trim()).filter(u=>u!==""))})]});const r=new Set(t.map(i=>i.nombre)),a=e.filter(i=>!r.has(i)),l=(i,u)=>{n(u?[...e,i]:e.filter(d=>d!==i))};return o.jsxs("div",{className:Te.campo,children:[o.jsxs("span",{className:Te.rotulo,children:["Skills ",o.jsx("span",{className:Te.pista,children:"— las que se le cargan bajo demanda"})]}),t.length===0&&a.length===0?o.jsx("p",{className:Te.pista,children:"No hay ninguna skill. Se escriben en la sección Skills."}):o.jsxs("ul",{className:Te.listaDeSkills,children:[t.map(i=>o.jsx("li",{children:o.jsxs("label",{className:Te.casillaDeSkill,children:[o.jsx("input",{type:"checkbox",checked:e.includes(i.nombre),onChange:u=>l(i.nombre,u.target.checked)}),o.jsxs("span",{className:Te.textoDeSkill,children:[o.jsx("span",{className:Te.nombreDeSkill,children:i.nombre}),o.jsxs("span",{className:Te.costeDeSkill,children:[Rt(i.tokens)," tok"]}),o.jsx("span",{className:Te.descripcionDeSkill,title:i.descripcion,children:i.descripcion})]})]})},i.nombre)),a.map(i=>o.jsx("li",{children:o.jsxs("label",{className:nt(Te.casillaDeSkill,Te.skillHuerfana),children:[o.jsx("input",{type:"checkbox",checked:!0,onChange:()=>l(i,!1)}),o.jsxs("span",{className:Te.textoDeSkill,children:[o.jsx("span",{className:Te.nombreDeSkill,children:i}),o.jsx("span",{className:Te.descripcionDeSkill,children:"Su `.md` la declara y no está en el catálogo: hoy este subagente se queda sin ella. Desmárcala para quitarla, o escríbela en la sección Skills."})]})]})},i))]})]})}const TW="_nota_1gwiq_17",MW="_vacio_1gwiq_18",LW="_pista_1gwiq_19",IW="_problemas_1gwiq_45",qW="_filas_1gwiq_55",RW="_fila_1gwiq_55",PW="_cabeceraDeFila_1gwiq_71",FW="_nombre_1gwiq_77",OW="_relleno_1gwiq_82",BW="_origen_1gwiq_90",HW="_descripcion_1gwiq_119",UW="_confirmar_1gwiq_128",VW="_accion_1gwiq_147 _secundario_1l1rx_39",GW="_icono_1gwiq_164",WW="_iconoDestructivo_1gwiq_186",ZW="_destructiva_1gwiq_194",QW="_formulario_1gwiq_201",XW="_campo_1gwiq_211",YW="_rotulo_1gwiq_247",KW="_instrucciones_1gwiq_263",JW="_botones_1gwiq_277",eZ="_principal_1gwiq_304 _primario_1l1rx_67",tZ="_accionDeFila_1gwiq_351",nZ="_pestanas_1gwiq_376",rZ="_pestana_1gwiq_376",aZ="_cuenta_1gwiq_410",oZ="_panelDePestana_1gwiq_421",sZ="_nuevo_1gwiq_438",iZ="_tokens_1gwiq_451",lZ="_anexos_1gwiq_464",cZ="_listaDeAnexos_1gwiq_471",uZ="_cuerpo_1gwiq_482",dZ="_texto_1gwiq_494",pZ="_piePropio_1gwiq_508",mZ="_rotuloDeBloque_1gwiq_521",hZ="_frontmatter_1gwiq_537",fZ="_acciones_1gwiq_555",gZ="_elector_1gwiq_564",Je={nota:TW,vacio:MW,pista:LW,problemas:IW,filas:qW,fila:RW,cabeceraDeFila:PW,nombre:FW,relleno:OW,origen:BW,descripcion:HW,confirmar:UW,accion:VW,icono:GW,iconoDestructivo:WW,destructiva:ZW,formulario:QW,campo:XW,rotulo:YW,instrucciones:KW,botones:JW,principal:eZ,accionDeFila:tZ,pestanas:nZ,pestana:rZ,cuenta:aZ,panelDePestana:oZ,nuevo:sZ,tokens:iZ,anexos:lZ,listaDeAnexos:cZ,cuerpo:uZ,texto:dZ,piePropio:pZ,rotuloDeBloque:mZ,frontmatter:hZ,acciones:fZ,elector:gZ},P5=[{clave:"serie",titulo:"De XOneCode",vacio:"No se encontró el catálogo que trae XOneCode."},{clave:"propias",titulo:"Tuyas",vacio:"No has escrito ninguna. «Nueva skill» escribe la primera, o copia una de XOneCode."}],of=6,vZ={serie:"XOneCode",global:"global",proyecto:"proyecto"};function bZ({skills:e,problemas:t,cuerpos:n,hayProyecto:r,alPedirCuerpo:a,alGuardar:l,alBorrar:i,alInstalar:u}){const[d,m]=$.useState("serie"),[f,h]=$.useState(void 0),[b,y]=$.useState("global"),[g,_]=$.useState(void 0),[C,k]=$.useState(void 0),[S,A]=$.useState({trabajando:!1}),I=$.useRef(null);if(e===void 0)return o.jsx("p",{className:Je.nota,children:"Consultando las skills…"});const M={serie:e.filter(W=>W.origen==="serie"),propias:e.filter(W=>W.origen!=="serie")},L=W=>{if(g===W.nombre){_(void 0);return}_(W.nombre),W.cuerpo===void 0&&!(n!==void 0&&W.nombre in n)&&a(W.nombre)},F=r?"proyecto":"global",G=()=>{h({nombre:"",descripcion:"",cuerpo:""}),y(F),k(void 0)},O=W=>{h({nombre:W.nombre,descripcion:W.descripcion,cuerpo:W.cuerpo??"",...W.frontmatter===void 0?{}:{frontmatter:W.frontmatter},renombrandoDe:W.nombre}),y(W.origen==="proyecto"?"proyecto":"global"),k(void 0)},B=(W,re)=>{h({nombre:"",descripcion:W.descripcion,cuerpo:re,...W.frontmatter===void 0?{}:{frontmatter:W.frontmatter}}),y(r?"proyecto":"global"),_(void 0)};if(f!==void 0){const W=f.nombre.trim()===""||f.descripcion.trim()==="";return o.jsxs("div",{className:Je.formulario,children:[o.jsxs("label",{className:Je.campo,children:[o.jsxs("span",{className:Je.rotulo,children:["Nombre ",o.jsx("span",{className:Je.pista,children:"— es la carpeta: minúsculas, dígitos y guiones"})]}),o.jsx(La,{value:f.nombre,onChange:re=>h({...f,nombre:re.target.value})})]}),o.jsxs("label",{className:Je.campo,children:[o.jsxs("span",{className:Je.rotulo,children:["Descripción ",o.jsx("span",{className:Je.pista,children:"— cuándo cargarla; la lee el modelo"})]}),o.jsx(La,{value:f.descripcion,onChange:re=>h({...f,descripcion:re.target.value})})]}),o.jsxs("label",{className:Je.campo,children:[o.jsxs("span",{className:Je.rotulo,children:["Instrucciones ",o.jsx("span",{className:Je.pista,children:"— el cuerpo del SKILL.md"})]}),o.jsx("textarea",{className:Je.instrucciones,rows:14,value:f.cuerpo,onChange:re=>h({...f,cuerpo:re.target.value})})]}),r?o.jsxs("label",{className:Je.campo,children:[o.jsx("span",{className:Je.rotulo,children:"Dónde se guarda"}),o.jsxs(ls,{value:b,onChange:re=>y(re.target.value==="proyecto"?"proyecto":"global"),children:[o.jsx("option",{value:"proyecto",children:"En este proyecto"}),o.jsx("option",{value:"global",children:"Para todos tus proyectos"})]})]}):null,o.jsxs("div",{className:Je.botones,children:[o.jsx(Le,{className:Je.accion,variant:"outline",onClick:()=>h(void 0),children:"Cancelar"}),o.jsx(Le,{className:Je.principal,disabled:W,onClick:()=>{l({nombre:f.nombre.trim(),descripcion:f.descripcion.trim(),origen:b,tokens:0,ficheros:[],cuerpo:f.cuerpo,...f.frontmatter===void 0?{}:{frontmatter:f.frontmatter}},b,f.renombrandoDe),h(void 0)},children:"Guardar"})]})]})}return o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Je.nota,children:["Una skill es una carpeta con un ",o.jsx("code",{children:"SKILL.md"})," dentro: instrucciones que el modelo carga ",o.jsx("strong",{children:"solo cuando su descripción le dice que le sirven"}),". Las tuyas viven en"," ",o.jsx("code",{children:".xonecode/skills/"}),"; las de un proyecto solo valen ahí, y pisan a la global del mismo nombre."]}),t!==void 0&&t.length>0?o.jsx("ul",{className:Je.problemas,role:"alert",children:t.map(W=>o.jsx("li",{children:W},W))}):null,o.jsx("div",{className:Je.pestanas,role:"tablist","aria-label":"Skills por origen",children:P5.map(W=>o.jsxs("button",{type:"button",role:"tab",className:Je.pestana,"aria-selected":W.clave===d,"data-actual":W.clave===d?"":void 0,onClick:()=>{m(W.clave),_(void 0),k(void 0)},children:[W.titulo,M[W.clave].length>0?o.jsx("span",{className:Je.cuenta,children:M[W.clave].length}):null]},W.clave))}),o.jsxs("div",{role:"tabpanel",className:Je.panelDePestana,children:[d==="propias"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Je.acciones,children:[o.jsx(Le,{className:nt(Je.principal,Je.nuevo),variant:"outline",onClick:G,children:"Nueva skill"}),u===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx(Le,{className:nt(Je.accion,Je.nuevo),variant:"outline",disabled:S.trabajando,onClick:()=>{var W;return(W=I.current)==null?void 0:W.click()},children:S.trabajando?"Instalando…":"Instalar un .zip"}),o.jsx("input",{ref:I,type:"file",accept:".zip,application/zip",className:Je.elector,onChange:W=>{var fe;const re=(fe=W.target.files)==null?void 0:fe[0];W.target.value="",re!==void 0&&(A({trabajando:!0}),u(re.name,F,re).then(he=>A({trabajando:!1,...he.ok?{}:{error:he.motivo??"no se pudo instalar"}})))}})]})]}),S.error!==void 0?o.jsx("p",{className:Je.problemas,role:"alert",children:S.error}):null]}):null,M[d].length===0?o.jsx("p",{className:Je.vacio,children:P5.find(W=>W.clave===d).vacio}):o.jsx("ul",{className:Je.filas,children:M[d].map(W=>o.jsx(yZ,{skill:W,abierta:g===W.nombre,cuerpoPedido:n!==void 0&&W.nombre in n?n[W.nombre]:void 0,sePidio:n!==void 0&&W.nombre in n,borrando:C===W.nombre,alAbrir:()=>L(W),alEditar:()=>O(W),alCopiar:re=>B(W,re),alArmarBorrado:()=>k(C===W.nombre?void 0:W.nombre),alBorrar:()=>{i(W,W.origen==="proyecto"?"proyecto":"global"),k(void 0)}},W.nombre))})]})]})}function yZ({skill:e,abierta:t,cuerpoPedido:n,sePidio:r,borrando:a,alAbrir:l,alEditar:i,alCopiar:u,alArmarBorrado:d,alBorrar:m}){const f=e.origen==="serie",h=e.cuerpo??n;return o.jsxs("li",{className:Je.fila,children:[o.jsxs("div",{className:Je.cabeceraDeFila,children:[o.jsx("span",{className:Je.nombre,children:e.nombre}),o.jsx("span",{className:Je.origen,children:vZ[e.origen]}),o.jsxs("span",{className:Je.tokens,title:`${e.tokens} tokens si el modelo la carga`,children:[Rt(e.tokens)," tok"]}),o.jsx("span",{className:Je.relleno}),o.jsx("button",{type:"button",className:Je.accionDeFila,"aria-expanded":t,onClick:l,children:t?"Ocultar":"Ver"}),f?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Je.icono,"aria-label":`Editar ${e.nombre}`,onClick:i,children:o.jsx(e4,{})}),o.jsx("button",{type:"button",className:nt(Je.icono,Je.iconoDestructivo),"aria-label":`Eliminar ${e.nombre}`,title:"Eliminar",onClick:d,children:o.jsx(t4,{})})]})]}),t?o.jsxs("div",{className:Je.cuerpo,children:[e.frontmatter!==void 0&&e.frontmatter.trim()!==""?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Je.rotuloDeBloque,children:"Frontmatter"}),o.jsx("pre",{className:Je.frontmatter,children:e.frontmatter.trimEnd()})]}):o.jsx("p",{className:Je.descripcion,children:e.descripcion}),e.ficheros.length>0?o.jsxs("p",{className:Je.anexos,children:["Además del ",o.jsx("code",{children:"SKILL.md"})," lleva ",e.ficheros.length," ",e.ficheros.length===1?"fichero":"ficheros",":"," ",o.jsx("span",{className:Je.listaDeAnexos,children:e.ficheros.slice(0,of).join(", ")}),e.ficheros.length>of?` y ${e.ficheros.length-of} más`:"",". Se quedan como están: aquí solo se edita el ",o.jsx("code",{children:"SKILL.md"}),"."]}):null,h!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Je.rotuloDeBloque,children:"Instrucciones"}),o.jsx("pre",{className:Je.texto,children:h}),f?o.jsxs("div",{className:Je.piePropio,children:[o.jsxs("span",{children:["Esta la trae XOneCode y no se edita: el siguiente ",o.jsx("code",{children:"npm install"})," se llevaría el cambio."]}),o.jsx("button",{type:"button",className:Je.accionDeFila,onClick:()=>u(h),children:"Copiar a las tuyas"})]}):null]}):r?o.jsx("p",{className:Je.vacio,children:"No se pudo leer el SKILL.md de esta skill."}):o.jsx("p",{className:Je.vacio,children:"Leyendo…"})]}):null,a?o.jsxs("div",{className:Je.confirmar,children:[o.jsx("span",{children:"Se borra la carpeta entera, anexos incluidos. No hay papelera."}),o.jsx(Le,{className:nt(Je.accion,Je.destructiva),onClick:m,children:"Eliminar"})]}):null]})}const xZ={deepwiki:"/iconos/conectores/deepwiki.png",jira:"/iconos/conectores/jira.png"},_Z={notion:"M3.90973 3.74062C4.41327 4.14967 4.60227 4.11862 5.54862 4.05517L14.4687 3.51989C14.6577 3.51989 14.5005 3.33089 14.4377 3.29984L12.9554 2.22862C12.6719 2.00857 12.2932 1.75612 11.5683 1.8189L2.93165 2.44934C2.6171 2.48039 2.55365 2.63834 2.6792 2.76389L3.90973 3.74062ZM4.445 5.81961V15.2048C4.445 15.709 4.69677 15.898 5.26445 15.8663L15.0675 15.2993C15.6351 15.2682 15.6986 14.9213 15.6986 14.5116V5.18916C15.6986 4.78012 15.5413 4.55939 15.1937 4.59044L4.94922 5.18916C4.57122 5.22089 4.445 5.41056 4.445 5.81961ZM14.1225 6.32249C14.1852 6.60599 14.1225 6.88949 13.839 6.92189L13.3665 7.01639V13.9446C12.9561 14.1653 12.5781 14.2915 12.2628 14.2915C11.7579 14.2915 11.6317 14.1336 11.2537 13.6617L8.16424 8.81121V13.5038L9.14164 13.7252C9.14164 13.7252 9.14164 14.2922 8.35324 14.2922L6.1784 14.4177C6.11562 14.2922 6.1784 13.977 6.39912 13.9142L6.96612 13.7569V7.55166L6.17975 7.48821C6.1163 7.20471 6.27424 6.79566 6.71502 6.76394L9.04781 6.60666L12.2635 11.52V7.17299L11.4434 7.07916C11.3806 6.73221 11.6324 6.48044 11.9476 6.44939L14.1225 6.32249ZM2.2067 1.59885L11.1909 0.937348C12.2939 0.842848 12.5781 0.905623 13.2713 1.40985L16.1393 3.42539C16.6118 3.77167 16.7698 3.86617 16.7698 4.24417V15.2993C16.7698 15.9918 16.518 16.4022 15.6358 16.4643L5.20167 17.0948C4.54017 17.1265 4.22427 17.032 3.87732 16.5906L1.76525 13.8501C1.38726 13.3458 1.22998 12.9685 1.22998 12.5271V2.70044C1.22998 2.13412 1.48243 1.66095 2.2067 1.59885Z"};function Hm({id:e,nombre:t,size:n=20,className:r}){const a=xZ[e];if(a!==void 0)return o.jsx("img",{className:r,src:a,alt:"",width:n,height:n});const l=_Z[e],i=t.trim().charAt(0).toUpperCase()||"?";return o.jsx("svg",{viewBox:l===void 0?"0 0 20 20":"0 0 18 18",width:n,height:n,fill:"none","aria-hidden":"true",focusable:"false",className:r,children:l===void 0?o.jsxs(o.Fragment,{children:[o.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"1.2"}),o.jsx("text",{x:"10",y:"14",textAnchor:"middle",fontSize:"10",fontWeight:"600",fill:"currentColor",children:i})]}):o.jsx("path",{d:l,fill:"currentColor"})})}const wZ="_nota_ciziz_13",jZ="_vacio_ciziz_14",CZ="_problemas_ciziz_22",kZ="_estado_ciziz_36",NZ="_grupo_ciziz_49",SZ="_filas_ciziz_58",$Z="_fila_ciziz_58",AZ="_cabeceraDeFila_ciziz_74",EZ="_icono_ciziz_84",DZ="_nombre_ciziz_89",zZ="_autenticacion_ciziz_94",TZ="_relleno_ciziz_107",MZ="_pastilla_ciziz_118",LZ="_sinProbar_ciziz_127",IZ="_conectado_ciziz_132",qZ="_esperando_ciziz_137",RZ="_faltaAutorizar_ciziz_138",PZ="_noResponde_ciziz_143",FZ="_motivo_ciziz_151",OZ="_descripcion_ciziz_158",BZ="_accionDeFila_ciziz_167",HZ="_exito_ciziz_190",UZ="_cuerpo_ciziz_200",VZ="_tools_ciziz_207",GZ="_tool_ciziz_207",WZ="_nombreDeTool_ciziz_223",ZZ="_soloLectura_ciziz_232",QZ="_descripcionDeTool_ciziz_244",XZ="_formulario_ciziz_253",YZ="_etiqueta_ciziz_254",KZ="_campo_ciziz_274",JZ="_aviso_ciziz_254",eQ="_accion_ciziz_167 _secundario_1l1rx_39",tQ="_principal_ciziz_186 _primario_1l1rx_67",nQ="_botones_ciziz_254",We={nota:wZ,vacio:jZ,problemas:CZ,estado:kZ,grupo:NZ,filas:SZ,fila:$Z,cabeceraDeFila:AZ,icono:EZ,nombre:DZ,autenticacion:zZ,relleno:TZ,pastilla:MZ,sinProbar:LZ,conectado:IZ,esperando:qZ,faltaAutorizar:RZ,noResponde:PZ,motivo:FZ,descripcion:OZ,accionDeFila:BZ,exito:HZ,cuerpo:UZ,tools:VZ,tool:GZ,nombreDeTool:WZ,soloLectura:ZZ,descripcionDeTool:QZ,formulario:XZ,etiqueta:YZ,campo:KZ,aviso:JZ,accion:eQ,principal:tQ,botones:nQ},Z8={ninguna:"Sin autenticación","api-key":"Clave de API",oauth:"OAuth"},rQ=["ninguna","api-key","oauth"];function aQ({catalogo:e,conectores:t,desconocidos:n,ilegible:r,error:a,alAccion:l,alCrear:i,secreto:u,alResponderSecreto:d}){const[m,f]=$.useState(void 0),[h,b]=$.useState(!1),[y,g]=$.useState(!1),[_,C]=$.useState(void 0);$.useEffect(()=>{_!==void 0&&t.length>_&&(b(!1),C(void 0))},[_,t.length]);const k=new Map(e.map(M=>[M.id,M])),S=new Set(t.map(M=>M.id)),A=e.filter(M=>!S.has(M.id)),I=M=>{M==="api-key"&&g(!0)};return o.jsxs(o.Fragment,{children:[n.length>0?o.jsxs("p",{className:We.problemas,role:"alert",children:["En tu configuración hay conectores que esta versión no conoce: ",n.join(", "),"."]}):null,a!==void 0?o.jsx("p",{className:We.estado,role:"status",children:a}):null,r===!0?o.jsxs("p",{className:We.estado,role:"status",children:["No se pudo leer tu ",o.jsx("code",{children:"conectores.json"}),": no se ha tocado; revísalo o bórralo."]}):o.jsxs("section",{children:[o.jsxs("h3",{className:We.grupo,children:["Configurados · ",t.length]}),t.length===0?o.jsx("p",{className:We.vacio,children:"Ninguno todavía: añade uno de los disponibles."}):o.jsx("ul",{className:We.filas,children:t.map(M=>o.jsx(sQ,{conector:M,entrada:k.get(M.id),abierta:m===M.id,alAbrir:()=>f(L=>L===M.id?void 0:M.id),alAccion:L=>{var F;L==="autorizar"&&I((F=k.get(M.id))==null?void 0:F.autenticacion),l(L,M.id)}},M.id))})]}),y&&u!==void 0?o.jsx("div",{ref:Q8,children:o.jsx(Ll,{texto:u,oculta:!0,anidado:!0,alResponder:async M=>{await d(M),g(!1)}})}):null,o.jsxs("section",{children:[o.jsxs("h3",{className:We.grupo,children:["Disponibles · ",A.length]}),h?o.jsx(iQ,{alCerrar:()=>{b(!1),C(void 0)},alCrear:M=>{C(t.length),I(M.autenticacion),i(M)}}):o.jsxs(o.Fragment,{children:[A.length===0?o.jsx("p",{className:We.vacio,children:"Ya has añadido todo el catálogo."}):o.jsx("ul",{className:We.filas,children:A.map(M=>o.jsxs("li",{className:We.fila,children:[o.jsxs("div",{className:We.cabeceraDeFila,children:[o.jsx(Hm,{id:M.id,nombre:M.nombre,className:We.icono}),o.jsx("span",{className:We.nombre,children:M.nombre}),o.jsx("span",{className:We.autenticacion,children:Z8[M.autenticacion]}),o.jsx("span",{className:We.relleno}),o.jsx("button",{type:"button",className:We.accionDeFila,onClick:()=>{l("anadir",M.id),M.autenticacion!=="ninguna"&&(I(M.autenticacion),l("autorizar",M.id))},children:"Añadir"})]}),o.jsx("p",{className:We.descripcion,children:M.descripcion})]},M.id))}),o.jsx("div",{className:We.botones,children:o.jsx(Le,{variant:"outline",className:We.accion,onClick:()=>b(!0),children:"Añadir servidor"})})]})]}),o.jsx("p",{className:We.nota,children:"Aquí se conectan y se prueban. Llegan al agente en los proyectos que los marcan en su panel (Conectores → «Conectores para el chat»), y lo que escriben en el servicio siempre pide aprobación."}),o.jsx("p",{className:We.nota,children:"La autorización se abre en el navegador de la máquina donde corre la consola; por un túnel no vuelve."})]})}function oQ(e){return e.prueba!==void 0&&e.prueba.ok?{texto:`Conectado · ${e.prueba.tools.length} tools`,clase:We.conectado}:e.autorizando===!0?{texto:"Esperando al navegador…",clase:We.esperando}:e.estado==="falta-autorizar"?{texto:"Falta autorizar",clase:We.faltaAutorizar}:e.prueba!==void 0&&!e.prueba.ok?{texto:"No responde",clase:We.noResponde,motivo:e.prueba.motivo}:{texto:"Sin probar",clase:We.sinProbar}}function sQ({conector:e,entrada:t,abierta:n,alAbrir:r,alAccion:a}){const l=(t==null?void 0:t.nombre)??e.id,i=oQ(e),u=(t==null?void 0:t.autenticacion)!=="ninguna";return o.jsxs("li",{className:We.fila,children:[o.jsxs("div",{className:We.cabeceraDeFila,children:[o.jsx(Hm,{id:e.id,nombre:l,className:We.icono}),o.jsx("span",{className:We.nombre,children:l}),o.jsx("span",{className:nt(We.pastilla,i.clase),...i.motivo===void 0?{}:{title:i.motivo},children:i.texto}),o.jsx("span",{className:We.relleno}),o.jsx("button",{type:"button",className:We.accionDeFila,"aria-expanded":n,onClick:r,children:n?"Ocultar":"Ver"}),u&&e.estado!=="autorizado"?o.jsx("button",{type:"button",className:We.accionDeFila,onClick:()=>a("autorizar"),children:e.autorizando===!0?"Volver a abrir":"Conectar"}):null,o.jsx("button",{type:"button",className:nt(We.accionDeFila,We.exito),onClick:()=>a("probar"),children:"Probar"}),u&&e.estado==="autorizado"?o.jsx("button",{type:"button",className:We.accionDeFila,onClick:()=>a("desconectar"),children:"Desconectar"}):null,o.jsx("button",{type:"button",className:We.accionDeFila,onClick:()=>a("quitar"),children:"Quitar"})]}),t!==void 0?o.jsx("p",{className:We.descripcion,children:t.descripcion}):null,i.motivo!==void 0?o.jsx("p",{className:We.motivo,children:i.motivo}):null,n?o.jsx("div",{className:We.cuerpo,children:e.prueba!==void 0&&e.prueba.ok?e.prueba.tools.length===0?o.jsx("p",{className:We.vacio,children:"no expone ninguna tool"}):o.jsx("ul",{className:We.tools,children:e.prueba.tools.map(d=>o.jsxs("li",{className:We.tool,children:[o.jsx("span",{className:We.nombreDeTool,children:d.nombre}),d.soloLectura===!0?o.jsx("span",{className:We.soloLectura,children:"solo lectura"}):null,d.descripcion!==void 0?o.jsx("p",{className:We.descripcionDeTool,children:d.descripcion}):null]},d.nombre))}):o.jsx("p",{className:We.vacio,children:"Pruébalo para ver qué tools ofrece."})}):null]})}function Q8(e){e!==null&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}function iQ({alCerrar:e,alCrear:t}){const[n,r]=$.useState(""),[a,l]=$.useState(""),[i,u]=$.useState(""),[d,m]=$.useState("ninguna"),[f,h]=$.useState(void 0),b=n.trim()===""||a.trim()===""||i.trim()==="",y=g=>{if(g.preventDefault(),!b){if(!dm(i.trim())){h(d4);return}h(void 0),t({nombre:n.trim(),descripcion:a.trim(),url:i.trim(),autenticacion:d})}};return o.jsxs("form",{className:We.formulario,ref:Q8,onSubmit:y,children:[o.jsx("p",{className:We.nota,children:"Apunta a un endpoint MCP remoto: después se comporta como cualquier otro conector."}),o.jsx("label",{className:We.etiqueta,htmlFor:"conector-nombre",children:"Nombre"}),o.jsx(La,{id:"conector-nombre",className:We.campo,value:n,placeholder:"Mi servidor MCP",onChange:g=>r(g.target.value)}),o.jsx("label",{className:We.etiqueta,htmlFor:"conector-descripcion",children:"Descripción"}),o.jsx(La,{id:"conector-descripcion",className:We.campo,value:a,placeholder:"Qué ofrece: es lo que se lee en la lista",onChange:g=>l(g.target.value)}),o.jsx("label",{className:We.etiqueta,htmlFor:"conector-url",children:"URL"}),o.jsx(La,{id:"conector-url",className:We.campo,value:i,placeholder:"https://mcp.ejemplo.com/mcp",onChange:g=>{u(g.target.value),h(void 0)}}),o.jsx("label",{className:We.etiqueta,htmlFor:"conector-autenticacion",children:"Autenticación"}),o.jsx(ls,{id:"conector-autenticacion",value:d,onChange:g=>{const _=g.target.value;b6(_)&&m(_)},children:rQ.map(g=>o.jsx("option",{value:g,children:Z8[g]},g))}),o.jsx("p",{className:We.nota,children:d==="api-key"?"La clave se pide después, al añadirlo: así viaja por el único mensaje que lleva credenciales.":"OAuth aquí es solo iniciar sesión: el cliente se registra solo. Todavía no se admite OAuth manual con client id y secret."}),f!==void 0?o.jsx("p",{className:We.aviso,role:"alert",children:f}):null,o.jsxs("div",{className:We.botones,children:[o.jsx(Le,{variant:"outline",className:We.accion,onClick:e,children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:We.principal,disabled:b,children:"Añadir"})]})]})}const lQ="_receta_jnvvl_3",cQ="_titulo_jnvvl_11",uQ="_descripcion_jnvvl_18",dQ="_hecha_jnvvl_19",pQ="_despues_jnvvl_20",mQ="_aparte_jnvvl_36",hQ="_aparteTitulo_jnvvl_42",fQ="_pasos_jnvvl_49",gQ="_paso_jnvvl_49",vQ="_numero_jnvvl_65",bQ="_cuerpo_jnvvl_75",yQ="_pasoTitulo_jnvvl_80",xQ="_marca_jnvvl_95",_Q="_nota_jnvvl_112",wQ="_bloque_jnvvl_122",jQ="_comandos_jnvvl_127",CQ="_trabajo_jnvvl_148",kQ="_estado_jnvvl_155",NQ="_girando_jnvvl_174",SQ="_log_jnvvl_197",$Q="_ejecutar_jnvvl_214 _secundario_1l1rx_39",AQ="_cancelar_jnvvl_215 _secundario_1l1rx_39",EQ="_acepta_jnvvl_233",It={receta:lQ,titulo:cQ,descripcion:uQ,hecha:dQ,despues:pQ,aparte:mQ,aparteTitulo:hQ,pasos:fQ,paso:gQ,numero:vQ,cuerpo:bQ,pasoTitulo:yQ,marca:xQ,nota:_Q,bloque:wQ,comandos:jQ,trabajo:CQ,estado:kQ,girando:NQ,log:SQ,ejecutar:$Q,cancelar:AQ,acepta:EQ};function DQ({receta:e,instalacion:t,alEjecutar:n,alCancelar:r}){const a=i=>t!==void 0&&t.receta===e.id&&t.paso===i?t:void 0,l=i=>i.hecho?i.repetir:void 0;return o.jsxs("section",{className:It.receta,"aria-label":e.titulo,children:[o.jsx("h4",{className:It.titulo,children:e.titulo}),e.completa?o.jsx("p",{className:It.hecha,children:"Ya está: esta máquina lo tiene todo."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:It.descripcion,children:e.descripcion}),o.jsx("ol",{className:It.pasos,children:e.pasos.map((i,u)=>o.jsxs("li",{className:It.paso,"data-hecho":i.hecho?"":void 0,children:[o.jsx("span",{className:It.numero,"aria-hidden":!0,children:u+1}),o.jsxs("div",{className:It.cuerpo,children:[o.jsxs("p",{className:It.pasoTitulo,children:[o.jsx("span",{className:It.marca,"data-hecho":i.hecho?"":void 0,"aria-label":i.hecho?"hecho":"pendiente",role:"img"}),i.titulo]}),i.nota===void 0?null:o.jsx("p",{className:It.nota,children:i.nota}),o.jsxs("div",{className:It.bloque,children:[o.jsx("pre",{className:It.comandos,children:i.comandos.join(`
|
|
492
|
-
`)}),o.jsx(F0,{texto:i.comandos.join(`
|
|
493
|
-
`),etiqueta:`Copiar los comandos del paso ${u+1}`})]}),(()=>{var f;const d=a(u+1);return(d==null?void 0:d.estado)==="corriendo"?o.jsxs("div",{className:It.trabajo,children:[o.jsxs("p",{className:It.estado,children:[o.jsx("span",{className:It.girando,"aria-hidden":!0}),d.titulo," · ",TQ(d.ms),r===void 0?null:o.jsx("button",{type:"button",className:It.cancelar,onClick:r,children:"Cancelar"})]}),d.lineas.length===0?null:o.jsx("pre",{className:It.log,children:d.lineas.join(`
|
|
494
|
-
`)})]}):o.jsxs("div",{className:It.trabajo,children:[d===void 0?null:o.jsxs("p",{className:It.estado,"data-estado":d.estado,children:[d.estado==="ok"&&!i.hecho?"Terminó sin error, pero la medida sigue sin encontrarlo":zQ[d.estado],d.motivo===void 0?null:`: ${d.motivo}`]}),i.ejecutable?n===void 0||i.hecho&&l(i)===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:It.ejecutar,disabled:(t==null?void 0:t.estado)==="corriendo",onClick:()=>n(u+1),children:((f=l(i))==null?void 0:f.etiqueta)??"Ejecutar este paso"}),l(i)===void 0?null:o.jsxs("span",{className:It.acepta,children:[l(i).porQue,"."]}),i.acepta===void 0?null:o.jsxs("span",{className:It.acepta,children:["Al pulsar aceptas ",i.acepta,"."]})]}):i.porQueNo===void 0?null:o.jsx("p",{className:It.nota,children:/^hace falta|^hazlo/i.test(i.porQueNo)?`No se puede lanzar todavía: ${i.porQueNo}.`:`No se lanza desde aquí: ${i.porQueNo}.`})]})})()]})]},i.titulo))})]}),e.aparte===void 0?null:o.jsxs("div",{className:It.aparte,children:[o.jsx("p",{className:It.aparteTitulo,children:e.aparte.titulo}),e.aparte.nota===void 0?null:o.jsx("p",{className:It.nota,children:e.aparte.nota}),o.jsxs("div",{className:It.bloque,children:[o.jsx("pre",{className:It.comandos,children:e.aparte.comandos.join(`
|
|
495
|
-
`)}),o.jsx(F0,{texto:e.aparte.comandos.join(`
|
|
496
|
-
`),etiqueta:`Copiar «${e.aparte.titulo}»`})]})]}),o.jsx("p",{className:It.despues,children:e.despues})]})}const zQ={corriendo:"En marcha",ok:"Hecho",fallo:"No salió bien",cancelada:"Cancelado por ti",colgada:"Se quedó sin decir nada y se paró"};function TQ(e){const t=Math.floor(e/1e3);return t<60?`${t} s`:`${Math.floor(t/60)} min ${t%60} s`}const v2={"claude-code":"Claude Code",codex:"Codex",opencode:"OpenCode"},MQ={"claude-code":[{texto:"XOneCode ya trae Claude Code: no hace falta instalarlo. Pulsa «Iniciar sesión» y se abrirá el navegador. Si el navegador no se abre, «Abrir consola de inicio de sesión» abre una terminal con el comando ya escrito."},{texto:"Si tienes Claude Code instalado por tu cuenta, también vale en una terminal normal (no hace falta abrirla como administrador):",comando:"claude auth login"},{texto:"En el navegador, entra con tu cuenta de Claude (o con la Consola de Anthropic si pagas por uso)."},{texto:"Si al final la web te enseña un código, cópialo y pégalo donde te lo pide —aquí o en la terminal— y pulsa Enter."},{texto:"Listo. No hace falta dejar ninguna consola abierta: la sesión queda guardada en el equipo. Pulsa «Probar» para comprobar que contesta."}],codex:[{texto:"Instala Codex si no lo tienes:",comando:"npm install -g @openai/codex"},{texto:"Inicia sesión en una terminal; se abrirá el navegador para entrar con tu cuenta de ChatGPT:",comando:"codex login"},{texto:"Comprueba que quedó hecho:",comando:"codex login status"},{texto:"Vuelve aquí, pulsa «Volver a comprobar» y después «Probar». No hace falta dejar la terminal abierta."}],opencode:[{texto:"Instala OpenCode si no lo tienes:",comando:"npm install -g opencode-ai"},{texto:"Añade la credencial del proveedor que vayas a usar; te pedirá elegirlo en una lista:",comando:"opencode auth login"},{texto:"Comprueba qué credenciales tiene:",comando:"opencode auth list"},{texto:"Vuelve aquí, pulsa «Volver a comprobar» y después «Probar». No hace falta dejar la terminal abierta."}]},LQ="_encabezado_as3e7_4 _encabezado_1byta_149",IQ="_nota_as3e7_8 _nota_1byta_155",qQ="_vacio_as3e7_12 _vacio_1byta_156",RQ="_pestanas_as3e7_16 _pestanas_1byta_728",PQ="_pestana_as3e7_16 _pestana_1byta_542",FQ="_boton_as3e7_24 _secundario_1l1rx_39",OQ="_primario_as3e7_28 _primario_1l1rx_67",BQ="_exito_as3e7_33",HQ="_punto_as3e7_45",UQ="_tarjeta_as3e7_58",VQ="_datos_as3e7_69",GQ="_detalle_as3e7_90",WQ="_modelo_as3e7_95",ZQ="_aviso_as3e7_120",QQ="_pruebas_as3e7_126",XQ="_hora_as3e7_141",YQ="_resultadoDeLogin_as3e7_147",KQ="_login_as3e7_157",JQ="_filaDeCodigo_as3e7_169",eX="_acciones_as3e7_187",tX="_plegable_as3e7_199",nX="_guia_as3e7_210",rX="_comando_as3e7_220",kt={encabezado:LQ,nota:IQ,vacio:qQ,pestanas:RQ,pestana:PQ,boton:FQ,primario:OQ,exito:BQ,punto:HQ,tarjeta:UQ,datos:VQ,detalle:GQ,modelo:WQ,aviso:ZQ,pruebas:QQ,hora:XQ,resultadoDeLogin:YQ,login:KQ,filaDeCodigo:JQ,acciones:eX,plegable:tX,guia:nX,comando:rX},aX=["claude-code","codex","opencode"],F5={unico:void 0,"sin-ejecucion":"Subagentes sin ejecución","con-ejecucion":"Subagentes con ejecución"};function oX({motores:e,conectado:t,agentes:n,alAccion:r,modelosDeMotor:a,alPedirModelosDeMotor:l}){var _;const[i,u]=$.useState("claude-code");h4(r!==void 0,r===void 0?void 0:()=>r({accion:"medir"}));const d=(_=e==null?void 0:e[0])==null?void 0:_.medido,m=Kl(d,t),f=e==null?void 0:e.find(C=>C.motor===i),[h,b]=$.useState(void 0),y=h??(f==null?void 0:f.conSesion)!==!0,g=(n??[]).filter(C=>C.motor===i).map(C=>C.nombre);return o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:kt.encabezado,children:"Motores locales"}),o.jsx("p",{className:kt.nota,children:"Los subagentes con motor Claude Code, Codex u OpenCode usan el programa de este equipo con tu propia sesión. Aquí se ve si está listo, se inicia la sesión y se prueba que contesta."}),o.jsx("div",{className:kt.pestanas,role:"tablist","aria-label":"Motores",children:aX.map(C=>{const k=e==null?void 0:e.find(A=>A.motor===C),S=(k==null?void 0:k.instalado)==="ok"&&k.conSesion!==!1;return o.jsxs("button",{type:"button",role:"tab",className:kt.pestana,"aria-selected":C===i,"data-actual":C===i?"":void 0,onClick:()=>{u(C),b(void 0)},children:[v2[C],k===void 0?null:o.jsx("span",{className:kt.punto,"data-listo":S?"":void 0,"aria-hidden":"true"})]},C)})}),o.jsxs("div",{role:"tabpanel","aria-label":v2[i],children:[f===void 0?o.jsx("p",{className:kt.vacio,children:r===void 0||(e==null?void 0:e.length)===0?"Esta ejecución no puede comprobar los motores locales.":"Comprobando este equipo…"}):o.jsx(sX,{estado:f,conectado:t,...r===void 0?{}:{alAccion:r},...(a==null?void 0:a[f.motor])===void 0?{}:{modelos:a[f.motor]},...l===void 0?{}:{alPedirModelos:l}}),g.length===0?null:o.jsxs("p",{className:kt.nota,children:["Lo usan: ",g.join(", "),"."]}),r===void 0?null:o.jsx("div",{className:kt.acciones,children:o.jsx("button",{type:"button",className:kt.boton,disabled:!t||m.esperando,onClick:()=>{m.empezar(),r({accion:"medir"})},children:m.esperando?"Comprobando…":"Volver a comprobar"})}),o.jsxs("button",{type:"button",className:kt.plegable,"aria-expanded":y,onClick:()=>b(!y),children:[y?"▾":"▸"," Paso a paso para hacerlo a mano"]}),y?o.jsx("ol",{className:kt.guia,children:MQ[i].map(C=>o.jsxs("li",{children:[C.texto,C.comando===void 0?null:o.jsx("code",{className:kt.comando,children:C.comando})]},C.texto))}):null]})]})}function sX({estado:e,conectado:t,alAccion:n,modelos:r,alPedirModelos:a}){var b,y;const l=e.motor,[i,u]=$.useState(""),d=Kl(e.probando??((y=(b=e.pruebas)==null?void 0:b[0])==null?void 0:y.medido),t),m=e.probando===!0||d.esperando,f=e.login,h=(f==null?void 0:f.fase)==="esperando";return o.jsxs("div",{className:kt.tarjeta,children:[o.jsxs("dl",{className:kt.datos,children:[o.jsx("dt",{children:"Programa"}),o.jsxs("dd",{children:[e.instalado==="ok"?`Listo${e.version===void 0?"":` · versión ${e.version}`}`:e.instalado==="no-encontrado"?"No está instalado":"No arranca",e.instalado!=="ok"&&e.detalle!==void 0?o.jsxs("span",{className:kt.detalle,children:[" — ",e.detalle]}):null]}),e.instalado!=="ok"?null:o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"Sesión"}),o.jsxs("dd",{"data-estado":e.conSesion===!0?"ok":e.conSesion===!1?"falta":void 0,children:[e.sesion??(e.conSesion===void 0?"No se puede leer desde aquí: lo dirá la prueba":"—"),e.detalle===void 0?null:o.jsxs("span",{className:kt.detalle,children:[" — ",e.detalle]})]})]})]}),e.admiteModelo===!0&&e.instalado==="ok"?o.jsx(iX,{estado:e,conectado:t,...r===void 0?{}:{modelos:r},...n===void 0?{}:{alAccion:n},...a===void 0?{}:{alPedirModelos:a}}):null,e.conClave===!0?o.jsxs("p",{className:kt.aviso,children:["XOneCode tiene guardada una clave de API de Anthropic. Los subagentes de Claude Code ",o.jsx("em",{children:"sin ejecución"})," la usarán —y se facturará a esa clave— en vez de tu sesión; los que tienen ejecución usan tu sesión."]}):null,e.pruebas===void 0||e.pruebas.length===0?null:o.jsx("ul",{className:kt.pruebas,children:e.pruebas.map(g=>o.jsxs("li",{"data-ok":g.ok?"":void 0,children:[o.jsx("span",{"aria-hidden":"true",children:g.ok?"✓":"✕"})," ",F5[g.camino]===void 0?null:o.jsxs("strong",{children:[F5[g.camino],": "]}),g.detalle,o.jsxs("span",{className:kt.hora,children:[" ",(g.ms/1e3).toLocaleString("es",{maximumFractionDigits:1})," s · ",lX(g.medido)]})]},g.camino))}),f===void 0||f.fase==="esperando"?null:o.jsx("p",{className:kt.resultadoDeLogin,"data-ok":f.fase==="hecho"?"":void 0,children:f.fase==="hecho"?"Sesión iniciada.":f.fase==="cancelado"?"Inicio de sesión cancelado.":`No se pudo iniciar sesión${f.detalle===void 0?".":`: ${f.detalle}`}`}),h&&n!==void 0?o.jsxs("div",{className:kt.login,children:[o.jsx("p",{children:"Se ha abierto el navegador en este equipo: entra con tu cuenta y vuelve aquí. Si la web te enseña un código al terminar, pégalo abajo."}),o.jsxs("form",{className:kt.filaDeCodigo,onSubmit:g=>{g.preventDefault(),i.trim()!==""&&(n({accion:"codigo",motor:l,codigo:i}),u(""))},children:[o.jsx("input",{type:"text",value:i,"aria-label":"Código de inicio de sesión",placeholder:"Código de la web (si te lo pide)",autoComplete:"off",spellCheck:!1,disabled:!t,onChange:g=>u(g.target.value)}),o.jsx("button",{type:"submit",className:kt.boton,disabled:!t||i.trim()==="",children:"Enviar código"})]}),o.jsxs("div",{className:kt.acciones,children:[o.jsx("button",{type:"button",className:kt.boton,disabled:!t,onClick:()=>n({accion:"navegador",motor:l}),children:"Volver a abrir el navegador"}),o.jsx("button",{type:"button",className:kt.boton,disabled:!t,onClick:()=>n({accion:"cancelar",motor:l}),children:"Cancelar"})]})]}):null,n===void 0||h?null:o.jsxs("div",{className:kt.acciones,children:[e.admiteLogin===!0&&e.conSesion!==!0?o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:kt.primario,disabled:!t,title:"Abre el navegador para entrar con tu cuenta de Claude (Pro, Max, Team…)",onClick:()=>n({accion:"login",motor:l,modo:"claudeai"}),children:"Iniciar sesión"}),o.jsx("button",{type:"button",className:kt.boton,disabled:!t,title:"Entrar con una cuenta de la Consola de Anthropic: se paga por uso",onClick:()=>n({accion:"login",motor:l,modo:"console"}),children:"Con la Consola de Anthropic"})]}):null,e.admiteConsola===!0&&e.conSesion!==!0?o.jsx("button",{type:"button",className:kt.boton,disabled:!t,title:"Abre una terminal de este equipo con el comando de inicio de sesión ya escrito",onClick:()=>n({accion:"consola",motor:l}),children:"Abrir consola de inicio de sesión"}):null,e.instalado!=="ok"?null:o.jsx("button",{type:"button",className:nt(kt.boton,kt.exito),disabled:!t||m,title:"Le manda un mensaje de verdad y espera su respuesta",onClick:()=>{d.empezar(),n({accion:"probar",motor:l})},children:m?"Probando…":"Probar"})]})]})}function iX({estado:e,conectado:t,modelos:n,alAccion:r,alPedirModelos:a}){const l=e.motor,i=n===void 0;$.useEffect(()=>{i&&t&&(a==null||a(l))},[i,t,a,l]);const u=((n==null?void 0:n.modelos)??[]).map(m=>m.id);e.modelo!==void 0&&!u.includes(e.modelo)&&u.unshift(e.modelo);const d=new Map;for(const m of u){const f=m.includes("/")?m.slice(0,m.indexOf("/")):"";d.set(f,[...d.get(f)??[],m])}return o.jsxs("div",{className:kt.modelo,children:[o.jsxs("label",{children:[o.jsx("span",{children:"Modelo"}),o.jsxs("select",{value:e.modelo??"","aria-label":`Modelo de ${v2[l]}`,disabled:!t||r===void 0||i,onChange:m=>{const f=m.target.value;r==null||r(f===""?{accion:"modelo",motor:l}:{accion:"modelo",motor:l,modelo:f})},children:[o.jsx("option",{value:"",children:i?"Pidiendo la lista…":"— Sin elegir —"}),[...d].map(([m,f])=>o.jsx("optgroup",{label:m===""?"Otros":m,children:f.map(h=>o.jsx("option",{value:h,children:h.slice(m.length===0?0:m.length+1)},h))},m))]})]}),(n==null?void 0:n.error)===void 0?null:o.jsxs("p",{className:kt.detalle,children:["No se pudo leer la lista: ",n.error]}),o.jsxs("p",{className:kt.nota,children:[e.modelo===void 0?"Sin modelo elegido, OpenCode usa uno de su tier gratuito, que solo funciona dentro de su propia consola. ":"","Elige uno de un proveedor con tu cuenta (por ejemplo, opencode-go si tienes OpenCode Go); los del proveedor «opencode» sin credencial suya no contestan desde aquí. Lo usan la prueba y los subagentes sin modelo propio."]})]})}function lX(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString("es",{hour:"2-digit",minute:"2-digit"})}const cX="_capa_1byta_9",uX="_velo_1byta_18",dX="_ventana_1byta_40",pX="_navegacion_1byta_52",mX="_marcaDeAjustes_1byta_66",hX="_placa_1byta_78",fX="_titulo_1byta_90",gX="_alcance_1byta_99",vX="_seccion_1byta_108",bX="_iconoDeSeccion_1byta_127",yX="_panel_1byta_143",xX="_encabezado_1byta_149",_X="_nota_1byta_155",wX="_vacio_1byta_156",jX="_filas_1byta_162",CX="_fila_1byta_162",kX="_cabeceraDeFila_1byta_188",NX="_nombre_1byta_194",SX="_textoDeProyecto_1byta_201",$X="_fechaDeProyecto_1byta_209",AX="_logo_1byta_219",EX="_identidad_1byta_226",DX="_idDeProveedor_1byta_237",zX="_estadoDeClave_1byta_248",TX="_url_1byta_235",MX="_detalle_1byta_255",LX="_punto_1byta_287",IX="_accion_1byta_311 _secundario_1l1rx_39",qX="_principal_1byta_320 _primario_1l1rx_67",RX="_peligro_1byta_327 _peligro_1l1rx_18",PX="_destructiva_1byta_325",FX="_confirmacion_1byta_346",OX="_formulario_1byta_355",BX="_etiqueta_1byta_362",HX="_campo_1byta_373",UX="_aviso_1byta_382",VX="_cerrar_1byta_392",GX="_subencabezado_1byta_409",WX="_elegirModelo_1byta_420",ZX="_casilla_1byta_200",QX="_botones_1byta_438",XX="_enlace_1byta_449",YX="_comando_1byta_495",KX="_subsubencabezado_1byta_511",JX="_iconoDeAjuste_1byta_523",eY="_campoConBoton_1byta_552",tY="_listaLarga_1byta_571",nY="_casillaEnLinea_1byta_579",rY="_filaBuscarEn_1byta_595",aY="_separador_1byta_611",oY="_subencabezadoPegado_1byta_608",sY="_medidoAlPie_1byta_625",iY="_filaDeConcurrencia_1byta_632",lY="_filaDeWorkspace_1byta_661",cY="_etiquetaDeWorkspace_1byta_671",uY="_accionesDeWorkspace_1byta_677",dY="_pistaEnLinea_1byta_708",pY="_pestanas_1byta_728",mY="_pestana_1byta_542",hY="_cuenta_1byta_208",fY="_panelDePestana_1byta_795",gY="_cabeceraDeProyectos_1byta_813",vY="_recargar_1byta_821",bY="_columnasDeProyectos_1byta_843",yY="_columnaDeProyectos_1byta_850",xY="_encabezadoDeColumna_1byta_859",_Y="_buscadorDeProyectos_1byta_881",wY="_lupa_1byta_886",jY="_filtroDeProyectos_1byta_895",CY="_filaDeNombre_1byta_910",kY="_etiquetaDeNombre_1byta_920",NY="_campoDeNombreConBoton_1byta_924",SY="_filaDeUrl_1byta_959",$Y="_anchoEntero_1byta_972",AY="_quitar_1byta_982 _peligro_1l1rx_18",EY="_quitarLleno_1byta_994",DY="_confirmarQuitar_1byta_1012",zY="_tituloDeAviso_1byta_1030",TY="_textoDeAviso_1byta_1035",MY="_casillaDeAviso_1byta_1047",LY="_escribirNombre_1byta_1048",IY="_tablaDeAvd_1byta_1076",qY="_filaDeAvd_1byta_1084",RY="_identidadDeAvd_1byta_1091",PY="_detalleDeAvd_1byta_1099",FY="_celdaDeAccion_1byta_1106",OY="_enMarcha_1byta_1142",BY="_girando_1byta_1151",HY="_sinGuardar_1byta_1177",UY="_listaDeMudanza_1byta_1194",X={capa:cX,velo:uX,ventana:dX,navegacion:pX,marcaDeAjustes:mX,placa:hX,titulo:fX,alcance:gX,seccion:vX,iconoDeSeccion:bX,panel:yX,encabezado:xX,nota:_X,vacio:wX,filas:jX,fila:CX,cabeceraDeFila:kX,nombre:NX,textoDeProyecto:SX,fechaDeProyecto:$X,logo:AX,identidad:EX,idDeProveedor:DX,estadoDeClave:zX,url:TX,detalle:MX,punto:LX,accion:IX,principal:qX,peligro:RX,destructiva:PX,confirmacion:FX,formulario:OX,etiqueta:BX,campo:HX,aviso:UX,cerrar:VX,subencabezado:GX,elegirModelo:WX,casilla:ZX,botones:QX,enlace:XX,comando:YX,subsubencabezado:KX,iconoDeAjuste:JX,campoConBoton:eY,listaLarga:tY,casillaEnLinea:nY,filaBuscarEn:rY,separador:aY,subencabezadoPegado:oY,medidoAlPie:sY,filaDeConcurrencia:iY,filaDeWorkspace:lY,etiquetaDeWorkspace:cY,accionesDeWorkspace:uY,pistaEnLinea:dY,pestanas:pY,pestana:mY,cuenta:hY,panelDePestana:fY,cabeceraDeProyectos:gY,recargar:vY,columnasDeProyectos:bY,columnaDeProyectos:yY,encabezadoDeColumna:xY,buscadorDeProyectos:_Y,lupa:wY,filtroDeProyectos:jY,filaDeNombre:CY,etiquetaDeNombre:kY,campoDeNombreConBoton:NY,filaDeUrl:SY,anchoEntero:$Y,quitar:AY,quitarLleno:EY,confirmarQuitar:DY,tituloDeAviso:zY,textoDeAviso:TY,casillaDeAviso:MY,escribirNombre:LY,tablaDeAvd:IY,filaDeAvd:qY,identidadDeAvd:RY,detalleDeAvd:PY,celdaDeAccion:FY,enMarcha:OY,girando:BY,sinGuardar:HY,listaDeMudanza:UY};function O5(e){if(e===void 0)return;if("progreso"in e){const{fase:r,proyecto:a,indice:l,total:i}=e.progreso,u=a===void 0?"":` «${a}»${l!==void 0&&i!==void 0?` (${l} de ${i})`:""}`;return r==="comprobar"?"Comprobando la carpeta nueva…":r==="copiar"?`Copiando${u}…`:r==="verificar"?`Comprobando que la copia${u} es idéntica…`:`Borrando del sitio de antes${u}…`}const t=e.resultado;if(t.estado==="rechazado")return;const n=[t.mudadas===0?"Carpeta cambiada.":`Carpeta cambiada: ${t.mudadas===1?"1 proyecto movido":`${t.mudadas} proyectos movidos`} y comprobados.`];return t.restos.length>0&&n.push(`No se pudo borrar del sitio de antes: ${t.restos.join(", ")} —algún programa tenía ficheros abiertos—; la copia buena ya está en la carpeta nueva, y lo de antes se puede borrar a mano.`),n.push(...t.avisos),n.join(" ")}function VY(e){const t=e.trim();if(t==="")return"escribe una carpeta: en blanco no es una elección";if(!(t==="~"||t.startsWith("~/")||t.startsWith("~\\"))){if(/^[a-zA-Z]:[\\/]/.test(t)||t.startsWith("\\\\"))return/^[a-zA-Z]:[\\/]*$/.test(t)?"la raíz de la unidad no: ahí cada entorno sería una carpeta de primer nivel del disco":void 0;if(!t.startsWith("/"))return"tiene que ser una ruta absoluta: que empiece por «/», por «~/» o, en Windows, por la unidad («C:\\…»)";if(t.replace(/\/+$/,"")==="")return"la raíz del disco no: ahí cada entorno sería una carpeta de primer nivel del sistema"}}function GY(e){const t=e.trim();if(t==="")return"escribe un nombre: uno sin nombre desaparece de la lista al volver a arrancar";if(t.length>B5)return`no puede pasar de ${B5} caracteres, que es lo que cabe en su pestaña`}const B5=60,WY=()=>{},ZY=[{id:"general",etiqueta:"General",Icono:R0},{id:"modelos",etiqueta:"Modelos",Icono:JE},{id:"motores",etiqueta:"Motores locales",Icono:GE},{id:"entornos",etiqueta:"Entornos",Icono:KE},{id:"agentes",etiqueta:"Subagentes",Icono:VE},{id:"skills",etiqueta:"Skills",Icono:eD},{id:"conectores",etiqueta:"Conectores",Icono:HE},{id:"dispositivos",etiqueta:"Dispositivos",Icono:UE}],QY=[{id:"android",etiqueta:"Android",detalle:"teléfonos y tablets por USB o por red, con adb",herramientas:["adb"],plataforma:"android",clases:["fisico"]},{id:"androidEmulador",etiqueta:"Android Sim",detalle:"los AVD del emulador del SDK",herramientas:["emulator","adb"],plataforma:"android",clases:["emulador"]},{id:"ios",etiqueta:"iOS",detalle:"iPhone y iPad conectados, con devicectl (Xcode 15+)",herramientas:["devicectl"],plataforma:"ios",clases:["fisico"]},{id:"iosSimulador",etiqueta:"iOS Sim",detalle:"los simuladores de Xcode, con simctl",herramientas:["xcrun"],plataforma:"ios",clases:["simulador"]}],H5=[{nombre:"adb",etiqueta:"adb",para:"hablar con teléfonos, tablets y emuladores de Android"},{nombre:"emulator",etiqueta:"emulator",para:"listar y arrancar los AVD del SDK de Android"},{nombre:"xcrun",etiqueta:"Xcode command line tools",para:"los simuladores de iOS (simctl)"},{nombre:"devicectl",etiqueta:"devicectl",para:"los iPhone y iPad conectados (Xcode 15+)"}],U5={adb:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",emulator:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\emulator\\emulator.exe"},XY={mac:{adb:"~/Library/Android/sdk/platform-tools/adb",emulator:"~/Library/Android/sdk/emulator/emulator"},windows:U5,linux:{adb:"~/Android/Sdk/platform-tools/adb",emulator:"~/Android/Sdk/emulator/emulator"},otro:U5},YY=e=>XY[e??"windows"],KY=["android","ios"],v0={android:"Android",ios:"iOS"},V5="los simuladores y dispositivos iOS solo se detectan en macOS";function JY(e,t){const n=(r,a)=>((r==null?void 0:r.trim())??"")===((a==null?void 0:a.trim())??"");return y6.every(r=>Tp(e,r)===Tp(t,r))&&n(e.rutaAdb,t.rutaAdb)&&n(e.rutaEmulator,t.rutaEmulator)}function eK(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const G5={ok:"disponible","no-encontrada":"no está instalada",fallo:"falló","no-aplica":"no aplica en este sistema",desactivada:"no se ha mirado"};function tK({proveedores:e=[],entornos:t=[],proyectos:n=[],proyectosPorEntorno:r={},alPedirProyectosDeEntorno:a,alQuitarEntorno:l,alRenombrarEntorno:i,avisoDelAlta:u,entornoActivo:d,seccionInicial:m,secreto:f,dispositivos:h,ajustesDeDispositivos:b,alCambiarDispositivos:y,alActualizarDispositivos:g,alAbrirCarpetaDeHerramienta:_,alInstalarHerramienta:C,alVerificarDispositivo:k,alArrancarEmulador:S,arranqueDeEmulador:A,alAjustarAvd:I,alPararEmulador:M,alCrearEmulador:L,alEliminarEmulador:F,modelosDeMotor:G,alPedirModelosDeMotor:O,motoresLocales:B,alMotorLocal:W,alPedirCatalogo:re,modeloPorDefecto:fe,alElegirModelo:he,instalacion:ne,alEjecutarPaso:we,alCancelarPaso:je,conectado:J=!0,agentes:oe,hayProyecto:R,alGuardarAgente:q,alBorrarAgente:ee,alRestaurarAgente:z,skills:ke,cuerposDeSkill:pe,alPedirCuerpoDeSkill:Me,alGuardarSkill:ge,alBorrarSkill:ze,alInstalarSkill:Pe,conectores:qe,alAccionDeConector:Nt,alCrearDeConector:Kt,alPedirClave:Ut,alBorrarClave:Rn,alRegistrarEntorno:Wn,alAltaDeProveedor:$n,alBajaDeProveedor:wr,resultadoDeProveedor:mn,alElegirProyectos:aa,alResponderSecreto:nn,tareas:An,alCambiarConcurrencia:qr,workspace:Rr,alCambiarWorkspace:hn,alPlanearWorkspace:ba,mudanzaDeWorkspace:le,depuracionActiva:Ce,alCambiarDepuracion:Ze,modoPorDefecto:st,temas:vt,modoEnVigor:Pt,alCambiarTema:jr,alCambiarModoPorDefecto:Pn,alElegirCarpeta:oa,carpetaElegida:En,alCerrar:rn}){var ri,_o,ai;const[$t,Dn]=$.useState(()=>m??"general"),[Pr,Fr]=$.useState(void 0),[Cr,ya]=$.useState(void 0),on=Cr??b??{},Bi=Cr!==void 0&&!JY(Cr,b??{}),[Hi,xa]=$.useState(void 0),_a=()=>{if($t==="dispositivos"&&Bi)return"Dispositivos";if($t==="general"&&Oa)return"la carpeta donde se bajan los proyectos"},ms=Y=>{Uo!=="en-curso"&&(_a()!==void 0&&Y!==$t?xa(()=>()=>Dn(Y)):Dn(Y))},hs=()=>{Uo!=="en-curso"&&(_a()!==void 0?xa(()=>rn):rn())},[Pa,Fa]=$.useState(void 0),wa=Pa??Rr??"",ar=VY(wa),Oa=Pa!==void 0&&Pa.trim()!==(Rr??""),[fs,sn]=$.useState(()=>(En==null?void 0:En.n)??0),[ja,ti]=$.useState(!1);En!==void 0&&En.n!==fs&&(sn(En.n),ti(!1),En.ruta!==void 0&&Fa(En.ruta));const[sa,Ui]=$.useState(!1),[Or,Br]=$.useState(void 0),[zn,Ho]=$.useState(void 0),Vi=le!==void 0&&"progreso"in le,Uo=zn===void 0?Vi?"en-curso":void 0:zn.negativa!==void 0?"final":zn.aplicada===void 0?"confirmar":le!==zn.aplicada.antes&&le!==void 0&&"resultado"in le?"final":"en-curso",gs=sa||Vi||zn!==void 0,Gi=async Y=>{const Oe=await(hn==null?void 0:hn(Y));if(typeof Oe=="string"){Br(Oe);return}Fa(void 0)},Jl=async Y=>{if(Br(void 0),ba===void 0){await Gi(Y);return}Ui(!0);const Oe=await ba(Y).catch(()=>{});Ui(!1),Oe===void 0?Br("no se pudo preguntar al servidor qué se movería: no se ha cambiado nada"):Oe.motivo!==void 0?Br(Oe.motivo):Oe.proyectos.length===0?await Gi(Y):Ho({ruta:Y,plan:Oe})},ec=async()=>{if(zn===void 0)return;Ho({...zn,aplicada:{antes:le}});const Y=await(hn==null?void 0:hn(zn.ruta));typeof Y=="string"?Ho(Oe=>Oe===void 0?Oe:{...Oe,negativa:Y}):Fa(void 0)},[Ft,Wi]=$.useState(()=>le),ia=Uo===void 0&&le!==void 0&&le!==Ft&&"resultado"in le&&le.resultado.estado==="rechazado"?le.resultado.motivo:void 0,vs=Or??ia,mo=()=>{Br(void 0),Wi(le)},tc=()=>{Ho(void 0),Wi(le)},[nc,Hr]=$.useState(void 0),[Fn,ho]=$.useState(!1),[Wt,bs]=$.useState(!1),[Vo,ys]=$.useState(""),[fo,Ba]=$.useState(""),Ha=Y=>{Y!==null&&typeof Y.scrollIntoView=="function"&&Y.scrollIntoView({block:"nearest",behavior:"smooth"})},[Ua,Va]=$.useState(void 0),[go,Ca]=$.useState(""),[rc,Go]=$.useState(()=>{var Y;return d??((Y=t[0])==null?void 0:Y.id)}),xt=((ri=t.find(Y=>Y.id===rc))==null?void 0:ri.id)??d??((_o=t[0])==null?void 0:_o.id),vo=Y=>{if(Y===void 0)return{};const Oe=r[Y];return Oe!==void 0?Oe:Y===d&&n.length>0?{proyectos:n}:{}},[Zi,_t]=$.useState({}),[xs,Wo]=$.useState({}),[ni,_s]=$.useState({}),ws=Y=>{var hr;if(Y===void 0)return[];const Oe=Zi[Y];if(Oe!==void 0)return Oe;const bt=(hr=t.find(Tn=>Tn.id===Y))==null?void 0:hr.proyectos;return bt!==void 0?bt:(vo(Y).proyectos??[]).slice(0,sm).map(Tn=>Tn.id)},{proyectos:Zo,error:dr}=vo(xt);$.useEffect(()=>{$t!=="entornos"||Fn||xt===void 0||a===void 0||Zo!==void 0||dr!==void 0||a(xt)},[$t,Fn,xt,Zo,dr]),$.useEffect(()=>{xt!==void 0&&Wo(Y=>Y[xt]===!0?{...Y,[xt]:!1}:Y)},[Zo,dr]),h4($t==="dispositivos",g);const Ur=Kl(h==null?void 0:h.medido,J),[Vr,Gr]=$.useState(void 0),[wn,bo]=$.useState(void 0),Ga=Y=>{if(Y.preventDefault(),!dm(go)){Gr(d4);return}Gr(void 0),bo({entornos:t.length,...u===void 0?{}:{aviso:u}}),Wn(go),Ca("")};$.useEffect(()=>{wn===void 0||t.length<=wn.entornos||(bo(void 0),ho(!1))},[wn,t.length]);const pr=wn!==void 0&&u!==void 0&&u!==wn.aviso?u:void 0,Qi=Wt?mn==null?void 0:mn.motivo:void 0;$.useEffect(()=>{!Wt||(mn==null?void 0:mn.hecho)!==!0||(bs(!1),ys(""),Ba(""))},[Wt,mn]);const Xi=Y=>{Y.preventDefault(),dm(fo)&&($n==null||$n(Vo,fo))},js=e.filter(Y=>Y.personalizado!==!0),ac=e.filter(Y=>Y.personalizado===!0),yo=Y=>o.jsxs("li",{className:X.fila,"data-columna":"",children:[o.jsxs("div",{className:X.cabeceraDeFila,children:[o.jsx(c2,{proveedor:Y.id,size:22,className:X.logo}),o.jsxs("span",{className:X.identidad,children:[o.jsx("span",{className:X.nombre,children:Y.nombre}),o.jsx("span",{className:X.idDeProveedor,title:Y.baseUrl===void 0?Y.id:`${Y.id} · ${Y.baseUrl}`,children:Y.baseUrl===void 0?Y.id:`${Y.id} · ${Y.baseUrl}`})]}),o.jsxs("span",{className:X.estadoDeClave,children:[Y.credencial==="nativa"?null:o.jsx("span",{className:X.punto,"data-credencial":Y.credencial,"aria-label":Y.credencial==="puesta"?"con credencial":"sin credencial"}),o.jsx("span",{className:X.detalle,children:Y.credencial==="nativa"?"local, no necesita clave":Y.credencial==="puesta"?Y.enFichero===!0?"clave guardada":"clave de una variable de entorno":"sin clave"})]}),Y.credencial==="nativa"?null:o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{Va(void 0),Hr(Y.id),Ut(Y.id)},children:Y.credencial==="puesta"?"Cambiar clave":"Añadir clave"}),Y.enFichero===!0?o.jsx(Le,{variant:"outline",className:X.peligro,onClick:()=>{Hr(void 0),Va(Y.id)},children:"Eliminar"}):null,Y.personalizado===!0&&wr!==void 0?o.jsx(Le,{variant:"outline",className:X.accion,disabled:!J,onClick:()=>{Hr(void 0),Va(`baja:${Y.id}`)},children:"Dar de baja"}):null]}),Ua===`baja:${Y.id}`?o.jsxs("p",{className:X.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Dar de baja «",Y.nombre,"»? Se borra también su clave del fichero de credenciales."]}),o.jsxs(Le,{variant:"outline",className:X.accion,onClick:()=>{Va(void 0),wr==null||wr(Y.id.replace(/^custom:/,""))},children:["Dar de baja «",Y.nombre,"»"]}),o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>Va(void 0),children:"Cancelar"})]}):null,nc===Y.id&&f!==void 0?o.jsx("div",{ref:Ha,children:o.jsx(Ll,{texto:f,oculta:!0,anidado:!0,alResponder:async Oe=>{await nn(Oe),Hr(void 0)}})}):null,Ua===Y.id?o.jsxs("p",{className:X.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Borrar la clave de ",Y.id," del fichero de credenciales?"]}),o.jsxs(Le,{variant:"outline",className:X.accion,onClick:()=>{Va(void 0),Rn(Y.id)},children:["Borrar la de ",Y.id]}),o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>Va(void 0),children:"Cancelar"})]}):null]},Y.id),[mr,Cs]=$.useState("android"),[kr,Wa]=$.useState(new Set),Qo=Y=>Wa(Oe=>{const bt=new Set(Oe);return bt.has(Y)?bt.delete(Y):bt.add(Y),bt}),Za=Y=>Y==="adb"?"rutaAdb":"rutaEmulator",xo=Y=>((h==null?void 0:h.herramientas)??[]).filter(Oe=>Oe.plataforma===Y),oc=Y=>xo(Y).filter(Oe=>Oe.estado==="no-encontrada"||Oe.estado==="fallo").length,Qa=h===void 0?[]:H5.filter(Y=>!h.herramientas.some(Oe=>Oe.nombre===Y.nombre));return o.jsxs(o.Fragment,{children:["// Un modal DE VERDAD: ni Escape ni el clic fuera lo cierran, solo su botón de cerrar // (que pasa por `alIntentarCerrar`: con un borrador sucio, cerrar decide si se pierde).",o.jsx(rr,{open:!0,onClose:WY,title:"Ajustes",headless:!0,className:X.capa,children:o.jsx("div",{className:X.velo,children:o.jsxs("div",{className:X.ventana,children:[o.jsxs("nav",{className:X.navegacion,"aria-label":"Secciones de ajustes",children:[o.jsxs("div",{className:X.marcaDeAjustes,children:[o.jsx("span",{className:X.placa,"aria-hidden":"true",children:o.jsx(R0,{size:16})}),o.jsxs("span",{children:[o.jsx("span",{className:X.titulo,children:"Ajustes"}),o.jsx("span",{className:X.alcance,children:"Configuración global"})]})]}),ZY.filter(Y=>Y.id!=="conectores"||qe!==void 0).map(Y=>o.jsxs("button",{type:"button",className:X.seccion,"data-actual":Y.id===$t?"":void 0,"aria-current":Y.id===$t?"page":void 0,onClick:()=>ms(Y.id),children:[o.jsx(Y.Icono,{size:16,className:X.iconoDeSeccion}),Y.etiqueta]},Y.id))]}),o.jsxs("div",{className:X.panel,children:[$t==="motores"?o.jsx(oX,{...B===void 0?{}:{motores:B},conectado:J,...oe===void 0?{}:{agentes:oe.lista},...W===void 0?{}:{alAccion:W},...G===void 0?{}:{modelosDeMotor:G},...O===void 0?{}:{alPedirModelosDeMotor:O}}):null,$t==="dispositivos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Dispositivos"}),o.jsx("p",{className:X.nota,children:"Dónde se prueba la app. Se guarda con el equipo y no con el proyecto: el mismo Mac tiene los mismos simuladores para todos."}),o.jsx("div",{className:X.pestanas,role:"tablist","aria-label":"Plataformas",children:KY.map(Y=>{const Oe=oc(Y),bt=Y==="ios"&&(h==null?void 0:h.sistema)!==void 0&&h.sistema!=="mac";return o.jsxs("button",{type:"button",role:"tab",className:X.pestana,"aria-selected":Y===mr,"aria-disabled":bt?!0:void 0,disabled:bt,title:bt?V5:void 0,"aria-label":bt?`${v0[Y]}, ${V5}`:Oe===0?v0[Y]:`${v0[Y]}, ${Oe} por instalar`,"data-actual":Y===mr?"":void 0,onClick:bt?void 0:()=>Cs(Y),children:[v0[Y],Oe===0?null:o.jsx("span",{className:X.cuenta,"aria-hidden":!0,children:Oe})]},Y)})}),o.jsxs("div",{role:"tabpanel",className:X.panelDePestana,"aria-label":v0[mr],children:[o.jsx("h3",{className:X.subencabezado,children:"Requisitos"}),h===void 0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):xo(mr).length===0?o.jsx("p",{className:X.vacio,children:"La medida de este equipo no nombra ninguna herramienta de esta plataforma."}):o.jsx("ul",{className:X.filas,children:xo(mr).map(Y=>{const Oe=H5.find(Tn=>Tn.nombre===Y.nombre),bt=Y.nombre==="adb"||Y.nombre==="emulator"?Y.nombre:void 0,hr=bt!==void 0&&kr.has(bt);return o.jsxs($.Fragment,{children:[o.jsxs("li",{className:X.fila,children:[o.jsx("span",{className:X.punto,"data-herramienta":Y.estado,"aria-label":G5[Y.estado]}),o.jsx("span",{className:X.nombre,children:(Oe==null?void 0:Oe.etiqueta)??Y.nombre}),o.jsxs("span",{className:X.detalle,children:[G5[Y.estado],Oe===void 0?"":` · ${Oe.para}`,Y.detalle===void 0||Y.estado==="ok"?null:` · ${Y.detalle}`]}),Y.instalar===void 0?null:Y.instalar.automatico?o.jsx(Le,{variant:"outline",className:X.accion,disabled:!J||C===void 0,title:Y.instalar.comando,onClick:()=>C==null?void 0:C(Y.nombre),children:"Instalar"}):o.jsx("code",{className:X.comando,title:"cópialo en un terminal",children:Y.instalar.comando}),bt===void 0?null:o.jsx("button",{type:"button",className:X.iconoDeAjuste,"aria-label":`Ajustes de ruta de ${(Oe==null?void 0:Oe.etiqueta)??Y.nombre}`,"aria-expanded":hr,onClick:()=>Qo(bt),children:o.jsx(R0,{size:16})})]}),bt===void 0||!hr?null:o.jsxs("li",{className:X.fila,"data-columna":!0,children:[o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Ruta actual"}),o.jsxs("div",{className:X.campoConBoton,children:[o.jsx("input",{type:"text",value:Y.ruta??"",disabled:!0,placeholder:"no encontrada","aria-label":`Ruta actual de ${(Oe==null?void 0:Oe.etiqueta)??Y.nombre}`}),Y.ruta===void 0||_===void 0?null:o.jsx("button",{type:"button",className:X.accion,title:"Abre esa carpeta en el explorador del sistema donde corre la consola",disabled:!J,onClick:()=>_(bt),children:"Abrir carpeta"})]})]}),y===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Ruta personalizada"}),o.jsx("input",{type:"text",value:on[Za(bt)]??"",spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":`Ruta personalizada de ${(Oe==null?void 0:Oe.etiqueta)??Y.nombre}`,placeholder:YY(h==null?void 0:h.sistema)[bt],disabled:!J,onChange:Tn=>ya({...on,[Za(bt)]:Tn.target.value})})]}),o.jsx("p",{className:X.nota,children:"Vacío = se busca en el PATH y en el SDK, como hasta ahora."}),o.jsx("div",{className:X.accionesDeWorkspace,children:o.jsx("button",{type:"button",className:X.accion,disabled:!J||!Bi,onClick:()=>{y(on),ya(void 0)},children:"Guardar"})})]})]},`${Y.nombre}-ajustes`)]},Y.nombre)})}),((h==null?void 0:h.recetas)??[]).filter(Y=>Y.plataforma===mr).map(Y=>o.jsx(DQ,{receta:Y,...ne===void 0?{}:{instalacion:ne},...J&&we!==void 0?{alEjecutar:Oe=>we(Y.id,Oe)}:{},...J&&je!==void 0?{alCancelar:()=>je(Y.id)}:{}},Y.id)),y===void 0?null:o.jsxs("div",{className:X.filaBuscarEn,children:[o.jsx("span",{children:"Buscar en:"}),QY.filter(Y=>Y.plataforma===mr).map(Y=>o.jsxs("label",{className:X.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:Tp(on,Y.id),disabled:!J,onChange:()=>ya({...on,[Y.id]:!Tp(on,Y.id)})}),Y.etiqueta]},Y.id))]}),o.jsx("hr",{className:X.separador}),o.jsx("h3",{className:`${X.subencabezado} ${X.subencabezadoPegado}`,children:"Dispositivos y emuladores"}),h===void 0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):(()=>{const{fisicos:Y,virtuales:Oe}=k8(h),bt=it=>it.filter(Mt=>Mt.plataforma===mr),hr=bt(Y),Tn=bt(Oe),ka=h.dispositivos.flatMap(it=>it.avd!==void 0&&it.estado!=="apagado"&&it.estado!=="no-disponible"?[it.avd]:[]);return o.jsxs(o.Fragment,{children:[o.jsx("h4",{className:X.subsubencabezado,children:"Teléfonos y tablets"}),hr.length===0?o.jsx("p",{className:X.vacio,children:"Ninguno conectado."}):o.jsx("ul",{className:X.filas,children:hr.map(it=>o.jsxs("li",{className:X.fila,children:[o.jsx("span",{className:X.punto,"data-herramienta":zi(it)?"ok":"otro","aria-label":Pl(it)}),o.jsx("span",{className:X.nombre,children:it.nombre}),o.jsxs("span",{className:X.detalle,children:[Pl(it),it.detalle===void 0?"":` · ${it.detalle}`]}),o.jsx(h2,{dispositivo:it,conectado:J,medidoDeLaFoto:h.medido,...k===void 0?{}:{alVerificar:k}})]},it.id))}),o.jsx("h4",{className:X.subsubencabezado,children:"Simuladores y emuladores"}),Tn.length===0?o.jsx("p",{className:X.vacio,children:"Ninguno disponible."}):o.jsx("ul",{className:`${X.filas} ${X.listaLarga} ${X.tablaDeAvd}`,children:Tn.map(it=>{var Lt,On,Zn;const Mt=it.soloDefinicion===!0?it.nombre:it.clase==="emulador"?it.avd:void 0,Qe=it.soloDefinicion!==!0&&it.clase==="emulador"&&(it.estado==="conectado"||it.estado==="arrancado");return o.jsxs("li",{className:`${X.fila} ${X.filaDeAvd}`,children:[o.jsx("span",{className:X.punto,"data-herramienta":zi(it)?"ok":"otro","aria-label":Pl(it)}),o.jsxs("span",{className:X.identidadDeAvd,children:[o.jsx("span",{className:X.nombre,children:it.nombre}),o.jsx("span",{className:X.detalleDeAvd,children:Pl(it)}),Mt===void 0||((On=(Lt=b==null?void 0:b.avds)==null?void 0:Lt[Mt])==null?void 0:On.copiaDe)===void 0?null:o.jsxs("span",{className:X.detalleDeAvd,children:[b.avds[Mt].clon===!0?"clon de":"copia de"," ",b.avds[Mt].copiaDe]})]}),Mt===void 0||I===void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{}),o.jsx("span",{})]}):o.jsx(bG,{avd:Mt,ajuste:(Zn=b==null?void 0:b.avds)==null?void 0:Zn[Mt],conPuerto:h.avds.length>=2,conectado:J,...b===void 0?{}:{ajustes:b},alCambiar:Nr=>I(Mt,Nr)}),o.jsx("span",{className:X.celdaDeAccion,children:it.soloDefinicion===!0&&S!==void 0?o.jsx(uG,{avd:it.nombre,conectado:J,alArrancar:S,...(A==null?void 0:A.avd)===it.nombre?{resultado:A}:{}}):Qe&&Mt!==void 0&&M!==void 0?o.jsx("span",{className:Po.envoltura,children:o.jsx("button",{type:"button",className:Po.boton,disabled:J!==!0,title:`Para ${Mt}`,onClick:()=>M(it.id),children:"Parar"})}):null}),o.jsx("span",{className:X.celdaDeAccion,children:o.jsx(h2,{dispositivo:it,conectado:J,medidoDeLaFoto:h.medido,...k===void 0?{}:{alVerificar:k}})}),o.jsx("span",{className:X.celdaDeAccion,children:Mt===void 0||F===void 0?null:(()=>{const Nr=Ry(Mt,h.avds,ka);return o.jsx("button",{type:"button",className:X.peligro,disabled:J!==!0||Nr!==void 0,title:Nr===void 0?`Elimina el emulador ${Mt}`:Nr,"aria-label":Nr===void 0?`Eliminar ${Mt}`:`Eliminar ${Mt} (no se puede: ${Nr})`,onClick:()=>Fr(Mt),children:"Eliminar"})})()})]},it.id)})}),mr==="android"&&L!==void 0?o.jsx(AG,{avds:h.avds,conectado:J,alCrear:L,enMarcha:h.dispositivos.flatMap(it=>it.avd!==void 0&&it.estado!=="apagado"&&it.estado!=="no-disponible"?[it.avd]:[]),...(ne==null?void 0:ne.receta)==="crear-avd"?{progreso:ne}:{}}):null,Pr!==void 0&&F!==void 0?o.jsx(TG,{avd:Pr,alConfirmar:()=>F(Pr),alCerrar:()=>Fr(void 0),...(ne==null?void 0:ne.receta)==="borrar-avd"?{progreso:ne}:{}}):null]})})()]}),o.jsxs("p",{className:`${X.nota} ${X.medidoAlPie}`,children:[h===void 0?"Todavía no ha llegado ninguna medida de este equipo.":`Medido a las ${eK(h.medido)}. Lo que no se busca no se mide: adb arranca un demonio que se queda vivo, y xcrun tarda segundos.`," ",g===void 0?null:o.jsxs("button",{type:"button",className:X.enlace,title:P8,disabled:!J||Ur.esperando,"aria-busy":Ur.esperando,onClick:()=>{Ur.empezar(),g()},children:[Ur.esperando?o.jsx(Pi,{}):null,"Refrescar"]})]}),Qa.length===0?null:o.jsxs("p",{className:X.nota,children:["La medida no nombra ",Qa.map(Y=>Y.etiqueta).join(", "),": no se puede decir si"," ",Qa.length===1?"está":"están","."]}),o.jsx("p",{className:X.nota,children:"XOneCode los DESCUBRE, instala lo que falta, arranca un emulador de Android y verifica la conexión con uno. Elegir con cuál trabaja el agente es una decisión de la sesión, no de esta ventana; conectar por red, arrancar un simulador de iOS o instalar la app no están cableados todavía."})]}):null,$t==="general"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"General"}),o.jsx("p",{className:X.nota,children:"Lo que vale para toda la máquina y no para un proyecto. Se guarda con el equipo, como los dispositivos."}),Rr===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Dónde se bajan los proyectos"}),o.jsxs("p",{className:X.nota,children:["Cada proyecto que bajas de CloudStudio se copia dentro, en"," ",o.jsx("code",{children:"<entorno>/<proyecto>"}),". El nivel del entorno no es decoración: el mismo proyecto puede existir en dos servidores a la vez."]}),o.jsxs("label",{className:X.filaDeWorkspace,children:[o.jsx("span",{className:X.etiquetaDeWorkspace,children:"Carpeta"}),o.jsx("input",{type:"text",value:wa,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":"Carpeta donde se bajan los proyectos",title:wa,"aria-invalid":ar===void 0?void 0:!0,disabled:!J||hn===void 0||gs,onChange:Y=>{Fa(Y.target.value),Br(void 0)}})]}),Oa&&!gs&&ar===void 0?o.jsx("p",{className:X.sinGuardar,role:"status",children:"Sin guardar: la carpeta no cambia hasta que pulses «Guardar»."}):null,o.jsxs("div",{className:X.accionesDeWorkspace,children:[oa===void 0?null:o.jsx("button",{type:"button",className:X.accion,title:"Abre el selector de carpetas del sistema, en la máquina donde corre la consola",disabled:!J||ja||gs,onClick:()=>{ti(!0),oa()},children:ja?"Abriendo…":"Examinar…"}),o.jsx("button",{type:"button",className:X.accion,disabled:!J||hn===void 0||!Oa||ar!==void 0||gs,onClick:()=>void Jl(wa.trim()),children:sa?"Comprobando…":"Guardar"})]}),ja||sa?o.jsxs("p",{className:X.enMarcha,role:"status",children:[o.jsx("span",{className:X.girando,"aria-hidden":"true"}),ja?"Esperando la carpeta que elijas en la ventana del sistema…":"Comprobando qué se movería a la carpeta nueva…"]}):null,ar===void 0?null:o.jsx("p",{className:X.nota,role:"alert",children:ar}),o.jsx("p",{className:X.nota,children:"Cambiarla MUEVE lo que ya está bajado a la carpeta nueva: se copia, se comprueba que la copia es idéntica y se borra del sitio de antes. No se puede con un chat trabajando ni con tareas de fondo sin terminar."})]}),Ce===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Depurar"}),o.jsxs("label",{className:X.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:Ce,disabled:!J||Ze===void 0,onChange:()=>Ze==null?void 0:Ze(!Ce)}),"Dejar rastro de cuelgues y coste sin tener que pedirlo a mano"]}),o.jsxs("p",{className:X.nota,children:["Mientras dure esta etapa de pruebas, va encendida por omisión. Deja"," ",o.jsx("code",{children:"traza-errores.jsonl"})," (excepciones tragadas y cuánto tarda cada paso —la que sirve para un cuelgue) y ",o.jsx("code",{children:"traza-tools.jsonl"})," (coste de tokens) en la carpeta ",o.jsx("code",{children:".xonecode/"})," del proyecto: no suben a CloudStudio y el agente no puede leerlos. Solo afecta a las conversaciones que abras a partir de ahora, no a la que tengas abierta. Apágala si te sobra el ruido."]})]}),vt===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Temas"}),o.jsx("p",{className:X.nota,children:"Un tema para el modo claro y otro para el oscuro. Elegir uno del otro modo pone la consola en ese modo; también lo cambias en la cabecera. Se recuerda en este navegador."}),["claro","oscuro"].map(Y=>o.jsx(cG,{modo:Y,elegido:vt[Y],enVigor:Pt===void 0||Pt===Y,rotulo:Y==="claro"?"Tema claro":"Tema oscuro",alElegir:Oe=>jr==null?void 0:jr(Y,Oe)},Y))]}),st===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:X.subencabezado,children:"Conversaciones nuevas"}),o.jsx(N8,{actual:st,conectado:J&&Pn!==void 0,rotulo:"modo de escritura de las conversaciones nuevas",alElegir:Y=>Pn==null?void 0:Pn(Y)}),o.jsx("p",{className:X.nota,children:"El modo con el que empieza cada conversación nueva de esta consola web, en cualquier proyecto (el terminal sigue empezando en supervisado). Un proyecto puede tener el suyo (en su panel, pestaña Resumen), y entonces manda el del proyecto. No cambia las conversaciones que ya existen, ni las tareas de fondo; y en cada conversación se puede cambiar en la caja del chat."})]}),o.jsx("h3",{className:X.subencabezado,children:"Tareas"}),o.jsx("p",{className:X.nota,children:"Las tareas son los encargos que corren solos, sin nadie delante: la pestaña «Tareas» del proyecto abierto y el tablero del escritorio. El número de abajo decide cuántas corren a la vez en este Mac, no en un proyecto."}),o.jsxs("label",{className:X.filaDeConcurrencia,children:["Tareas a la vez",o.jsx("input",{type:"number",min:0,max:8,value:(An==null?void 0:An.concurrencia)??2,disabled:!J||qr===void 0,onChange:Y=>qr==null?void 0:qr(Math.max(0,Math.min(8,Math.trunc(Number(Y.target.value)))))}),o.jsx("span",{className:X.pistaEnLinea,children:"— las del mismo proyecto van siempre en serie"})]}),((An==null?void 0:An.concurrencia)??2)===0?o.jsx("p",{className:X.nota,role:"alert",children:"Con 0 la cola queda PAUSADA: nada nuevo arranca."}):null]}):null,$t==="modelos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Modelo por defecto"}),o.jsx("p",{className:X.nota,children:"El que usarán las sesiones nuevas. Se guarda para los tres papeles —rápido, trabajo y afilado— en el config global de tu cuenta, no en el proyecto, y cada sesión puede cambiarlo en caliente sin tocar esto."}),he===void 0||re===void 0?o.jsx("p",{className:X.vacio,children:"Esta ejecución no puede fijar el modelo por defecto."}):o.jsx("div",{className:X.elegirModelo,children:o.jsx(C8,{...fe===void 0?{}:{actual:fe},proveedores:e,alPedirCatalogo:re,alElegir:he,titulo:"Modelo por defecto",enLinea:!0})}),o.jsx("h3",{className:X.subencabezado,children:"Proveedores"}),o.jsx("p",{className:X.nota,children:"La clave se guarda con permisos 0600 en el fichero de credenciales de XOneCode, nunca en el navegador."}),e.length===0?o.jsx("p",{className:X.vacio,children:"Todavía no ha llegado el estado de modelos."}):Wt?o.jsxs("form",{className:X.formulario,ref:Ha,onSubmit:Xi,children:[o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-proveedor-nombre",children:"Nombre"}),o.jsx(La,{id:"ajustes-proveedor-nombre",className:X.campo,value:Vo,placeholder:"Mi LM Studio",onChange:Y=>ys(Y.target.value)}),o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-proveedor-url",children:"URL base compatible con OpenAI"}),o.jsx(La,{id:"ajustes-proveedor-url",className:X.campo,value:fo,placeholder:"http://localhost:1234/v1",onChange:Y=>Ba(Y.target.value)}),o.jsxs("p",{className:X.nota,children:["Se le pedirá ",o.jsx("code",{children:"<URL base>/models"})," para listar sus modelos. La clave se añade después, en su fila: así viaja por el único mensaje que lleva credenciales. Debe ser https, salvo en 127.0.0.1 o localhost."]}),Qi!==void 0?o.jsx("p",{className:X.aviso,role:"alert",children:Qi}):null,o.jsxs("div",{className:X.botones,children:[o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{bs(!1),ys(""),Ba("")},children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:X.principal,children:"Añadir"})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("ul",{className:X.filas,children:js.map(yo)}),o.jsx("h3",{className:X.subencabezado,children:"Personalizados"}),o.jsx("p",{className:X.nota,children:"Cualquier servidor que hable la API de OpenAI: LM Studio, llama.cpp, vLLM o un endpoint de tu empresa. La URL y el nombre se guardan en el config global de tu cuenta, nunca en el del proyecto."}),$n===void 0?o.jsx("p",{className:X.vacio,children:"Esta ejecución no puede dar de alta proveedores."}):o.jsx(Le,{variant:"outline",className:X.accion,disabled:!J,onClick:()=>bs(!0),children:"Añadir un proveedor"}),ac.length===0?o.jsx("p",{className:X.vacio,children:"No hay ninguno todavía."}):o.jsx("ul",{className:X.filas,children:ac.map(yo)})]})]}):null,$t==="entornos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Entornos de CloudStudio"}),o.jsx("p",{className:X.nota,children:"Un entorno es un servidor CloudStudio. Lo único que se teclea es su URL: el nombre lo dice el propio servidor al conectarse."}),Fn?null:o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>ho(!0),children:"Registrar un entorno"}),Fn?o.jsxs("form",{className:X.formulario,ref:Ha,onSubmit:Ga,children:[o.jsx("label",{className:X.etiqueta,htmlFor:"ajustes-url",children:"URL del MCP"}),o.jsx(La,{id:"ajustes-url",className:X.campo,value:go,placeholder:"https://mcp.ejemplo.com/mcp",onChange:Y=>Ca(Y.target.value)}),Vr!==void 0?o.jsx("p",{className:X.aviso,role:"alert",children:Vr}):null,pr===void 0?null:o.jsx("p",{className:X.aviso,role:"alert",children:pr}),o.jsxs("div",{className:X.botones,children:[o.jsx(Le,{variant:"outline",className:X.accion,onClick:()=>{ho(!1),bo(void 0),Ca("")},children:"Cancelar"}),o.jsx(Le,{type:"submit",variant:"primary",className:X.principal,children:"Registrar"})]})]}):null,Fn?null:t.length===0?o.jsx("p",{className:X.vacio,children:"No hay ninguno registrado todavía."}):o.jsx("div",{className:X.pestanas,role:"tablist","aria-label":"Entornos registrados",children:t.map(Y=>o.jsxs("button",{type:"button",role:"tab",className:X.pestana,"aria-selected":Y.id===xt,"data-actual":Y.id===xt?"":void 0,onClick:()=>Go(Y.id),children:[o.jsx(o4,{entorno:Y.id,size:18,className:X.logo}),Y.nombre]},Y.id))}),!Fn&&xt!==void 0?o.jsxs("div",{role:"tabpanel",className:X.panelDePestana,children:[i===void 0?null:o.jsx(oK,{entorno:t.find(Y=>Y.id===xt),nombresDeOtros:t.filter(Y=>Y.id!==xt).map(Y=>Y.nombre),conectado:J,alRenombrar:i},xt),o.jsxs("div",{className:X.filaDeUrl,children:[o.jsx("p",{className:X.url,children:(ai=t.find(Y=>Y.id===xt))==null?void 0:ai.url}),l===void 0?null:o.jsx(sK,{entorno:t.find(Y=>Y.id===xt),conectado:J,alQuitar:l},xt)]}),o.jsxs("div",{className:X.cabeceraDeProyectos,children:[o.jsx("h3",{className:X.subencabezado,children:"Proyectos en la barra"}),a===void 0?null:o.jsxs("button",{type:"button",className:X.recargar,title:"Vuelve a preguntar a CloudStudio por los proyectos propios y compartidos de este entorno",disabled:!J||xs[xt]===!0,"aria-busy":xs[xt]===!0,onClick:()=>{Wo(Y=>({...Y,[xt]:!0})),a(xt)},children:[xs[xt]===!0?o.jsx(Pi,{}):null,xs[xt]===!0?"Refrescando…":"Refrescar"]})]}),(()=>{const{proyectos:Y,error:Oe}=vo(xt);if(Oe!==void 0)return o.jsxs("p",{className:X.aviso,role:"alert",children:["No se pudieron consultar sus proyectos: ",Oe]});if(Y===void 0)return o.jsx("p",{className:X.nota,children:"Consultando sus proyectos…"});if(Y.length===0)return o.jsx("p",{className:X.vacio,children:"Este entorno no devolvió ningún proyecto."});const bt=ws(xt),hr=Qe=>[...Qe].sort((Lt,On)=>(On.ultimoAcceso??"").localeCompare(Lt.ultimoAcceso??"")),Tn=ni[xt]??{},ka=(Qe,Lt)=>{const On=(Lt??"").trim().toLowerCase();return On===""?Qe:Qe.filter(Zn=>Zn.nombre.toLowerCase().includes(On))},it=[{id:"propios",titulo:"Propios",suyos:Y.filter(Qe=>Qe.compartido===!1),aguja:Tn.propios},{id:"compartidos",titulo:"Compartidos contigo",suyos:Y.filter(Qe=>Qe.compartido===!0),aguja:Tn.compartidos},{id:"sinAtribuir",titulo:"Sin decir de quién son",suyos:Y.filter(Qe=>Qe.compartido===void 0),aguja:void 0}].map(Qe=>({...Qe,suyos:hr(Qe.suyos)})).filter(Qe=>Qe.suyos.length>0).map(Qe=>({...Qe,filtrados:ka(Qe.suyos,Qe.aguja)})),Mt=Qe=>{const Lt=Qe.ultimoAcceso===void 0?void 0:eu(Qe.ultimoAcceso);return o.jsx("li",{className:X.fila,children:o.jsxs("label",{className:X.casilla,children:[o.jsx("input",{type:"checkbox",checked:bt.includes(Qe.id),onChange:On=>{const Zn=On.target.checked?[...bt,Qe.id]:bt.filter(Nr=>Nr!==Qe.id);_t(Nr=>({...Nr,[xt]:Zn})),aa(xt,Zn)}}),o.jsxs("span",{className:X.textoDeProyecto,children:[o.jsx("span",{className:X.nombre,children:Qe.nombre}),Lt===void 0?null:o.jsx("span",{className:X.fechaDeProyecto,children:Lt})]})]})},Qe.id)};return o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:X.nota,children:["Sin elegir ninguno se enseñan los ",sm," primeros. Lo que marques aquí manda sobre ese tope."]}),o.jsx("div",{className:X.columnasDeProyectos,children:it.map(Qe=>o.jsxs("section",{className:X.columnaDeProyectos,children:[o.jsxs("h4",{className:X.encabezadoDeColumna,children:[Qe.titulo," ",o.jsx("span",{className:X.cuenta,children:Qe.filtrados.length})]}),Qe.id==="sinAtribuir"?null:o.jsxs("span",{className:X.buscadorDeProyectos,children:[o.jsx(qE,{className:X.lupa,size:14}),o.jsx("input",{type:"search",className:X.filtroDeProyectos,value:Qe.aguja??"",onChange:Lt=>{const On=Lt.target.value;_s(Zn=>({...Zn,[xt]:{...Zn[xt],...Qe.id==="propios"?{propios:On}:{compartidos:On}}}))},placeholder:"filtrar por nombre…","aria-label":`filtrar ${Qe.titulo.toLowerCase()}`})]}),Qe.filtrados.length===0?o.jsxs("p",{className:X.vacio,children:["Ninguno coincide con «",Qe.aguja,"»."]}):o.jsx("ul",{className:X.filas,children:Qe.filtrados.map(Mt)})]},Qe.id))})]})})()]}):null]}):null,$t==="agentes"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Subagentes"}),o.jsx(EW,{...oe===void 0?{}:{agentes:oe.lista,problemas:oe.problemas},hayProyecto:R,...e===void 0?{}:{proveedores:e},...G===void 0?{}:{modelosDeMotor:G},...O===void 0?{}:{alPedirModelosDeMotor:O},...re===void 0?{}:{alPedirCatalogo:re},...ke===void 0?{}:{catalogoDeSkills:ke.lista},alGuardar:q,alBorrar:ee,alRestaurar:z})]}):null,$t==="skills"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Skills"}),o.jsx(bZ,{...ke===void 0?{}:{skills:ke.lista,problemas:ke.problemas},...pe===void 0?{}:{cuerpos:pe},hayProyecto:R,alPedirCuerpo:Me,alGuardar:ge,alBorrar:ze,...Pe===void 0?{}:{alInstalar:Pe}})]}):null,$t==="conectores"&&qe!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:X.encabezado,children:"Conectores"}),o.jsx(aQ,{catalogo:qe.catalogo,conectores:qe.conectores,desconocidos:qe.desconocidos,...qe.ilegible===void 0?{}:{ilegible:qe.ilegible},...qe.error===void 0?{}:{error:qe.error},...f===void 0?{}:{secreto:f},alAccion:Nt,alCrear:Kt,alResponderSecreto:nn})]}):null]}),o.jsx("button",{type:"button",className:X.cerrar,"aria-label":"Cerrar ajustes",onClick:hs,children:"✕"})]})})}),Uo===void 0?null:o.jsx(nK,{fase:Uo,...zn===void 0?{}:{ruta:zn.ruta,plan:zn.plan},...(zn==null?void 0:zn.negativa)===void 0?{}:{negativa:zn.negativa},...le===void 0?{}:{mudanza:le},onAceptar:()=>void ec(),onCancelar:()=>Ho(void 0),onCerrar:tc}),vs===void 0?null:o.jsx(rK,{titulo:"No se puede cambiar la carpeta",texto:vs,onCerrar:mo}),Hi===void 0?null:o.jsx(aK,{donde:_a()??"esta sección",onCancelar:()=>xa(void 0),onConfirmar:()=>{ya(void 0),Fa(void 0),Hi(),xa(void 0)}})]})}function nK({fase:e,ruta:t,plan:n,negativa:r,mudanza:a,onAceptar:l,onCancelar:i,onCerrar:u}){const d=e==="confirmar"?i:e==="final"?u:()=>{},m=r??(a!==void 0&&"resultado"in a&&a.resultado.estado==="rechazado"?a.resultado.motivo:void 0),f=e==="confirmar"?"¿Mover los proyectos a la carpeta nueva?":e==="en-curso"?"Moviendo los proyectos…":m!==void 0?"No se ha cambiado la carpeta":"Carpeta cambiada",h=(n==null?void 0:n.proyectos.length)??0;return o.jsx(rr,{open:!0,onClose:d,title:f,headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:b=>{b.target===b.currentTarget&&d()},children:o.jsxs("div",{className:me.ventana,"aria-busy":e==="en-curso",children:[o.jsx("h2",{className:me.titulo,children:f}),e==="confirmar"&&n!==void 0?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:me.nota,children:[`Se ${h===1?"moverá 1 proyecto":`moverán ${h} proyectos`}`,n.megas===void 0?"":` (${n.megas} MB)`," a ",o.jsx("code",{children:t}),". Se copian, se comprueba que cada copia es idéntica a su original fichero a fichero, y solo entonces se borran del sitio de antes. Cierra antes cualquier terminal o editor que tenga abierto alguno de estos proyectos."]}),o.jsx("ul",{className:X.listaDeMudanza,children:n.proyectos.map(b=>o.jsx("li",{children:`${b.proyecto} (${b.entorno})`},`${b.entorno}/${b.proyecto}`))})]}):null,e==="en-curso"?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:X.enMarcha,role:"status",children:[o.jsx("span",{className:X.girando,"aria-hidden":"true"}),O5(a!==void 0&&"progreso"in a?a:{progreso:{fase:"comprobar"}})]}),o.jsx("p",{className:me.nota,children:"Cuando termine verás aquí cómo acabó. No cierres la consola mientras tanto."})]}):null,e==="final"?o.jsx("p",{className:me.nota,role:"status",children:m!==void 0?`${m.charAt(0).toUpperCase()}${m.slice(1)}.`:O5(a)}):null,o.jsxs("div",{className:me.acciones,children:[e==="confirmar"?o.jsxs(o.Fragment,{children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:i,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal}`,onClick:l,children:"Mover y cambiar"})]}):null,e==="final"?o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal}`,onClick:u,children:"Cerrar"}):null]})]})})})}function rK({titulo:e,texto:t,onCerrar:n}){return o.jsx(rr,{open:!0,onClose:n,title:e,headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:me.ventana,role:"alertdialog","aria-label":e,children:[o.jsx("h2",{className:me.titulo,children:e}),o.jsxs("p",{className:me.nota,children:[t.charAt(0).toUpperCase()+t.slice(1),"."]}),o.jsx("div",{className:me.acciones,children:o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal}`,onClick:n,children:"Entendido"})})]})})})}function aK({donde:e,onCancelar:t,onConfirmar:n}){return o.jsx(rr,{open:!0,onClose:t,title:"Cambios sin guardar",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:me.ventana,children:[o.jsx("h2",{className:me.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:me.nota,children:["Hay cambios sin guardar en ",e,". Si continúas, se pierden."]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:t,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:`${me.accion} ${me.principal} ${X.destructiva}`,onClick:n,children:"Descartar y continuar"})]})]})})})}function oK({entorno:e,nombresDeOtros:t,conectado:n,alRenombrar:r}){const[a,l]=$.useState(void 0),[i,u]=$.useState(!1),[d,m]=$.useState(void 0),f=a??e.nombre,h=f.trim(),b=GY(f),y=a!==void 0&&h!==e.nombre,g=h!==""&&h!==e.nombre&&t.includes(h);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:X.filaDeNombre,children:[o.jsx("span",{className:X.etiquetaDeNombre,children:"Nombre"}),o.jsxs("div",{className:X.campoDeNombreConBoton,children:[o.jsx("input",{type:"text",value:f,spellCheck:!1,autoComplete:"off","aria-label":"Nombre del entorno","aria-invalid":b===void 0?void 0:!0,disabled:!n||i,onChange:C=>{l(C.target.value),m(void 0)},onKeyDown:C=>{C.key!=="Enter"||i||!y||b!==void 0||_()}}),o.jsx("button",{type:"button",className:X.accion,disabled:!n||i||!y||b!==void 0,onClick:()=>void _(),children:i?"Guardando…":"Guardar"})]})]}),b===void 0?null:o.jsx("p",{className:X.nota,role:"alert",children:b}),g?o.jsx("p",{className:X.nota,children:"Ya hay otro entorno que se llama así: en la barra del proyecto los dos saldrán igual. Se distingue por su URL, así que se permite — pero no habrá forma de saber cuál es cuál."}):null,d===void 0?null:o.jsxs("p",{className:X.nota,role:"alert",children:["No se ha cambiado: ",d]})]});async function _(){u(!0);const C=await r(e.id,h);u(!1),m(C),C===void 0&&l(void 0)}}function sK({entorno:e,conectado:t,alQuitar:n}){const[r,a]=$.useState(!1),[l,i]=$.useState(!1),[u,d]=$.useState(void 0),[m,f]=$.useState(!1),[h,b]=$.useState(""),y=h.trim()===e.nombre,g=e.copias??0;return r?o.jsxs("div",{className:X.confirmarQuitar,role:"alertdialog","aria-label":`Quitar ${e.nombre}`,children:[o.jsxs("p",{className:X.tituloDeAviso,children:[o.jsx("span",{"aria-hidden":"true",children:"⚠"})," Atención: vas a quitar ",o.jsx("strong",{children:e.nombre})]}),o.jsxs("p",{className:X.textoDeAviso,children:["Se borra de la lista y se ",o.jsx("strong",{children:"cierra su sesión de CloudStudio"}),": para volver a usarlo tendrás que registrarlo y entrar otra vez."," ",m?"Y se BORRAN sus copias locales: el trabajo que no hayas subido se pierde para siempre.":"Las copias ya bajadas se quedan en el disco."]}),g===0?null:o.jsxs("label",{className:X.casillaDeAviso,children:[o.jsx("input",{type:"checkbox",checked:m,onChange:_=>f(_.target.checked)}),"Borrar también las copias locales de este entorno (",g," ",g===1?"proyecto":"proyectos",")"]}),o.jsxs("label",{className:X.escribirNombre,children:["Escribe ",o.jsx("strong",{children:e.nombre})," para confirmar",o.jsx("input",{type:"text",value:h,autoFocus:!0,autoComplete:"off",spellCheck:!1,onChange:_=>b(_.target.value)})]}),o.jsx("button",{type:"button",className:X.quitarLleno,disabled:l||!y,onClick:async()=>{i(!0);const _=await n(e.id,{borrarCopias:m});i(!1),a(!1),d(_)},children:l?"Quitando…":"Quitar"}),o.jsx("button",{type:"button",className:X.recargar,disabled:l,onClick:()=>a(!1),children:"Cancelar"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:X.quitar,disabled:!t,onClick:()=>{d(void 0),f(!1),b(""),a(!0)},children:"Quitar entorno"}),u===void 0?null:o.jsxs("p",{role:"alert",className:`${X.aviso} ${X.anchoEntero}`,children:["No se ha quitado: ",u]})]})}const W5=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/;function iK(e){const t=e.split(`
|
|
497
|
-
`);t.at(-1)===""&&t.pop();const n=t.findIndex(i=>W5.test(i));if(n===-1)return t.map(i=>({tipo:"contexto",texto:i}));let r=0,a=0;const l=[];for(const i of t.slice(n)){const u=W5.exec(i);u!==null?(r=Number(u[1]),a=Number(u[2]),l.push({tipo:"tramo",texto:i})):i.startsWith("\\")?l.push({tipo:"nota",texto:i.slice(2)}):i.startsWith("+")?l.push({tipo:"mas",nuevo:a++,texto:i.slice(1)}):i.startsWith("-")?l.push({tipo:"menos",viejo:r++,texto:i.slice(1)}):l.push({tipo:"contexto",viejo:r++,nuevo:a++,texto:i.slice(1)})}return l}const lK="_aviso_dcwau_5",cK="_recargar_dcwau_15 _secundario_1l1rx_39",uK="_clase_dcwau_21",dK="_ruta_dcwau_53",pK="_carpeta_dcwau_64",mK="_hoja_dcwau_71",hK="_cuenta_dcwau_75",fK="_binario_dcwau_76",gK="_mas_dcwau_86",vK="_menos_dcwau_90",bK="_tab_dcwau_98",yK="_banda_dcwau_108",xK="_seccion_dcwau_118",_K="_tituloDeSeccion_dcwau_122",wK="_tituloDeCambios_dcwau_133",jK="_revision_dcwau_97",CK="_pila_dcwau_154",kK="_indice_dcwau_160",NK="_cabecera_dcwau_176",SK="_alcance_dcwau_186",$K="_total_dcwau_191",AK="_binarios_dcwau_197",EK="_bloque_dcwau_201",DK="_filaDeBloque_dcwau_209",zK="_cabeceraDeBloque_dcwau_220",TK="_editar_dcwau_241 _secundario_1l1rx_39",MK="_parche_dcwau_249",LK="_linea_dcwau_255",IK="_numero_dcwau_266",qK="_texto_dcwau_272",RK="_nota_dcwau_301",PK="_pendiente_dcwau_314",FK="_modelo_dcwau_327",OK="_modeloTitulo_dcwau_336",BK="_modeloColeccion_dcwau_342",HK="_modeloNombre_dcwau_346",UK="_modeloEstado_dcwau_354",VK="_modeloLineas_dcwau_363",GK="_modeloNota_dcwau_388",Xe={aviso:lK,recargar:cK,clase:uK,ruta:dK,carpeta:pK,hoja:mK,cuenta:hK,binario:fK,mas:gK,menos:vK,tab:bK,banda:yK,seccion:xK,tituloDeSeccion:_K,tituloDeCambios:wK,revision:jK,pila:CK,indice:kK,cabecera:NK,alcance:SK,total:$K,binarios:AK,bloque:EK,filaDeBloque:DK,cabeceraDeBloque:zK,editar:TK,parche:MK,linea:LK,numero:IK,texto:qK,nota:RK,pendiente:PK,modelo:FK,modeloTitulo:OK,modeloColeccion:BK,modeloNombre:HK,modeloEstado:UK,modeloLineas:VK,modeloNota:GK};function Z5({via:e,mezclados:t,ficheros:n,parches:r,modelosDelCambio:a,desplegados:l,alDesplegar:i,alPlegar:u,alRecargar:d,historica:m,conectado:f,cloudstudio:h,alEditar:b,rutasDelProyecto:y,registro:g,modo:_="sesion",error:C}){const k=_==="pendientes",S=!k&&n.some(G=>G.pendiente!==void 0),A=n,I=S?A.filter(G=>G.pendiente===!0):A;$.useEffect(()=>{f===!1||e!==void 0||d()},[e,f,d]);const M=Kl(n,f),L=$.useRef(new Map);let F;if(k&&C!==void 0?F=o.jsx("p",{className:Xe.aviso,children:`No se puede enseñar lo pendiente de subir: ${C}.`}):e===void 0?F=o.jsx("p",{className:Xe.aviso,children:k?"Consultando lo pendiente de subir…":"Consultando los ficheros de la sesión…"}):k&&I.length===0?F=o.jsx("p",{className:Xe.aviso,children:"No hay nada pendiente de subir: la copia está igual que la rama en CloudStudio."}):k?F=void 0:e==="sin-empezar"?F=o.jsx("p",{className:Xe.aviso,children:"Esta sesión todavía no ha empezado: no ha tocado ningún fichero. En cuanto le mandes algo al agente, lo que escriba aparecerá aquí."}):e==="sin-marca"&&m===!0?F=o.jsx("p",{className:Xe.aviso,children:"Esta conversación se reabrió y no tiene foto del proyecto de cuando empezó, así que no hay con qué comparar lo que tocó entonces. No es que no hubiera cambios — es que no se puede saber. Lo que el agente escriba a partir de ahora sí aparecerá aquí."}):e==="sin-marca"?F=o.jsx("p",{className:Xe.aviso,children:"No se puede saber qué ha tocado esta sesión: hace falta que el proyecto sea un repositorio de git, y que la sesión se abriera después de que xonecode empezara a marcarlas. No es que no haya cambios — es que no hay con qué compararlos."}):A.length>0&&I.length===0?F=o.jsx("p",{className:Xe.aviso,children:"Todo lo que ha tocado esta sesión ya está subido a CloudStudio: no queda nada suyo pendiente de subir."}):I.length===0&&(F=o.jsx("p",{className:Xe.aviso,children:e==="git"?"Esta sesión todavía no ha tocado ningún fichero.":"No ha cambiado ningún fichero del proyecto desde que se abrió esta sesión."})),F===void 0&&e!==void 0){const G=I.filter(ne=>ne.mas!==void 0||ne.menos!==void 0),O=I.length-G.length,B=G.reduce((ne,we)=>ne+(we.mas??0),0),W=G.reduce((ne,we)=>ne+(we.menos??0),0),re=new Map(I.map(ne=>[ne.ruta,ne.clase])),fe=new Set([...n.map(ne=>ne.ruta),...y??[]]),he=ne=>{i(ne),typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{var we,je;return(je=(we=L.current.get(ne))==null?void 0:we.scrollIntoView)==null?void 0:je.call(we,{block:"start"})})};F=o.jsxs("div",{className:Xe.revision,children:[o.jsxs("div",{className:Xe.pila,children:[o.jsxs("div",{className:Xe.cabecera,children:[o.jsx("span",{className:Xe.alcance,children:k?"Pendiente":e==="git"?"Sesión":"Desde que abriste"}),o.jsxs("span",{className:Xe.total,children:[G.length>0?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:Xe.mas,children:["+",B]})," ",o.jsxs("span",{className:Xe.menos,children:["−",W]})]}):null,O>0?o.jsxs("span",{className:Xe.binarios,children:[G.length>0?" y ":"",O," ",O===1?"binario":"binarios"]}):null]}),o.jsxs("button",{type:"button",className:Xe.recargar,title:k?"Vuelve a medir qué falta por subir a CloudStudio":"Vuelve a mirar qué ficheros ha tocado esta sesión",disabled:M.esperando||f===!1,"aria-busy":M.esperando,onClick:()=>{M.empezar(),d()},children:[M.esperando?o.jsx(Pi,{}):null,"Refrescar"]})]}),!k&&e==="desde-apertura"?o.jsx("p",{className:Xe.nota,children:"Esta sesión no tiene ningún commit suyo con el que atribuir sus cambios (es de antes de que xonecode los sellara), así que esto es todo lo que ha cambiado en la copia del proyecto desde que se abrió — incluido lo que hayan escrito otras sesiones o una tarea de fondo."}):null,!k&&t!==void 0&&t>0?o.jsx("p",{className:Xe.nota,children:t===1?"Hay 1 commit de otra sesión entremedias: la lista de ficheros es de esta sesión, pero un diff puede traer cambios de la otra.":`Hay ${t} commits de otras sesiones entremedias: la lista de ficheros es de esta sesión, pero un diff puede traer cambios de las otras.`}):null,I.map(ne=>{const we=l.has(ne.ruta),je=we?r[ne.ruta]:void 0;return o.jsxs("section",{className:Xe.bloque,"data-bloque":ne.ruta,ref:J=>{J===null?L.current.delete(ne.ruta):L.current.set(ne.ruta,J)},children:[o.jsxs("div",{className:Xe.filaDeBloque,children:[o.jsxs("button",{type:"button",className:Xe.cabeceraDeBloque,"aria-expanded":we,onClick:()=>we?u(ne.ruta):i(ne.ruta),children:[o.jsx("span",{className:Xe.clase,"data-clase":ne.clase,"aria-label":ne.clase,children:ne.clase==="nuevo"?"A":ne.clase==="borrado"?"D":"M"}),o.jsx(um,{ruta:ne.ruta}),o.jsxs("span",{className:Xe.ruta,children:[Q5(ne.ruta)===""?null:o.jsx("span",{className:Xe.carpeta,children:Q5(ne.ruta)}),o.jsx("span",{className:Xe.hoja,children:QK(ne.ruta)})]}),ne.sinCommitear===!0?o.jsx("span",{className:Xe.pendiente,title:k?"Git aún no lo sigue: commitéalo para poder subirlo":void 0,children:"sin commitear"}):null,ne.mas===void 0&&ne.menos===void 0?o.jsx("span",{className:Xe.binario,children:"binario"}):o.jsxs("span",{className:Xe.cuenta,children:[o.jsxs("span",{className:Xe.mas,children:["+",ne.mas??0]})," ",o.jsxs("span",{className:Xe.menos,children:["−",ne.menos??0]})]})]}),b!==void 0&&ZK(ne,fe)?o.jsxs("button",{type:"button",className:Xe.editar,"aria-label":`Editar ${ne.ruta}`,disabled:f===!1,onClick:()=>b(ne.ruta),children:[o.jsx("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:o.jsx("path",{d:"M10.8 2.7l2.5 2.5-7.6 7.6-3.2.7.7-3.2z",strokeLinejoin:"round"})}),"Editar"]}):null]}),we&&a!==void 0&&ne.ruta.toLowerCase().endsWith(".xne")?o.jsx(WK,{ruta:ne.ruta,estado:a[ne.ruta]}):null,we?je===void 0?o.jsxs("p",{className:Xe.aviso,children:["Trayendo el diff de ",ne.ruta,"…"]}):je.negado!==void 0?o.jsx("p",{className:Xe.aviso,children:`Este fichero no se enseña: ${je.negado}.`}):je.texto===""?o.jsx("p",{className:Xe.aviso,children:"Sin diff que enseñar para este fichero."}):o.jsx(XK,{texto:je.texto,recortado:je.recortado}):null]},ne.ruta)})]}),o.jsx("aside",{className:Xe.indice,"aria-label":"Ficheros cambiados",children:o.jsx(u4,{nodos:c4(I.map(ne=>ne.ruta)),variante:"explorador",alElegir:he,insignia:ne=>{const we=re.get(ne)??"modificado";return o.jsx("span",{className:Xe.clase,"data-clase":we,"aria-label":we,children:we==="nuevo"?"A":we==="borrado"?"D":"M"})}})})]})}return o.jsxs("div",{className:Xe.tab,children:[h===void 0&&g===void 0?null:o.jsxs("div",{className:Xe.banda,children:[h===void 0?null:o.jsxs("section",{className:Xe.seccion,"aria-label":"Sincronización con CloudStudio",children:[o.jsx("h2",{className:Xe.tituloDeSeccion,children:"Sincronización con CloudStudio"}),h]}),g===void 0?null:o.jsxs("section",{className:Xe.seccion,"aria-label":"Últimas subidas",children:[o.jsx("h2",{className:Xe.tituloDeSeccion,children:k?"Últimas subidas de la conversación abierta":"Últimas subidas"}),g]})]}),o.jsx("h2",{className:`${Xe.tituloDeSeccion} ${Xe.tituloDeCambios}`,children:k?"Pendiente de subir a CloudStudio":S?"Cambios de esta sesión pendientes de subir":"Cambios de esta sesión"}),F]})}function WK({ruta:e,estado:t}){return t===void 0?o.jsxs("p",{className:Xe.aviso,children:["Comparando el modelo de ",e,"…"]}):t.cambios===void 0?o.jsxs("p",{className:Xe.aviso,children:["No se pudo comparar el modelo: ",t.error??"sin motivo","."]}):t.cambios.length===0?o.jsx("p",{className:Xe.aviso,children:"Sin cambios en el modelo (campos, tipos, referencias, eventos): lo que cambió está en el diff de abajo."}):o.jsxs("div",{className:Xe.modelo,"aria-label":`Cambios en el modelo de ${e}`,children:[o.jsx("p",{className:Xe.modeloTitulo,children:"Cambios en el modelo"}),t.cambios.map(n=>o.jsxs("div",{className:Xe.modeloColeccion,children:[o.jsxs("p",{className:Xe.modeloNombre,children:[n.nombre,n.estado==="modificada"?null:o.jsx("span",{className:Xe.modeloEstado,children:n.estado})]}),o.jsxs("ul",{className:Xe.modeloLineas,children:[n.campos.map(r=>o.jsxs("li",{"data-cambio":r.cambio==="tipo"?"modificado":r.cambio,children:[r.cambio==="nuevo"?"+ ":r.cambio==="borrado"?"− ":"~ ","campo ",o.jsx("code",{children:r.nombre}),r.cambio==="tipo"?` · ${r.antes??"sin tipo"} → ${r.ahora??"sin tipo"}`:(r.cambio==="nuevo"?r.ahora:r.antes)===void 0?"":` · ${r.cambio==="nuevo"?r.ahora:r.antes}`]},`c:${r.nombre}`)),n.referencias.map((r,a)=>o.jsxs("li",{"data-cambio":r.cambio,children:[r.cambio==="nuevo"?"+ ":"− ","referencia ",o.jsx("code",{children:r.desde})," ",r.por," → ",o.jsx("code",{children:r.hacia})]},`r:${a}`)),[["evento",n.eventos],["nodo",n.nodos],["conexión",n.conexiones]].flatMap(([r,a])=>a.map(l=>o.jsxs("li",{"data-cambio":l.cambio,children:[l.cambio==="nuevo"?"+ ":"− ",r," ",o.jsx("code",{children:l.nombre})]},`${r}:${l.nombre}`)))]})]},n.nombre)),o.jsx("p",{className:Xe.modeloNota,children:"Del campo solo consta el tipo: tamaño y demás atributos, en el diff de abajo."})]})}function ZK(e,t){return!(e.clase==="borrado"||e.mas===void 0&&e.menos===void 0||/\.xml$/i.test(e.ruta)&&t.has(e.ruta.replace(/\.xml$/i,".xne")))}function Q5(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t+1)}function QK(e){const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function XK({texto:e,recortado:t}){const n=$.useMemo(()=>iK(e),[e]);return o.jsxs("div",{className:Xe.parche,children:[n.map((r,a)=>o.jsxs("div",{className:Xe.linea,"data-tipo":r.tipo,children:[o.jsx("span",{className:Xe.numero,"data-viejo":"",children:r.viejo??""}),o.jsx("span",{className:Xe.numero,"data-nuevo":"",children:r.nuevo??""}),o.jsx("span",{className:Xe.texto,children:r.texto===""?" ":r.texto})]},a)),t?o.jsx("p",{className:Xe.aviso,children:"El diff es demasiado grande y se ha cortado: míralo en tu editor."}):null]})}const YK="_caja_100ky_13",KK="_ficheros_100ky_5",JK="_visor_100ky_27",eJ="_arbol_100ky_9",tJ="_filtro_100ky_61",nJ="_cabecera_100ky_75",rJ="_titulo_100ky_95",aJ="_textos_100ky_104",oJ="_ruta_100ky_114",sJ="_carpetaDeRuta_100ky_125",iJ="_separador_100ky_126",lJ="_nombreDeRuta_100ky_130",cJ="_metadatos_100ky_135",uJ="_caras_100ky_142",dJ="_cara_100ky_142",pJ="_markdown_100ky_176",mJ="_aviso_100ky_183",hJ="_nota_100ky_191",fJ="_rotulo_100ky_200",gJ="_acciones_100ky_209",vJ="_motivoSinEditar_100ky_221",bJ="_recargarAlGuardar_100ky_227",yJ="_recarga_100ky_227",xJ="_accion_100ky_209 _secundario_1l1rx_39",_J="_accionPrincipal_100ky_251 _primario_1l1rx_67",wJ="_sinGuardar_100ky_256",jJ="_banda_100ky_269",CJ="_fallo_100ky_283",kJ="_marcaDelArbol_100ky_290",Ke={caja:YK,ficheros:KK,visor:JK,arbol:eJ,filtro:tJ,cabecera:nJ,titulo:rJ,textos:aJ,ruta:oJ,carpetaDeRuta:sJ,separador:iJ,nombreDeRuta:lJ,metadatos:cJ,caras:uJ,cara:dJ,markdown:pJ,aviso:mJ,nota:hJ,rotulo:fJ,acciones:gJ,motivoSinEditar:vJ,recargarAlGuardar:bJ,recarga:yJ,accion:xJ,accionPrincipal:_J,sinGuardar:wJ,banda:jJ,fallo:CJ,marcaDelArbol:kJ},X5=$.lazy(()=>cn(()=>import("./EditorDeFichero-CGZ6uZPa.js"),__vite__mapDeps([12,13]),import.meta.url));function NJ({arbol:e,contenidos:t,elegido:n,alElegir:r,alRecargar:a,conectado:l,linea:i,edicion:u,cambiados:d,alPedirCambios:m,aparato:f,ultimaRecarga:h}){var G,O;$.useEffect(()=>{l===!1||e!==void 0||a()},[e,l,a]),$.useEffect(()=>{l===!1||d!==void 0||m==null||m()},[d,l,m]);const b=((G=u==null?void 0:u.actual)==null?void 0:G.proyectoCambiado)===!0?u.actual:void 0;$.useEffect(()=>{b===void 0&&n!==void 0&&e!==void 0&&e.error===void 0&&!e.recortado&&!e.rutas.includes(n)&&r(void 0)},[e,n,r,b]);const[y,g]=$.useState(""),[_,C]=$.useState("vista");if(b!==void 0&&u!==void 0){const B=lm(b.ruta);return o.jsx("div",{className:Ke.caja,children:o.jsx("div",{className:Ke.ficheros,children:o.jsxs("div",{className:Ke.visor,"data-editando":"",children:[o.jsxs("div",{className:Ke.cabecera,children:[o.jsx(K5,{ruta:b.ruta,sinGuardar:!0,metadatos:tf(b.ruta,Y5(b.ruta,b.original),b.finDeLinea)}),o.jsx("div",{className:Ke.acciones,children:o.jsx("button",{type:"button",className:Ke.accionPrincipal,disabled:!0,children:"Guardar"})})]}),o.jsxs("div",{className:Ke.banda,role:"alert",children:[o.jsx("span",{children:"El proyecto abierto ya no es este: guardar está desactivado. Copia tus cambios o descártalos."}),o.jsx("button",{type:"button",className:Ke.accion,onClick:u.descartar,children:"Descartar"})]}),o.jsx($.Suspense,{fallback:o.jsx("p",{className:Ke.aviso,children:"Cargando el editor…"}),children:o.jsx(X5,{texto:u.textoVivo(),...B===void 0?{}:{lenguaje:B},baseElegida:u.baseElegida,alCambiar:u.cambiar,alGuardar:u.guardar,alElegirBase:u.elegirBase},`${b.ruta}:${b.generacion}`)})]})})})}if(e===void 0)return o.jsx("p",{className:Ke.aviso,children:"Consultando el árbol del proyecto…"});if(e.error!==void 0)return o.jsxs("p",{className:Ke.aviso,children:["No se ha podido listar el proyecto: ",e.error]});const k=n===void 0?void 0:t[n],S=n===void 0?void 0:lm(n),A=(k==null?void 0:k.mime)!==void 0&&k.base64!==void 0,I=A&&(k==null?void 0:k.mime)==="image/svg+xml"&&k.texto!==void 0,M=(k==null?void 0:k.error)===void 0&&(k==null?void 0:k.texto)!==void 0&&S==="markdown",L=A&&!I,F=(u==null?void 0:u.actual)!==void 0&&u.actual.ruta===n?u.actual:void 0;return o.jsx("div",{className:Ke.caja,children:o.jsxs("div",{className:Ke.ficheros,children:[o.jsx("div",{className:Ke.visor,"data-editando":F!==void 0?"":void 0,children:n===void 0?o.jsx("p",{className:Ke.aviso,children:"Elige un fichero del árbol."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Ke.cabecera,children:[o.jsx(K5,{ruta:n,sinGuardar:(F==null?void 0:F.sucio)===!0,metadatos:F===void 0?tf(n,k):tf(n,k??Y5(n,F.original),F.finDeLinea)}),F!==void 0&&u!==void 0?o.jsxs("div",{className:Ke.acciones,children:[(f==null?void 0:f.disponible)===!0?o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:Ke.recargarAlGuardar,title:"Tras guardar, lleva el fichero a la app del aparato de la sesión. Si no hay app corriendo, guarda igual.",children:[o.jsx("input",{type:"checkbox",checked:f.alGuardar,onChange:f.alternar}),"Recargar en el aparato al guardar"]}),o.jsx("button",{type:"button",className:Ke.accion,disabled:F.sucio||F.guardando,title:F.sucio?"Guarda antes de probar: se lleva al aparato lo que está en disco":"Lleva este fichero al aparato; si la app no está corriendo, despliega el proyecto entero",onClick:()=>f.probar(F.ruta),children:"Probar"})]}):null,o.jsx("button",{type:"button",className:Ke.accionPrincipal,disabled:!F.sucio||F.guardando||F.proyectoCambiado===!0,onClick:u.guardar,children:F.guardando?"Guardando…":"Guardar"}),o.jsx("button",{type:"button",className:Ke.accion,onClick:u.cerrar,children:"Cerrar"})]}):o.jsxs("div",{className:Ke.acciones,children:[M?o.jsx("div",{className:Ke.caras,role:"group","aria-label":"Cómo se enseña el fichero",children:["vista","fuente"].map(B=>o.jsx("button",{type:"button",className:Ke.cara,"aria-pressed":_===B,"data-activa":_===B?"":void 0,onClick:()=>C(B),children:B==="vista"?"Vista":"Fuente"},B))}):null,u!==void 0&&O0(k)?o.jsx("button",{type:"button",className:Ke.accion,onClick:()=>u.abrir(k),children:"Editar"}):u!==void 0&&k5(k)!==void 0?o.jsx("span",{className:Ke.motivoSinEditar,children:k5(k)}):null]})]}),F!==void 0&&u!==void 0?o.jsxs(o.Fragment,{children:[F.proyectoCambiado===!0?o.jsxs("div",{className:Ke.banda,role:"alert",children:[o.jsx("span",{children:"El proyecto abierto ya no es este: guardar está desactivado. Copia tus cambios o descártalos."}),o.jsx("button",{type:"button",className:Ke.accion,onClick:u.descartar,children:"Descartar"})]}):null,F.versionNueva!==void 0?o.jsxs("div",{className:Ke.banda,role:"alert",children:[o.jsx("span",{children:"El fichero ha cambiado en el disco mientras lo editabas."}),o.jsx("button",{type:"button",className:Ke.accion,onClick:u.recargar,children:"Recargar (pierdes los tuyos)"}),o.jsx("button",{type:"button",className:Ke.accion,onClick:u.seguirConLosMios,children:"Seguir con los míos"})]}):null,F.sobrescribe===!0?o.jsx("p",{className:Ke.banda,role:"status",children:"Seguir con los míos: al guardar, tu versión sustituirá a la del disco"}):null,F.error!==void 0?o.jsxs("p",{className:Ke.fallo,role:"alert",children:["No se ha guardado: ",F.error]}):null,(f==null?void 0:f.disponible)===!0&&h!==void 0&&h.ruta===F.ruta?o.jsxs("p",{className:Ke.recarga,role:"status",children:[o.jsx("span",{children:h.texto}),h.estado==="relanzar"?o.jsx("button",{type:"button",className:Ke.accion,onClick:()=>f.relanzar(F.ruta),children:"Relanzar la app"}):null]}):null,o.jsx($.Suspense,{fallback:o.jsx("p",{className:Ke.aviso,children:"Cargando el editor…"}),children:o.jsx(X5,{texto:u.textoVivo(),...S===void 0?{}:{lenguaje:S},...u.base===void 0?{}:{base:u.base},baseElegida:u.baseElegida,alCambiar:u.cambiar,alGuardar:u.guardar,alElegirBase:u.elegirBase},`${F.ruta}:${F.generacion}`)})]}):k===void 0?o.jsxs("p",{className:Ke.aviso,children:["Trayendo ",n,"…"]}):k.error!==void 0?o.jsxs("p",{className:Ke.aviso,children:["No se puede enseñar este fichero: ",k.error,"."]}):L?o.jsx(cm,{mime:k.mime,base64:k.base64,alt:n,bytes:k.bytes}):k.mime!==void 0&&k.base64===void 0&&k.binario?o.jsxs("p",{className:Ke.aviso,children:["Es una imagen de ",Ro(k.bytes)," KB: pesa más de lo que se trae por el cable, así que no se enseña. Ábrela en tu editor."]}):k.binario?o.jsxs("p",{className:Ke.aviso,children:["Es un fichero binario, ",Ro(k.bytes)," KB. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[I?o.jsxs(o.Fragment,{children:[o.jsx(cm,{mime:k.mime,base64:k.base64,alt:n,bytes:k.bytes}),o.jsx("p",{className:Ke.rotulo,children:"Código"})]}):null,k.recortado?o.jsxs("p",{className:Ke.nota,children:["Recortado a ",Ro(((O=k.texto)==null?void 0:O.length)??0)," KB de ",Ro(k.bytes)," KB: míralo entero en tu editor."]}):null,k.codificacion==="latin1"?o.jsx("p",{className:Ke.nota,children:"Leído como latin1: el fichero no es UTF-8."}):null,S==="markdown"&&_==="vista"?o.jsx("div",{className:`${Ke.markdown} md-cuerpo`,children:o.jsx(Gl,{text:Wl(k.vista===void 0?k.texto??"":gM(k.vista,window.location.origin)),codeLabels:Zl})}):o.jsx(D8,{texto:k.texto??"",...S===void 0?{}:{lenguaje:S},...i===void 0?{}:{linea:i}})]})]})}),o.jsxs("aside",{className:Ke.arbol,"aria-label":"Ficheros del proyecto",children:[o.jsx("input",{type:"search",className:Ke.filtro,placeholder:"Filtrar ficheros…",value:y,onChange:B=>g(B.target.value),"aria-label":"Filtrar ficheros"}),e.recortado?o.jsxs("p",{className:Ke.nota,children:["El árbol está recortado a ",e.rutas.length," entradas."]}):null,o.jsx(u4,{nodos:c4(e.rutas),...n===void 0?{}:{elegida:n},alElegir:r,filtro:y,abiertas:"ninguna",...d===void 0&&(F==null?void 0:F.sucio)!==!0?{}:{insignia:B=>B===(F==null?void 0:F.ruta)&&F.sucio?o.jsx("span",{className:Ke.marcaDelArbol,"aria-label":"Sin guardar en el editor",children:"●"}):(d==null?void 0:d.has(B))===!0?o.jsx("span",{className:Ke.marcaDelArbol,"data-marca":"cambiada","aria-label":"Cambiado en la sesión",children:"M"}):null}})]})]})})}function Y5(e,t){return{ruta:e,texto:t,recortado:!1,binario:!1,bytes:0}}function K5({ruta:e,sinGuardar:t,metadatos:n}){const r=e.lastIndexOf("/");return o.jsxs("div",{className:Ke.titulo,"data-cabecera-del-fichero":"",children:[o.jsx(um,{ruta:e,tamano:24}),o.jsxs("div",{className:Ke.textos,children:[o.jsxs("span",{className:Ke.ruta,children:[r===-1?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Ke.carpetaDeRuta,"data-parte":"carpeta",children:e.slice(0,r)}),o.jsx("span",{className:Ke.separador,children:"/"})]}),o.jsx("span",{className:Ke.nombreDeRuta,"data-parte":"nombre",children:e.slice(r+1)}),t?o.jsx("span",{className:Ke.sinGuardar,"aria-label":"Hay cambios sin guardar",title:"Hay cambios sin guardar",children:"●"}):null]}),n.length===0?null:o.jsx("span",{className:Ke.metadatos,"data-metadatos":"",children:n.join(" · ")})]})]})}function SJ({ruta:e,alDescartar:t,alSeguir:n}){return o.jsx(rr,{open:!0,onClose:n,title:"Cambios sin guardar",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:me.ventana,role:"alertdialog","aria-label":"Cambios sin guardar",children:[o.jsx("h2",{className:me.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:me.nota,children:["«",e,"» tiene cambios que no has guardado. Si sigues, se pierden."]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,onClick:n,autoFocus:!0,children:"Seguir editando"}),o.jsx(Le,{variant:"primary",className:nt(me.accion,me.principal,Bm.destructiva),onClick:t,children:"Descartar cambios"})]})]})})})}const X8="xonecode.recargarAlGuardar";function $J(){try{return window.localStorage.getItem(X8)==="1"}catch{return!1}}function AJ({enviar:e,plataforma:t}){const[n,r]=$.useState($J),a=t==="android",l=$.useCallback(()=>{r(d=>{const m=!d;try{window.localStorage.setItem(X8,m?"1":"0")}catch{}return m})},[]),i=$.useCallback(d=>{e({clase:"recargarEnAparato",ruta:d,probar:!0}).catch(()=>{})},[e]),u=$.useCallback(d=>{e({clase:"recargarEnAparato",ruta:d,relanzar:!0}).catch(()=>{})},[e]);return{disponible:a,alGuardar:a&&n,alternar:l,probar:i,relanzar:u}}let J5=0;function EJ(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(J5+=1,`${Date.now().toString(36)}-${J5}-${Math.random().toString(36).slice(2)}`)}const DJ="el fichero es demasiado grande para guardarlo desde aquí",zJ="no hay ningún proyecto abierto",TJ="se cortó la conexión antes de saber si se guardó: al volver, recarga el fichero para comprobarlo";function sf(e){const{error:t,versionNueva:n,sobrescribe:r,...a}=e;return a}function MJ({enviar:e,proyecto:t,contenidos:n,bases:r,ultimoGuardado:a,conectado:l,recargarAlGuardar:i=!1}){const[u,d]=$.useState(void 0),m=$.useRef(void 0),[f,h]=$.useState("sesion"),b=$.useRef(u),y=$.useRef(i);y.current=i;const g=$.useRef(""),_=$.useRef(void 0),C=$.useRef(void 0),k=$.useRef((a==null?void 0:a.secuencia)??0),S=$.useCallback(q=>{b.current=q,d(q)},[]),A=$.useCallback((q,ee)=>{e({clase:"baseDeFichero",ruta:q,base:ee})},[e]),I=$.useCallback(q=>{var z;if(!O0(q))return;const ee=N5(q.texto);g.current=ee,S({ruta:q.ruta,proyecto:t,original:ee,huella:q.huella,finDeLinea:p2(q.texto),sucio:!1,guardando:!1,generacion:(((z=b.current)==null?void 0:z.generacion)??0)+1}),A(q.ruta,f)},[t,f,A,S]),M=$.useCallback(()=>{g.current="",_.current=void 0,S(void 0)},[S]),L=$.useCallback(q=>{g.current=q;const ee=b.current;if(ee===void 0)return;const z=q!==ee.original;z!==ee.sucio&&S({...ee,sucio:z})},[S]),F=$.useCallback((q,ee)=>{const z=b.current;z===void 0||z.ruta!==q||!z.guardando||(S({...z,guardando:!1,error:ee}),z.proyectoCambiado!==!0&&e({clase:"fichero",ruta:q}).catch(()=>{}))},[S,e]),G=$.useCallback(()=>{const q=b.current;if(q===void 0||q.guardando||!q.sucio||q.proyectoCambiado===!0)return;if(q.proyecto===void 0){S({...q,error:zJ});return}const ee=EJ(),z={clase:"guardarFichero",ruta:q.ruta,texto:dO(g.current,q.finDeLinea),huella:q.huella,id:ee,proyecto:q.proyecto,...y.current?{recargar:!0}:{}};if(!mO(z)){S({...q,error:DJ});return}_.current=g.current,C.current=ee;const{error:ke,...pe}=q;S({...pe,guardando:!0}),e(z).then(Me=>{(Me==null?void 0:Me.ok)===!1&&F(q.ruta,"el servidor no aceptó el guardado")},()=>F(q.ruta,"no se pudo hablar con el servidor: no se ha guardado"))},[e,S,F]);$.useEffect(()=>{if(a===void 0||a.secuencia===k.current)return;k.current=a.secuencia;const q=b.current;if(q===void 0||q.ruta!==a.ruta)return;const ee=q.guardando&&a.id===C.current;if(q.proyectoCambiado===!0&&!ee)return;if(!ee){e({clase:"fichero",ruta:q.ruta});return}if(a.huella===void 0){S({...q,guardando:!1,error:a.error??"no se ha guardado"}),q.proyectoCambiado!==!0&&e({clase:"fichero",ruta:q.ruta});return}const z=_.current??g.current;_.current=void 0,S({...sf(q),original:z,huella:a.huella,guardando:!1,sucio:g.current!==z}),q.proyectoCambiado!==!0&&(e({clase:"fichero",ruta:q.ruta}),e({clase:"revision"}),A(q.ruta,f))},[a,e,S,A,f]);const O=u===void 0||n==null?void 0:n[u.ruta];$.useEffect(()=>{var z;const q=b.current;if(q===void 0||q.guardando||q.proyectoCambiado===!0||!O0(O)||O.ruta!==q.ruta||O.huella===q.huella||((z=q.versionNueva)==null?void 0:z.huella)===O.huella)return;const ee={original:N5(O.texto),huella:O.huella,finDeLinea:p2(O.texto)};if(q.sucio){S({...q,versionNueva:ee});return}g.current=ee.original,S({...sf(q),...ee,generacion:q.generacion+1}),A(q.ruta,f)},[O,S,A,f]),$.useEffect(()=>{const q=b.current;if(q!==void 0){if(q.proyecto===t){if(q.proyectoCambiado===!0){const{proyectoCambiado:ee,...z}=q;S(z)}return}q.sucio?q.proyectoCambiado!==!0&&S({...q,proyectoCambiado:!0}):M()}},[t,M,S]),$.useEffect(()=>{const q=b.current;l===!1&&(q==null?void 0:q.guardando)===!0&&S({...q,guardando:!1,error:TJ})},[l,S]);const B=(u==null?void 0:u.sucio)===!0;$.useEffect(()=>{if(!B)return;const q=ee=>{ee.preventDefault(),ee.returnValue=""};return window.addEventListener("beforeunload",q),()=>window.removeEventListener("beforeunload",q)},[B]);const W=$.useCallback(()=>{const q=b.current,ee=q==null?void 0:q.versionNueva;q===void 0||ee===void 0||(g.current=ee.original,S({...sf(q),...ee,sucio:!1,generacion:q.generacion+1}),A(q.ruta,f))},[S,A,f]),re=$.useCallback(()=>{const q=b.current,ee=q==null?void 0:q.versionNueva;if(q===void 0||ee===void 0)return;const{versionNueva:z,...ke}=q;S({...ke,huella:ee.huella,sobrescribe:!0})},[S]),fe=$.useCallback(q=>{var z;h(q);const ee=b.current;m.current=ee===void 0||(z=ne.current)==null?void 0:z[ee.ruta],ee!==void 0&&A(ee.ruta,q)},[A]),he=$.useCallback(()=>{const q=b.current;q!==void 0&&A(q.ruta,f)},[A,f]),ne=$.useRef(r);ne.current=r;const we=$.useCallback(()=>g.current,[]),je=$.useCallback(()=>{var q;return((q=b.current)==null?void 0:q.sucio)===!0},[]),J=u===void 0||r==null?void 0:r[u.ruta],oe=u==null?void 0:u.ruta;$.useEffect(()=>{oe===void 0||J===void 0||J.base===f||J===m.current||(m.current=J,A(oe,f))},[oe,J,f,A]);const R=J!==void 0&&J.base===f?J:void 0;return $.useMemo(()=>({actual:u,base:R,baseElegida:f,textoVivo:we,haySinGuardar:je,abrir:I,cerrar:M,descartar:M,cambiar:L,guardar:G,elegirBase:fe,pedirBase:he,recargar:W,seguirConLosMios:re}),[u,R,f,we,je,I,M,L,G,fe,he,W,re])}const LJ="_boton_xl444_4",IJ="_girando_xl444_17",lf={boton:LJ,girando:IJ};function Y8({subida:e,className:t,apagado:n=!1}){const r=n||e.esperando||e.motivoParaNo!==void 0;return o.jsxs("button",{type:"button",className:t===void 0?lf.boton:`${t} ${lf.boton}`,disabled:r,"aria-busy":e.esperando,title:e.esperando?"Preparando el plan de la subida…":e.motivoParaNo??"Sube a CloudStudio los cambios commiteados; antes eliges qué ficheros",onClick:e.alSubir,children:[e.esperando?o.jsx("span",{className:lf.girando,"aria-hidden":"true"}):null,"Subir"]})}const qJ="_panel_pnpjv_6",RJ="_aviso_pnpjv_14",PJ="_cabecera_pnpjv_25",FJ="_proyecto_pnpjv_32",OJ="_rama_pnpjv_38",BJ="_recargar_pnpjv_48 _secundario_1l1rx_39",HJ="_cuenta_pnpjv_55",UJ="_botones_pnpjv_62",VJ="_subir_pnpjv_79",GJ="_bajar_pnpjv_75",WJ="_nota_pnpjv_102",ZJ="_registro_pnpjv_115",QJ="_operacion_pnpjv_125",XJ="_cabeceraDeOperacion_pnpjv_131",YJ="_accion_pnpjv_138",KJ="_sello_pnpjv_145",JJ="_lineas_pnpjv_155",Nn={panel:qJ,aviso:RJ,cabecera:PJ,proyecto:FJ,rama:OJ,recargar:BJ,cuenta:HJ,botones:UJ,subir:VJ,bajar:GJ,nota:WJ,registro:ZJ,operacion:QJ,cabeceraDeOperacion:XJ,accion:YJ,sello:KJ,lineas:JJ};function eee(e){const t=e.pendientes;return t===void 0?"No consta cuánto falta por subir.":t===0?"No hay nada por subir: lo que está en esta copia ya está en la rama.":`${t} ${t===1?"fichero":"ficheros"} por subir.`}const cf="VACÍA esta copia y la baja entera de la rama, con un git nuevo: lo que no esté commiteado y la historia de git de la copia se pierden. Antes pide confirmación.",tee={subir:"Subir",bajar:"Actualizar repo local",estado:"Consultar el estado"};function nee({operaciones:e}){return e===void 0||e.length===0?null:o.jsx("section",{className:Nn.registro,"aria-label":"Registro de la sincronización",children:e.map((t,n)=>{const r=eu(t.cuando);return o.jsxs("details",{className:Nn.operacion,open:n===0,children:[o.jsxs("summary",{className:Nn.cabeceraDeOperacion,children:[o.jsx("span",{className:Nn.accion,children:tee[t.accion]}),r===void 0?null:o.jsx("span",{className:Nn.sello,children:` · ${r}`})]}),o.jsx("pre",{className:Nn.lineas,children:t.lineas.join(`
|
|
498
|
-
`)})]},`${t.accion}-${t.cuando}`)})})}function ree({sync:e,alPedir:t,subida:n,alRecargar:r,conectado:a}){const l=$.useRef(!0),i=e===void 0;$.useEffect(()=>{if(a===!1)return;const m=l.current;l.current=!1,!(!m&&!i)&&r()},[i,a,r]);const u=Kl(e,a);if(e===void 0)return o.jsx("p",{className:Nn.aviso,children:"Consultando la sincronización con CloudStudio…"});if(e.proyecto===void 0||e.rama===void 0)return o.jsxs("div",{className:Nn.panel,children:[o.jsx("p",{className:Nn.aviso,children:"Este proyecto no está dado de alta en CloudStudio, así que no hay nada que subir ni que bajar. Se elige al abrir el proyecto —entorno, proyecto y rama—, y a partir de ahí esta banda enseña lo que hay pendiente."}),e.error===void 0?null:o.jsx("p",{className:Nn.aviso,children:e.error})]});const d=e.pendientes===0;return o.jsxs("div",{className:Nn.panel,children:[o.jsxs("div",{className:Nn.cabecera,children:[o.jsx("span",{className:Nn.proyecto,children:e.proyecto}),o.jsxs("span",{className:Nn.rama,children:["rama ",e.rama]}),o.jsxs("button",{type:"button",className:Nn.recargar,title:"Vuelve a medir cuánto queda por subir a CloudStudio",disabled:u.esperando||a===!1,"aria-busy":u.esperando,onClick:()=>{u.empezar(),r()},children:[u.esperando?o.jsx(Pi,{}):null,"Refrescar"]})]}),e.error!==void 0?o.jsx("p",{className:Nn.aviso,children:e.error}):e.pendientes===void 0?o.jsx("p",{className:Nn.aviso,children:"No consta cuánto falta por subir."}):o.jsx("p",{className:Nn.cuenta,children:eee(e)}),o.jsxs("div",{className:Nn.botones,children:[d?null:o.jsx(Y8,{subida:n??{esperando:!1,alSubir:()=>t("subir")},className:Nn.subir,apagado:a===!1}),o.jsx("button",{type:"button",className:Nn.bajar,title:cf,onClick:()=>t("bajar"),children:"Actualizar repo local"})]}),o.jsx("p",{className:Nn.nota,children:d?`«Actualizar repo local» ${cf} Lo que pasa queda aquí abajo, en el registro de esta sesión.`:`Subir pide el plan y eliges qué ficheros suben antes de aprobarlo, y se niega con cambios sin commitear. «Actualizar repo local» ${cf} Lo que pasa —lo que sube, lo que no y por qué— queda aquí abajo, en el registro de esta sesión.`})]})}const aee="_lista_1thq4_9",oee="_encabezado_1thq4_23",see="_rotulo_1thq4_31",iee="_nueva_1thq4_42 _secundario_1l1rx_39",lee="_avisoConexion_1thq4_47",cee="_aviso_1thq4_47",uee="_filas_1thq4_63",dee="_fila_1thq4_63",pee="_punto_1thq4_85",mee="_cuerpo_1thq4_112",hee="_cabecera_1thq4_17",fee="_titulo_1thq4_17",gee="_etiquetaEstado_1thq4_135",vee="_motivo_1thq4_140",bee="_acciones_1thq4_150",yee="_espera_1thq4_158",xee="_contenido_1thq4_165",_ee="_adjuntosDeTarea_1thq4_175",wee="_encargo_1thq4_180",In={lista:aee,encabezado:oee,rotulo:see,nueva:iee,avisoConexion:lee,aviso:cee,filas:uee,fila:dee,punto:pee,cuerpo:mee,cabecera:hee,titulo:fee,etiquetaEstado:gee,motivo:vee,acciones:bee,espera:yee,contenido:xee,adjuntosDeTarea:_ee,encargo:wee},jee={nuevo:"Nuevo","en-proceso":"En proceso","requiere-atencion":"Esperando feedback",terminada:"Terminada"};function Cee({tareas:e,alNuevaTarea:t,corriendoAqui:n,ejecutaOtroProceso:r,alReintentar:a,alDescartar:l,alTerminar:i,alEnviarFeedback:u,alContinuar:d,alArrancarAhora:m,consolaAbierta:f,sesionAbierta:h,trabajandoEnElChat:b,alMirar:y,alDejarDeMirar:g,mirando:_,mirada:C,conectado:k}){const S=k===!1;return o.jsxs("section",{className:In.lista,"aria-label":"Tareas del proyecto",children:[o.jsxs("div",{className:In.encabezado,children:[o.jsx("span",{className:In.rotulo,children:"Tareas en background"}),t===void 0?null:o.jsx("button",{type:"button",className:In.nueva,disabled:S,onClick:t,children:"Nueva tarea"})]}),S&&t!==void 0?o.jsx("p",{className:In.avisoConexion,children:"Sin conexión: no se puede crear una tarea hasta reconectar."}):null,n===void 0?null:o.jsx(B8,{corriendoAqui:n,...r===void 0?{}:{ejecutaOtroProceso:r},donde:"esta lista"}),e===void 0?o.jsx("p",{className:In.aviso,children:"Consultando la cola de tareas de este proyecto…"}):e.length===0?o.jsx("p",{className:In.aviso,children:"Este proyecto todavía no tiene ninguna tarea en background. Pulsa «Nueva tarea» para darle al agente un encargo que trabaje solo, sin que tengas que quedarte mirando: se aplica sin pedir aprobación, porque la autorización es crearla."}):o.jsx("ul",{className:In.filas,children:e.map(A=>o.jsx(kee,{tarea:A,...A.tras===void 0?{}:{anterior:e.find(I=>I.id===A.tras)},conectado:k,corriendoAqui:n,...a===void 0?{}:{alReintentar:a},...l===void 0?{}:{alDescartar:l},...i===void 0?{}:{alTerminar:i},...u===void 0?{}:{alEnviarFeedback:u},...d===void 0?{}:{alContinuar:d},...m===void 0?{}:{alArrancarAhora:m},puedeArrancar:Uy(A,e),esperaPorTuConsola:f===!0,...A.sesion!==void 0&&A.sesion===h?{enTuChat:b===!0?"trabajando":"abierta"}:{},...y===void 0?{}:{alMirar:y},...g===void 0?{}:{alDejarDeMirar:g},..._===void 0?{}:{mirando:_},...C===void 0?{}:{mirada:C}},A.id))})]})}function kee({tarea:e,anterior:t,enTuChat:n,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,alContinuar:u,alArrancarAhora:d,puedeArrancar:m,esperaPorTuConsola:f,conectado:h,corriendoAqui:b,alMirar:y,alDejarDeMirar:g,mirando:_,mirada:C}){const[k,S]=$.useState(!1);return o.jsxs("li",{className:In.fila,"data-estado":e.estado,children:[o.jsx("span",{className:In.punto,"aria-hidden":"true"}),o.jsxs("div",{className:In.cuerpo,children:[o.jsxs("div",{className:In.cabecera,children:[o.jsx("span",{className:In.titulo,children:e.titulo}),o.jsx("span",{className:In.etiquetaEstado,children:jee[e.estado]})]}),_===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:In.motivo,children:e.motivo}),e.estado==="requiere-atencion"&&n!==void 0?o.jsx("p",{className:In.espera,children:n==="trabajando"?"La estás atendiendo tú en el chat: el agente trabaja ahí, con cada escritura aprobada. Sigue aparcada como tarea.":"Su conversación está abierta en tu chat: puedes seguirla ahí o mandarla a continuar sola."}):null,e.estado==="nuevo"&&t!==void 0&&t.estado!=="terminada"?o.jsx("p",{className:In.espera,children:`espera a: ${t.titulo}`}):null,o.jsxs("details",{className:In.contenido,onToggle:A=>S(A.currentTarget.open),children:[o.jsx("summary",{children:"Ver el encargo"}),k?o.jsxs(o.Fragment,{children:[e.adjuntos.length>0?o.jsx("p",{className:In.adjuntosDeTarea,children:`Adjuntos: ${e.adjuntos.map(A=>A.nombre).join(", ")}`}):null,o.jsx("p",{className:In.encargo,children:e.encargo})]}):null]}),o.jsx(Om,{tarea:e})]}),o.jsx(m4,{tarea:e,conectado:h,corriendoAqui:b,...y===void 0?{}:{alMirar:y},...g===void 0?{}:{alDejarDeMirar:g},..._===void 0?{}:{mirando:_},...C===void 0?{}:{mirada:C}})]}),o.jsx("div",{className:In.acciones,children:o.jsx(p4,{tarea:e,conectado:h,alReintentar:r,alDescartar:a,alTerminar:l,alEnviarFeedback:i,...u===void 0?{}:{alContinuar:u},...d===void 0?{}:{alArrancarAhora:d},...m===void 0?{}:{puedeArrancar:m},...f===void 0?{}:{esperaPorTuConsola:f}})})]})}function A0(e){const t=e.toLowerCase().replace(/-/g,"");return/^[0-9a-f]{32}$/.test(t)?t.slice(0,8):void 0}const Nee="_capa_18fw9_12",See="_velo_18fw9_18",$ee="_tarjeta_18fw9_28",Aee="_titulo_18fw9_39",Eee="_aviso_18fw9_46",Dee="_campo_18fw9_52",zee="_select_18fw9_60",Tee="_textarea_18fw9_61",Mee="_error_18fw9_76",Lee="_acciones_18fw9_82",Iee="_principal_18fw9_89 _primario_1l1rx_67 _grande_1l1rx_26",qee="_accion_18fw9_82 _secundario_1l1rx_39 _grande_1l1rx_26",Ree="_cancelar_18fw9_97 _secundario_1l1rx_39 _grande_1l1rx_26",Pee="_barraDeTicket_18fw9_103",Fee="_ticket_18fw9_114",Oee="_avisoDelGestor_18fw9_123",Bee="_cerrarAviso_18fw9_136 _icono_1l1rx_149",Ht={capa:Nee,velo:See,tarjeta:$ee,titulo:Aee,aviso:Eee,campo:Dee,select:zee,textarea:Tee,error:Mee,acciones:Lee,principal:Iee,accion:qee,cancelar:Ree,barraDeTicket:Pee,ticket:Fee,avisoDelGestor:Oee,cerrarAviso:Bee},K8=e=>e??"el gestor",f4=e=>A0(e)??e;function J8(e){const[t,n]=$.useState((e==null?void 0:e.propuesta)??"");return $.useEffect(()=>{n((e==null?void 0:e.propuesta)??"")},[e]),[t,n]}function e9({titulo:e,alCancelar:t,children:n}){return o.jsx(rr,{open:!0,onClose:t,title:e,headless:!0,className:Ht.capa,children:o.jsx("div",{className:Ht.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:Ht.tarjeta,children:[o.jsx("p",{className:Ht.titulo,children:e}),n]})})})}function Hee({clave:e,nombreDelGestor:t,transiciones:n,errorTransiciones:r,enviando:a,error:l,alConfirmar:i,alCancelar:u}){var g;const[d,m]=J8(n),f=(n==null?void 0:n.lista)??[],h=(g=f.find(_=>_.id===d))==null?void 0:g.destino,b=f4(e),y=h===void 0?`¿Empezar con ${b}?`:`¿Pasar ${b} a ${h}?`;return o.jsxs(e9,{titulo:y,alCancelar:u,children:[n!==void 0?null:r===void 0?o.jsx("p",{className:Ht.aviso,children:`Consultando las transiciones de ${b}…`}):o.jsx("p",{className:Ht.error,role:"alert",children:`No se pudieron consultar las transiciones: ${r}`}),n===void 0?null:f.length===0?o.jsx("p",{className:Ht.aviso,children:`No hay transiciones disponibles para ${b}.`}):o.jsxs("label",{className:Ht.campo,children:["Transición",o.jsxs("select",{className:Ht.select,value:d,onChange:_=>m(_.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),f.map(_=>o.jsx("option",{value:_.id,children:_.nombre},_.id))]})]}),l===void 0?null:o.jsx("p",{className:Ht.error,role:"alert",children:l}),o.jsxs("div",{className:Ht.acciones,children:[f.length===0?null:o.jsx(Le,{type:"button",variant:"primary",className:Ht.principal,disabled:a||d==="",onClick:()=>i(d),children:"Pasar y empezar"}),o.jsx(Le,{type:"button",variant:"outline",className:Ht.accion,disabled:a,onClick:()=>i(void 0),children:`Empezar sin tocar ${K8(t)}`}),o.jsx(Le,{type:"button",variant:"outline",className:Ht.cancelar,onClick:u,children:"Cancelar"})]})]})}function Uee({clave:e,nombreDelGestor:t,comentario:n,transiciones:r,errorTransiciones:a,enviando:l,error:i,alConfirmar:u,alCancelar:d}){var C;const[m,f]=$.useState(n),[h,b]=J8(r),y=(r==null?void 0:r.lista)??[],g=(C=y.find(k=>k.id===h))==null?void 0:C.destino,_=m.trim()==="";return o.jsxs(e9,{titulo:`Cerrar ${f4(e)} en ${K8(t)}`,alCancelar:d,children:[o.jsxs("label",{className:Ht.campo,children:["Comentario",o.jsx("textarea",{className:Ht.textarea,rows:5,value:m,onChange:k=>f(k.target.value)})]}),r!==void 0||a===void 0?null:o.jsx("p",{className:Ht.error,role:"alert",children:`No se pudieron consultar las transiciones: ${a}`}),y.length===0?null:o.jsxs("label",{className:Ht.campo,children:["Transición",o.jsxs("select",{className:Ht.select,value:h,onChange:k=>b(k.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),y.map(k=>o.jsx("option",{value:k.id,children:k.nombre},k.id))]})]}),i===void 0?null:o.jsx("p",{className:Ht.error,role:"alert",children:i}),o.jsxs("div",{className:Ht.acciones,children:[g===void 0?null:o.jsx(Le,{type:"button",variant:"primary",className:Ht.principal,disabled:l||_,onClick:()=>u(m,h),children:`Comentar y pasar a ${g}`}),o.jsx(Le,{type:"button",variant:"outline",className:Ht.accion,disabled:l||_,onClick:()=>u(m,void 0),children:"Solo comentar"}),o.jsx(Le,{type:"button",variant:"outline",className:Ht.cancelar,onClick:d,children:"Cancelar"})]})]})}function Vee({ticket:e,nombreDelGestor:t,ocupado:n,conectado:r,alPedir:a}){return o.jsxs("div",{className:Ht.barraDeTicket,children:[o.jsx("span",{className:Ht.ticket,title:e,children:f4(e)}),o.jsx("button",{type:"button",className:Ht.accion,onClick:a,disabled:!r||n,children:n?"Preparando…":t===void 0?"Cerrar la tarea":`Cerrar en ${t}`})]})}function e6({texto:e,alCerrar:t}){return o.jsxs("div",{className:Ht.avisoDelGestor,role:"status",children:[o.jsx("span",{children:e}),o.jsx("button",{type:"button",className:Ht.cerrarAviso,onClick:t,"aria-label":"Descartar el aviso",children:"×"})]})}const Gee="_cabecera_1lp5d_11",Wee="_pastillas_1lp5d_20",Zee="_pastilla_1lp5d_20",Qee="_acciones_1lp5d_58",Xee="_secundario_1lp5d_64 _secundario_1l1rx_39",Yee="_primario_1lp5d_69 _primario_1l1rx_67",Kee="_borrar_1lp5d_77 _peligro_1l1rx_18",Jee="_negativa_1lp5d_82",ete="_tira_1lp5d_92",tte="_textoDeTira_1lp5d_122",nte="_girando_1lp5d_130 _girando_jnvvl_174",rte="_bloque_1lp5d_139 _equipo_tqt2p_8",ate="_tituloDeBloque_1lp5d_148 _titulo_tqt2p_22",ote="_vacio_1lp5d_156",ste="_filaDeModo_1lp5d_164",ite="_notaDeModo_1lp5d_173",an={cabecera:Gee,pastillas:Wee,pastilla:Zee,acciones:Qee,secundario:Xee,primario:Yee,borrar:Kee,negativa:Jee,tira:ete,textoDeTira:tte,girando:nte,bloque:rte,tituloDeBloque:ate,vacio:ote,filaDeModo:ste,notaDeModo:ite};function lte({nombre:e,alConfirmar:t,alCerrar:n}){const[r,a]=$.useState(""),[l,i]=$.useState(!1),[u,d]=$.useState(void 0),m=r.trim()===e,f=async()=>{i(!0),d(void 0);const h=await t().catch(()=>"no se pudo hablar con el servidor");i(!1),d(h)};return o.jsx(rr,{open:!0,onClose:n,title:"Borrar copia local",headless:!0,className:me.capa,children:o.jsx("div",{className:me.velo,onClick:h=>{h.target===h.currentTarget&&!l&&n()},children:o.jsxs("div",{className:me.ventana,role:"alertdialog","aria-label":`Borrar la copia local de ${e}`,children:[o.jsx("h2",{className:me.titulo,children:"Borrar copia local"}),o.jsxs("p",{className:me.nota,children:["Se borra la copia de «",e,"» en este equipo, entera: ",o.jsx("strong",{children:"todas sus sesiones"}),", su historial de conversación, los artefactos y ",o.jsx("strong",{children:"los cambios que no hayas subido a CloudStudio"}),". No hay papelera."]}),o.jsx("p",{className:me.nota,children:"Lo que hay en CloudStudio no se toca: el proyecto seguirá en la lista, sin descargar, y se volverá a bajar al abrirlo."}),o.jsxs("label",{className:me.etiqueta,htmlFor:"borrar-copia-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"borrar-copia-nombre",className:me.campo,value:r,autoFocus:!0,autoComplete:"off",spellCheck:!1,onChange:h=>a(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m&&!l&&f()}}),u===void 0?null:o.jsxs("p",{className:me.fallo,role:"alert",children:["No se ha borrado: ",u]}),o.jsxs("div",{className:me.acciones,children:[o.jsx(Le,{variant:"outline",className:me.accion,disabled:l,onClick:n,children:"Cancelar"}),o.jsx(Le,{variant:"primary",className:nt(me.accion,me.principal,Bm.destructiva),disabled:!m||l,onClick:()=>void f(),children:l?"Borrando…":"Borrar"})]})]})})})}const cte="_gasto_42egi_6",ute="_totales_42egi_12",dte="_total_42egi_12",pte="_rotulo_42egi_25",mte="_cifra_42egi_34",hte="_unidad_42egi_41",fte="_cache_42egi_42",gte="_alcance_42egi_48",vte="_leyenda_42egi_54",bte="_muestra_42egi_70",yte="_segmento_42egi_77",xte="_lienzo_42egi_88",_te="_maximo_42egi_93",wte="_columnas_42egi_102",jte="_columna_42egi_102",Cte="_pila_42egi_134",kte="_tooltip_42egi_154",Nte="_tituloTooltip_42egi_171",Ste="_fechaTooltip_42egi_178",$te="_tabla_42egi_184",Zt={gasto:cte,totales:ute,total:dte,rotulo:pte,cifra:mte,unidad:hte,cache:fte,alcance:gte,leyenda:vte,muestra:bte,segmento:yte,lienzo:xte,maximo:_te,columnas:wte,columna:jte,pila:Cte,tooltip:kte,tituloTooltip:Nte,fechaTooltip:Ste,tabla:$te};function Ate({datos:e}){const[t,n]=$.useState(void 0),{barras:r,total:a,conGasto:l,sinGasto:i,hayExterno:u}=e,d=Math.max(1,...r.map(f=>f.modelo.tokens+f.externo.tokens)),m=r.find(f=>f.id===t);return o.jsxs("div",{className:Zt.gasto,children:[o.jsxs("dl",{className:Zt.totales,children:[o.jsxs("div",{className:Zt.total,children:[o.jsx("dt",{className:Zt.rotulo,children:u?"Modelo":"Total"}),o.jsxs("dd",{className:Zt.cifra,children:[Rt(a.modelo.tokens)," ",o.jsx("span",{className:Zt.unidad,children:"tokens"}),a.modelo.cache>0?o.jsxs("span",{className:Zt.cache,children:[" · ",Rt(a.modelo.cache)," de caché"]}):null]})]}),u?o.jsxs("div",{className:Zt.total,children:[o.jsx("dt",{className:Zt.rotulo,children:"Agente externo"}),o.jsxs("dd",{className:Zt.cifra,children:[Rt(a.externo.tokens)," ",o.jsx("span",{className:Zt.unidad,children:"tokens"}),a.externo.cache>0?o.jsxs("span",{className:Zt.cache,children:[" · ",Rt(a.externo.cache)," de caché"]}):null]})]}):null]}),o.jsxs("p",{className:Zt.alcance,children:["de ",l," ",l===1?"sesión":"sesiones",i>0?` · ${i} sin gasto que conste, fuera del total`:""]}),u?o.jsxs("ul",{className:Zt.leyenda,"aria-label":"leyenda",children:[o.jsxs("li",{children:[o.jsx("span",{className:Zt.muestra,"data-serie":"modelo","aria-hidden":"true"}),"Modelo"]}),o.jsxs("li",{children:[o.jsx("span",{className:Zt.muestra,"data-serie":"externo","aria-hidden":"true"}),"Agente externo"]})]}):null,o.jsxs("div",{className:Zt.lienzo,children:[o.jsx("span",{className:Zt.maximo,"aria-hidden":"true",children:Rt(d)}),o.jsx("div",{className:Zt.columnas,role:"img","aria-label":`Tokens de las ${r.length} últimas sesiones con gasto: la mayor, ${Rt(d)}.`,children:r.map(f=>o.jsx(Ete,{barra:f,maximo:d,hayExterno:u,alEnfocar:()=>n(f.id),alSoltar:()=>n(h=>h===f.id?void 0:h)},f.id))}),m===void 0?null:o.jsxs("div",{className:Zt.tooltip,role:"status",children:[o.jsx("strong",{className:Zt.tituloTooltip,children:b2(m)}),m.ultimoTurno===void 0?null:o.jsx("span",{className:Zt.fechaTooltip,children:eu(m.ultimoTurno)}),o.jsx("span",{children:t9(m,u)})]})]}),o.jsxs("details",{className:Zt.tabla,children:[o.jsx("summary",{children:"Ver como tabla"}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{scope:"col",children:"Sesión"}),o.jsx("th",{scope:"col",children:"Último turno"}),o.jsx("th",{scope:"col",children:u?"Modelo":"Tokens"}),u?o.jsx("th",{scope:"col",children:"Agente externo"}):null,o.jsx("th",{scope:"col",children:"Caché"})]})}),o.jsx("tbody",{children:[...r].reverse().map(f=>o.jsxs("tr",{children:[o.jsx("td",{children:b2(f)}),o.jsx("td",{children:f.ultimoTurno===void 0?"—":eu(f.ultimoTurno)}),o.jsx("td",{children:Rt(f.modelo.tokens)}),u?o.jsx("td",{children:Rt(f.externo.tokens)}):null,o.jsx("td",{children:Rt(f.modelo.cache+f.externo.cache)})]},f.id))})]})]})]})}function b2(e){return e.titulo===""?"Sin título":e.titulo}function t9(e,t){const n=e.modelo.cache+e.externo.cache;return[...t?[`modelo ${Rt(e.modelo.tokens)}`,`externo ${Rt(e.externo.tokens)}`]:[`${Rt(e.modelo.tokens)} tokens`],...n>0?[`${Rt(n)} de caché`]:[]].join(" · ")}function Ete({barra:e,maximo:t,hayExterno:n,alEnfocar:r,alSoltar:a}){const l=i=>`${i/t*100}%`;return o.jsx("span",{className:Zt.columna,tabIndex:0,"aria-label":`${b2(e)}: ${t9(e,n)}`,onMouseEnter:r,onMouseLeave:a,onFocus:r,onBlur:a,children:o.jsxs("span",{className:Zt.pila,children:[e.externo.tokens>0?o.jsx("span",{className:Zt.segmento,"data-serie":"externo",style:{height:l(e.externo.tokens)}}):null,e.modelo.tokens>0?o.jsx("span",{className:Zt.segmento,"data-serie":"modelo",style:{height:l(e.modelo.tokens)}}):null]})})}const Dte=10,t6={entrada:0,salida:0,cache:0};function b0(e,t){const n=e==="modelo"?u2(t.modelo,t6):u2(t6,t.externo);return{tokens:n.nueva+n.salida,cache:n.cache}}const n6=(e,t)=>({tokens:e.tokens+t.tokens,cache:e.cache+t.cache});function zte(e){const t=e.filter(l=>l.consumo!==void 0),n={tokens:0,cache:0},r=t.reduce((l,i)=>({modelo:n6(l.modelo,b0("modelo",i.consumo)),externo:n6(l.externo,b0("externo",i.consumo))}),{modelo:n,externo:n});return{barras:x8(t).slice(0,Dte).reverse().map(l=>({id:l.id,titulo:l.titulo,...l.ultimoTurno===void 0?{}:{ultimoTurno:l.ultimoTurno},modelo:b0("modelo",l.consumo),externo:b0("externo",l.consumo)})),total:r,conGasto:t.length,sinGasto:e.length-t.length,hayExterno:t.some(l=>b0("externo",l.consumo).tokens>0)}}function Tte({proyecto:e,conectado:t,alDescargar:n,alAbrirCarpeta:r,alBorrarCopia:a,alPedirResumen:l,alFijarModoDelProyecto:i,modoGlobal:u,subida:d,marcaDeSubida:m,alVerPendientes:f}){var L;const h=t===!1,[b,y]=$.useState(!1),[g,_]=$.useState(void 0),[C,k]=$.useState(void 0),S=$.useRef(e.id);S.current=e.id;const A=()=>{const F=e.id;e.local===!0&&(k({proyecto:F,respondida:!1}),l(F).catch(()=>{}).then(G=>{S.current===F&&k({proyecto:F,respondida:!0,...G===void 0?{}:{foto:G}})}))};$.useEffect(A,[e.id,e.local]);const I=$.useRef(m);$.useEffect(()=>{I.current!==m&&(I.current=m,A())},[m]);const M=(C==null?void 0:C.proyecto)===e.id?C:void 0;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:an.cabecera,role:"group","aria-label":"Copia local",children:[o.jsxs("div",{className:an.pastillas,children:[e.local===!0?o.jsxs("span",{className:an.pastilla,"data-estado":"local",children:[o.jsx(J2,{size:14}),"en tu equipo"]}):o.jsxs("span",{className:an.pastilla,"data-estado":"sin-descargar",children:[o.jsx(J7,{size:14}),"sin descargar"]}),e.compartido===!0?o.jsxs("span",{className:an.pastilla,"data-estado":"compartido",children:[o.jsx(a4,{size:14}),"compartido contigo"]}):null]}),e.local===!0?o.jsxs("div",{className:an.acciones,children:[o.jsx("button",{type:"button",className:an.secundario,disabled:h,title:"Abre la carpeta del proyecto en el explorador de ficheros de este equipo",onClick:async()=>{_(void 0),_(await r(e.id).catch(()=>"no se pudo hablar con el servidor"))},children:"Abrir carpeta"}),o.jsx("button",{type:"button",className:an.borrar,disabled:h,onClick:()=>y(!0),children:"Borrar copia local"})]}):o.jsx("div",{className:an.acciones,children:o.jsx("button",{type:"button",className:an.primario,disabled:h,onClick:n,children:"Descargar"})})]}),g===void 0?null:o.jsxs("p",{className:an.negativa,role:"alert",children:["No se ha abierto la carpeta: ",g]}),e.local===!0?o.jsxs(o.Fragment,{children:[o.jsx(Ite,{medida:M,apagado:h,alActualizar:A,...d===void 0?{}:{subida:d},...f===void 0?{}:{alVerPendientes:f}}),((L=M==null?void 0:M.foto)==null?void 0:L.modoDeEscritura)===void 0||i===void 0?null:o.jsx(Lte,{guardado:M.foto.modoDeEscritura.proyecto,...u===void 0?{}:{modoGlobal:u},apagado:h,alFijar:async F=>{const G=e.id,O=await i(G,F).catch(()=>({motivo:"no se pudo hablar con el servidor"}));return"guardado"in O&&S.current===G&&k(B=>(B==null?void 0:B.proyecto)!==G||B.foto===void 0?B:{...B,foto:{...B.foto,modoDeEscritura:O.guardado}}),"motivo"in O?O.motivo:void 0}}),o.jsxs("section",{className:an.bloque,"aria-label":"Gasto del proyecto",children:[o.jsx("h2",{className:an.tituloDeBloque,children:"Gasto"}),o.jsx(qte,{sesiones:e.sesiones??[]})]})]}):null,b?o.jsx(lte,{nombre:e.nombre,alCerrar:()=>y(!1),alConfirmar:async()=>{const F=await a(e.id);return F===void 0&&y(!1),F}}):null]})}const Mte={supervisado:"Supervisado",autonomo:"Autónomo"};function Lte({guardado:e,modoGlobal:t,apagado:n,alFijar:r}){const[a,l]=$.useState(!1),[i,u]=$.useState(void 0);return o.jsxs("section",{className:an.bloque,"aria-label":"Conversaciones nuevas",children:[o.jsx("h2",{className:an.tituloDeBloque,children:"Conversaciones nuevas"}),o.jsxs("label",{className:an.filaDeModo,children:[o.jsx("span",{children:"Empiezan en"}),o.jsxs(ls,{value:e??"global",disabled:n||a,cargando:a,onChange:d=>{const m=d.target.value,f=m==="supervisado"||m==="autonomo"?m:void 0;u(void 0),l(!0),r(f).then(h=>{l(!1),u(h)})},children:[o.jsx("option",{value:"global",children:t===void 0?"Como el global":`Como el global (${Mte[t]})`}),o.jsx("option",{value:"supervisado",children:"Supervisado en este proyecto"}),o.jsx("option",{value:"autonomo",children:"Autónomo en este proyecto"})]})]}),o.jsx("p",{className:an.notaDeModo,children:"Solo decide cómo empiezan las conversaciones nuevas de este proyecto; en cada una se puede cambiar en la caja del chat. El global está en Ajustes > General."}),i===void 0?null:o.jsxs("p",{className:an.negativa,role:"alert",children:["No se ha guardado: ",i]})]})}function Ite({medida:e,apagado:t,alActualizar:n,subida:r,alVerPendientes:a}){var d;const l=(d=e==null?void 0:e.foto)==null?void 0:d.sync;let i,u;return e===void 0||!e.respondida?(u="midiendo",i=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:an.girando,"aria-hidden":"true"}),"midiendo lo que queda por subir…"]})):e.foto===void 0?(u="error",i="No se ha podido medir lo que queda por subir."):l===void 0||l.proyecto===void 0?(u="sin-vincular",i="No está vinculado a CloudStudio: no hay nada con lo que comparar."):l.error!==void 0?(u="error",i=`No se ha podido medir: ${l.error}`):l.pendientes===void 0?(u="error",i="No se ha podido medir lo que queda por subir."):l.pendientes===0?(u="al-dia",i="Nada por subir: la copia está igual que la rama en CloudStudio."):(u="pendientes",i=o.jsxs("span",{title:"Ficheros distintos de lo que consta en CloudStudio. Un renombrado cuenta como dos; un fichero nuevo que git aún no sigue no cuenta.",children:[o.jsxs("strong",{children:[l.pendientes," ",l.pendientes===1?"fichero":"ficheros"]})," ","con cambios sin subir",l.rama===void 0?"":` a «${l.rama}»`]})),o.jsxs("div",{className:an.tira,"data-estado":u,role:"status",children:[o.jsx("span",{className:an.textoDeTira,children:i}),a!==void 0&&u==="pendientes"?o.jsx("button",{type:"button",className:an.secundario,onClick:a,children:"Ver cambios"}):null,r!==void 0&&(u==="pendientes"||r.esperando)?o.jsx(Y8,{subida:r,className:an.primario,apagado:t}):null,o.jsxs("button",{type:"button",className:an.secundario,disabled:t||(e==null?void 0:e.respondida)===!1,"aria-busy":(e==null?void 0:e.respondida)===!1,onClick:n,children:[(e==null?void 0:e.respondida)===!1?o.jsx(Pi,{}):null,"Actualizar"]})]})}function qte({sesiones:e}){const t=zte(e);return t.conGasto===0?o.jsx("p",{className:an.vacio,children:"Todavía no consta gasto en este proyecto."}):o.jsx(Ate,{datos:t})}const Rte="_soporte_11ydl_5",Pte="_barra_11ydl_11",Fte="_principal_11ydl_19 _primario_1l1rx_67",Ote="_secundario_11ydl_24 _secundario_1l1rx_39",Bte="_filtro_11ydl_33",Hte="_aviso_11ydl_41",Ute="_error_11ydl_48",Vte="_grupo_11ydl_54",Gte="_tituloDeGrupo_11ydl_60",Wte="_lista_11ydl_66",Zte="_fila_11ydl_77",Qte="_cabecera_11ydl_81",Xte="_insignia_11ydl_91",Yte="_titulo_11ydl_60",Kte="_dato_11ydl_140",Jte="_exportar_11ydl_148 _secundario_1l1rx_39",ene="_hallazgos_11ydl_154",tne="_turno_11ydl_168",qn={soporte:Rte,barra:Pte,principal:Fte,secundario:Ote,filtro:Bte,aviso:Hte,error:Ute,grupo:Vte,tituloDeGrupo:Gte,lista:Wte,fila:Zte,cabecera:Qte,insignia:Xte,titulo:Yte,dato:Kte,exportar:Jte,hallazgos:ene,turno:tne};function uf(e,t,n){return`/soporte?${new URLSearchParams({tipo:t,proyecto:e,...n===void 0?{}:{id:n}}).toString()}`}function nne(e){return e.analisis.hallazgos.filter(t=>t.gravedad!=="info").length}function rne(e){const t=nne(e);return e.analisis.gravedad==="ok"?"sin problemas":e.analisis.gravedad==="error"?`${t} con error`:`${t} aviso${t===1?"":"s"}`}function r6(e){return e.titulo.trim()===""?"Sin título":e.titulo}function ane(e){const t=e.ultimoTurno??e.creada;return t===void 0?void 0:t.slice(0,16).replace("T"," ")}const one={nuevo:"nueva","en-proceso":"en proceso","requiere-atencion":"requiere atención",terminada:"terminada"};function sne({fila:e,url:t}){const[n,r]=$.useState(!1),a=e.analisis.hallazgos.length>0,l=ane(e);return o.jsxs("li",{className:qn.fila,children:[o.jsxs("div",{className:qn.cabecera,children:[o.jsx("span",{className:qn.insignia,"data-gravedad":e.analisis.gravedad,children:rne(e)}),a?o.jsx("button",{type:"button",className:qn.titulo,"aria-expanded":n,onClick:()=>r(!n),children:r6(e)}):o.jsx("span",{className:qn.titulo,children:r6(e)}),o.jsxs("span",{className:qn.dato,children:[e.estado===void 0?null:`${one[e.estado]} · `,e.enVuelo===!0?"en marcha · ":null,l]}),o.jsx("a",{className:qn.exportar,href:t,download:!0,children:"Exportar"})]}),n&&a?o.jsx("ul",{className:qn.hallazgos,children:e.analisis.hallazgos.map((i,u)=>o.jsxs("li",{"data-gravedad":i.gravedad,children:[i.turno===void 0?null:o.jsxs("span",{className:qn.turno,children:["turno ",i.turno]}),i.mensaje]},u))}):null]})}function a6({titulo:e,filas:t,vacio:n,url:r}){return o.jsxs("section",{className:qn.grupo,"aria-label":e,children:[o.jsx("h2",{className:qn.tituloDeGrupo,children:e}),t.length===0?o.jsx("p",{className:qn.aviso,children:n}):o.jsx("ul",{className:qn.lista,children:t.map(a=>o.jsx(sne,{fila:a,url:r(a)},a.id))})]})}function ine({proyecto:e,conectado:t,alPedir:n}){const[r,a]=$.useState(void 0),[l,i]=$.useState(!1),[u,d]=$.useState(0),m=$.useRef(n);m.current=n,$.useEffect(()=>{if(!t)return;let g=!0;return a({proyecto:e,respondida:!1}),m.current(e).then(_=>{g&&a({proyecto:e,respondida:!0,..._===void 0?{}:{listado:_}})}),()=>{g=!1}},[e,t,u]);const f=(r==null?void 0:r.proyecto)===e?r:void 0,h=f==null?void 0:f.listado,b=f!==void 0&&!f.respondida,y=g=>l?g.filter(_=>_.analisis.gravedad!=="ok"):g;return o.jsxs("div",{className:qn.soporte,children:[o.jsxs("div",{className:qn.barra,children:[o.jsx("a",{className:qn.principal,href:uf(e,"proyecto"),download:!0,children:"Exportar proyecto"}),o.jsxs("label",{className:qn.filtro,children:[o.jsx("input",{type:"checkbox",checked:l,onChange:g=>i(g.target.checked)}),"Solo con problemas"]}),o.jsxs("button",{type:"button",className:qn.secundario,disabled:!t||b,"aria-busy":b,onClick:()=>d(g=>g+1),children:[b?o.jsx(Pi,{}):null,"Actualizar"]})]}),o.jsx("p",{className:qn.aviso,children:"El paquete lleva el código, las sesiones, sus trazas y la memoria del agente; nunca el .env, el historial de git ni las credenciales. Puede incluir rutas de tu equipo."}),f===void 0||!f.respondida?o.jsx("p",{className:qn.aviso,role:"status",children:"Analizando…"}):h===void 0?o.jsx("p",{className:qn.error,role:"status",children:"No se pudo pedir el análisis al servidor."}):o.jsxs(o.Fragment,{children:[o.jsx(a6,{titulo:"Chats",filas:y(h.chats),vacio:l?"Ningún chat con problemas.":"Este proyecto no tiene chats.",url:g=>uf(e,"chat",g.id)}),o.jsx(a6,{titulo:"Tareas",filas:y(h.tareas),vacio:l?"Ninguna tarea con problemas.":"Este proyecto no tiene tareas en background.",url:g=>uf(e,"tarea",g.id)})]})]})}const lne="_panel_1jmqz_8",cne="_cabecera_1jmqz_18",une="_titular_1jmqz_23",dne="_iconoDeApp_1jmqz_30",pne="_nombre_1jmqz_37",mne="_meta_1jmqz_44",hne="_trabajando_1jmqz_54",fne="_cuerpo_1jmqz_68",gne="_seccion_1jmqz_75",vne="_encabezado_1jmqz_82",bne="_titulo_1jmqz_90",yne="_aviso_1jmqz_96",xne="_error_1jmqz_103",_ne="_nota_1jmqz_109",wne="_lista_1jmqz_114",jne="_plan_1jmqz_146",Cne="_nombreDePlan_1jmqz_154",kne="_busqueda_1jmqz_158",Nne="_campo_1jmqz_164",Sne="_tarea_1jmqz_179",$ne="_filaDeTarea_1jmqz_183",Ane="_datos_1jmqz_197",Ene="_lineaPrincipal_1jmqz_205",Dne="_lineaSecundaria_1jmqz_212",zne="_clave_1jmqz_219",Tne="_abrirFuera_1jmqz_227",Mne="_desplegar_1jmqz_239",Lne="_estado_1jmqz_255",Ine="_accionesDeTarea_1jmqz_268",qne="_ficha_1jmqz_289",Rne="_filtros_1jmqz_298",Pne="_pastilla_1jmqz_304",Fne="_cuenta_1jmqz_335",One="_consultado_1jmqz_342",Bne="_icono_1jmqz_30",Hne="_avisoConAcciones_1jmqz_374",Une="_conector_1jmqz_381",Vne="_filaDeConector_1jmqz_389",Gne="_casilla_1jmqz_396",Wne="_interruptor_1jmqz_406",Zne="_bolita_1jmqz_433",Qne="_huecoDeInterruptor_1jmqz_449",Xne="_tituloDeConector_1jmqz_454",Yne="_alFinal_1jmqz_459",Kne="_vinculo_1jmqz_467",Jne="_vinculoNotion_1jmqz_477",ere="_base_1jmqz_486",tre="_esquema_1jmqz_517",nre="_lineaDelEsquema_1jmqz_523",rre="_principal_1jmqz_528 _primario_1l1rx_67",are="_accion_1jmqz_268 _secundario_1l1rx_39",ore="_peligro_1jmqz_536 _peligro_1l1rx_18",sre="_sincronizacion_1jmqz_543",ire="_enCurso_1jmqz_556",de={panel:lne,cabecera:cne,titular:une,iconoDeApp:dne,nombre:pne,meta:mne,trabajando:hne,cuerpo:fne,seccion:gne,encabezado:vne,titulo:bne,aviso:yne,error:xne,nota:_ne,lista:wne,plan:jne,nombreDePlan:Cne,busqueda:kne,campo:Nne,tarea:Sne,filaDeTarea:$ne,datos:Ane,lineaPrincipal:Ene,lineaSecundaria:Dne,clave:zne,abrirFuera:Tne,desplegar:Mne,estado:Lne,accionesDeTarea:Ine,ficha:qne,filtros:Rne,pastilla:Pne,cuenta:Fne,consultado:One,icono:Bne,avisoConAcciones:Hne,conector:Une,filaDeConector:Vne,casilla:Gne,interruptor:Wne,bolita:Zne,huecoDeInterruptor:Qne,tituloDeConector:Xne,alFinal:Yne,vinculo:Kne,vinculoNotion:Jne,base:ere,esquema:tre,lineaDelEsquema:nre,principal:rre,accion:are,peligro:ore,sincronizacion:sre,enCurso:ire};function Um(e,t){var n;if(t!==void 0)return(n=e==null?void 0:e.catalogo.find(r=>r.id===t))==null?void 0:n.nombre}function mm(e){return e.proyecto.startsWith("collection://")?e.nombreDelProyecto:e.proyecto}const o6=[{id:"resumen",etiqueta:"Resumen"},{id:"sincronizacion",etiqueta:"Sincronización"},{id:"tareas",etiqueta:"Tareas"},{id:"conectores",etiqueta:"Conectores"},{id:"soporte",etiqueta:"Soporte"}];function s6({nombre:e,entorno:t,rama:n,planes:r,copia:a,tareasEnFondo:l,tareasEnCurso:i,sincronizacion:u,gestor:d,conectores:m,conectado:f,turnoEnVuelo:h=!1,empezarEnVuelo:b,alVolverAlChat:y,alGestor:g,alAutorizarConector:_,alProbarConector:C,alAbrirAjustesDeConectores:k,alPedirSoporte:S}){var pe,Me,ge,ze,Pe;const[A,I]=$.useState("resumen"),M=a!==void 0&&a.proyecto.local!==!0,L=!M&&a!==void 0&&S!==void 0,F=M?o6.filter(qe=>qe.id==="resumen"):o6.filter(qe=>(qe.id!=="soporte"||L)&&(qe.id!=="sincronizacion"||u!==void 0)),G=$.useRef({}),O=$.useRef(new WeakSet),B=(qe,Nt)=>{var Ut;G.current[qe.accion]=qe;const Kt=(Ut=d==null?void 0:d.errores)==null?void 0:Ut[qe.accion];Kt!==void 0&&O.current.add(Kt),Nt===void 0?g(qe):g(qe,Nt)},W=qe=>{var Kt,Ut;if(qe==="pendientes")return(Ut=(Kt=d==null?void 0:d.estado)==null?void 0:Kt.vinculo)==null?void 0:Ut.conector;const Nt=G.current[qe];return Nt!==void 0&&"conector"in Nt?Nt.conector:void 0};hre({gestor:d,conectores:m,conectado:f,ultimas:G.current,repetidos:O.current,conectorDelFallo:W,pedir:B});const[re,fe]=$.useState(void 0),he=(pe=d==null?void 0:d.errores)==null?void 0:pe.empezar,ne=(Me=d==null?void 0:d.errores)==null?void 0:Me.transiciones,we=(ge=d==null?void 0:d.borrador)==null?void 0:ge.id;$.useEffect(()=>{we!==void 0&&fe(void 0)},[we]),$.useEffect(()=>{f||fe(void 0)},[f]),$.useEffect(()=>{f&&!M&&B({accion:"estado"})},[f]);const je=$.useRef({}),J=qe=>{fe(qe),je.current={empezar:he,transiciones:ne},B({accion:"transiciones",clave:qe,para:"empezar"})},oe=d==null?void 0:d.transiciones,R=oe!==void 0&&oe.clave===re&&oe.para==="empezar"?oe:void 0,q=he!==je.current.empezar?he:void 0,ee=ne!==je.current.transiciones?ne:void 0,z=qe=>{var Kt;if(re===void 0)return;const Nt=qe===void 0||(Kt=R==null?void 0:R.lista.find(Ut=>Ut.id===qe))==null?void 0:Kt.destino;B({accion:"empezar",clave:re,...qe===void 0?{}:{transicion:qe}},{destino:Nt})},ke=Um(m,(Pe=(ze=d==null?void 0:d.estado)==null?void 0:ze.vinculo)==null?void 0:Pe.conector);return o.jsxs("section",{className:de.panel,"aria-label":`Proyecto ${e}`,children:[o.jsxs("header",{className:de.cabecera,children:[(a==null?void 0:a.proyecto.icono)===!0?o.jsxs("div",{className:de.titular,children:[o.jsx(y8,{id:a.proyecto.id,lado:32,className:de.iconoDeApp}),o.jsx("h1",{className:de.nombre,children:e})]}):o.jsx("h1",{className:de.nombre,children:e}),t===void 0&&n===void 0?null:o.jsxs("p",{className:de.meta,children:[t===void 0?null:o.jsx("span",{children:`Entorno: ${t}`}),n===void 0?null:o.jsx("span",{children:`Rama: ${n}`})]})]}),h?o.jsxs("div",{className:de.trabajando,role:"status",children:[o.jsx("span",{children:"El agente está trabajando en esta sesión."}),y===void 0?null:o.jsx("button",{type:"button",className:de.accion,onClick:y,children:"Volver al chat"})]}):null,o.jsx("div",{className:Rl.cabecera,children:o.jsx("div",{className:nt(xn.tabs,Rl.tira),role:"tablist","aria-label":"Vistas del proyecto",children:F.map(qe=>o.jsxs("button",{type:"button",role:"tab","aria-selected":A===qe.id,className:nt(xn.tab,Rl.pestana,A===qe.id&&xn.tabActive),onClick:()=>I(qe.id),children:[qe.etiqueta,qe.id==="tareas"&&i!==void 0&&i>0?o.jsx("span",{className:de.enCurso,title:i===1?"Una tarea de fondo se está ejecutando":`${i} tareas de fondo se están ejecutando`,children:` · ${i} en curso`}):null]},qe.id))})}),o.jsx("div",{className:de.cuerpo,role:"tabpanel",children:A==="resumen"||M?o.jsxs(o.Fragment,{children:[a===void 0?null:o.jsx(Tte,{proyecto:a.proyecto,conectado:f,alDescargar:a.alDescargar,alAbrirCarpeta:a.alAbrirCarpeta,alBorrarCopia:a.alBorrarCopia,alPedirResumen:a.alPedirResumen,...a.alFijarModoDelProyecto===void 0?{}:{alFijarModoDelProyecto:a.alFijarModoDelProyecto},...a.modoGlobal===void 0?{}:{modoGlobal:a.modoGlobal},...a.subida===void 0?{}:{subida:a.subida},...a.marcaDeSubida===void 0?{}:{marcaDeSubida:a.marcaDeSubida},...u===void 0?{}:{alVerPendientes:()=>I("sincronizacion")}}),M?o.jsx("p",{className:de.aviso,children:"Tareas y Conectores aparecen cuando el proyecto está descargado: los dos trabajan sobre la copia abierta."}):o.jsx(lre,{...r===void 0?{}:{planes:r}})]}):A==="sincronizacion"&&u!==void 0?o.jsx("div",{className:de.sincronizacion,children:u}):A==="tareas"?o.jsxs(o.Fragment,{children:[l===void 0?null:o.jsxs("section",{className:de.seccion,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:de.titulo,children:"Tareas en background"}),l]}),o.jsx(bre,{gestor:d,conectado:f,ocupado:re!==void 0||b,turnoEnVuelo:h,...m===void 0?{}:{conectores:m},alGestor:B,alAutorizar:_,alEmpezar:J,alIrAConectores:()=>I("conectores"),alAbrirAjustes:k})]}):A==="soporte"&&L?o.jsx(ine,{proyecto:a.proyecto.id,conectado:f,alPedir:S}):o.jsx(wre,{gestor:d,conectores:m,conectado:f,alGestor:B,alAutorizar:_,alProbar:C,conectorDelFallo:W,alAbrirAjustes:k})}),re===void 0?null:o.jsx(Hee,{clave:re,...ke===void 0?{}:{nombreDelGestor:ke},...R===void 0?{}:{transiciones:R},...ee===void 0?{}:{errorTransiciones:ee.motivo},enviando:b,...b||q===void 0?{}:{error:q.motivo},alConfirmar:z,alCancelar:()=>fe(void 0)})]})}function lre({planes:e}){const t=e==null?void 0:e.filter(cre);return o.jsx(o.Fragment,{children:t===void 0||t.length===0?null:o.jsxs("section",{className:de.seccion,"aria-label":"Planes",children:[o.jsx("h2",{className:de.titulo,children:"Planes"}),o.jsx("ul",{className:de.lista,children:t.map(n=>{var l,i;const r=((l=n.tareas)==null?void 0:l.tareas)??[],a=r.length>0&&r.every(u=>u.progreso!==void 0);return o.jsxs("li",{className:de.plan,children:[o.jsx("span",{className:de.nombreDePlan,children:((i=n.tareas)==null?void 0:i.titulo)??n.nombre}),a?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:de.nota,children:h8(r)}),o.jsx(f8,{tareas:r})]}):null]},n.nombre)})})]})})}function cre(e){return e.ficheros.includes("PLAN.md")&&e.ficheros.includes("TASKS.md")}const ure="Hay un turno en marcha: con él en vuelo se volvería a la sesión que trabaja, no a una nueva. Espera a que termine o páralo.";function dre(e){return new Date(e).toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}function n9({error:e}){return e===void 0?null:o.jsx("p",{className:de.error,role:"alert",children:e.motivo})}const pre=["sitios","proyectos","buscarProyectos","describir","pendientes"];function g4(e){return/falta autorizar/.test(e)}function mre(e){return/no está conectado/.test(e)}const Vm=e=>{var t;return((t=e.prueba)==null?void 0:t.ok)===!0};function hre({gestor:e,conectores:t,conectado:n,ultimas:r,repetidos:a,conectorDelFallo:l,pedir:i}){const u=$.useRef(void 0),d=t==null?void 0:t.conectores;$.useEffect(()=>{var b;if(d===void 0)return;const m=new Map(d.flatMap(y=>{var g;return((g=y.prueba)==null?void 0:g.ok)===!0?[[y.id,y.prueba.cuando]]:[]})),f=u.current;if(u.current=m,f===void 0||!n)return;const h=[...m].filter(([y,g])=>f.get(y)!==g).map(([y])=>y);if(h.length!==0)for(const y of pre){const g=(b=e==null?void 0:e.errores)==null?void 0:b[y],_=r[y];if(g===void 0||_===void 0||a.has(g)||!g4(g.motivo))continue;const C=l(y);C===void 0||!h.includes(C)||i(_)}},[d])}function v4({error:e,conector:t,conectores:n,conectado:r,alAutorizar:a,alAbrirAjustes:l,sinDuplicarLaFila:i=!1,children:u}){var h;if(e===void 0)return null;const d=t===void 0||n==null?void 0:n.conectores.find(b=>b.id===t),m=d!==void 0&&g4(e.motivo)&&!(i&&!Vm(d)),f=t===void 0?"":((h=n==null?void 0:n.catalogo.find(b=>b.id===t))==null?void 0:h.nombre)??t;return o.jsxs("div",{className:de.avisoConAcciones,children:[o.jsx(n9,{error:e}),m?o.jsx("button",{type:"button",className:de.accion,onClick:()=>a(d.id),disabled:!r||d.autorizando===!0,children:d.autorizando===!0?"Esperando al navegador…":`Conectar ${f}`}):null,mre(e.motivo)?o.jsx("button",{type:"button",className:de.accion,onClick:l,children:"Añádelo en Ajustes"}):null,u]})}const fre=/PROBAR|PREPROD|REVIS|TEST/i,gre=e=>!fre.test(e),i6={"por-hacer":0,"en-curso":1,terminada:2};function vre(e){const t=new Map;for(const n of e){const r=t.get(n.estado);r===void 0?t.set(n.estado,{estado:n.estado,categoria:n.categoria,cuantas:1,orden:t.size}):r.cuantas++}return[...t.values()].sort((n,r)=>i6[n.categoria]-i6[r.categoria]||n.orden-r.orden).map(({estado:n,cuantas:r})=>({estado:n,cuantas:r}))}const l6=100,c6=(e,t)=>t||e.mias!==!0?e:{...e.texto===void 0?{}:{texto:e.texto}},u6=e=>({accion:"pendientes",...e.texto===void 0||e.texto===""?{}:{texto:e.texto},...e.mias===!0?{mias:!0}:{}});function bre({gestor:e,conectores:t,conectado:n,ocupado:r,turnoEnVuelo:a,alGestor:l,alAutorizar:i,alEmpezar:u,alIrAConectores:d,alAbrirAjustes:m}){var z,ke;const f=(z=e==null?void 0:e.estado)==null?void 0:z.vinculo,[h,b]=$.useState(""),[y,g]=$.useState(!1),[_,C]=$.useState({}),[k,S]=$.useState(void 0),A=$.useRef(void 0),I=$.useRef({}),M=pe=>{I.current=pe,l(u6(pe))},L=f===void 0?void 0:`${f.conector}|${f.sitio}|${f.proyecto}`,F=((ke=e==null?void 0:e.estado)==null?void 0:ke.admiteMias)===!0,G=$.useRef(void 0);$.useEffect(()=>{if(L===void 0)return;const pe=G.current!==void 0&&G.current!==L;G.current=L,pe&&(I.current={},b(""),g(!1),C({}),S(void 0)),l(u6(c6(I.current,F))),!pe&&k!==void 0&&(A.current=void 0,l({accion:"ficha",clave:k}))},[L]);const O=(e==null?void 0:e.errores)??{},B=Kl(O.pendientes===void 0?e==null?void 0:e.pendientes:O.pendientes,n);if((e==null?void 0:e.estado)===void 0)return O.estado===void 0?o.jsx("p",{className:de.aviso,children:"Consultando el gestor de tareas…"}):o.jsx("p",{className:de.error,role:"alert",children:`No se ha podido leer el gestor de tareas: ${O.estado.motivo}`});if(f===void 0)return o.jsxs("div",{className:de.seccion,children:[o.jsx("p",{className:de.aviso,children:"Este proyecto no tiene gestor de tareas."}),o.jsx("button",{type:"button",className:de.accion,onClick:d,children:"Vincular en Conectores"})]});const W=e.pendientes,re=Um(t,f.conector),fe=()=>M({texto:h.trim(),mias:F&&y}),he=()=>M(c6(I.current,F)),ne=()=>{g(!y),M({texto:h.trim(),mias:!y})},we=pe=>{if(k===pe){S(void 0);return}S(pe),A.current=O.ficha,l({accion:"ficha",clave:pe})},je=W===void 0?[]:vre(W.lista),J=pe=>_[pe]??gre(pe),oe=je.every(pe=>J(pe.estado)),R=W===void 0?[]:W.lista.filter(pe=>J(pe.estado)),q=e.ficha!==void 0&&e.ficha.clave===k?e.ficha:void 0,ee=O.ficha!==void 0&&O.ficha!==A.current&&O.ficha.clave===k?O.ficha:void 0;return o.jsxs("div",{className:de.seccion,children:[o.jsxs("div",{className:de.encabezado,children:[o.jsx("h2",{className:de.titulo,children:`Pendientes de ${mm(f)??"la base vinculada"}`}),W===void 0?null:o.jsxs("span",{className:de.consultado,children:[o.jsx("span",{className:de.nota,children:`Consultado a las ${dre(W.cuando)}`}),o.jsx("button",{type:"button",className:de.icono,"aria-label":"Actualizar",title:"Volver a consultar las pendientes",onClick:()=>{B.empezar(),he()},disabled:!n||B.esperando,"aria-busy":B.esperando,children:o.jsx("span",{className:B.esperando?`${$0.icono} ${$0.girando}`:$0.icono,children:o.jsx(CR,{})})})]})]}),o.jsxs("form",{className:de.busqueda,role:"search",onSubmit:pe=>{pe.preventDefault(),fe()},children:[o.jsx("input",{type:"search",className:de.campo,"aria-label":"Buscar tareas",placeholder:"Buscar en las pendientes",value:h,onChange:pe=>b(pe.target.value)}),o.jsx("button",{type:"submit",className:de.accion,disabled:!n,children:"Buscar"}),F?o.jsx("button",{type:"button",className:de.pastilla,"aria-pressed":y,title:"Solo las asignadas a la cuenta con la que está conectado el gestor",onClick:ne,disabled:!n,children:"Asignadas a mí"}):null]}),o.jsx(v4,{...O.pendientes===void 0?{}:{error:O.pendientes},conector:f.conector,...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:i,alAbrirAjustes:m,children:o.jsx("button",{type:"button",className:de.accion,onClick:he,disabled:!n,children:"Reintentar"})}),W===void 0?O.pendientes===void 0?o.jsx("p",{className:de.aviso,children:"Consultando las tareas…"}):null:W.lista.length===0?o.jsx("p",{className:de.aviso,children:W.texto===void 0?"No hay tareas pendientes.":`No hay tareas pendientes que coincidan con «${W.texto}».`}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:de.filtros,role:"group","aria-label":"Filtrar por estado",children:[o.jsxs("button",{type:"button",className:de.pastilla,"aria-pressed":oe,onClick:()=>{oe||C(Object.fromEntries(je.map(pe=>[pe.estado,!0])))},children:["Todas ",o.jsx("span",{className:de.cuenta,children:W.lista.length})]}),je.map(pe=>o.jsxs("button",{type:"button",className:de.pastilla,"aria-pressed":J(pe.estado),onClick:()=>C({..._,[pe.estado]:!J(pe.estado)}),children:[pe.estado," ",o.jsx("span",{className:de.cuenta,children:pe.cuantas})]},pe.estado))]}),W.lista.length>=l6?o.jsx("p",{className:de.aviso,children:`Se muestran las ${l6} más recientes; afina con la búsqueda.`}):null,R.length===0?o.jsx("p",{className:de.aviso,children:"Ninguna pendiente con estos filtros."}):o.jsx("ul",{className:de.lista,children:R.map(pe=>o.jsx(xre,{tarea:pe,...re===void 0?{}:{nombreDelGestor:re},conAsignado:W.mias!==!0,desplegada:k===pe.clave,...k===pe.clave&&q!==void 0?{descripcion:q.descripcion}:{},...k===pe.clave&&ee!==void 0?{errorDeFicha:ee}:{},conectado:n,ocupado:r,turnoEnVuelo:a,alAlternar:()=>we(pe.clave),alEmpezar:()=>u(pe.clave)},pe.clave))})]})]})}const yre="a, button, input, select, textarea, summary";function xre({tarea:e,nombreDelGestor:t,conAsignado:n,desplegada:r,descripcion:a,errorDeFicha:l,conectado:i,ocupado:u,turnoEnVuelo:d,alAlternar:m,alEmpezar:f}){const h=`ficha-${e.clave}`,b=e.etiqueta??A0(e.clave)??e.clave,y=`Abrir ${b} en ${t??"el gestor"}`,g=_=>{_.target instanceof Element&&_.target.closest(yre)!==null||m()};return o.jsxs("li",{className:de.tarea,"data-categoria":e.categoria,children:[o.jsxs("div",{className:de.filaDeTarea,onClick:g,children:[o.jsxs("div",{className:de.datos,children:[o.jsxs("div",{className:de.lineaPrincipal,children:[o.jsx("span",{className:de.clave,children:b}),e.url===void 0?null:o.jsx("a",{className:de.abrirFuera,href:e.url,target:"_blank",rel:"noreferrer","aria-label":y,title:y,children:o.jsx(jR,{})}),o.jsx("button",{type:"button",className:de.desplegar,"aria-expanded":r,...r?{"aria-controls":h}:{},title:e.titulo,onClick:m,children:e.titulo})]}),o.jsxs("div",{className:de.lineaSecundaria,children:[o.jsx("span",{className:de.estado,children:e.estado}),!n||e.asignado===void 0?null:o.jsx("span",{className:de.nota,children:e.asignado})]})]}),o.jsx("div",{className:de.accionesDeTarea,children:o.jsx("button",{type:"button",className:de.accion,onClick:f,disabled:!i||u||d,...d?{title:ure}:{},"aria-label":`Nueva sesión con ${b}`,children:"Nueva sesión con esta tarea"})})]}),r?o.jsx("div",{className:de.ficha,id:h,children:a!==void 0?a.trim()===""?o.jsx("p",{className:de.aviso,children:"Esta tarea no tiene descripción."}):o.jsx(Gl,{text:Wl(a),codeLabels:Zl}):l!==void 0?o.jsx("p",{className:de.error,role:"alert",children:`No se pudo leer la descripción: ${l.motivo}`}):o.jsx("p",{className:de.aviso,children:"Consultando la descripción…"})}):null]})}const d6=["jira","notion"],_re="notion";function wre({gestor:e,conectores:t,conectado:n,alGestor:r,alAutorizar:a,alProbar:l,conectorDelFallo:i,alAbrirAjustes:u}){jre(t==null?void 0:t.conectores,n,l);const d=(e==null?void 0:e.errores)??{},m=e==null?void 0:e.estado,f=o.jsxs(o.Fragment,{children:[["estado","usarConector","desvincular"].map(C=>o.jsx(n9,{...d[C]===void 0?{}:{error:d[C]}},C)),["vincular","sitios","proyectos"].map(C=>{const k=i(C);return o.jsx(v4,{...d[C]===void 0?{}:{error:d[C]},...k===void 0?{}:{conector:k},...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:a,alAbrirAjustes:u,sinDuplicarLaFila:!0},C)})]});if(m===void 0||t===void 0)return o.jsxs("div",{className:de.seccion,children:[f,d.estado===void 0?o.jsx("p",{className:de.aviso,children:"Consultando los conectores…"}):null]});const h=C=>Um(t,C)??C,b=m.vinculo,y=C=>t.conectores.find(k=>k.id===C),g=[...d6].sort((C,k)=>+(k===(b==null?void 0:b.conector))-+(C===(b==null?void 0:b.conector))).filter(C=>C===(b==null?void 0:b.conector)||y(C)!==void 0),_=t.conectores.filter(C=>!d6.includes(C.id));return o.jsxs("div",{className:de.seccion,children:[f,o.jsxs("section",{className:de.seccion,"aria-label":"Gestor de tareas",children:[o.jsx("h2",{className:de.titulo,children:"Gestor de tareas"}),o.jsx("p",{className:de.aviso,children:"De dónde salen las tareas de la pestaña Tareas. El proyecto tiene uno solo: vincular otro sustituye al que haya."}),g.length===0?o.jsx("p",{className:de.aviso,children:"Ni Jira ni Notion están añadidos. Se añaden en Ajustes."}):o.jsx("ul",{className:de.lista,children:g.map(C=>o.jsx(Cre,{id:C,nombre:h(C),...y(C)===void 0?{}:{fila:y(C)},gestor:e,conectores:t,...b===void 0?{}:{vinculo:b,nombreDelVinculado:h(b.conector)},conectado:n,alGestor:r,alAutorizar:a,alProbar:l,alAbrirAjustes:u},C))})]}),o.jsxs("section",{className:de.seccion,"aria-label":"Conectores para el chat",children:[o.jsx("h2",{className:de.titulo,children:"Conectores para el chat"}),o.jsx("p",{className:de.aviso,children:"Los que usará el agente en el chat de este proyecto."}),_.length===0?o.jsx("p",{className:de.aviso,children:"No hay otros conectores añadidos."}):o.jsx("ul",{className:de.lista,children:_.map(C=>{const k=m.conectores.includes(C.id),S=Vm(C)||k;return o.jsx("li",{className:de.conector,children:o.jsxs("div",{className:de.filaDeConector,children:[S?o.jsx("button",{type:"button",role:"switch","aria-checked":k,"aria-label":"Usar en este proyecto",title:k?"Lo usa el agente en este proyecto":"No lo usa el agente en este proyecto",className:de.interruptor,disabled:!n,onClick:()=>r({accion:"usarConector",conector:C.id,usar:!k}),children:o.jsx("span",{className:de.bolita,"aria-hidden":"true"})}):o.jsx("span",{className:de.huecoDeInterruptor,"aria-hidden":"true"}),o.jsx(Hm,{id:C.id,nombre:h(C.id)}),o.jsx("span",{className:de.tituloDeConector,children:h(C.id)}),o.jsx("span",{className:de.alFinal,children:o.jsx(r9,{fila:C,nombre:h(C.id),conectado:n,alAutorizar:a,alProbar:l})})]})},C.id)})})]}),t.conectores.length===0?o.jsxs("div",{className:de.encabezado,children:[o.jsx("p",{className:de.aviso,children:"No hay ningún conector añadido. Se añaden en Ajustes."}),o.jsx("button",{type:"button",className:de.accion,onClick:u,children:"Abrir Ajustes"})]}):o.jsx("div",{children:o.jsx("button",{type:"button",className:de.accion,onClick:u,children:"Añadir otro conector en Ajustes"})})]})}function r9({fila:e,nombre:t,conectado:n,alAutorizar:r,alProbar:a}){if(Vm(e))return null;const l=e.estado==="falta-autorizar"||e.prueba!==void 0&&!e.prueba.ok&&g4(e.prueba.motivo);return e.autorizando===!0||l?o.jsx("button",{type:"button",className:de.accion,onClick:()=>r(e.id),disabled:!n||e.autorizando===!0,"aria-label":`Conectar ${t}`,children:e.autorizando===!0?"Esperando al navegador…":"Conectar"}):e.prueba===void 0?o.jsx("span",{className:de.nota,children:"Comprobando…"}):o.jsx("button",{type:"button",className:de.accion,onClick:()=>a(e.id),disabled:!n,title:e.prueba.ok?void 0:e.prueba.motivo,"aria-label":`Probar ${t} de nuevo`,children:"Probar de nuevo"})}function jre(e,t,n){const r=$.useRef(new Set);$.useEffect(()=>{if(!(!t||e===void 0))for(const a of e)a.prueba!==void 0||a.estado==="falta-autorizar"||a.autorizando===!0||r.current.has(a.id)||(r.current.add(a.id),n(a.id))},[e,t,n])}function Cre({id:e,nombre:t,fila:n,gestor:r,conectores:a,vinculo:l,nombreDelVinculado:i,conectado:u,alGestor:d,alAutorizar:m,alProbar:f,alAbrirAjustes:h}){const[b,y]=$.useState(!1),g=(l==null?void 0:l.conector)===e,_=l!==void 0&&!g,C=n!==void 0&&Vm(n),k=l===void 0?void 0:`${l.conector}|${l.proyecto}`;$.useEffect(()=>y(!1),[k]);const S=_&&l!==void 0?`Vincular ${t} sustituirá a ${i??l.conector}${mm(l)===void 0?"":` (${mm(l)})`} como gestor de este proyecto.`:void 0,A=e==="jira"?o.jsx(Nre,{gestor:r,conectado:u,alGestor:d,...S===void 0?{}:{sustituye:S}}):e==="notion"?o.jsx($re,{gestor:r,conectores:a,nombre:t,conectado:u,alGestor:d,alAutorizar:m,alAbrirAjustes:h,...S===void 0?{}:{sustituye:S}}):null;return o.jsxs("li",{className:de.conector,children:[o.jsxs("div",{className:de.filaDeConector,children:[o.jsx(Hm,{id:e,nombre:t}),o.jsx("span",{className:de.tituloDeConector,children:t}),o.jsx("span",{className:de.alFinal,children:n===void 0?null:o.jsx(r9,{fila:n,nombre:t,conectado:u,alAutorizar:m,alProbar:f})})]}),g&&l!==void 0?o.jsx(kre,{vinculo:l,nombre:t,conectado:u,alGestor:d}):C?_&&!b?o.jsx("div",{className:de.vinculo,children:o.jsx("button",{type:"button",className:de.accion,onClick:()=>y(!0),disabled:!u,children:`Vincular ${t} en su lugar…`})}):A:null]})}function kre({vinculo:e,nombre:t,conectado:n,alGestor:r}){const a=mm(e),l=e.proyecto.startsWith("collection://")?a===void 0?`Vinculado a una base de ${t}.`:`Vinculado a la base «${a}» de ${t}.`:`Vinculado a ${e.proyecto} en ${e.nombreDelSitio??e.sitio}.`;return o.jsxs("div",{className:de.vinculo,children:[o.jsx("span",{children:l}),o.jsx("button",{type:"button",className:de.peligro,onClick:()=>r({accion:"desvincular"}),disabled:!n,children:"Desvincular"})]})}function a9({texto:e}){return e===void 0?null:o.jsx("p",{className:de.aviso,children:e})}function Nre({gestor:e,conectado:t,alGestor:n,sustituye:r}){var h,b;const a=((h=e==null?void 0:e.sitios)==null?void 0:h.conector)==="jira"?e.sitios.lista:void 0,[l,i]=$.useState(""),[u,d]=$.useState(""),m=l!==""?l:(a==null?void 0:a.length)===1?a[0].id:"",f=((b=e==null?void 0:e.proyectos)==null?void 0:b.sitio)===m&&m!==""?e.proyectos.lista:void 0;return $.useEffect(()=>{n({accion:"sitios",conector:"jira"})},[]),$.useEffect(()=>{d(""),m!==""&&n({accion:"proyectos",conector:"jira",sitio:m})},[m]),o.jsxs("div",{className:de.vinculo,children:[o.jsxs("label",{className:de.casilla,children:["Sitio",o.jsxs("select",{className:de.campo,value:m,onChange:y=>i(y.target.value),disabled:a===void 0,children:[a===void 0?o.jsx("option",{value:"",children:"Consultando…"}):o.jsx("option",{value:"",children:"Elige un sitio"}),(a??[]).map(y=>o.jsx("option",{value:y.id,children:y.nombre},y.id))]})]}),o.jsxs("label",{className:de.casilla,children:["Proyecto de Jira",o.jsxs("select",{className:de.campo,value:u,onChange:y=>d(y.target.value),disabled:f===void 0,children:[o.jsx("option",{value:"",children:f===void 0?"—":"Elige un proyecto"}),(f??[]).map(y=>o.jsx("option",{value:y.clave,children:`${y.clave} · ${y.nombre}`},y.clave))]})]}),o.jsx(a9,{...r===void 0?{}:{texto:r}}),o.jsx("button",{type:"button",className:de.principal,disabled:!t||m===""||u==="",onClick:()=>n({accion:"vincular",conector:"jira",sitio:m,proyecto:u}),children:"Vincular"})]})}function Sre(e){const t=e.estado.opciones.map(r=>r.nombre).join(" · ");return[`Estado: ${e.estado.propiedad}${t===""?"":` (${t})`}`,`Título: ${e.titulo}`,...e.asignado===void 0?[]:[`Asignado: ${e.asignado}`]].join(" · ")}function $re({gestor:e,conectores:t,nombre:n,conectado:r,alGestor:a,alAutorizar:l,alAbrirAjustes:i,sustituye:u}){var L,F;const[d,m]=$.useState(""),[f,h]=$.useState(void 0),[b,y]=$.useState(void 0),g=f!==void 0&&((L=e==null?void 0:e.busqueda)==null?void 0:L.conector)==="notion"&&e.busqueda.texto===f?e.busqueda:void 0,_=b!==void 0&&((F=e==null?void 0:e.descripcion)==null?void 0:F.conector)==="notion"&&e.descripcion.pedido===b?e.descripcion:void 0,C=(e==null?void 0:e.errores)??{},k=f!==void 0&&C.buscarProyectos!==void 0&&C.buscarProyectos.texto===f?C.buscarProyectos:void 0,S=b!==void 0&&C.describir!==void 0&&C.describir.pedido===b?C.describir:void 0,A=G=>o.jsx(v4,{error:G,conector:"notion",...t===void 0?{}:{conectores:t},conectado:r,alAutorizar:l,alAbrirAjustes:i,sinDuplicarLaFila:!0}),I=()=>{const G=d.trim();G!==""&&(h(G),y(void 0),a({accion:"buscarProyectos",conector:"notion",texto:G}))},M=G=>{y(G),a({accion:"describir",conector:"notion",proyecto:G})};return o.jsxs("div",{className:de.vinculoNotion,children:[o.jsxs("form",{className:de.busqueda,role:"search",onSubmit:G=>{G.preventDefault(),I()},children:[o.jsx("input",{type:"search",className:de.campo,"aria-label":`Buscar una base de ${n}`,placeholder:`Nombre de la base de ${n}`,value:d,onChange:G=>m(G.target.value)}),o.jsx("button",{type:"submit",className:de.accion,disabled:!r||d.trim()==="",children:"Buscar"})]}),f===void 0?null:g===void 0?k===void 0?o.jsx("p",{className:de.aviso,children:"Buscando…"}):A(k):g.lista.length===0?o.jsx("p",{className:de.aviso,children:`Ninguna base de ${n} coincide con «${g.texto}».`}):o.jsx("ul",{className:de.lista,"aria-label":`Bases de ${n}`,children:g.lista.map(G=>o.jsx("li",{children:o.jsxs("button",{type:"button",className:de.base,"aria-pressed":b===G.proyecto,onClick:()=>M(G.proyecto),disabled:!r,children:[o.jsx("span",{children:G.nombre}),G.ruta===void 0?null:o.jsx("span",{className:de.nota,children:G.ruta})]})},G.proyecto))}),b===void 0?null:_===void 0?S===void 0?o.jsx("p",{className:de.aviso,children:"Leyendo el esquema de la base…"}):A(S):"motivo"in _?o.jsx("p",{className:de.error,children:`Esta base no sirve como gestor de tareas: ${_.motivo}`}):o.jsxs("div",{className:de.esquema,children:[o.jsx("p",{className:de.lineaDelEsquema,children:Sre(_.esquema)}),_.esquema.asignado===void 0?o.jsx("p",{className:de.aviso,children:"Sin propiedad de persona: no se podrá filtrar por «Asignadas a mí»."}):null,_.esquema.fuentes===void 0||_.esquema.fuentes<=1?null:o.jsx("p",{className:de.aviso,children:`La base tiene ${_.esquema.fuentes} orígenes de datos; se usa el primero.`}),o.jsx(a9,{...u===void 0?{}:{texto:u}}),o.jsx("div",{children:o.jsx("button",{type:"button",className:de.principal,disabled:!r,onClick:()=>a({accion:"vincular",conector:"notion",sitio:_re,proyecto:_.esquema.proyecto}),children:"Vincular"})})]})]})}const Are="_panel_1pfcm_9",Ere="_aviso_1pfcm_18",Dre="_veredicto_1pfcm_27",zre="_cabecera_1pfcm_35",Tre="_app_1pfcm_43",Mre="_proyecto_1pfcm_49",Lre="_sello_1pfcm_56",Ire="_listo_1pfcm_63",qre="_faltas_1pfcm_71",Rre="_falta_1pfcm_71",Pre="_acciones_1pfcm_85",Fre="_ejecutar_1pfcm_94",Ore="_recorrido_1pfcm_113",Bre="_cabeceraDelRecorrido_1pfcm_122",Hre="_fase_1pfcm_131",Ure="_tiempo_1pfcm_137",Vre="_cancelar_1pfcm_149 _secundario_1l1rx_39",Gre="_desenlace_1pfcm_157",Wre="_lectura_1pfcm_176",Zre="_lineas_1pfcm_188",Qre="_dispositivos_1pfcm_201",Xre="_rotulo_1pfcm_209",Yre="_lista_1pfcm_215",Kre="_fila_1pfcm_224",Jre="_dispositivo_1pfcm_201",eae="_marca_1pfcm_263",Dt={panel:Are,aviso:Ere,veredicto:Dre,cabecera:zre,app:Tre,proyecto:Mre,sello:Lre,listo:Ire,faltas:qre,falta:Rre,acciones:Pre,ejecutar:Fre,recorrido:Ore,cabeceraDelRecorrido:Bre,fase:Hre,tiempo:Ure,cancelar:Vre,desenlace:Gre,lectura:Wre,lineas:Zre,dispositivos:Qre,rotulo:Xre,lista:Yre,fila:Kre,dispositivo:Jre,marca:eae};function tae({veredicto:e,lanzamiento:t,dispositivos:n,alActualizarDispositivos:r,elegido:a,conectado:l,alRevisar:i,alLanzar:u,alCancelar:d,alElegirDispositivo:m}){var C;$.useEffect(()=>{l===!1||i===void 0||i()},[l,i,a==null?void 0:a.id]),h4(l!==!1,r);const f=(t==null?void 0:t.estado)==="corriendo",h=l===!0&&(e==null?void 0:e.listo)===!0&&u!==void 0&&!f,b=(n??[]).filter(zi),y=n===void 0,g=((C=e==null?void 0:e.dispositivo)==null?void 0:C.nombre)??(a==null?void 0:a.nombre),_=e===void 0?void 0:eu(e.medido);return o.jsxs("div",{className:Dt.panel,children:[l===!1?o.jsx("p",{className:Dt.aviso,children:"Sin conexión con el servidor no se puede medir ni lanzar: las dos cosas las hace él, no esta ventana. En cuanto vuelva el cable, la medida se rehace sola."}):e!==void 0?o.jsxs("div",{className:Dt.veredicto,children:[o.jsxs("p",{className:Dt.cabecera,children:[o.jsx("span",{className:Dt.app,children:e.app??e.proyecto}),e.app===void 0||e.app===e.proyecto?null:o.jsxs("span",{className:Dt.proyecto,children:["en ",e.proyecto]}),_===void 0?null:o.jsxs("span",{className:Dt.sello,children:["medido el ",_]})]}),e.listo?o.jsx("p",{className:Dt.listo,children:"Está todo lo que hace falta: se puede lanzar."}):o.jsx("ul",{className:Dt.faltas,children:e.faltas.map((k,S)=>o.jsx("li",{className:Dt.falta,children:k},`${S}:${k}`))})]}):i===void 0?o.jsx("p",{className:Dt.aviso,children:"No hay ningún proyecto abierto que lanzar. Se abre desde el escritorio, y a partir de ahí esta pestaña mide si su app se puede ejecutar en un dispositivo."}):o.jsx("p",{className:Dt.aviso,children:"Midiendo si se puede lanzar la app de este proyecto…"}),h?o.jsx("div",{className:Dt.acciones,children:o.jsx("button",{type:"button",className:Dt.ejecutar,title:g===void 0?"Lanza la app del proyecto en el dispositivo de esta sesión":`Lanza la app del proyecto en ${g}`,onClick:u,children:g===void 0?"Ejecutar en el dispositivo de la sesión":`Ejecutar en ${g}`})}):null,t===void 0?null:o.jsx(nae,{lanzamiento:t,...g===void 0?{}:{destino:g},...d===void 0?{}:{alCancelar:d}}),o.jsxs("section",{className:Dt.dispositivos,"aria-label":"Dispositivos a mano",children:[o.jsx("span",{className:Dt.rotulo,children:"Dispositivos a mano"}),y?o.jsx("p",{className:Dt.aviso,children:"Todavía no se ha mirado qué hay enchufado. Mira en Ajustes → Dispositivos, que es donde se mide la máquina y se ve qué le falta a cada herramienta."}):b.length===0?o.jsx("p",{className:Dt.aviso,children:"Ninguno de los dispositivos medidos está a mano ahora mismo. En Ajustes → Dispositivos se ve qué le falta a cada uno."}):o.jsx("ul",{className:Dt.lista,children:b.map(k=>{var M;const S=k.id===((a==null?void 0:a.id)??((M=e==null?void 0:e.dispositivo)==null?void 0:M.id)),A=m!==void 0&&l!==!1,I=`${k.nombre} · ${k.plataforma==="ios"?"iOS":"Android"} · ${Pl(k)}`;return o.jsxs("li",{className:Dt.fila,children:[A?o.jsx("button",{type:"button",className:Dt.dispositivo,"aria-current":S?"true":void 0,onClick:()=>m(k.id),children:I}):o.jsx("span",{className:Dt.dispositivo,children:I}),S?o.jsx("span",{className:Dt.marca,children:"el de esta sesión"}):null]},k.id)})})]})]})}function nae({lanzamiento:e,destino:t,alCancelar:n}){var u;const r=e.estado==="corriendo",a=e.estado==="ok"?e.lineas[e.lineas.length-1]:void 0,l=((u=e.dispositivo)==null?void 0:u.nombre)??t,i=e.estado!=="ok"&&e.lineas.length>0;return o.jsxs("section",{className:Dt.recorrido,"data-estado":e.estado,children:[o.jsxs("p",{className:Dt.cabeceraDelRecorrido,children:[o.jsx("span",{className:Dt.fase,children:aae[e.fase]}),o.jsx("span",{className:Dt.tiempo,children:im(e.ms)}),r&&n!==void 0?o.jsx("button",{type:"button",className:Dt.cancelar,onClick:n,children:"Cancelar"}):null]}),o.jsx("p",{className:Dt.desenlace,children:rae(e,l)}),a===void 0?null:o.jsx("p",{className:Dt.lectura,children:a}),i?o.jsx("pre",{className:Dt.lineas,children:e.lineas.join(`
|
|
499
|
-
`)}):null]})}function rae(e,t){const n=t===void 0?"":` en ${t}`;switch(e.estado){case"corriendo":return`Lanzando la app${n}…`;case"ok":return`La app arrancó y está viva${n}.`;case"fallo":return e.motivo??"El lanzamiento falló, y el servidor no dijo por qué.";case"colgada":return e.motivo??"El lanzamiento se quedó sin contestar.";case"cancelada":return"Se canceló el lanzamiento."}}const aae={comprobando:"comprobando el dispositivo",empaquetando:"empaquetando la app",subiendo:"subiendo al dispositivo",reiniciando:"reiniciando el framework",lanzando:"lanzando la app","comprobando-arranque":"comprobando que arrancó"},o9="xonecode.apariencia";function oae(e){return e==="sistema"||e==="claro"||e==="oscuro"}function sae(){try{const e=window.localStorage.getItem(o9);return oae(e)?e:"sistema"}catch{return"sistema"}}function iae(e){try{window.localStorage.setItem(o9,e)}catch{}}const s9={claro:"xonecode-claro",oscuro:"xonecode-oscuro"},i9={claro:"xonecode.tema.claro",oscuro:"xonecode.tema.oscuro"};function lae(){const e=t=>{try{return G8(window.localStorage.getItem(i9[t])??void 0,t).id}catch{return s9[t]}};return{claro:e("claro"),oscuro:e("oscuro")}}function cae(e,t){try{window.localStorage.setItem(i9[e],t)}catch{}}function uae(e,t=s9,n=document.body){const r=e==="oscuro"||e==="sistema"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;r?n.setAttribute("data-ds-dark-theme",""):n.removeAttribute("data-ds-dark-theme");const a=r?"oscuro":"claro",l=G8(t[a],a);for(const i of M5)n.style.removeProperty(`--tema-${i}`);if(l.semillas===void 0){n.removeAttribute("data-tema");return}for(const i of M5)n.style.setProperty(`--tema-${i}`,l.semillas[i]);n.setAttribute("data-tema",l.id)}const l9="xonecode.barraContraida",c9="xonecode.anchoBarra";function dae(){try{return window.localStorage.getItem(l9)==="1"}catch{return!1}}function pae(e){try{window.localStorage.setItem(l9,e?"1":"0")}catch{}}function mae(){try{const e=window.localStorage.getItem(c9);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function hae(e){try{window.localStorage.setItem(c9,String(Math.round(e)))}catch{}}const u9="xonecode.anchoPanel";function fae(){try{const e=window.localStorage.getItem(u9);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function gae(e){try{window.localStorage.setItem(u9,String(Math.round(e)))}catch{}}function vae(){const[e,t]=$.useState(()=>typeof window>"u"?0:window.innerWidth);return $.useEffect(()=>{if(typeof window>"u")return;const n=()=>t(window.innerWidth);return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const bae=3e3;function p6(e){if(typeof e!="object"||e===null)return;const t=e.proyecto;return t===void 0?{}:t==="supervisado"||t==="autonomo"?{proyecto:t}:void 0}const yae="No encoles las tareas: hazlo aquí, en esta conversación, siguiendo el plan y las decisiones que ya cerramos.";async function zl(e){const t=await Vc(e);if(t!==void 0)return t;const n=e;return(n==null?void 0:n.ok)===!1?`el servidor contestó ${String(n.status)}`:void 0}async function Vc(e){const t=e;if((t==null?void 0:t.status)===409)try{const n=await t.json();return typeof n.motivo=="string"?n.motivo:"el servidor se negó"}catch{return"el servidor se negó"}}function xae({store:e,enviar:t,subirAdjunto:n,subirAdjuntoDeSesion:r,instalarSkill:a,mirar:l}){var ol,nd,wu,lc,cc,ju,Cu,ku,rd,ad,od,sd,id,ca,li,Nu,Su,$u,Au,uc,ld,cd,Ns,dc,ci,pc,Eu,sl,Ss,mc,Du,il,zu,Tu,Mu,Lu,Iu,qu,Co,hc,fc,ud,dd,ui,pd,Ru,Pu,Vt,gc,ll,di,Fu,vc,pi,cl,$s,Ou,md,hd,Bu,ul,dl,bc,yc,xc,_c,fd,Hu,gd,vd,wc,ko,Uu,As,Na,mi,Ya,jc,bd,yd,Xo,hi,Es,pl,Cc,Ds,No,Gt,Ot,So,Qn,fr,Yo,zs,gr,ml,Vu,Gu,hl,Wu,Ka,fl,kc,Zu,xd,$o,Ts,Ms;const i=$.useSyncExternalStore(e.suscribir,e.leer),u=AJ({enviar:t,plataforma:(nd=(ol=i.alta)==null?void 0:ol.dispositivoActivo)==null?void 0:nd.plataforma}),d=MJ({enviar:t,proyecto:(wu=i.alta)==null?void 0:wu.proyectoActivo,contenidos:i.contenidos,bases:i.bases,ultimoGuardado:i.ultimoGuardado,conectado:i.conectado,recargarAlGuardar:u.alGuardar}),m=$.useRef(d);m.current=d;const[f,h]=$.useState(void 0),b=$.useCallback(E=>{var Z;if(m.current.haySinGuardar()){h({accion:E,ruta:((Z=m.current.actual)==null?void 0:Z.ruta)??""});return}E()},[]),y=$.useMemo(()=>i.revision===void 0?void 0:new Set(i.revision.lista.filter(E=>E.clase!=="borrado").map(E=>E.ruta)),[i.revision]),g=$.useMemo(()=>({...d,cerrar:()=>b(d.cerrar)}),[d,b]),[_,C]=$.useState(void 0),k=$.useRef("ficheros"),S=$.useRef(_);S.current=_;const A=$.useCallback(E=>{if(S.current==="ficheros"&&m.current.actual!==void 0){b(()=>{m.current.cerrar(),E()});return}E()},[b]),I=$.useCallback(E=>{const Z=()=>{k.current=E,C(E)};E==="ficheros"?Z():A(Z)},[A]),[M,L]=$.useState(void 0),[F,G]=$.useState(void 0),[O,B]=$.useState(void 0),[W,re]=$.useState(void 0),[fe,he]=$.useState(!1),[ne,we]=$.useState(void 0),je=E=>{we(E),he(!0)},[J,oe]=$.useState(()=>dae()),[R,q]=$.useState(()=>mae()),[ee,z]=$.useState(()=>fae()),ke=vae(),pe=$.useCallback(()=>{t({clase:"revision"})},[t]),Me=$.useCallback(E=>{t({clase:"revision",ruta:E}),E.toLowerCase().endsWith(".xne")&&t({clase:"modeloDelCambio",ruta:E})},[t]),ge=$.useCallback(E=>{L(Z=>new Set([...Z??[],E])),Me(E)},[Me]),ze=$.useRef(!1),Pe=$.useCallback(()=>{ze.current||(ze.current=!0,queueMicrotask(()=>{ze.current=!1}),t({clase:"pendientesDeSubida"}),t({clase:"sync",accion:"estado"}))},[t]),[qe,Nt]=$.useState(void 0),Kt=$.useCallback(E=>{Nt(Z=>new Set([...Z??[],E])),t({clase:"pendientesDeSubida",ruta:E})},[t]),Ut=$.useCallback(E=>{Nt(Z=>{const ue=new Set(Z??[]);return ue.delete(E),ue})},[]),Rn=$.useCallback(E=>{L(Z=>{const ue=new Set(Z??[]);return ue.delete(E),ue})},[]),[Wn,$n]=$.useState(!1),[wr,mn]=$.useState(!1),[aa,nn]=$.useState(void 0),[An,qr]=$.useState(void 0),Rr=$.useRef(void 0),hn=$.useCallback((E,Z,ue)=>{var Jt;const De=()=>{$n(!1),mn(!1),ho(void 0),nn(void 0),Rr.current=i.alta,qr({proyecto:E,...Z===void 0?{}:{sesion:Z}}),ue!==void 0&&I(ue),t(Z===void 0?{clase:"sesion",proyecto:E}:{clase:"sesion",proyecto:E,sesion:Z})};E!==((Jt=i.alta)==null?void 0:Jt.proyectoActivo)?b(De):De()},[t,i.alta,I,b]);$.useEffect(()=>{An!==void 0&&(i.alta!==Rr.current||i.conectado===!1)&&qr(void 0)},[An,i.alta,i.conectado]);const ba=i.abriendo??An,le=$.useCallback(E=>void t({clase:"tarea",accion:"reintentar",id:E}),[t]),Ce=$.useCallback(()=>void t({clase:"dispositivos"}),[t]),Ze=$.useCallback(E=>void t({clase:"tarea",accion:"descartar",id:E}),[t]),st=$.useCallback(E=>void t({clase:"tarea",accion:"terminar",id:E}),[t]),vt=$.useCallback((E,Z)=>void t({clase:"tarea",accion:"feedback",id:E,texto:Z}),[t]),[Pt,jr]=$.useState(void 0),Pn=$.useCallback(E=>{jr(E),l==null||l(E,!0)},[l]),oa=$.useCallback(E=>{jr(void 0),e.dejarDeMirar(),l==null||l(E,!1)},[l,e]);$.useEffect(()=>{var E;Pt===void 0||!i.conectado||((E=i.mirada)==null?void 0:E.tarea)!==Pt&&(l==null||l(Pt,!0))},[Pt,i.conectado,(lc=i.mirada)==null?void 0:lc.tarea,l]);const En=$.useMemo(()=>{const E=new Map;for(const Z of i.actos)Z.tipo==="artefacto"&&(E.delete(Z.ruta),E.set(Z.ruta,{ruta:Z.ruta,nombre:Z.nombre,bytes:Z.bytes,...Z.mime===void 0?{}:{mime:Z.mime}}));return[...E.values()]},[i.actos]),rn=$.useMemo(()=>{const E=[];for(const Z of i.actos)Z.tipo==="sincronizacion"&&E.push(Z);return E.reverse()},[i.actos]);$.useEffect(()=>{En.length===0&&C(E=>E==="artefactos"?void 0:E)},[En.length]);const $t=$.useMemo(()=>{var Z;const E=new Map;for(const ue of((Z=i.tareas)==null?void 0:Z.lista)??[])ue.estado==="en-proceso"&&E.set(ue.proyecto,(E.get(ue.proyecto)??0)+1);return E},[i.tareas]),Dn=$.useMemo(()=>{var E,Z;return((E=i.alta)==null?void 0:E.sesionActiva)===void 0||(Z=i.tareas)==null?void 0:Z.lista.find(ue=>{var De;return ue.sesion!==void 0&&ue.sesion===((De=i.alta)==null?void 0:De.sesionActiva)})},[i.tareas,(cc=i.alta)==null?void 0:cc.sesionActiva]),Pr=(Dn==null?void 0:Dn.estado)==="requiere-atencion"?Dn:void 0,[Fr,Cr]=$.useState(void 0),ya=$.useMemo(()=>i.tareas===void 0?void 0:i.tareas.lista.filter(E=>{var Z;return E.proyecto===((Z=i.alta)==null?void 0:Z.proyectoActivo)}),[i.tareas,(ju=i.alta)==null?void 0:ju.proyectoActivo]),on=(Cu=i.alta)==null?void 0:Cu.proyectoActivo,Bi=$.useCallback(E=>{t({clase:"artefacto",nombre:E})},[t]),Hi=$.useCallback(E=>{B(E),I("artefactos")},[I]),xa=$.useCallback(()=>{t({clase:"arbol"})},[t]),_a=$.useCallback(()=>{t({clase:"planes"})},[t]),ms=$.useCallback(()=>{t({clase:"colecciones"})},[t]),hs=$.useCallback(()=>{t({clase:"sync",accion:"estado"})},[t]),Pa=$.useCallback(E=>{E==="subir"&&wa(!0),t({clase:"sync",accion:E})},[t]),[Fa,wa]=$.useState(!1),ar=(ku=rn.find(E=>E.accion==="subir"))==null?void 0:ku.cuando,Oa=$.useRef(ar);$.useEffect(()=>{var Z,ue;const E=Oa.current!==ar;Oa.current=ar,(E||((Z=i.pregunta)==null?void 0:Z.decision)!==void 0||((ue=i.sync)==null?void 0:ue.error)!==void 0||i.conectado===!1)&&wa(!1)},[ar,i.pregunta,(rd=i.sync)==null?void 0:rd.error,i.conectado]);const fs=$.useRef(ar);$.useEffect(()=>{fs.current!==ar&&(fs.current=ar,i.conectado===!0&&(pe(),hs(),Cs&&t({clase:"pendientesDeSubida"})))},[ar,i.conectado,pe,hs]);const[sn,ja]=$.useState(void 0);$.useEffect(()=>{sn!==void 0&&i.conectado===!1&&sn.cableCaido!==!0&&ja({...sn,cableCaido:!0})},[i.conectado,sn]);const ti=E=>rn.find(Z=>Z.accion===E),sa=sn===void 0||((ad=ti(sn.operacion))==null?void 0:ad.cuando)===sn.desde?void 0:ti(sn.operacion),Ui=sn===void 0?void 0:sa!==void 0?{fase:"terminada",operacion:sn.operacion,lineas:sa.lineas,...sa.resultado===void 0?{}:{resultado:sa.resultado},...sa.bajados===void 0?{}:{bajados:sa.bajados},...sa.error===void 0?{}:{error:sa.error}}:sn.cableCaido===!0?{fase:"terminada",operacion:sn.operacion,lineas:[],motivo:sn.operacion==="subir"?"Se ha perdido la conexión con xonecode mientras subía. Mira las últimas subidas al reconectar para saber qué llegó a subir.":"Se ha perdido la conexión con xonecode mientras se actualizaba el repo local. Mira el estado de la copia al reconectar."}:{fase:"trabajando",operacion:sn.operacion},Or=((od=i.pregunta)==null?void 0:od.decision)!==void 0?i.pregunta:sn==null?void 0:sn.pregunta,Br=((sd=i.pregunta)==null?void 0:sd.decision)===void 0?i.pregunta:void 0,zn=(Or==null?void 0:Or.decision)===void 0?null:o.jsx(Ll,{texto:Or.texto,decision:Or.decision,...Ui===void 0?{}:{progreso:Ui},alCerrar:()=>ja(void 0),alResponder:async(E,Z)=>{var jn,Wr,Sa;const ue=i.pregunta,De=((jn=ue==null?void 0:ue.decision)==null?void 0:jn.operacion)??(((Wr=ue==null?void 0:ue.decision)==null?void 0:Wr.seleccionable)===!0?"subir":void 0),Jt=ue!==void 0&&De!==void 0&&E==="s";Jt&&ja({pregunta:ue,operacion:De,desde:(Sa=ti(De))==null?void 0:Sa.cuando});try{await t({clase:"respuesta",texto:E,...Z===void 0?{}:{seleccion:Z}})}catch(_d){throw Jt&&ja(void 0),_d}e.contestarPregunta()}}),Ho={esperando:Fa,...i.turnoEnVuelo===!0&&!Fa?{motivoParaNo:"Hay un turno en marcha: se podrá subir cuando termine"}:{},alSubir:()=>Pa("subir")},Vi=$.useCallback(()=>{t({clase:"revisarLanzamiento"})},[t]),Uo=$.useCallback(()=>{t({clase:"lanzarApp"})},[t]),gs=$.useCallback(()=>{t({clase:"cancelarLanzamiento"})},[t]),Gi=$.useCallback(E=>{t({clase:"dispositivo",id:E})},[t]),[Jl,ec]=$.useState(void 0),Ft=$.useCallback(E=>{var ue;const Z=()=>{const De=m.current.actual;De!==void 0&&De.ruta!==E&&m.current.cerrar(),G(E),ec(void 0),E!==void 0&&t({clase:"fichero",ruta:E})};E!==void 0&&E===((ue=m.current.actual)==null?void 0:ue.ruta)?Z():b(Z)},[t,b]),Wi=$.useCallback((E,Z)=>{var De;const ue=()=>{Ft(E),ec(Z),I("ficheros")};E===((De=m.current.actual)==null?void 0:De.ruta)?ue():b(ue)},[Ft,I,b]),[ia,vs]=$.useState(void 0),[mo,tc]=$.useState(void 0),nc=$.useCallback(E=>{var ue;const Z=()=>{var Jt,jn,Wr,Sa;((Jt=m.current.actual)==null?void 0:Jt.ruta)!==E&&(m.current.baseElegida!=="sesion"&&m.current.elegirBase("sesion"),vs({ruta:E,copia:(jn=i.contenidos)==null?void 0:jn[E],proyecto:(Wr=i.alta)==null?void 0:Wr.proyectoActivo,sesion:(Sa=i.alta)==null?void 0:Sa.sesionActiva}));const De=i.arbol;De!==void 0&&De.error===void 0&&!De.recortado&&!De.rutas.includes(E)&&(tc(De),xa()),Ft(E),I("ficheros")};E===((ue=m.current.actual)==null?void 0:ue.ruta)?Z():b(Z)},[i.contenidos,i.arbol,(id=i.alta)==null?void 0:id.proyectoActivo,(ca=i.alta)==null?void 0:ca.sesionActiva,xa,Ft,I,b]),Hr=ia===void 0||(li=i.contenidos)==null?void 0:li[ia.ruta];$.useEffect(()=>{var E,Z;if(ia!==void 0){if(F!==ia.ruta||i.conectado===!1||((E=i.alta)==null?void 0:E.proyectoActivo)!==ia.proyecto||((Z=i.alta)==null?void 0:Z.sesionActiva)!==ia.sesion||_!=="ficheros"){vs(void 0);return}Hr===void 0||Hr===ia.copia||(vs(void 0),O0(Hr)&&d.abrir(Hr))}},[ia,Hr,F,d,i.conectado,(Nu=i.alta)==null?void 0:Nu.proyectoActivo,(Su=i.alta)==null?void 0:Su.sesionActiva,_]),$.useEffect(()=>{mo!==void 0&&i.arbol!==mo&&tc(void 0)},[mo,i.arbol]);const[Fn,ho]=$.useState(void 0),Wt=($u=i.gestor)==null?void 0:$u.borrador,bs=$.useRef(void 0),Vo=$.useRef(void 0),ys=(uc=(Au=i.gestor)==null?void 0:Au.errores)==null?void 0:uc.empezar;$.useEffect(()=>{ys!==void 0&&(Vo.current=ys)},[ys]);const[fo,Ba]=$.useState(void 0),[Ha,Ua]=$.useState(!1),Va=$.useRef(void 0);$.useEffect(()=>{var E;Ha&&Vo.current!==void 0&&((E=i.alta)==null?void 0:E.sesionActiva)===Va.current&&Ua(!1)},[i.alta]),$.useEffect(()=>{if(Wt===void 0)return;mn(!1),$n(!1),Ua(!1),ho(De=>({texto:Wt.texto,id:((De==null?void 0:De.id)??0)+1}));const E=Vo.current;Vo.current=void 0;const Z=bs.current;bs.current=void 0;const ue=(Z==null?void 0:Z.clave)===Wt.clave?Z.destino:void 0;Ba(E===void 0?void 0:ue===void 0?`No se pudo cambiar el estado de ${A0(Wt.clave)??Wt.clave}: ${E.motivo}. La sesión se abrió igual.`:`No se pudo pasar ${A0(Wt.clave)??Wt.clave} a ${ue}: ${E.motivo}. La sesión se abrió igual.`)},[Wt==null?void 0:Wt.id]);const go=$.useCallback((E,Z)=>{var ue;E.accion==="empezar"&&(Vo.current=void 0,bs.current=E.transicion===void 0||(Z==null?void 0:Z.destino)===void 0?void 0:{clave:E.clave,destino:Z.destino},Ua(!0),Va.current=(ue=i.alta)==null?void 0:ue.sesionActiva),t({clase:"gestor",...E})},[t,(ld=i.alta)==null?void 0:ld.sesionActiva]),Ca=(ci=(dc=(Ns=(cd=i.alta)==null?void 0:cd.proyectos.find(E=>E.id===on))==null?void 0:Ns.sesiones)==null?void 0:dc.find(E=>{var Z;return E.id===((Z=i.alta)==null?void 0:Z.sesionActiva)}))==null?void 0:ci.ticket,rc=(Ss=(sl=(Eu=(pc=i.alta)==null?void 0:pc.proyectos.find(E=>E.id===on))==null?void 0:Eu.sesiones)==null?void 0:sl.find(E=>{var Z;return E.id===((Z=i.alta)==null?void 0:Z.sesionActiva)}))==null?void 0:Ss.ticketConector,Go=Um(i.conectores,rc),[xt,vo]=$.useState(!1),[Zi,_t]=$.useState(!1),[xs,Wo]=$.useState(!1),[ni,_s]=$.useState(void 0),ws=$.useRef(void 0),Zo=$.useRef({}),dr=(mc=i.gestor)==null?void 0:mc.cierre,Ur=(il=(Du=i.gestor)==null?void 0:Du.errores)==null?void 0:il.cerrar,Vr=(Tu=(zu=i.gestor)==null?void 0:zu.errores)==null?void 0:Tu.transiciones;$.useEffect(()=>{dr!==void 0&&(_t(!1),vo(!0))},[dr]);const Gr=(Lu=(Mu=i.gestor)==null?void 0:Mu.errores)==null?void 0:Lu.borradorDeCierre;$.useEffect(()=>{Gr!==void 0&&(_t(!1),_s(`No se pudo preparar el cierre: ${Gr.motivo}`))},[Gr]),$.useEffect(()=>{Ur!==void 0&&Wo(!1)},[Ur]);const wn=(Iu=i.gestor)==null?void 0:Iu.cerrado;$.useEffect(()=>{if(wn===void 0)return;vo(!1),Wo(!1);const E=ws.current;ws.current=void 0;const Z=wn.falloDeTransicion,ue=A0(wn.clave)??wn.clave;_s(Z!==void 0?`${ue}: comentado; no se pudo ${E===void 0?"aplicar la transición":`pasar a ${E}`}: ${Z}`:`${ue}: comentado${E===void 0?"":` y pasado a ${E}`}`)},[wn==null?void 0:wn.id]);const bo=(qu=i.alta)==null?void 0:qu.sesionActiva;$.useEffect(()=>{_t(!1),vo(!1),_s(void 0),Ba(void 0),ws.current=void 0},[bo]),$.useEffect(()=>{i.conectado||(Ua(!1),_t(!1),Wo(!1),vo(!1))},[i.conectado]);const Ga=(Co=i.gestor)==null?void 0:Co.transiciones,pr=Ga!==void 0&&dr!==void 0&&Ga.clave===dr.clave&&Ga.para==="cerrar"?Ga:void 0,Qi=Ur!==Zo.current.cerrar?Ur:void 0,Xi=Vr!==Zo.current.transiciones?Vr:void 0,js=()=>{Ca!==void 0&&(_t(!0),Zo.current={cerrar:Ur,transiciones:Vr},go({accion:"borradorDeCierre"}),go({accion:"transiciones",clave:Ca,para:"cerrar"}))},ac=(E,Z)=>{var ue;ws.current=Z===void 0||(ue=pr==null?void 0:pr.lista.find(De=>De.id===Z))==null?void 0:ue.destino,Wo(!0),go({accion:"cerrar",comentario:E,...Z===void 0?{}:{transicion:Z}})},yo=i.aprobacion!==void 0||Br!==void 0||i.secreto!==void 0||i.selector!==void 0;$.useEffect(()=>{yo&&(mn(!1),nn(void 0))},[yo]);const mr=(hc=i.revision)==null?void 0:hc.lista;$.useEffect(()=>{mr===void 0&&L(void 0)},[mr]);const Cs=i.pendientesDeSubida!==void 0;$.useEffect(()=>{Cs||Nt(void 0)},[Cs]);const kr=i.turnoEnVuelo===!0,Wa=$8(kr),Qo=$.useRef(kr);$.useEffect(()=>{const E=Qo.current&&!kr;if(Qo.current=kr,!!E){if(_==="revision"){pe();for(const Z of M??[])Me(Z);hs()}if(_==="ficheros"&&(xa(),pe(),F!==void 0&&t({clase:"fichero",ruta:F}),m.current.pedirBase()),Cs){Pe();for(const Z of qe??[])t({clase:"pendientesDeSubida",ruta:Z})}_==="colecciones"&&ms(),_a()}},[kr,_,pe,Me,xa,ms,_a,hs,t]);const Za=_==="planes";$.useEffect(()=>{if(!kr||!Za||!i.conectado)return;const E=setInterval(_a,bae);return()=>clearInterval(E)},[kr,Za,i.conectado,_a]);const xo=((fc=i.alta)==null?void 0:fc.proyectoAbierto)===!0,oc=i.planes!==void 0;$.useEffect(()=>{!i.conectado||!xo||oc||_a()},[i.conectado,xo,oc,_a]);const[Qa,ri]=$.useState(()=>sae()),[_o,ai]=$.useState(()=>lae()),[Y,Oe]=$.useState("claro");$.useEffect(()=>{const E=()=>{uae(Qa,_o),Oe(document.body.hasAttribute("data-ds-dark-theme")?"oscuro":"claro")};if(E(),Qa!=="sistema"||typeof window.matchMedia!="function")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");return Z.addEventListener("change",E),()=>Z.removeEventListener("change",E)},[Qa,_o]);const bt=E=>{ri(E),iae(E)},hr=(E,Z)=>{ai(ue=>({...ue,[E]:Z})),cae(E,Z),E!==Y&&bt(E)},[Tn,ka]=$.useState(void 0),it=$.useRef(void 0),[Mt,Qe]=$.useState(void 0);$.useEffect(()=>{var E,Z;if(Mt!==void 0){if(i.conectado===!1){Qe(void 0);return}if(i.alta!==Mt.alta){if(((E=i.alta)==null?void 0:E.proyectoAbierto)===!0&&i.alta.proyectoActivo===Mt.proyecto){Qe(void 0),ka(void 0),nn(void 0),$n(!1);return}i.abriendo===void 0&&((Z=i.alta)==null?void 0:Z.aviso)!==void 0&&Qe(void 0)}}},[Mt,i.alta,i.abriendo,i.conectado]);const[Lt,On]=$.useState(void 0),[Zn,Nr]=$.useState(!1),Yi=(ud=i.alta)==null?void 0:ud.preparando,lu=i.alta===void 0||i.alta.pasos.length>0||Yi!==void 0,Ki=i.selector!==void 0||i.secreto!==void 0||i.pregunta!==void 0,uu=!((((dd=i.alta)==null?void 0:dd.pasos.length)??0)>0)&&!Ki,du=i.alta===void 0||i.selector!==void 0||i.secreto!==void 0,Gm=[{id:"modelo",etiqueta:"Modelo",estado:du?"actual":"hecho"},{id:"entorno",etiqueta:"Entorno de CloudStudio",estado:du?"pendiente":"actual"}];if(lu)return o.jsxs(o.Fragment,{children:[zn,o.jsxs(nH,{centrada:uu,children:[o.jsx(g0,{conectado:i.conectado}),Yi===void 0?null:o.jsx(bH,{texto:Yi}),uu?null:o.jsxs(fH,{nombre:i.nombre??((ui=i.alta)==null?void 0:ui.nombre),pasos:Gm,alVolverAPaso:E=>{E==="modelo"&&t({clase:"alta",paso:"cuenta"})},children:[Br!==void 0?o.jsx(Ll,{texto:Br.texto,anidado:!0,alResponder:async E=>{await t({clase:"respuesta",texto:E}),e.contestarPregunta()}}):null,i.secreto!==void 0?o.jsx(Ll,{texto:i.secreto.pregunta,oculta:!0,anidado:!0,alResponder:async E=>{await t({clase:"secreto",valor:E}),e.contestarSecreto()}}):null,i.selector!==void 0?o.jsx(A5,{titulo:i.selector.titulo,opciones:i.selector.opciones,...i.selector.aviso===void 0?{}:{aviso:i.selector.aviso},anidado:!0,alElegir:async E=>{const Z=i.selector;await t({clase:"eleccion",id:E}),e.contestarSelector(Z)}}):null,!du&&i.alta!==void 0&&i.alta.pasos.length>0?o.jsx(RB,{pasos:i.alta.pasos,proveedores:i.alta.proveedores,entornos:i.alta.entornos,...i.alta.aviso===void 0?{}:{aviso:i.alta.aviso},alGuardarCredencial:(E,Z)=>void t({clase:"secreto",valor:Z}),alRegistrarEntorno:E=>void t({clase:"alta",paso:"entorno",entorno:E})}):null]})]})]});const Ji=((pd=i.alta)==null?void 0:pd.proyectoAbierto)??!1,la=aa===void 0||(Pu=(Ru=i.alta)==null?void 0:Ru.proyectos)==null?void 0:Pu.find(E=>E.id===aa&&E.local!==!0),pu=Ji&&!Wn&&!((wr||la!==void 0)&&!yo),mu=Ji&&!Wn&&wr&&la===void 0&&!yo,sc=la!==void 0&&!Wn&&!(Ji&&yo),Y0=pu&&_!==void 0,wo=vT({anchoVentana:ke,anchoBarra:R??am,anchoPanel:s2(ee??rm),barraPlegadaPorElUsuario:J,panelAbierto:Y0}),hu=i.actos.find(E=>E.tipo==="usuario"),Wm=(((Vt=i.alta)==null?void 0:Vt.sesionActiva)===void 0||(ll=(gc=i.alta.proyectos)==null?void 0:gc.flatMap(E=>E.sesiones??[]).find(E=>E.id===i.alta.sesionActiva))==null?void 0:ll.titulo)||(hu==null?void 0:hu.texto),jo=(vc=(Fu=(di=i.alta)==null?void 0:di.proyectos)==null?void 0:Fu.find(E=>{var Z;return E.id===((Z=i.alta)==null?void 0:Z.proyectoActivo)}))==null?void 0:vc.nombre,Zm=i.actos.filter(E=>E.tipo==="usuario").length,fu=i.actos.filter(E=>E.tipo==="herramientas").reduce((E,Z)=>E+Z.lineas.length,0),gu=i.actos.slice().reverse().find(E=>E.tipo==="fin"),ks=(pi=i.consumo)==null?void 0:pi.ventana,Xa=((cl=i.alta)==null?void 0:cl.entornoActivo)??((Ou=($s=i.alta)==null?void 0:$s.registrados[0])==null?void 0:Ou.id)??"",oi=(hd=(md=i.alta)==null?void 0:md.registrados.find(E=>E.id===Xa))==null?void 0:hd.fijados,ic=E=>{var ue;const Z=(ue=i.alta)==null?void 0:ue.proyectos.find(De=>De.id===E);if((Z==null?void 0:Z.local)===!0){hn(E);return}it.current=i.alta,Qe(void 0),ka(E),$n(!1),ho(void 0),mn(!1),t({clase:"alta",paso:"proyecto",proyecto:E})},Qm=E=>{var ue,De;const Z=(ue=i.alta)==null?void 0:ue.proyectos.find(Jt=>Jt.id===E);if($n(!1),(Z==null?void 0:Z.local)!==!0){mn(!1),nn(E);return}nn(void 0),Ji&&((De=i.alta)==null?void 0:De.proyectoActivo)===E||hn(E),mn(!0)},K0=E=>({proyecto:E,alDescargar:()=>ic(E.id),alAbrirCarpeta:async Z=>Vc(await t({clase:"copiaLocal",accion:"abrirCarpeta",proyecto:Z})),alBorrarCopia:async Z=>{const ue=await Vc(await t({clase:"copiaLocal",accion:"borrar",proyecto:Z}));return ue===void 0&&nn(Z),ue},alFijarModoDelProyecto:async(Z,ue)=>{const De=await t({clase:"copiaLocal",accion:"modoDeEscritura",proyecto:Z,...ue===void 0?{}:{modo:ue}});if(De===void 0)return{motivo:"no se pudo hablar con el servidor"};if(!De.ok)return{motivo:await Vc(De)??"el servidor no lo ha guardado"};try{return{guardado:p6(await De.json())??{}}}catch{return{motivo:"el servidor contestó algo que no se entiende"}}},...i.modoPorDefecto===void 0?{}:{modoGlobal:i.modoPorDefecto},alPedirResumen:async Z=>{const ue=await t({clase:"copiaLocal",accion:"resumen",proyecto:Z});if(!(ue===void 0||!ue.ok))try{const De=await ue.json();if(!Array.isArray(De.tareas)||!De.tareas.every(jn=>typeof jn=="string"))return;const Jt=p6(De.modoDeEscritura);return{tareas:De.tareas,...typeof De.sync=="object"&&De.sync!==null?{sync:De.sync}:{},...Jt===void 0?{}:{modoDeEscritura:Jt}}}catch{return}}}),J0=async E=>{const Z=await t({clase:"soporte",accion:"listar",proyecto:E});if(!(Z===void 0||!Z.ok))try{const ue=await Z.json();return!Array.isArray(ue.chats)||!Array.isArray(ue.tareas)?void 0:{chats:ue.chats,tareas:ue.tareas}}catch{return}},vu=(Bu=i.alta)==null?void 0:Bu.proyectos.find(E=>{var Z;return E.id===((Z=i.alta)==null?void 0:Z.proyectoActivo)}),bu=()=>{if(!J&&wo.barra==="plegada"){A(()=>C(void 0));return}oe(E=>(pae(!E),!E))},Xm=()=>{_===void 0?C(k.current):A(()=>C(void 0))},yu=(E,Z)=>{q(E),Z&&hae(E)},el=(E,Z)=>{z(E),Z&&gae(E)},si=(ul=i.alta)==null?void 0:ul.registrados.find(E=>E.id===Xa),tl=(dl=i.alta)==null?void 0:dl.proyectos.find(E=>E.id===Tn),ed=Tn!==void 0&&tl!==void 0?o.jsx($V,{proyecto:{id:tl.id,nombre:tl.nombre},local:tl.local===!0,ramas:((bc=i.alta)==null?void 0:bc.ramasDe)===Tn?((yc=i.alta)==null?void 0:yc.ramas)??[]:[],...((xc=i.alta)==null?void 0:xc.aviso)===void 0||i.alta===it.current||Mt!==void 0?{}:{aviso:i.alta.aviso},descargando:Mt!==void 0,alEmpezar:E=>{const Z=Tn;if(E===void 0){ka(void 0),$n(!1),hn(Z);return}b(()=>{Qe({proyecto:Z,alta:i.alta}),t({clase:"alta",paso:"proyecto",proyecto:Z,rama:E})})},alCerrar:()=>{ka(void 0),Qe(void 0)}}):null,nl=(_c=i.alta)==null?void 0:_c.proyectos.find(E=>E.id===(Lt==null?void 0:Lt.proyecto)),xu=E=>{e.limpiarEncargoPropuesto(),Nr(!1),On({proyecto:E,borrador:crypto.randomUUID()})},_u=()=>{Lt!==void 0&&Zn&&t({clase:"tarea",accion:"descartar",id:Lt.borrador}),On(void 0)},ii=Lt!==void 0&&nl!==void 0?o.jsx(XV,{proyecto:{id:nl.id,nombre:nl.nombre},local:nl.local===!0,...i.encargoPropuesto===void 0?{}:{encargoPropuesto:i.encargoPropuesto},alAugmentar:E=>void t({clase:"tarea",accion:"augmentar",proyecto:Lt.proyecto,peticion:E,borrador:Lt.borrador}),alSubirAdjunto:async(E,Z)=>{const ue=await n(Lt.borrador,Z,E);return ue.ok&&Nr(!0),ue},alEncolar:({peticion:E,encargo:Z})=>{const{proyecto:ue,borrador:De}=Lt;On(void 0),t({clase:"tarea",accion:"crear",proyecto:ue,peticion:E,encargo:Z,...Zn?{borrador:De}:{}})},alAbrirProyecto:()=>{const{proyecto:E}=Lt;_u(),ic(E)},alCerrar:_u}):null,Ym=f===void 0?null:o.jsx(SJ,{ruta:f.ruta,alSeguir:()=>h(void 0),alDescartar:()=>{const E=f;h(void 0),d.cerrar(),E.accion()}}),Km=W===void 0?null:o.jsx(JV,{pendiente:W,esLaAbierta:((fd=i.alta)==null?void 0:fd.sesionActiva)===W.sesion,alCerrar:()=>re(void 0),alConfirmar:E=>{const{proyecto:Z,sesion:ue,accion:De}=W;re(void 0),t(De==="borrar"?{clase:"sesionAccion",accion:"borrar",proyecto:Z,sesion:ue}:{clase:"sesionAccion",accion:"renombrar",proyecto:Z,sesion:ue,titulo:E??""})}}),Jm=fe?o.jsx(tK,{temas:_o,modoEnVigor:Y,alCambiarTema:hr,...ne===void 0?{}:{seccionInicial:ne},...i.modelos===void 0?{}:{proveedores:i.modelos.proveedores},entornos:((Hu=i.alta)==null?void 0:Hu.registrados)??[],proyectos:((gd=i.alta)==null?void 0:gd.proyectos)??[],...Xa===""?{}:{entornoActivo:Xa},...i.agentes===void 0?{}:{agentes:i.agentes},...i.skills===void 0?{}:{skills:i.skills},...i.cuerposDeSkill===void 0?{}:{cuerposDeSkill:i.cuerposDeSkill},hayProyecto:Ji,alGuardarAgente:(E,Z,ue)=>void t({clase:"agente",accion:"guardar",ambito:Z,agente:E,...ue===void 0?{}:{renombrandoDe:ue}}),alRestaurarAgente:E=>void t({clase:"agente",accion:"restaurar",ambito:"global",agente:{nombre:E,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alBorrarAgente:(E,Z)=>void t({clase:"agente",accion:"borrar",ambito:Z,agente:{nombre:E,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alPedirCuerpoDeSkill:E=>void t({clase:"cuerpoDeSkill",nombre:E}),alGuardarSkill:(E,Z,ue)=>void t({clase:"skill",accion:"guardar",ambito:Z,skill:E,...ue===void 0?{}:{renombrandoDe:ue}}),alBorrarSkill:(E,Z)=>void t({clase:"skill",accion:"borrar",ambito:Z,skill:E}),alInstalarSkill:(E,Z,ue)=>a(E,Z,ue),...i.conectores===void 0?{}:{conectores:i.conectores},alAccionDeConector:(E,Z)=>void t({clase:"conector",accion:E,id:Z}),alCrearDeConector:E=>void t({clase:"conector",accion:"crear",definicion:E}),...i.secreto===void 0?{}:{secreto:i.secreto.pregunta},...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},...i.ajustesDeDispositivos===void 0?{}:{ajustesDeDispositivos:i.ajustesDeDispositivos},conectado:i.conectado,alCambiarDispositivos:E=>void t({clase:"dispositivos",ajustes:E}),alActualizarDispositivos:Ce,alInstalarHerramienta:E=>void t({clase:"dispositivos",instalar:E}),alAbrirCarpetaDeHerramienta:E=>void t({clase:"dispositivos",abrirRuta:E}),alVerificarDispositivo:E=>void t({clase:"conexion",id:E}),alArrancarEmulador:E=>void t({clase:"arrancarEmulador",avd:E}),alAjustarAvd:(E,Z)=>void t({clase:"ajusteDeAvd",avd:E,...Z}),alPararEmulador:E=>void t({clase:"pararEmulador",id:E}),alCrearEmulador:(E,Z)=>void t({clase:"crearEmulador",nombre:E,...Z??{}}),alEliminarEmulador:E=>void t({clase:"eliminarEmulador",avd:E}),...i.arranqueDeEmulador===void 0?{}:{arranqueDeEmulador:i.arranqueDeEmulador},...i.tareas===void 0?{}:{tareas:{concurrencia:i.tareas.concurrencia}},alCambiarConcurrencia:E=>void t({clase:"tareas",concurrencia:E}),...i.workspace===void 0?{}:{workspace:i.workspace},alCambiarWorkspace:async E=>Vc(await t({clase:"workspace",ruta:E,accion:"aplicar"})),alPlanearWorkspace:async E=>{const Z=await t({clase:"workspace",ruta:E,accion:"planear"}),ue=await Vc(Z);if(ue!==void 0)return{proyectos:[],motivo:ue};if(!(Z===void 0||!Z.ok))try{const De=await Z.json();return Array.isArray(De.proyectos)?{proyectos:De.proyectos.filter(jn=>typeof jn=="object"&&jn!==null&&typeof jn.entorno=="string"&&typeof jn.proyecto=="string"),...typeof De.megas=="number"?{megas:De.megas}:{},...typeof De.motivo=="string"?{motivo:De.motivo}:{}}:void 0}catch{return}},...i.mudanzaDeWorkspace===void 0?{}:{mudanzaDeWorkspace:i.mudanzaDeWorkspace},...i.depuracionActiva===void 0?{}:{depuracionActiva:i.depuracionActiva},alCambiarDepuracion:E=>void t({clase:"depuracion",activa:E}),...i.modoPorDefecto===void 0?{}:{modoPorDefecto:i.modoPorDefecto},alCambiarModoPorDefecto:E=>void t({clase:"modoPorDefecto",modo:E}),...i.puedeElegirCarpeta===!0?{alElegirCarpeta:()=>void t({clase:"elegirCarpeta"})}:{},...i.carpetaElegida===void 0?{}:{carpetaElegida:i.carpetaElegida},...i.modelosDeMotor===void 0?{}:{modelosDeMotor:i.modelosDeMotor},alPedirModelosDeMotor:E=>void t({clase:"modelosDeMotor",motor:E}),...i.motoresLocales===void 0?{}:{motoresLocales:i.motoresLocales},alMotorLocal:E=>void t({clase:"motorLocal",...E}),alPedirCatalogo:E=>void t({clase:"catalogo",proveedor:E}),...((vd=i.modelos)==null?void 0:vd.porDefecto)===void 0?{}:{modeloPorDefecto:i.modelos.porDefecto},alElegirModelo:E=>void t({clase:"modelo",id:E}),...i.instalacion===void 0?{}:{instalacion:i.instalacion},alEjecutarPaso:(E,Z)=>void t({clase:"receta",id:E,paso:Z,accion:"ejecutar"}),alCancelarPaso:E=>void t({clase:"receta",id:E,paso:0,accion:"cancelar"}),alPedirClave:E=>void t({clase:"credencial",accion:"pedir",proveedor:E}),alBorrarClave:E=>void t({clase:"credencial",accion:"borrar",proveedor:E}),alRegistrarEntorno:E=>void t({clase:"alta",paso:"entorno",entorno:{id:"",nombre:"",url:E}}),alAltaDeProveedor:(E,Z)=>void t({clase:"proveedor",accion:"alta",nombre:E,baseUrl:Z}),alBajaDeProveedor:E=>void t({clase:"proveedor",accion:"baja",slug:E}),...i.proveedor===void 0?{}:{resultadoDeProveedor:i.proveedor},alElegirProyectos:(E,Z)=>void t({clase:"entorno",accion:"visibles",entorno:E,proyectos:Z}),...i.proyectosPorEntorno===void 0?{}:{proyectosPorEntorno:i.proyectosPorEntorno},alPedirProyectosDeEntorno:E=>void t({clase:"entorno",accion:"proyectos",entorno:E}),...((wc=i.alta)==null?void 0:wc.aviso)===void 0?{}:{avisoDelAlta:i.alta.aviso},alQuitarEntorno:async(E,{borrarCopias:Z})=>{const ue=await t({clase:"entorno",accion:"olvidar",entorno:E,...Z?{borrarCopias:!0}:{}});if((ue==null?void 0:ue.status)===409)try{const De=await ue.json();return typeof De.motivo=="string"?De.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alRenombrarEntorno:async(E,Z)=>{const ue=await t({clase:"entorno",accion:"renombrar",entorno:E,nombre:Z});if((ue==null?void 0:ue.status)===409)try{const De=await ue.json();return typeof De.motivo=="string"?De.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alResponderSecreto:async E=>{await t({clase:"secreto",valor:E}),e.contestarSecreto()},alCerrar:()=>{i.secreto!==void 0&&(t({clase:"secreto",valor:""}),e.contestarSecreto()),he(!1)}}):null,td=o.jsx(Cee,{tareas:ya,alReintentar:le,alDescartar:Ze,alTerminar:st,alEnviarFeedback:vt,alContinuar:async E=>zl(await t({clase:"tarea",accion:"continuar",id:E})),alArrancarAhora:async E=>zl(await t({clase:"tarea",accion:"arrancarAhora",id:E})),consolaAbierta:on!==void 0,...((ko=i.alta)==null?void 0:ko.sesionActiva)===void 0?{}:{sesionAbierta:i.alta.sesionActiva},trabajandoEnElChat:i.turnoEnVuelo===!0,conectado:i.conectado,...i.tareas===void 0?{}:{corriendoAqui:i.tareas.corriendoAqui},...((Uu=i.tareas)==null?void 0:Uu.ejecutaOtroProceso)===void 0?{}:{ejecutaOtroProceso:i.tareas.ejecutaOtroProceso},...on===void 0?{}:{alNuevaTarea:()=>xu(on)},...l===void 0?{}:{alMirar:Pn,alDejarDeMirar:oa},...Pt===void 0?{}:{mirando:Pt},...i.mirada===void 0?{}:{mirada:i.mirada}}),rl=!Y0||_===void 0?void 0:o.jsx(kI,{pestana:_,alElegirPestana:I,alCerrar:()=>A(()=>C(void 0)),hayArtefactos:En.length>0,hayPlanes:(((Na=(As=i.planes)==null?void 0:As.lista)==null?void 0:Na.length)??0)>0,actos:i.actos,revision:o.jsx(Z5,{historica:((mi=i.alta)==null?void 0:mi.historica)===!0,...i.revision===void 0?{}:{via:i.revision.via},...((Ya=i.revision)==null?void 0:Ya.mezclados)===void 0?{}:{mezclados:i.revision.mezclados},ficheros:((jc=i.revision)==null?void 0:jc.lista)??[],parches:i.parches??{},modelosDelCambio:i.modelosDelCambio??{},desplegados:M??new Set,alDesplegar:ge,alPlegar:Rn,alRecargar:pe,conectado:i.conectado,alEditar:nc,...((bd=i.arbol)==null?void 0:bd.rutas)===void 0?{}:{rutasDelProyecto:i.arbol.rutas}}),planes:o.jsx(vz,{...((yd=i.planes)==null?void 0:yd.lista)===void 0?{}:{planes:i.planes.lista},...((Xo=i.planes)==null?void 0:Xo.error)===void 0?{}:{error:i.planes.error}}),colecciones:o.jsx(Wz,{...((hi=i.colecciones)==null?void 0:hi.foto)===void 0?{}:{foto:i.colecciones.foto},...((Es=i.colecciones)==null?void 0:Es.error)===void 0?{}:{error:i.colecciones.error},conectado:i.conectado,alPedir:ms,alAbrirFichero:Wi}),ficheros:o.jsx(NJ,{...i.arbol===void 0||i.arbol===mo?{}:{arbol:i.arbol},contenidos:i.contenidos??{},...F===void 0?{}:{elegido:F},...Jl===void 0?{}:{linea:Jl},alElegir:Ft,alRecargar:xa,conectado:i.conectado,edicion:g,...y===void 0?{}:{cambiados:y},alPedirCambios:pe,aparato:u,...i.ultimaRecarga===void 0?{}:{ultimaRecarga:i.ultimaRecarga}}),artefactos:o.jsx(tP,{lista:En,contenidos:i.artefactos??{},...O===void 0?{}:{elegido:O},alElegir:B,alPedir:Bi,conectado:i.conectado}),ejecutar:o.jsx(tae,{veredicto:i.lanzable,lanzamiento:i.lanzamiento,dispositivos:(pl=i.dispositivos)==null?void 0:pl.dispositivos,alActualizarDispositivos:Ce,elegido:(Cc=i.alta)==null?void 0:Cc.dispositivoActivo,conectado:i.conectado,alRevisar:Vi,alLanzar:Uo,alCancelar:gs,alElegirDispositivo:Gi})}),al=mu||sc?o.jsx(Qh,{titulo:(sc?la==null?void 0:la.nombre:jo)??"Proyecto",...((Ds=i.alta)==null?void 0:Ds.modo)===void 0?{}:{modo:i.alta.modo},conectado:i.conectado,barraContraida:wo.barra==="plegada",alAlternarBarra:bu,alAbrirAjustes:()=>je(),apariencia:Qa,alCambiarApariencia:bt,alIrAlEscritorio:()=>{$n(!0),nn(void 0)}}):pu?o.jsx(Qh,{titulo:Wm??jo??"Sesión nueva",...jo===void 0?{}:{proyecto:jo},...((No=i.alta)==null?void 0:No.modo)===void 0?{}:{modo:i.alta.modo},conectado:i.conectado,barraContraida:wo.barra==="plegada",alAlternarBarra:bu,panelAbierto:_!==void 0,alAlternarPanel:Xm,alAbrirAjustes:()=>je(),apariencia:Qa,alCambiarApariencia:bt,alIrAlEscritorio:()=>$n(!0)}):o.jsx(Qh,{titulo:"Escritorio",conectado:i.conectado,barraContraida:wo.barra==="plegada",alAlternarBarra:bu,alAbrirAjustes:()=>je(),apariencia:Qa,alCambiarApariencia:bt}),Sr=i.pendientesDeSubida,e1=o.jsx(Z5,{modo:"pendientes",...(Sr==null?void 0:Sr.lista)===void 0?{}:{via:"git"},...(Sr==null?void 0:Sr.error)===void 0?{}:{error:Sr.error},ficheros:(Sr==null?void 0:Sr.lista)??[],parches:i.parchesDeSubida??{},desplegados:qe??new Set,alDesplegar:Kt,alPlegar:Ut,alRecargar:Pe,conectado:i.conectado,...rn.length===0?{}:{registro:o.jsx(nee,{operaciones:rn})},cloudstudio:o.jsx(ree,{...i.sync===void 0?{}:{sync:i.sync},alPedir:Pa,subida:Ho,alRecargar:Pe,conectado:i.conectado})});return o.jsxs(o.Fragment,{children:[o.jsx(CT,{barraContraida:wo.barra==="plegada",...R===void 0?{}:{anchoBarra:R},alRedimensionarBarra:yu,...wo.panel==="columna"&&rl!==void 0?{panel:rl}:{},...ee===void 0?{}:{anchoPanel:ee},alRedimensionarPanel:el,cabecera:al,centro:sc?o.jsxs(o.Fragment,{children:[o.jsx(g0,{conectado:i.conectado}),o.jsx(s6,{nombre:la.nombre,...si===void 0?{}:{entorno:si.nombre},copia:K0(la),conectado:i.conectado,empezarEnVuelo:!1,alGestor:go,alAutorizarConector:E=>void t({clase:"conector",accion:"autorizar",id:E}),alProbarConector:E=>void t({clase:"conector",accion:"probar",id:E}),alAbrirAjustesDeConectores:()=>je("conectores"),alPedirSoporte:J0},la.id)]}):pu?o.jsxs(o.Fragment,{children:[o.jsx(g0,{conectado:i.conectado}),fo===void 0?null:o.jsx(e6,{texto:fo,alCerrar:()=>Ba(void 0)}),ni===void 0?null:o.jsx(e6,{texto:ni,alCerrar:()=>_s(void 0)}),Ca===void 0||kr?null:o.jsx(Vee,{ticket:Ca,...Go===void 0?{}:{nombreDelGestor:Go},ocupado:Zi,conectado:i.conectado,alPedir:js}),!xt||dr===void 0||dr.clave!==Ca?null:o.jsx(Uee,{clave:dr.clave,...Go===void 0?{}:{nombreDelGestor:Go},comentario:dr.comentario,...pr===void 0?{}:{transiciones:pr},...Xi===void 0?{}:{errorTransiciones:Xi.motivo},enviando:xs,...Qi===void 0?{}:{error:Qi.motivo},alConfirmar:ac,alCancelar:()=>vo(!1)},dr.id),wo.panel==="centro"&&rl!==void 0?rl:o.jsx(rO,{actos:i.actos,turnoEnVuelo:i.turnoEnVuelo===!0,historica:((Gt=i.alta)==null?void 0:Gt.historica)===!0,sinAprobacion:((Ot=i.alta)==null?void 0:Ot.modoDeEscritura)==="autonomo",...((So=i.alta)==null?void 0:So.trabajoAlAbrir)===void 0?{}:{trabajoAlAbrir:i.alta.trabajoAlAbrir},...Wa===void 0?{}:{segundosEnVuelo:Wa},...jo===void 0?{}:{proyecto:jo},...((Qn=i.modelos)==null?void 0:Qn.actual)===void 0?{}:{modelo:i.modelos.actual},...((fr=i.alta)==null?void 0:fr.sesionActiva)===void 0?{}:{sesion:i.alta.sesionActiva},alAbrirArtefacto:Hi,alAbrirFichero:Wi,alPedirCorreccion:E=>ho(Z=>({texto:E,id:((Z==null?void 0:Z.id)??0)+1})),alResponderConsulta:async E=>Pr!==void 0&&!kr?await new Promise(Z=>Cr({texto:E,adjuntos:[],desdeConsulta:Z})):(await t({clase:"prosa",texto:E}),!0),...on===void 0?{}:{alEncolarPropuesta:async(E,Z)=>zl(await t({clase:"tarea",accion:"crearEncadenadas",proyecto:on,propuesta:E,encargos:Z})),alDescartarPropuesta:async E=>zl(await t({clase:"tarea",accion:"descartarPropuesta",proyecto:on,propuesta:E})),alHacerPropuestaEnChat:async E=>{const Z=await zl(await t({clase:"tarea",accion:"descartarPropuesta",proyecto:on,propuesta:E,enChat:!0}));if(Z!==void 0)return Z;await t({clase:"prosa",texto:yae})}}}),Br!==void 0?o.jsx(Ll,{texto:Br.texto,alResponder:async E=>{await t({clase:"respuesta",texto:E}),e.contestarPregunta()}}):null,i.secreto!==void 0&&!fe?o.jsx(Ll,{texto:i.secreto.pregunta,oculta:!0,alResponder:async E=>{await t({clase:"secreto",valor:E}),e.contestarSecreto()}}):null,i.selector!==void 0?o.jsx(A5,{titulo:i.selector.titulo,opciones:i.selector.opciones,...i.selector.aviso===void 0?{}:{aviso:i.selector.aviso},alElegir:async E=>{await t({clase:"eleccion",id:E}),e.contestarSelector()}}):null,Pr===void 0?null:o.jsx(yL,{titulo:Pr.titulo}),o.jsx(aR,{conectado:i.conectado,hayPendiente:i.aprobacion!==void 0||i.pregunta!==void 0||i.selector!==void 0||i.secreto!==void 0,...Fn===void 0?{}:{borrador:Fn},...i.modelos===void 0?{}:{modelos:i.modelos},...i.consumo===void 0?{}:{consumo:i.consumo},alPedirCatalogo:E=>void t({clase:"catalogo",proveedor:E}),alElegirModelo:E=>void t({clase:"modelo",id:E}),alElegirEsfuerzo:E=>void t(E===void 0?{clase:"esfuerzo"}:{clase:"esfuerzo",nivel:E}),alAbrirAjustes:()=>je(),...((Yo=i.alta)==null?void 0:Yo.dispositivoActivo)===void 0?{}:{dispositivo:i.alta.dispositivoActivo},...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},alElegirDispositivo:E=>void t(E===void 0?{clase:"dispositivo"}:{clase:"dispositivo",id:E}),...i.enUsoDeDispositivos===void 0?{}:{dispositivosEnUso:i.enUsoDeDispositivos},...jo===void 0?{}:{proyectoActual:jo},alMedirDispositivos:Ce,...((zs=i.alta)==null?void 0:zs.modoDeEscritura)===void 0?{}:{modoDeEscritura:i.alta.modoDeEscritura},alElegirModoDeEscritura:E=>void t({clase:"modoDeEscritura",modo:E}),turnoEnVuelo:i.turnoEnVuelo===!0,oculto:wo.panel==="centro",alParar:()=>void t({clase:"cancelar"}),...r===void 0?{}:{alSubirAdjunto:(E,Z)=>r(Z,E)},alEnviar:(E,Z)=>{if(Pr!==void 0&&!kr){Cr({texto:E,adjuntos:Z});return}t({clase:"prosa",texto:E,...Z.length===0?{}:{adjuntos:Z},...kr&&i.turnoDetenible===!0?{detener:!0}:{}})}}),Fr!==void 0&&Pr!==void 0?o.jsx(xL,{titulo:Pr.titulo,conAdjuntos:Fr.adjuntos.length>0,alCancelar:()=>{const{texto:E,desdeConsulta:Z}=Fr;Cr(void 0),Z!==void 0?Z(!1):ho(ue=>({texto:E,id:((ue==null?void 0:ue.id)??0)+1}))},alSeguirAqui:()=>{const{texto:E,adjuntos:Z,desdeConsulta:ue}=Fr;Cr(void 0),t({clase:"prosa",texto:E,...Z.length===0?{}:{adjuntos:Z}}).then(()=>ue==null?void 0:ue(!0),()=>ue==null?void 0:ue(!1))},alContinuarLaTarea:async()=>{var De;const E=Pr.id,Z=await zl(await t({clase:"tarea",accion:"feedback",id:E,texto:Fr.texto}));if(Z!==void 0)return Z;const ue=await zl(await t({clase:"tarea",accion:"arrancarAhora",id:E}));if(ue!==void 0)return`tu mensaje ya está en la tarea, pero ${ue}`;(De=Fr.desdeConsulta)==null||De.call(Fr,!0),Cr(void 0)}}):null,o.jsx(lO,{turnos:Zm,pasos:fu,ms:gu==null?void 0:gu.ms,...ks===void 0||ks.usado===0?{}:{contexto:ks.usado},...(ks==null?void 0:ks.tope)===void 0?{}:{tope:ks.tope},...Wa===void 0?{}:{segundosEnVuelo:Wa}}),i.aprobacion!==void 0?o.jsx(vB,{pendientes:i.aprobacion.pendientes,ficheros:i.aprobacion.ficheros,diffs:i.aprobacion.diffs,alDecidir:async E=>{await t({clase:"decision",decisiones:E}),e.cerrarAprobacion()}}):null]}):mu?o.jsxs(o.Fragment,{children:[o.jsx(g0,{conectado:i.conectado}),o.jsx(s6,{nombre:jo??"Proyecto",...($t.get(on??"")??0)>0?{tareasEnCurso:$t.get(on??"")}:{},...si===void 0?{}:{entorno:si.nombre},...((gr=i.sync)==null?void 0:gr.rama)===void 0?{}:{rama:i.sync.rama},...((ml=i.planes)==null?void 0:ml.lista)===void 0?{}:{planes:i.planes.lista},...vu===void 0?{}:{copia:{...K0(vu),subida:Ho,...ar===void 0?{}:{marcaDeSubida:ar}}},tareasEnFondo:td,...vu===void 0?{}:{sincronizacion:e1},...i.gestor===void 0?{}:{gestor:i.gestor},...i.conectores===void 0?{}:{conectores:i.conectores},conectado:i.conectado,turnoEnVuelo:kr,empezarEnVuelo:Ha,alVolverAlChat:()=>mn(!1),alGestor:go,alAutorizarConector:E=>void t({clase:"conector",accion:"autorizar",id:E}),alProbarConector:E=>void t({clase:"conector",accion:"probar",id:E}),alAbrirAjustesDeConectores:()=>je("conectores"),alPedirSoporte:J0},on??"")]}):o.jsxs(o.Fragment,{children:[o.jsx(g0,{conectado:i.conectado}),o.jsx(SV,{conectado:i.conectado,...((Gu=(Vu=i.alta)==null?void 0:Vu.registrados.find(E=>E.id===Xa))==null?void 0:Gu.proyectos)===void 0?{}:{visibles:i.alta.registrados.find(E=>E.id===Xa).proyectos},...oi===void 0?{}:{fijados:oi},...i.nombre===void 0?{}:{nombre:i.nombre},...si===void 0?{}:{entorno:si},proyectos:((hl=i.alta)==null?void 0:hl.proyectos)??[],...((Wu=i.modelos)==null?void 0:Wu.actual)===void 0?{}:{modelo:i.modelos.actual},alNuevaSesion:E=>ic(E),alNuevaTarea:E=>xu(E),alAbrirAjustes:()=>je(),...i.dispositivos===void 0?{}:{dispositivos:i.dispositivos},alActualizarDispositivos:Ce,alVerificarDispositivo:E=>void t({clase:"conexion",id:E}),...i.tareas===void 0?{}:{tareas:i.tareas},alAbrirSesionDeTarea:(E,Z)=>hn(E,Z),alAbrirRevisionDeTarea:(E,Z)=>hn(E,Z,"revision"),alReintentarTarea:le,alDescartarTarea:Ze,alTerminarTarea:st,...l===void 0?{}:{alMirarTarea:Pn,alDejarDeMirarTarea:oa},...Pt===void 0?{}:{mirandoTarea:Pt},...i.mirada===void 0?{}:{mirada:i.mirada},alEnviarFeedback:vt,...((Ka=i.alta)==null?void 0:Ka.proyectoActivo)===void 0?{}:{proyectoActivo:i.alta.proyectoActivo}})]}),barra:o.jsx(rL,{conectado:i.conectado,entornos:((fl=i.alta)==null?void 0:fl.registrados)??[],entornoActivo:Xa,...((kc=i.alta)==null?void 0:kc.proyectoActivo)===void 0?{}:{proyectoActivo:i.alta.proyectoActivo},...((Zu=i.alta)==null?void 0:Zu.sesionActiva)===void 0?{}:{sesionActiva:i.alta.sesionActiva},...(($o=(xd=i.alta)==null?void 0:xd.registrados.find(E=>E.id===Xa))==null?void 0:$o.proyectos)===void 0?{}:{visibles:i.alta.registrados.find(E=>E.id===Xa).proyectos},proyectos:(((Ts=i.alta)==null?void 0:Ts.proyectos)??[]).map(E=>({...E,sesiones:(E.sesiones??[]).map(Z=>({...Z,historica:!0})),...($t.get(E.id)??0)>0?{tareasEnCurso:$t.get(E.id)}:{}})),alElegirEntorno:E=>b(()=>{nn(void 0),t({clase:"entorno",accion:"activo",entorno:E})}),alAbrirSesion:(E,Z)=>hn(E,Z),alAbrirProyecto:E=>Qm(E),...mu&&on!==void 0?{proyectoEnResumen:on}:sc?{proyectoEnResumen:la.id}:{},...oi===void 0?{}:{fijados:oi},alFijar:(E,Z)=>{const ue=oi??[],De=Z?[...ue.filter(Jt=>Jt!==E),E]:ue.filter(Jt=>Jt!==E);t({clase:"entorno",accion:"fijados",entorno:Xa,proyectos:De})},alNuevaSesion:E=>ic(E),alAccionDeSesion:(E,Z,ue,De)=>re({proyecto:E,sesion:Z,titulo:ue,accion:De}),alAbrirAjustes:()=>je(),alAbrirAjustesEnEntornos:()=>je("entornos"),...ba===void 0?{}:{abriendo:ba},...((Ms=i.alta)==null?void 0:Ms.version)===void 0?{}:{version:i.alta.version}})}),Jm,ed,ii,Km,Ym,zn]})}const d9=px(),y0=gx(d9);ry.createRoot(document.getElementById("root")).render(o.jsx($.StrictMode,{children:o.jsx(xae,{store:d9,enviar:y0.enviar,subirAdjunto:y0.subirAdjunto,subirAdjuntoDeSesion:y0.subirAdjuntoDeSesion,instalarSkill:y0.instalarSkill,mirar:y0.mirar})}));export{ik as a,o as j,N5 as n,$ as r,ok as s,rk as t};
|