xonecode 0.38.5 → 0.38.12
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/apps/web/dist/assets/{EditorDeFichero-Bgy1gslC.js → EditorDeFichero-C_95A4sB.js} +1 -1
- package/apps/web/dist/assets/index-CAqQp65A.js +506 -0
- package/apps/web/dist/assets/index-tzWrUZYU.css +1 -0
- package/apps/web/dist/assets/{php-D_cRJn_2.js → php-CkVQ0jw6.js} +1 -1
- package/apps/web/dist/assets/{ruby-C1ETrNOC.js → ruby-m3xVWkBq.js} +1 -1
- package/apps/web/dist/index.html +2 -2
- package/dist/agent/tareas/tareasEnDisco.js +23 -1
- package/dist/agent/tareas/tareasEnDisco.js.map +1 -1
- package/dist/core/tareas.js +29 -0
- package/dist/core/tareas.js.map +1 -1
- package/dist/web/servidor/arranque.js +127 -3
- package/dist/web/servidor/arranque.js.map +1 -1
- package/dist/web/servidor/corredorDeTareas.js +27 -5
- package/dist/web/servidor/corredorDeTareas.js.map +1 -1
- package/dist/web/servidor/transporte.js.map +1 -1
- package/dist/web/servidor/vestibulo.js +24 -0
- package/dist/web/servidor/vestibulo.js.map +1 -1
- package/package.json +1 -1
- package/apps/web/dist/assets/index-3ULaaFD-.js +0 -506
- package/apps/web/dist/assets/index-DVkE8VSW.css +0 -1
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ruby-C1ETrNOC.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-D_cRJn_2.js","./scss-D5BDwBP9.js","./EditorDeFichero-Bgy1gslC.js","./EditorDeFichero-BX_LfESa.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var gx=Object.defineProperty;var vx=Object.getPrototypeOf;var bx=Reflect.get;var A3=e=>{throw TypeError(e)};var yx=(e,t,n)=>t in e?gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>yx(e,typeof t!="symbol"?t+"":t,n),gh=(e,t,n)=>t.has(e)||A3("Cannot "+n);var Qr=(e,t,n)=>(gh(e,t,"read from private field"),n?n.call(e):t.get(e)),Ll=(e,t,n)=>t.has(e)?A3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qo=(e,t,n,r)=>(gh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),vh=(e,t,n)=>(gh(e,t,"access private method"),n);var E3=(e,t,n)=>bx(vx(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 i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bh={exports:{}},x0={},yh={exports:{}},_t={};/**
|
|
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 D3;function _x(){if(D3)return _t;D3=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"),i=Symbol.for("react.provider"),l=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(O){return O===null||typeof O!="object"?null:(O=h&&O[h]||O["@@iterator"],typeof O=="function"?O:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function j(O,ne,E){this.props=O,this.context=ne,this.refs=_,this.updater=E||y}j.prototype.isReactComponent={},j.prototype.setState=function(O,ne){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,ne,"setState")},j.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=j.prototype;function S(O,ne,E){this.props=O,this.context=ne,this.refs=_,this.updater=E||y}var A=S.prototype=new C;A.constructor=S,g(A,j.prototype),A.isPureReactComponent=!0;var M=Array.isArray,L=Object.prototype.hasOwnProperty,z={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function H(O,ne,E){var ue,ae={},be=null,$e=null;if(ne!=null)for(ue in ne.ref!==void 0&&($e=ne.ref),ne.key!==void 0&&(be=""+ne.key),ne)L.call(ne,ue)&&!P.hasOwnProperty(ue)&&(ae[ue]=ne[ue]);var pe=arguments.length-2;if(pe===1)ae.children=E;else if(1<pe){for(var Le=Array(pe),Ae=0;Ae<pe;Ae++)Le[Ae]=arguments[Ae+2];ae.children=Le}if(O&&O.defaultProps)for(ue in pe=O.defaultProps,pe)ae[ue]===void 0&&(ae[ue]=pe[ue]);return{$$typeof:e,type:O,key:be,ref:$e,props:ae,_owner:z.current}}function R(O,ne){return{$$typeof:e,type:O.type,key:ne,ref:O.ref,props:O.props,_owner:O._owner}}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function U(O){var ne={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(E){return ne[E]})}var Z=/\/+/g;function re(O,ne){return typeof O=="object"&&O!==null&&O.key!=null?U(""+O.key):ne.toString(36)}function le(O,ne,E,ue,ae){var be=typeof O;(be==="undefined"||be==="boolean")&&(O=null);var $e=!1;if(O===null)$e=!0;else switch(be){case"string":case"number":$e=!0;break;case"object":switch(O.$$typeof){case e:case t:$e=!0}}if($e)return $e=O,ae=ae($e),O=ue===""?"."+re($e,0):ue,M(ae)?(E="",O!=null&&(E=O.replace(Z,"$&/")+"/"),le(ae,ne,E,"",function(Ae){return Ae})):ae!=null&&(F(ae)&&(ae=R(ae,E+(!ae.key||$e&&$e.key===ae.key?"":(""+ae.key).replace(Z,"$&/")+"/")+O)),ne.push(ae)),1;if($e=0,ue=ue===""?".":ue+":",M(O))for(var pe=0;pe<O.length;pe++){be=O[pe];var Le=ue+re(be,pe);$e+=le(be,ne,E,Le,ae)}else if(Le=b(O),typeof Le=="function")for(O=Le.call(O),pe=0;!(be=O.next()).done;)be=be.value,Le=ue+re(be,pe++),$e+=le(be,ne,E,Le,ae);else if(be==="object")throw ne=String(O),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.");return $e}function ee(O,ne,E){if(O==null)return O;var ue=[],ae=0;return le(O,ue,"","",function(be){return ne.call(E,be,ae++)}),ue}function ke(O){if(O._status===-1){var ne=O._result;ne=ne(),ne.then(function(E){(O._status===0||O._status===-1)&&(O._status=1,O._result=E)},function(E){(O._status===0||O._status===-1)&&(O._status=2,O._result=E)}),O._status===-1&&(O._status=0,O._result=ne)}if(O._status===1)return O._result.default;throw O._result}var _e={current:null},ie={transition:null},Ne={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:ie,ReactCurrentOwner:z};function B(){throw Error("act(...) is not supported in production builds of React.")}return _t.Children={map:ee,forEach:function(O,ne,E){ee(O,function(){ne.apply(this,arguments)},E)},count:function(O){var ne=0;return ee(O,function(){ne++}),ne},toArray:function(O){return ee(O,function(ne){return ne})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},_t.Component=j,_t.Fragment=n,_t.Profiler=a,_t.PureComponent=S,_t.StrictMode=r,_t.Suspense=d,_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ne,_t.act=B,_t.cloneElement=function(O,ne,E){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var ue=g({},O.props),ae=O.key,be=O.ref,$e=O._owner;if(ne!=null){if(ne.ref!==void 0&&(be=ne.ref,$e=z.current),ne.key!==void 0&&(ae=""+ne.key),O.type&&O.type.defaultProps)var pe=O.type.defaultProps;for(Le in ne)L.call(ne,Le)&&!P.hasOwnProperty(Le)&&(ue[Le]=ne[Le]===void 0&&pe!==void 0?pe[Le]:ne[Le])}var Le=arguments.length-2;if(Le===1)ue.children=E;else if(1<Le){pe=Array(Le);for(var Ae=0;Ae<Le;Ae++)pe[Ae]=arguments[Ae+2];ue.children=pe}return{$$typeof:e,type:O.type,key:ae,ref:be,props:ue,_owner:$e}},_t.createContext=function(O){return O={$$typeof:l,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:i,_context:O},O.Consumer=O},_t.createElement=H,_t.createFactory=function(O){var ne=H.bind(null,O);return ne.type=O,ne},_t.createRef=function(){return{current:null}},_t.forwardRef=function(O){return{$$typeof:u,render:O}},_t.isValidElement=F,_t.lazy=function(O){return{$$typeof:f,_payload:{_status:-1,_result:O},_init:ke}},_t.memo=function(O,ne){return{$$typeof:m,type:O,compare:ne===void 0?null:ne}},_t.startTransition=function(O){var ne=ie.transition;ie.transition={};try{O()}finally{ie.transition=ne}},_t.unstable_act=B,_t.useCallback=function(O,ne){return _e.current.useCallback(O,ne)},_t.useContext=function(O){return _e.current.useContext(O)},_t.useDebugValue=function(){},_t.useDeferredValue=function(O){return _e.current.useDeferredValue(O)},_t.useEffect=function(O,ne){return _e.current.useEffect(O,ne)},_t.useId=function(){return _e.current.useId()},_t.useImperativeHandle=function(O,ne,E){return _e.current.useImperativeHandle(O,ne,E)},_t.useInsertionEffect=function(O,ne){return _e.current.useInsertionEffect(O,ne)},_t.useLayoutEffect=function(O,ne){return _e.current.useLayoutEffect(O,ne)},_t.useMemo=function(O,ne){return _e.current.useMemo(O,ne)},_t.useReducer=function(O,ne,E){return _e.current.useReducer(O,ne,E)},_t.useRef=function(O){return _e.current.useRef(O)},_t.useState=function(O){return _e.current.useState(O)},_t.useSyncExternalStore=function(O,ne,E){return _e.current.useSyncExternalStore(O,ne,E)},_t.useTransition=function(){return _e.current.useTransition()},_t.version="18.3.1",_t}var z3;function e2(){return z3||(z3=1,yh.exports=_x()),yh.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 T3;function wx(){if(T3)return x0;T3=1;var e=e2(),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,i={key:!0,ref:!0,__self:!0,__source:!0};function l(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)&&!i.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 x0.Fragment=n,x0.jsx=l,x0.jsxs=l,x0}var M3;function jx(){return M3||(M3=1,bh.exports=wx()),bh.exports}var o=jx(),$=e2(),pp={},xh={exports:{}},ha={},_h={exports:{}},wh={};/**
|
|
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 L3;function Cx(){return L3||(L3=1,(function(e){function t(ie,Ne){var B=ie.length;ie.push(Ne);e:for(;0<B;){var O=B-1>>>1,ne=ie[O];if(0<a(ne,Ne))ie[O]=Ne,ie[B]=ne,B=O;else break e}}function n(ie){return ie.length===0?null:ie[0]}function r(ie){if(ie.length===0)return null;var Ne=ie[0],B=ie.pop();if(B!==Ne){ie[0]=B;e:for(var O=0,ne=ie.length,E=ne>>>1;O<E;){var ue=2*(O+1)-1,ae=ie[ue],be=ue+1,$e=ie[be];if(0>a(ae,B))be<ne&&0>a($e,ae)?(ie[O]=$e,ie[be]=B,O=be):(ie[O]=ae,ie[ue]=B,O=ue);else if(be<ne&&0>a($e,B))ie[O]=$e,ie[be]=B,O=be;else break e}}return Ne}function a(ie,Ne){var B=ie.sortIndex-Ne.sortIndex;return B!==0?B:ie.id-Ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],m=[],f=1,h=null,b=3,y=!1,g=!1,_=!1,j=typeof setTimeout=="function"?setTimeout:null,C=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(ie){for(var Ne=n(m);Ne!==null;){if(Ne.callback===null)r(m);else if(Ne.startTime<=ie)r(m),Ne.sortIndex=Ne.expirationTime,t(d,Ne);else break;Ne=n(m)}}function M(ie){if(_=!1,A(ie),!g)if(n(d)!==null)g=!0,ke(L);else{var Ne=n(m);Ne!==null&&_e(M,Ne.startTime-ie)}}function L(ie,Ne){g=!1,_&&(_=!1,C(H),H=-1),y=!0;var B=b;try{for(A(Ne),h=n(d);h!==null&&(!(h.expirationTime>Ne)||ie&&!U());){var O=h.callback;if(typeof O=="function"){h.callback=null,b=h.priorityLevel;var ne=O(h.expirationTime<=Ne);Ne=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(d)&&r(d),A(Ne)}else r(d);h=n(d)}if(h!==null)var E=!0;else{var ue=n(m);ue!==null&&_e(M,ue.startTime-Ne),E=!1}return E}finally{h=null,b=B,y=!1}}var z=!1,P=null,H=-1,R=5,F=-1;function U(){return!(e.unstable_now()-F<R)}function Z(){if(P!==null){var ie=e.unstable_now();F=ie;var Ne=!0;try{Ne=P(!0,ie)}finally{Ne?re():(z=!1,P=null)}}else z=!1}var re;if(typeof S=="function")re=function(){S(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ee=le.port2;le.port1.onmessage=Z,re=function(){ee.postMessage(null)}}else re=function(){j(Z,0)};function ke(ie){P=ie,z||(z=!0,re())}function _e(ie,Ne){H=j(function(){ie(e.unstable_now())},Ne)}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(ie){ie.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,ke(L))},e.unstable_forceFrameRate=function(ie){0>ie||125<ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<ie?Math.floor(1e3/ie):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(ie){switch(b){case 1:case 2:case 3:var Ne=3;break;default:Ne=b}var B=b;b=Ne;try{return ie()}finally{b=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ie,Ne){switch(ie){case 1:case 2:case 3:case 4:case 5:break;default:ie=3}var B=b;b=ie;try{return Ne()}finally{b=B}},e.unstable_scheduleCallback=function(ie,Ne,B){var O=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?O+B:O):B=O,ie){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=B+ne,ie={id:f++,callback:Ne,priorityLevel:ie,startTime:B,expirationTime:ne,sortIndex:-1},B>O?(ie.sortIndex=B,t(m,ie),n(d)===null&&ie===n(m)&&(_?(C(H),H=-1):_=!0,_e(M,B-O))):(ie.sortIndex=ne,t(d,ie),g||y||(g=!0,ke(L))),ie},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(ie){var Ne=b;return function(){var B=b;b=Ne;try{return ie.apply(this,arguments)}finally{b=B}}}})(wh)),wh}var I3;function kx(){return I3||(I3=1,_h.exports=Cx()),_h.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 P3;function Nx(){if(P3)return ha;P3=1;var e=e2(),t=kx();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 i(s,c){l(s,c),l(s+"Capture",c)}function l(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,k,I){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=k,this.removeEmptyString=I}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){j[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];j[c]=new _(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){j[s]=new _(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){j[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){j[s]=new _(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){j[s]=new _(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){j[s]=new _(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){j[s]=new _(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){j[s]=new _(s,5,!1,s.toLowerCase(),null,!1,!1)});var C=/[\-:]([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(C,S);j[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(C,S);j[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(C,S);j[c]=new _(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){j[s]=new _(s,1,!1,s.toLowerCase(),null,!1,!1)}),j.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){j[s]=new _(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,c,p,v){var x=j.hasOwnProperty(c)?j[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 M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),z=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),U=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),ie=Symbol.iterator;function Ne(s){return s===null||typeof s!="object"?null:(s=ie&&s[ie]||s["@@iterator"],typeof s=="function"?s:null)}var B=Object.assign,O;function ne(s){if(O===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);O=c&&c[1]||""}return`
|
|
35
|
-
`+O+s}var E=!1;function ue(s,c){if(!s||E)return"";E=!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(ce){var v=ce}Reflect.construct(s,[],c)}else{try{c.call()}catch(ce){v=ce}s.call(c.prototype)}else{try{throw Error()}catch(ce){v=ce}s()}}catch(ce){if(ce&&v&&typeof ce.stack=="string"){for(var x=ce.stack.split(`
|
|
36
|
-
`),k=v.stack.split(`
|
|
37
|
-
`),I=x.length-1,V=k.length-1;1<=I&&0<=V&&x[I]!==k[V];)V--;for(;1<=I&&0<=V;I--,V--)if(x[I]!==k[V]){if(I!==1||V!==1)do if(I--,V--,0>V||x[I]!==k[V]){var K=`
|
|
38
|
-
`+x[I].replace(" at new "," at ");return s.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",s.displayName)),K}while(1<=I&&0<=V);break}}}finally{E=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?ne(s):""}function ae(s){switch(s.tag){case 5:return ne(s.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return s=ue(s.type,!1),s;case 11:return s=ue(s.type.render,!1),s;case 1:return s=ue(s.type,!0),s;default:return""}}function be(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 P:return"Fragment";case z:return"Portal";case R:return"Profiler";case H:return"StrictMode";case re:return"Suspense";case le:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case U:return(s.displayName||"Context")+".Consumer";case F:return(s._context.displayName||"Context")+".Provider";case Z:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ee:return c=s.displayName||null,c!==null?c:be(s.type)||"Memo";case ke:c=s._payload,s=s._init;try{return be(s(c))}catch{}}return null}function $e(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 be(c);case 8:return c===H?"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 pe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Le(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Ae(s){var c=Le(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,k=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(I){v=""+I,k.call(this,I)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return v},setValue:function(I){v=""+I},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function ut(s){s._valueTracker||(s._valueTracker=Ae(s))}function yt(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),v="";return s&&(v=Le(s)?s.checked?"true":"false":s.value),s=v,s!==p?(c.setValue(s),!0):!1}function Ct(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 Qt(s,c){var p=c.checked;return B({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function An(s,c){var p=c.defaultValue==null?"":c.defaultValue,v=c.checked!=null?c.checked:c.defaultChecked;p=pe(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 cn(s,c){c=c.checked,c!=null&&A(s,"checked",c,!1)}function ya(s,c){cn(s,c);var p=pe(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")?gr(s,c.type,p):c.hasOwnProperty("defaultValue")&&gr(s,c.type,pe(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function In(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 gr(s,c,p){(c!=="number"||Ct(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var qt=Array.isArray;function $r(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=""+pe(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 xa(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return B({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function or(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(qt(p)){if(1<p.length)throw Error(n(93));p=p[0]}c=p}c==null&&(c=""),p=c}s._wrapperState={initialValue:pe(p)}}function Qn(s,c){var p=pe(c.value),v=pe(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 ra(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function me(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 Se(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?me(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var qe,ot=(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(qe=qe||document.createElement("div"),qe.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=qe.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function gt(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var Ht={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},Br=["Webkit","ms","Moz","O"];Object.keys(Ht).forEach(function(s){Br.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Ht[c]=Ht[s]})});function sr(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Ht.hasOwnProperty(s)&&Ht[s]?(""+c).trim():c+"px"}function Ur(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var v=p.indexOf("--")===0,x=sr(p,c[p],v);p==="float"&&(p="cssFloat"),v?s.setProperty(p,x):s[p]=x}}var vr=B({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 an(s,c){if(c){if(vr[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 Pn(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 En=null;function Rn(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Hr=null,Ft=null,fo=null;function Dn(s){if(s=Ci(s)){if(typeof Hr!="function")throw Error(n(280));var c=s.stateNode;c&&(c=wl(c),Hr(s.stateNode,s.type,c))}}function tl(s){Ft?fo?fo.push(s):fo=[s]:Ft=s}function ui(){if(Ft){var s=Ft,c=fo;if(fo=Ft=null,Dn(s),c)for(s=0;s<c.length;s++)Dn(c[s])}}function _a(s,c){return s(c)}function Ar(){}var Zo=!1;function Qo(s,c,p){if(Zo)return s(c,p);Zo=!0;try{return _a(s,c,p)}finally{Zo=!1,(Ft!==null||fo!==null)&&(Ar(),ui())}}function wa(s,c){var p=s.stateNode;if(p===null)return null;var v=wl(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 Xo=!1;if(u)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){Xo=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{Xo=!1}function aa(s,c,p,v,x,k,I,V,K){var ce=Array.prototype.slice.call(arguments,3);try{c.apply(p,ce)}catch(xe){this.onError(xe)}}var Ua=!1,ja=null,Jt=!1,oa=null,_s={onError:function(s){Ua=!0,ja=s}};function Ha(s,c,p,v,x,k,I,V,K){Ua=!1,ja=null,aa.apply(_s,arguments)}function dc(s,c,p,v,x,k,I,V,K){if(Ha.apply(this,arguments),Ua){if(Ua){var ce=ja;Ua=!1,ja=null}else throw Error(n(198));Jt||(Jt=!0,oa=ce)}}function ir(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 go(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 ws(s){if(ir(s)!==s)throw Error(n(188))}function nl(s){var c=s.alternate;if(!c){if(c=ir(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 k=x.alternate;if(k===null){if(v=x.return,v!==null){p=v;continue}break}if(x.child===k.child){for(k=x.child;k;){if(k===p)return ws(x),s;if(k===v)return ws(x),c;k=k.sibling}throw Error(n(188))}if(p.return!==v.return)p=x,v=k;else{for(var I=!1,V=x.child;V;){if(V===p){I=!0,p=x,v=k;break}if(V===v){I=!0,v=x,p=k;break}V=V.sibling}if(!I){for(V=k.child;V;){if(V===p){I=!0,p=k,v=x;break}if(V===v){I=!0,v=k,p=x;break}V=V.sibling}if(!I)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 pc(s){return s=nl(s),s!==null?vo(s):null}function vo(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=vo(s);if(c!==null)return c;s=s.sibling}return null}var qn=t.unstable_scheduleCallback,Ko=t.unstable_cancelCallback,rl=t.unstable_shouldYield,Jo=t.unstable_requestPaint,zt=t.unstable_now,al=t.unstable_getCurrentPriorityLevel,sa=t.unstable_ImmediatePriority,di=t.unstable_UserBlockingPriority,bo=t.unstable_NormalPriority,ol=t.unstable_LowPriority,mc=t.unstable_IdlePriority,Ca=null,Vr=null;function js(s){if(Vr&&typeof Vr.onCommitFiberRoot=="function")try{Vr.onCommitFiberRoot(Ca,s,void 0,(s.current.flags&128)===128)}catch{}}var un=Math.clz32?Math.clz32:Cs,es=Math.log,ia=Math.LN2;function Cs(s){return s>>>=0,s===0?32:31-(es(s)/ia|0)|0}var Va=64,Ga=4194304;function yo(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 ka(s,c){var p=s.pendingLanes;if(p===0)return 0;var v=0,x=s.suspendedLanes,k=s.pingedLanes,I=p&268435455;if(I!==0){var V=I&~x;V!==0?v=yo(V):(k&=I,k!==0&&(v=yo(k)))}else I=p&~x,I!==0?v=yo(I):k!==0&&(v=yo(k));if(v===0)return 0;if(c!==0&&c!==v&&(c&x)===0&&(x=v&-v,k=c&-c,x>=k||x===16&&(k&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-un(c),x=1<<p,v|=s[p],c&=~x;return v}function pi(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 xo(s,c){for(var p=s.suspendedLanes,v=s.pingedLanes,x=s.expirationTimes,k=s.pendingLanes;0<k;){var I=31-un(k),V=1<<I,K=x[I];K===-1?((V&p)===0||(V&v)!==0)&&(x[I]=pi(V,c)):K<=c&&(s.expiredLanes|=V),k&=~V}}function Na(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function sl(){var s=Va;return Va<<=1,(Va&4194240)===0&&(Va=64),s}function Er(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function _o(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-un(c),s[c]=p}function wo(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-un(p),k=1<<x;c[x]=0,v[x]=-1,s[x]=-1,p&=~k}}function il(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var v=31-un(p),x=1<<v;x&c|s[v]&c&&(s[v]|=c),p&=~x}}var wt=0;function At(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var jo,mi,ks,Wa,Ns,Gr=!1,Za=[],la=null,Dr=null,Fn=null,Qa=new Map,Sa=new Map,br=[],ts="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 Ss(s,c){switch(s){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":Qa.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sa.delete(c.pointerId)}}function $s(s,c,p,v,x,k){return s===null||s.nativeEvent!==k?(s={blockedOn:c,domEventName:p,eventSystemFlags:v,nativeEvent:k,targetContainers:[x]},c!==null&&(c=Ci(c),c!==null&&mi(c)),s):(s.eventSystemFlags|=v,c=s.targetContainers,x!==null&&c.indexOf(x)===-1&&c.push(x),s)}function hc(s,c,p,v,x){switch(c){case"focusin":return la=$s(la,s,c,p,v,x),!0;case"dragenter":return Dr=$s(Dr,s,c,p,v,x),!0;case"mouseover":return Fn=$s(Fn,s,c,p,v,x),!0;case"pointerover":var k=x.pointerId;return Qa.set(k,$s(Qa.get(k)||null,s,c,p,v,x)),!0;case"gotpointercapture":return k=x.pointerId,Sa.set(k,$s(Sa.get(k)||null,s,c,p,v,x)),!0}return!1}function Co(s){var c=rs(s.target);if(c!==null){var p=ir(c);if(p!==null){if(c=p.tag,c===13){if(c=go(p),c!==null){s.blockedOn=c,Ns(s.priority,function(){ks(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 As(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=ll(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var v=new p.constructor(p.type,p);En=v,p.target.dispatchEvent(v),En=null}else return c=Ci(p),c!==null&&mi(c),s.blockedOn=p,!1;c.shift()}return!0}function Es(s,c,p){As(s)&&p.delete(c)}function yr(){Gr=!1,la!==null&&As(la)&&(la=null),Dr!==null&&As(Dr)&&(Dr=null),Fn!==null&&As(Fn)&&(Fn=null),Qa.forEach(Es),Sa.forEach(Es)}function $a(s,c){s.blockedOn===c&&(s.blockedOn=null,Gr||(Gr=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,yr)))}function lr(s){function c(x){return $a(x,s)}if(0<Za.length){$a(Za[0],s);for(var p=1;p<Za.length;p++){var v=Za[p];v.blockedOn===s&&(v.blockedOn=null)}}for(la!==null&&$a(la,s),Dr!==null&&$a(Dr,s),Fn!==null&&$a(Fn,s),Qa.forEach(c),Sa.forEach(c),p=0;p<br.length;p++)v=br[p],v.blockedOn===s&&(v.blockedOn=null);for(;0<br.length&&(p=br[0],p.blockedOn===null);)Co(p),p.blockedOn===null&&br.shift()}var ko=M.ReactCurrentBatchConfig,Ds=!0;function fc(s,c,p,v){var x=wt,k=ko.transition;ko.transition=null;try{wt=1,hi(s,c,p,v)}finally{wt=x,ko.transition=k}}function ns(s,c,p,v){var x=wt,k=ko.transition;ko.transition=null;try{wt=4,hi(s,c,p,v)}finally{wt=x,ko.transition=k}}function hi(s,c,p,v){if(Ds){var x=ll(s,c,p,v);if(x===null)Sc(s,c,v,Xa,p),Ss(s,v);else if(hc(x,s,c,p,v))v.stopPropagation();else if(Ss(s,v),c&4&&-1<ts.indexOf(s)){for(;x!==null;){var k=Ci(x);if(k!==null&&jo(k),k=ll(s,c,p,v),k===null&&Sc(s,c,v,Xa,p),k===x)break;x=k}x!==null&&v.stopPropagation()}else Sc(s,c,v,null,p)}}var Xa=null;function ll(s,c,p,v){if(Xa=null,s=Rn(v),s=rs(s),s!==null)if(c=ir(s),c===null)s=null;else if(p=c.tag,p===13){if(s=go(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 Xa=s,null}function zs(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(al()){case sa:return 1;case di:return 4;case bo:case ol:return 16;case mc:return 536870912;default:return 16}default:return 16}}var Aa=null,No=null,Ts=null;function X(){if(Ts)return Ts;var s,c=No,p=c.length,v,x="value"in Aa?Aa.value:Aa.textContent,k=x.length;for(s=0;s<p&&c[s]===x[s];s++);var I=p-s;for(v=1;v<=I&&c[p-v]===x[k-v];v++);return Ts=x.slice(s,1<v?1-v:void 0)}function Ue(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 xt(){return!0}function On(){return!1}function Et(s){function c(p,v,x,k,I){this._reactName=p,this._targetInst=x,this.type=v,this.nativeEvent=k,this.target=I,this.currentTarget=null;for(var V in s)s.hasOwnProperty(V)&&(p=s[V],this[V]=p?p(k):k[V]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?xt:On,this.isPropagationStopped=On,this}return B(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=xt)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=xt)},persist:function(){},isPersistent:xt}),c}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},st=Et(jn),Vt=B({},jn,{view:0,detail:0}),dt=Et(Vt),Xn,cr,ur,xr=B({},Vt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==ur&&(ur&&s.type==="mousemove"?(Xn=s.screenX-ur.screenX,cr=s.screenY-ur.screenY):cr=Xn=0,ur=s),Xn)},movementY:function(s){return"movementY"in s?s.movementY:cr}}),xu=Et(xr),_u=B({},xr,{dataTransfer:0}),i1=Et(_u),cl=B({},Vt,{relatedTarget:0}),ca=Et(cl),t4=B({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),wu=Et(t4),ju=B({},jn,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),gc=Et(ju),cd=B({},jn,{data:0}),So=Et(cd),Cu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l1={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"},$o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c1(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=$o[s])?!!c[s]:!1}function ku(){return c1}var Nu=B({},Vt,{key:function(s){if(s.key){var c=Cu[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Ue(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?l1[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(s){return s.type==="keypress"?Ue(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ue(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Ms=Et(Nu),Ya=B({},xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fi=Et(Ya),vc=B({},Vt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),u1=Et(vc),ud=B({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),dd=Et(ud),Su=B({},xr,{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}),$u=Et(Su),d1=[9,13,27,32],Au=u&&"CompositionEvent"in window,ul=null;u&&"documentMode"in document&&(ul=document.documentMode);var gi=u&&"TextEvent"in window&&!ul,dl=u&&(!Au||ul&&8<ul&&11>=ul),pd=" ",pl=!1;function Eu(s,c){switch(s){case"keyup":return d1.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Du(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var vi=!1;function p1(s,c){switch(s){case"compositionend":return Du(c);case"keypress":return c.which!==32?null:(pl=!0,pd);case"textInput":return s=c.data,s===pd&&pl?null:s;default:return null}}function m1(s,c){if(vi)return s==="compositionend"||!Au&&Eu(s,c)?(s=X(),Ts=No=Aa=null,vi=!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 dl&&c.locale!=="ko"?null:c.data;default:return null}}var h1={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 md(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!h1[s.type]:c==="textarea"}function ml(s,c,p,v){tl(v),c=yl(c,"onChange"),0<c.length&&(p=new st("onChange","change",null,p,v),s.push({event:p,listeners:c}))}var hl=null,zr=null;function f1(s){Qu(s,0)}function fl(s){var c=qs(s);if(yt(c))return s}function hd(s,c){if(s==="change")return c}var zu=!1;if(u){var bc;if(u){var yc="oninput"in document;if(!yc){var Tu=document.createElement("div");Tu.setAttribute("oninput","return;"),yc=typeof Tu.oninput=="function"}bc=yc}else bc=!1;zu=bc&&(!document.documentMode||9<document.documentMode)}function Mu(){hl&&(hl.detachEvent("onpropertychange",Lu),zr=hl=null)}function Lu(s){if(s.propertyName==="value"&&fl(zr)){var c=[];ml(c,zr,s,Rn(s)),Qo(f1,c)}}function fd(s,c,p){s==="focusin"?(Mu(),hl=c,zr=p,hl.attachEvent("onpropertychange",Lu)):s==="focusout"&&Mu()}function gd(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return fl(zr)}function vd(s,c){if(s==="click")return fl(c)}function bd(s,c){if(s==="input"||s==="change")return fl(c)}function yd(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var ua=typeof Object.is=="function"?Object.is:yd;function bi(s,c){if(ua(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)||!ua(s[x],c[x]))return!1}return!0}function Iu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Pu(s,c){var p=Iu(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=Iu(p)}}function Ru(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?Ru(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function qu(){for(var s=window,c=Ct();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Ct(s.document)}return c}function xc(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 xd(s){var c=qu(),p=s.focusedElem,v=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&Ru(p.ownerDocument.documentElement,p)){if(v!==null&&xc(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,k=Math.min(v.start,x);v=v.end===void 0?k:Math.min(v.end,x),!s.extend&&k>v&&(x=v,v=k,k=x),x=Pu(p,k);var I=Pu(p,v);x&&I&&(s.rangeCount!==1||s.anchorNode!==x.node||s.anchorOffset!==x.offset||s.focusNode!==I.node||s.focusOffset!==I.offset)&&(c=c.createRange(),c.setStart(x.node,x.offset),s.removeAllRanges(),k>v?(s.addRange(c),s.extend(I.node,I.offset)):(c.setEnd(I.node,I.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 _d=u&&"documentMode"in document&&11>=document.documentMode,Ls=null,_c=null,yi=null,wc=!1;function Fu(s,c,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;wc||Ls==null||Ls!==Ct(v)||(v=Ls,"selectionStart"in v&&xc(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}),yi&&bi(yi,v)||(yi=v,v=yl(_c,"onSelect"),0<v.length&&(c=new st("onSelect","select",null,c,p),s.push({event:c,listeners:v}),c.target=Ls)))}function gl(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var Is={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},jc={},Ou={};u&&(Ou=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function vl(s){if(jc[s])return jc[s];if(!Is[s])return s;var c=Is[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in Ou)return jc[s]=c[p];return s}var Bu=vl("animationend"),Uu=vl("animationiteration"),Hu=vl("animationstart"),Vu=vl("transitionend"),Gu=new Map,Wu="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 Ao(s,c){Gu.set(s,c),i(c,[s])}for(var Cc=0;Cc<Wu.length;Cc++){var kc=Wu[Cc],wd=kc.toLowerCase(),jd=kc[0].toUpperCase()+kc.slice(1);Ao(wd,"on"+jd)}Ao(Bu,"onAnimationEnd"),Ao(Uu,"onAnimationIteration"),Ao(Hu,"onAnimationStart"),Ao("dblclick","onDoubleClick"),Ao("focusin","onFocus"),Ao("focusout","onBlur"),Ao(Vu,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),Cd=new Set("cancel close invalid load scroll toggle".split(" ").concat(xi));function Zu(s,c,p){var v=s.type||"unknown-event";s.currentTarget=p,dc(v,c,void 0,s),s.currentTarget=null}function Qu(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 k=void 0;if(c)for(var I=v.length-1;0<=I;I--){var V=v[I],K=V.instance,ce=V.currentTarget;if(V=V.listener,K!==k&&x.isPropagationStopped())break e;Zu(x,V,ce),k=K}else for(I=0;I<v.length;I++){if(V=v[I],K=V.instance,ce=V.currentTarget,V=V.listener,K!==k&&x.isPropagationStopped())break e;Zu(x,V,ce),k=K}}}if(Jt)throw s=oa,Jt=!1,oa=null,s}function Xt(s,c){var p=c[Tc];p===void 0&&(p=c[Tc]=new Set);var v=s+"__bubble";p.has(v)||(Xu(c,s,2,!1),p.add(v))}function Nc(s,c,p){var v=0;c&&(v|=4),Xu(p,s,v,c)}var bl="_reactListening"+Math.random().toString(36).slice(2);function _i(s){if(!s[bl]){s[bl]=!0,r.forEach(function(p){p!=="selectionchange"&&(Cd.has(p)||Nc(p,!1,s),Nc(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[bl]||(c[bl]=!0,Nc("selectionchange",!1,c))}}function Xu(s,c,p,v){switch(zs(c)){case 1:var x=fc;break;case 4:x=ns;break;default:x=hi}p=x.bind(null,c,p,s),x=void 0,!Xo||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 Sc(s,c,p,v,x){var k=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var I=v.tag;if(I===3||I===4){var V=v.stateNode.containerInfo;if(V===x||V.nodeType===8&&V.parentNode===x)break;if(I===4)for(I=v.return;I!==null;){var K=I.tag;if((K===3||K===4)&&(K=I.stateNode.containerInfo,K===x||K.nodeType===8&&K.parentNode===x))return;I=I.return}for(;V!==null;){if(I=rs(V),I===null)return;if(K=I.tag,K===5||K===6){v=k=I;continue e}V=V.parentNode}}v=v.return}Qo(function(){var ce=k,xe=Rn(p),Ce=[];e:{var ye=Gu.get(s);if(ye!==void 0){var Oe=st,Ge=s;switch(s){case"keypress":if(Ue(p)===0)break e;case"keydown":case"keyup":Oe=Ms;break;case"focusin":Ge="focus",Oe=ca;break;case"focusout":Ge="blur",Oe=ca;break;case"beforeblur":case"afterblur":Oe=ca;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":Oe=xu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=i1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=u1;break;case Bu:case Uu:case Hu:Oe=wu;break;case Vu:Oe=dd;break;case"scroll":Oe=dt;break;case"wheel":Oe=$u;break;case"copy":case"cut":case"paste":Oe=gc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=fi}var We=(c&4)!==0,zn=!We&&s==="scroll",oe=We?ye!==null?ye+"Capture":null:ye;We=[];for(var te=ce,se;te!==null;){se=te;var Te=se.stateNode;if(se.tag===5&&Te!==null&&(se=Te,oe!==null&&(Te=wa(te,oe),Te!=null&&We.push(wi(te,Te,se)))),zn)break;te=te.return}0<We.length&&(ye=new Oe(ye,Ge,null,p,xe),Ce.push({event:ye,listeners:We}))}}if((c&7)===0){e:{if(ye=s==="mouseover"||s==="pointerover",Oe=s==="mouseout"||s==="pointerout",ye&&p!==En&&(Ge=p.relatedTarget||p.fromElement)&&(rs(Ge)||Ge[Ka]))break e;if((Oe||ye)&&(ye=xe.window===xe?xe:(ye=xe.ownerDocument)?ye.defaultView||ye.parentWindow:window,Oe?(Ge=p.relatedTarget||p.toElement,Oe=ce,Ge=Ge?rs(Ge):null,Ge!==null&&(zn=ir(Ge),Ge!==zn||Ge.tag!==5&&Ge.tag!==6)&&(Ge=null)):(Oe=null,Ge=ce),Oe!==Ge)){if(We=xu,Te="onMouseLeave",oe="onMouseEnter",te="mouse",(s==="pointerout"||s==="pointerover")&&(We=fi,Te="onPointerLeave",oe="onPointerEnter",te="pointer"),zn=Oe==null?ye:qs(Oe),se=Ge==null?ye:qs(Ge),ye=new We(Te,te+"leave",Oe,p,xe),ye.target=zn,ye.relatedTarget=se,Te=null,rs(xe)===ce&&(We=new We(oe,te+"enter",Ge,p,xe),We.target=se,We.relatedTarget=zn,Te=We),zn=Te,Oe&&Ge)t:{for(We=Oe,oe=Ge,te=0,se=We;se;se=Ps(se))te++;for(se=0,Te=oe;Te;Te=Ps(Te))se++;for(;0<te-se;)We=Ps(We),te--;for(;0<se-te;)oe=Ps(oe),se--;for(;te--;){if(We===oe||oe!==null&&We===oe.alternate)break t;We=Ps(We),oe=Ps(oe)}We=null}else We=null;Oe!==null&&Yu(Ce,ye,Oe,We,!1),Ge!==null&&zn!==null&&Yu(Ce,zn,Ge,We,!0)}}e:{if(ye=ce?qs(ce):window,Oe=ye.nodeName&&ye.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&ye.type==="file")var Xe=hd;else if(md(ye))if(zu)Xe=bd;else{Xe=gd;var nt=fd}else(Oe=ye.nodeName)&&Oe.toLowerCase()==="input"&&(ye.type==="checkbox"||ye.type==="radio")&&(Xe=vd);if(Xe&&(Xe=Xe(s,ce))){ml(Ce,Xe,p,xe);break e}nt&&nt(s,ye,ce),s==="focusout"&&(nt=ye._wrapperState)&&nt.controlled&&ye.type==="number"&&gr(ye,"number",ye.value)}switch(nt=ce?qs(ce):window,s){case"focusin":(md(nt)||nt.contentEditable==="true")&&(Ls=nt,_c=ce,yi=null);break;case"focusout":yi=_c=Ls=null;break;case"mousedown":wc=!0;break;case"contextmenu":case"mouseup":case"dragend":wc=!1,Fu(Ce,p,xe);break;case"selectionchange":if(_d)break;case"keydown":case"keyup":Fu(Ce,p,xe)}var rt;if(Au)e:{switch(s){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else vi?Eu(s,p)&&(lt="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(lt="onCompositionStart");lt&&(dl&&p.locale!=="ko"&&(vi||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&vi&&(rt=X()):(Aa=xe,No="value"in Aa?Aa.value:Aa.textContent,vi=!0)),nt=yl(ce,lt),0<nt.length&&(lt=new So(lt,s,null,p,xe),Ce.push({event:lt,listeners:nt}),rt?lt.data=rt:(rt=Du(p),rt!==null&&(lt.data=rt)))),(rt=gi?p1(s,p):m1(s,p))&&(ce=yl(ce,"onBeforeInput"),0<ce.length&&(xe=new So("onBeforeInput","beforeinput",null,p,xe),Ce.push({event:xe,listeners:ce}),xe.data=rt))}Qu(Ce,c)})}function wi(s,c,p){return{instance:s,listener:c,currentTarget:p}}function yl(s,c){for(var p=c+"Capture",v=[];s!==null;){var x=s,k=x.stateNode;x.tag===5&&k!==null&&(x=k,k=wa(s,p),k!=null&&v.unshift(wi(s,k,x)),k=wa(s,c),k!=null&&v.push(wi(s,k,x))),s=s.return}return v}function Ps(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Yu(s,c,p,v,x){for(var k=c._reactName,I=[];p!==null&&p!==v;){var V=p,K=V.alternate,ce=V.stateNode;if(K!==null&&K===v)break;V.tag===5&&ce!==null&&(V=ce,x?(K=wa(p,k),K!=null&&I.unshift(wi(p,K,V))):x||(K=wa(p,k),K!=null&&I.push(wi(p,K,V)))),p=p.return}I.length!==0&&s.push({event:c,listeners:I})}var kd=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Ku(s){return(typeof s=="string"?s:""+s).replace(kd,`
|
|
39
|
-
`).replace(Nd,"")}function xl(s,c,p){if(c=Ku(c),Ku(s)!==c&&p)throw Error(n(425))}function _l(){}var $c=null,Ac=null;function Ec(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 Dc=typeof setTimeout=="function"?setTimeout:void 0,Sd=typeof clearTimeout=="function"?clearTimeout:void 0,Ju=typeof Promise=="function"?Promise:void 0,$d=typeof queueMicrotask=="function"?queueMicrotask:typeof Ju<"u"?function(s){return Ju.resolve(null).then(s).catch(Ad)}:Dc;function Ad(s){setTimeout(function(){throw s})}function zc(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),lr(c);return}v--}else p!=="$"&&p!=="$?"&&p!=="$!"||v++;p=x}while(p);lr(c)}function Eo(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 e0(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 Rs=Math.random().toString(36).slice(2),Ea="__reactFiber$"+Rs,ji="__reactProps$"+Rs,Ka="__reactContainer$"+Rs,Tc="__reactEvents$"+Rs,Ed="__reactListeners$"+Rs,Dd="__reactHandles$"+Rs;function rs(s){var c=s[Ea];if(c)return c;for(var p=s.parentNode;p;){if(c=p[Ka]||p[Ea]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=e0(s);s!==null;){if(p=s[Ea])return p;s=e0(s)}return c}s=p,p=s.parentNode}return null}function Ci(s){return s=s[Ea]||s[Ka],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function qs(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function wl(s){return s[ji]||null}var Mc=[],Fs=-1;function Do(s){return{current:s}}function Yt(s){0>Fs||(s.current=Mc[Fs],Mc[Fs]=null,Fs--)}function Gt(s,c){Fs++,Mc[Fs]=s.current,s.current=c}var zo={},Yn=Do(zo),_r=Do(!1),as=zo;function Os(s,c){var p=s.type.contextTypes;if(!p)return zo;var v=s.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===c)return v.__reactInternalMemoizedMaskedChildContext;var x={},k;for(k in p)x[k]=c[k];return v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=x),x}function wr(s){return s=s.childContextTypes,s!=null}function jl(){Yt(_r),Yt(Yn)}function t0(s,c,p){if(Yn.current!==zo)throw Error(n(168));Gt(Yn,c),Gt(_r,p)}function n0(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,$e(s)||"Unknown",x));return B({},p,v)}function Cl(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||zo,as=Yn.current,Gt(Yn,s),Gt(_r,_r.current),!0}function r0(s,c,p){var v=s.stateNode;if(!v)throw Error(n(169));p?(s=n0(s,c,as),v.__reactInternalMemoizedMergedChildContext=s,Yt(_r),Yt(Yn),Gt(Yn,s)):Yt(_r),Gt(_r,p)}var Ja=null,kl=!1,Lc=!1;function a0(s){Ja===null?Ja=[s]:Ja.push(s)}function zd(s){kl=!0,a0(s)}function To(){if(!Lc&&Ja!==null){Lc=!0;var s=0,c=wt;try{var p=Ja;for(wt=1;s<p.length;s++){var v=p[s];do v=v(!0);while(v!==null)}Ja=null,kl=!1}catch(x){throw Ja!==null&&(Ja=Ja.slice(s+1)),qn(sa,To),x}finally{wt=c,Lc=!1}}return null}var Bs=[],Us=0,Nl=null,D=0,Q=[],he=0,Pe=null,Kt=1,Cn="";function Da(s,c){Bs[Us++]=D,Bs[Us++]=Nl,Nl=s,D=c}function ki(s,c,p){Q[he++]=Kt,Q[he++]=Cn,Q[he++]=Pe,Pe=s;var v=Kt;s=Cn;var x=32-un(v)-1;v&=~(1<<x),p+=1;var k=32-un(c)+x;if(30<k){var I=x-x%5;k=(v&(1<<I)-1).toString(32),v>>=I,x-=I,Kt=1<<32-un(c)+x|p<<x|v,Cn=k+s}else Kt=1<<k|p<<x|v,Cn=s}function o0(s){s.return!==null&&(Da(s,1),ki(s,1,0))}function g1(s){for(;s===Nl;)Nl=Bs[--Us],Bs[Us]=null,D=Bs[--Us],Bs[Us]=null;for(;s===Pe;)Pe=Q[--he],Q[he]=null,Cn=Q[--he],Q[he]=null,Kt=Q[--he],Q[he]=null}var za=null,Ta=null,dn=!1,Mo=null;function n4(s,c){var p=ro(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 r4(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,za=s,Ta=Eo(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,za=s,Ta=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=Pe!==null?{id:Kt,overflow:Cn}:null,s.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=ro(18,null,null,0),p.stateNode=c,p.return=s,s.child=p,za=s,Ta=null,!0):!1;default:return!1}}function v1(s){return(s.mode&1)!==0&&(s.flags&128)===0}function b1(s){if(dn){var c=Ta;if(c){var p=c;if(!r4(s,c)){if(v1(s))throw Error(n(418));c=Eo(p.nextSibling);var v=za;c&&r4(s,c)?n4(v,p):(s.flags=s.flags&-4097|2,dn=!1,za=s)}}else{if(v1(s))throw Error(n(418));s.flags=s.flags&-4097|2,dn=!1,za=s}}}function a4(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;za=s}function Td(s){if(s!==za)return!1;if(!dn)return a4(s),dn=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Ec(s.type,s.memoizedProps)),c&&(c=Ta)){if(v1(s))throw o4(),Error(n(418));for(;c;)n4(s,c),c=Eo(c.nextSibling)}if(a4(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){Ta=Eo(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}s=s.nextSibling}Ta=null}}else Ta=za?Eo(s.stateNode.nextSibling):null;return!0}function o4(){for(var s=Ta;s;)s=Eo(s.nextSibling)}function Ic(){Ta=za=null,dn=!1}function y1(s){Mo===null?Mo=[s]:Mo.push(s)}var I9=M.ReactCurrentBatchConfig;function s0(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,k=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===k?c.ref:(c=function(I){var V=x.refs;I===null?delete V[k]:V[k]=I},c._stringRef=k,c)}if(typeof s!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,s))}return s}function Md(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function s4(s){var c=s._init;return c(s._payload)}function i4(s){function c(oe,te){if(s){var se=oe.deletions;se===null?(oe.deletions=[te],oe.flags|=16):se.push(te)}}function p(oe,te){if(!s)return null;for(;te!==null;)c(oe,te),te=te.sibling;return null}function v(oe,te){for(oe=new Map;te!==null;)te.key!==null?oe.set(te.key,te):oe.set(te.index,te),te=te.sibling;return oe}function x(oe,te){return oe=Ti(oe,te),oe.index=0,oe.sibling=null,oe}function k(oe,te,se){return oe.index=se,s?(se=oe.alternate,se!==null?(se=se.index,se<te?(oe.flags|=2,te):se):(oe.flags|=2,te)):(oe.flags|=1048576,te)}function I(oe){return s&&oe.alternate===null&&(oe.flags|=2),oe}function V(oe,te,se,Te){return te===null||te.tag!==6?(te=uh(se,oe.mode,Te),te.return=oe,te):(te=x(te,se),te.return=oe,te)}function K(oe,te,se,Te){var Xe=se.type;return Xe===P?xe(oe,te,se.props.children,Te,se.key):te!==null&&(te.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===ke&&s4(Xe)===te.type)?(Te=x(te,se.props),Te.ref=s0(oe,te,se),Te.return=oe,Te):(Te=ap(se.type,se.key,se.props,null,oe.mode,Te),Te.ref=s0(oe,te,se),Te.return=oe,Te)}function ce(oe,te,se,Te){return te===null||te.tag!==4||te.stateNode.containerInfo!==se.containerInfo||te.stateNode.implementation!==se.implementation?(te=dh(se,oe.mode,Te),te.return=oe,te):(te=x(te,se.children||[]),te.return=oe,te)}function xe(oe,te,se,Te,Xe){return te===null||te.tag!==7?(te=Ml(se,oe.mode,Te,Xe),te.return=oe,te):(te=x(te,se),te.return=oe,te)}function Ce(oe,te,se){if(typeof te=="string"&&te!==""||typeof te=="number")return te=uh(""+te,oe.mode,se),te.return=oe,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case L:return se=ap(te.type,te.key,te.props,null,oe.mode,se),se.ref=s0(oe,null,te),se.return=oe,se;case z:return te=dh(te,oe.mode,se),te.return=oe,te;case ke:var Te=te._init;return Ce(oe,Te(te._payload),se)}if(qt(te)||Ne(te))return te=Ml(te,oe.mode,se,null),te.return=oe,te;Md(oe,te)}return null}function ye(oe,te,se,Te){var Xe=te!==null?te.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return Xe!==null?null:V(oe,te,""+se,Te);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case L:return se.key===Xe?K(oe,te,se,Te):null;case z:return se.key===Xe?ce(oe,te,se,Te):null;case ke:return Xe=se._init,ye(oe,te,Xe(se._payload),Te)}if(qt(se)||Ne(se))return Xe!==null?null:xe(oe,te,se,Te,null);Md(oe,se)}return null}function Oe(oe,te,se,Te,Xe){if(typeof Te=="string"&&Te!==""||typeof Te=="number")return oe=oe.get(se)||null,V(te,oe,""+Te,Xe);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case L:return oe=oe.get(Te.key===null?se:Te.key)||null,K(te,oe,Te,Xe);case z:return oe=oe.get(Te.key===null?se:Te.key)||null,ce(te,oe,Te,Xe);case ke:var nt=Te._init;return Oe(oe,te,se,nt(Te._payload),Xe)}if(qt(Te)||Ne(Te))return oe=oe.get(se)||null,xe(te,oe,Te,Xe,null);Md(te,Te)}return null}function Ge(oe,te,se,Te){for(var Xe=null,nt=null,rt=te,lt=te=0,mr=null;rt!==null&<<se.length;lt++){rt.index>lt?(mr=rt,rt=null):mr=rt.sibling;var Tt=ye(oe,rt,se[lt],Te);if(Tt===null){rt===null&&(rt=mr);break}s&&rt&&Tt.alternate===null&&c(oe,rt),te=k(Tt,te,lt),nt===null?Xe=Tt:nt.sibling=Tt,nt=Tt,rt=mr}if(lt===se.length)return p(oe,rt),dn&&Da(oe,lt),Xe;if(rt===null){for(;lt<se.length;lt++)rt=Ce(oe,se[lt],Te),rt!==null&&(te=k(rt,te,lt),nt===null?Xe=rt:nt.sibling=rt,nt=rt);return dn&&Da(oe,lt),Xe}for(rt=v(oe,rt);lt<se.length;lt++)mr=Oe(rt,oe,lt,se[lt],Te),mr!==null&&(s&&mr.alternate!==null&&rt.delete(mr.key===null?lt:mr.key),te=k(mr,te,lt),nt===null?Xe=mr:nt.sibling=mr,nt=mr);return s&&rt.forEach(function(Mi){return c(oe,Mi)}),dn&&Da(oe,lt),Xe}function We(oe,te,se,Te){var Xe=Ne(se);if(typeof Xe!="function")throw Error(n(150));if(se=Xe.call(se),se==null)throw Error(n(151));for(var nt=Xe=null,rt=te,lt=te=0,mr=null,Tt=se.next();rt!==null&&!Tt.done;lt++,Tt=se.next()){rt.index>lt?(mr=rt,rt=null):mr=rt.sibling;var Mi=ye(oe,rt,Tt.value,Te);if(Mi===null){rt===null&&(rt=mr);break}s&&rt&&Mi.alternate===null&&c(oe,rt),te=k(Mi,te,lt),nt===null?Xe=Mi:nt.sibling=Mi,nt=Mi,rt=mr}if(Tt.done)return p(oe,rt),dn&&Da(oe,lt),Xe;if(rt===null){for(;!Tt.done;lt++,Tt=se.next())Tt=Ce(oe,Tt.value,Te),Tt!==null&&(te=k(Tt,te,lt),nt===null?Xe=Tt:nt.sibling=Tt,nt=Tt);return dn&&Da(oe,lt),Xe}for(rt=v(oe,rt);!Tt.done;lt++,Tt=se.next())Tt=Oe(rt,oe,lt,Tt.value,Te),Tt!==null&&(s&&Tt.alternate!==null&&rt.delete(Tt.key===null?lt:Tt.key),te=k(Tt,te,lt),nt===null?Xe=Tt:nt.sibling=Tt,nt=Tt);return s&&rt.forEach(function(fx){return c(oe,fx)}),dn&&Da(oe,lt),Xe}function zn(oe,te,se,Te){if(typeof se=="object"&&se!==null&&se.type===P&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case L:e:{for(var Xe=se.key,nt=te;nt!==null;){if(nt.key===Xe){if(Xe=se.type,Xe===P){if(nt.tag===7){p(oe,nt.sibling),te=x(nt,se.props.children),te.return=oe,oe=te;break e}}else if(nt.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===ke&&s4(Xe)===nt.type){p(oe,nt.sibling),te=x(nt,se.props),te.ref=s0(oe,nt,se),te.return=oe,oe=te;break e}p(oe,nt);break}else c(oe,nt);nt=nt.sibling}se.type===P?(te=Ml(se.props.children,oe.mode,Te,se.key),te.return=oe,oe=te):(Te=ap(se.type,se.key,se.props,null,oe.mode,Te),Te.ref=s0(oe,te,se),Te.return=oe,oe=Te)}return I(oe);case z:e:{for(nt=se.key;te!==null;){if(te.key===nt)if(te.tag===4&&te.stateNode.containerInfo===se.containerInfo&&te.stateNode.implementation===se.implementation){p(oe,te.sibling),te=x(te,se.children||[]),te.return=oe,oe=te;break e}else{p(oe,te);break}else c(oe,te);te=te.sibling}te=dh(se,oe.mode,Te),te.return=oe,oe=te}return I(oe);case ke:return nt=se._init,zn(oe,te,nt(se._payload),Te)}if(qt(se))return Ge(oe,te,se,Te);if(Ne(se))return We(oe,te,se,Te);Md(oe,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,te!==null&&te.tag===6?(p(oe,te.sibling),te=x(te,se),te.return=oe,oe=te):(p(oe,te),te=uh(se,oe.mode,Te),te.return=oe,oe=te),I(oe)):p(oe,te)}return zn}var Pc=i4(!0),l4=i4(!1),Ld=Do(null),Id=null,Rc=null,x1=null;function _1(){x1=Rc=Id=null}function w1(s){var c=Ld.current;Yt(Ld),s._currentValue=c}function j1(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 qc(s,c){Id=s,x1=Rc=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(da=!0),s.firstContext=null)}function eo(s){var c=s._currentValue;if(x1!==s)if(s={context:s,memoizedValue:c,next:null},Rc===null){if(Id===null)throw Error(n(308));Rc=s,Id.dependencies={lanes:0,firstContext:s}}else Rc=Rc.next=s;return c}var Sl=null;function C1(s){Sl===null?Sl=[s]:Sl.push(s)}function c4(s,c,p,v){var x=c.interleaved;return x===null?(p.next=p,C1(c)):(p.next=x.next,x.next=p),c.interleaved=p,Hs(s,v)}function Hs(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 Ni=!1;function k1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function u4(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 Vs(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Si(s,c,p){var v=s.updateQueue;if(v===null)return null;if(v=v.shared,(Dt&2)!==0){var x=v.pending;return x===null?c.next=c:(c.next=x.next,x.next=c),v.pending=c,Hs(s,p)}return x=v.interleaved,x===null?(c.next=c,C1(v)):(c.next=x.next,x.next=c),v.interleaved=c,Hs(s,p)}function Pd(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,il(s,p)}}function d4(s,c){var p=s.updateQueue,v=s.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var x=null,k=null;if(p=p.firstBaseUpdate,p!==null){do{var I={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};k===null?x=k=I:k=k.next=I,p=p.next}while(p!==null);k===null?x=k=c:k=k.next=c}else x=k=c;p={baseState:v.baseState,firstBaseUpdate:x,lastBaseUpdate:k,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 Rd(s,c,p,v){var x=s.updateQueue;Ni=!1;var k=x.firstBaseUpdate,I=x.lastBaseUpdate,V=x.shared.pending;if(V!==null){x.shared.pending=null;var K=V,ce=K.next;K.next=null,I===null?k=ce:I.next=ce,I=K;var xe=s.alternate;xe!==null&&(xe=xe.updateQueue,V=xe.lastBaseUpdate,V!==I&&(V===null?xe.firstBaseUpdate=ce:V.next=ce,xe.lastBaseUpdate=K))}if(k!==null){var Ce=x.baseState;I=0,xe=ce=K=null,V=k;do{var ye=V.lane,Oe=V.eventTime;if((v&ye)===ye){xe!==null&&(xe=xe.next={eventTime:Oe,lane:0,tag:V.tag,payload:V.payload,callback:V.callback,next:null});e:{var Ge=s,We=V;switch(ye=c,Oe=p,We.tag){case 1:if(Ge=We.payload,typeof Ge=="function"){Ce=Ge.call(Oe,Ce,ye);break e}Ce=Ge;break e;case 3:Ge.flags=Ge.flags&-65537|128;case 0:if(Ge=We.payload,ye=typeof Ge=="function"?Ge.call(Oe,Ce,ye):Ge,ye==null)break e;Ce=B({},Ce,ye);break e;case 2:Ni=!0}}V.callback!==null&&V.lane!==0&&(s.flags|=64,ye=x.effects,ye===null?x.effects=[V]:ye.push(V))}else Oe={eventTime:Oe,lane:ye,tag:V.tag,payload:V.payload,callback:V.callback,next:null},xe===null?(ce=xe=Oe,K=Ce):xe=xe.next=Oe,I|=ye;if(V=V.next,V===null){if(V=x.shared.pending,V===null)break;ye=V,V=ye.next,ye.next=null,x.lastBaseUpdate=ye,x.shared.pending=null}}while(!0);if(xe===null&&(K=Ce),x.baseState=K,x.firstBaseUpdate=ce,x.lastBaseUpdate=xe,c=x.shared.interleaved,c!==null){x=c;do I|=x.lane,x=x.next;while(x!==c)}else k===null&&(x.shared.lanes=0);El|=I,s.lanes=I,s.memoizedState=Ce}}function p4(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 i0={},os=Do(i0),l0=Do(i0),c0=Do(i0);function $l(s){if(s===i0)throw Error(n(174));return s}function N1(s,c){switch(Gt(c0,c),Gt(l0,s),Gt(os,i0),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Se(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=Se(c,s)}Yt(os),Gt(os,c)}function Fc(){Yt(os),Yt(l0),Yt(c0)}function m4(s){$l(c0.current);var c=$l(os.current),p=Se(c,s.type);c!==p&&(Gt(l0,s),Gt(os,p))}function S1(s){l0.current===s&&(Yt(os),Yt(l0))}var gn=Do(0);function qd(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 $1=[];function A1(){for(var s=0;s<$1.length;s++)$1[s]._workInProgressVersionPrimary=null;$1.length=0}var Fd=M.ReactCurrentDispatcher,E1=M.ReactCurrentBatchConfig,Al=0,vn=null,Kn=null,dr=null,Od=!1,u0=!1,d0=0,P9=0;function Tr(){throw Error(n(321))}function D1(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!ua(s[p],c[p]))return!1;return!0}function z1(s,c,p,v,x,k){if(Al=k,vn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Fd.current=s===null||s.memoizedState===null?O9:B9,s=p(v,x),u0){k=0;do{if(u0=!1,d0=0,25<=k)throw Error(n(301));k+=1,dr=Kn=null,c.updateQueue=null,Fd.current=U9,s=p(v,x)}while(u0)}if(Fd.current=Hd,c=Kn!==null&&Kn.next!==null,Al=0,dr=Kn=vn=null,Od=!1,c)throw Error(n(300));return s}function T1(){var s=d0!==0;return d0=0,s}function ss(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dr===null?vn.memoizedState=dr=s:dr=dr.next=s,dr}function to(){if(Kn===null){var s=vn.alternate;s=s!==null?s.memoizedState:null}else s=Kn.next;var c=dr===null?vn.memoizedState:dr.next;if(c!==null)dr=c,Kn=s;else{if(s===null)throw Error(n(310));Kn=s,s={memoizedState:Kn.memoizedState,baseState:Kn.baseState,baseQueue:Kn.baseQueue,queue:Kn.queue,next:null},dr===null?vn.memoizedState=dr=s:dr=dr.next=s}return dr}function p0(s,c){return typeof c=="function"?c(s):c}function M1(s){var c=to(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var v=Kn,x=v.baseQueue,k=p.pending;if(k!==null){if(x!==null){var I=x.next;x.next=k.next,k.next=I}v.baseQueue=x=k,p.pending=null}if(x!==null){k=x.next,v=v.baseState;var V=I=null,K=null,ce=k;do{var xe=ce.lane;if((Al&xe)===xe)K!==null&&(K=K.next={lane:0,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null}),v=ce.hasEagerState?ce.eagerState:s(v,ce.action);else{var Ce={lane:xe,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null};K===null?(V=K=Ce,I=v):K=K.next=Ce,vn.lanes|=xe,El|=xe}ce=ce.next}while(ce!==null&&ce!==k);K===null?I=v:K.next=V,ua(v,c.memoizedState)||(da=!0),c.memoizedState=v,c.baseState=I,c.baseQueue=K,p.lastRenderedState=v}if(s=p.interleaved,s!==null){x=s;do k=x.lane,vn.lanes|=k,El|=k,x=x.next;while(x!==s)}else x===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function L1(s){var c=to(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var v=p.dispatch,x=p.pending,k=c.memoizedState;if(x!==null){p.pending=null;var I=x=x.next;do k=s(k,I.action),I=I.next;while(I!==x);ua(k,c.memoizedState)||(da=!0),c.memoizedState=k,c.baseQueue===null&&(c.baseState=k),p.lastRenderedState=k}return[k,v]}function h4(){}function f4(s,c){var p=vn,v=to(),x=c(),k=!ua(v.memoizedState,x);if(k&&(v.memoizedState=x,da=!0),v=v.queue,I1(b4.bind(null,p,v,s),[s]),v.getSnapshot!==c||k||dr!==null&&dr.memoizedState.tag&1){if(p.flags|=2048,m0(9,v4.bind(null,p,v,x,c),void 0,null),pr===null)throw Error(n(349));(Al&30)!==0||g4(p,c,x)}return x}function g4(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=vn.updateQueue,c===null?(c={lastEffect:null,stores:null},vn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function v4(s,c,p,v){c.value=p,c.getSnapshot=v,y4(c)&&x4(s)}function b4(s,c,p){return p(function(){y4(c)&&x4(s)})}function y4(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!ua(s,p)}catch{return!0}}function x4(s){var c=Hs(s,1);c!==null&&Ro(c,s,1,-1)}function _4(s){var c=ss();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p0,lastRenderedState:s},c.queue=s,s=s.dispatch=F9.bind(null,vn,s),[c.memoizedState,s]}function m0(s,c,p,v){return s={tag:s,create:c,destroy:p,deps:v,next:null},c=vn.updateQueue,c===null?(c={lastEffect:null,stores:null},vn.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 w4(){return to().memoizedState}function Bd(s,c,p,v){var x=ss();vn.flags|=s,x.memoizedState=m0(1|c,p,void 0,v===void 0?null:v)}function Ud(s,c,p,v){var x=to();v=v===void 0?null:v;var k=void 0;if(Kn!==null){var I=Kn.memoizedState;if(k=I.destroy,v!==null&&D1(v,I.deps)){x.memoizedState=m0(c,p,k,v);return}}vn.flags|=s,x.memoizedState=m0(1|c,p,k,v)}function j4(s,c){return Bd(8390656,8,s,c)}function I1(s,c){return Ud(2048,8,s,c)}function C4(s,c){return Ud(4,2,s,c)}function k4(s,c){return Ud(4,4,s,c)}function N4(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 S4(s,c,p){return p=p!=null?p.concat([s]):null,Ud(4,4,N4.bind(null,c,s),p)}function P1(){}function $4(s,c){var p=to();c=c===void 0?null:c;var v=p.memoizedState;return v!==null&&c!==null&&D1(c,v[1])?v[0]:(p.memoizedState=[s,c],s)}function A4(s,c){var p=to();c=c===void 0?null:c;var v=p.memoizedState;return v!==null&&c!==null&&D1(c,v[1])?v[0]:(s=s(),p.memoizedState=[s,c],s)}function E4(s,c,p){return(Al&21)===0?(s.baseState&&(s.baseState=!1,da=!0),s.memoizedState=p):(ua(p,c)||(p=sl(),vn.lanes|=p,El|=p,s.baseState=!0),c)}function R9(s,c){var p=wt;wt=p!==0&&4>p?p:4,s(!0);var v=E1.transition;E1.transition={};try{s(!1),c()}finally{wt=p,E1.transition=v}}function D4(){return to().memoizedState}function q9(s,c,p){var v=Di(s);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},z4(s))T4(c,p);else if(p=c4(s,c,p,v),p!==null){var x=Zr();Ro(p,s,v,x),M4(p,c,v)}}function F9(s,c,p){var v=Di(s),x={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(z4(s))T4(c,x);else{var k=s.alternate;if(s.lanes===0&&(k===null||k.lanes===0)&&(k=c.lastRenderedReducer,k!==null))try{var I=c.lastRenderedState,V=k(I,p);if(x.hasEagerState=!0,x.eagerState=V,ua(V,I)){var K=c.interleaved;K===null?(x.next=x,C1(c)):(x.next=K.next,K.next=x),c.interleaved=x;return}}catch{}finally{}p=c4(s,c,x,v),p!==null&&(x=Zr(),Ro(p,s,v,x),M4(p,c,v))}}function z4(s){var c=s.alternate;return s===vn||c!==null&&c===vn}function T4(s,c){u0=Od=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function M4(s,c,p){if((p&4194240)!==0){var v=c.lanes;v&=s.pendingLanes,p|=v,c.lanes=p,il(s,p)}}var Hd={readContext:eo,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useInsertionEffect:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useSyncExternalStore:Tr,useId:Tr,unstable_isNewReconciler:!1},O9={readContext:eo,useCallback:function(s,c){return ss().memoizedState=[s,c===void 0?null:c],s},useContext:eo,useEffect:j4,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,Bd(4194308,4,N4.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Bd(4194308,4,s,c)},useInsertionEffect:function(s,c){return Bd(4,2,s,c)},useMemo:function(s,c){var p=ss();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var v=ss();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=q9.bind(null,vn,s),[v.memoizedState,s]},useRef:function(s){var c=ss();return s={current:s},c.memoizedState=s},useState:_4,useDebugValue:P1,useDeferredValue:function(s){return ss().memoizedState=s},useTransition:function(){var s=_4(!1),c=s[0];return s=R9.bind(null,s[1]),ss().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var v=vn,x=ss();if(dn){if(p===void 0)throw Error(n(407));p=p()}else{if(p=c(),pr===null)throw Error(n(349));(Al&30)!==0||g4(v,c,p)}x.memoizedState=p;var k={value:p,getSnapshot:c};return x.queue=k,j4(b4.bind(null,v,k,s),[s]),v.flags|=2048,m0(9,v4.bind(null,v,k,p,c),void 0,null),p},useId:function(){var s=ss(),c=pr.identifierPrefix;if(dn){var p=Cn,v=Kt;p=(v&~(1<<32-un(v)-1)).toString(32)+p,c=":"+c+"R"+p,p=d0++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=P9++,c=":"+c+"r"+p.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},B9={readContext:eo,useCallback:$4,useContext:eo,useEffect:I1,useImperativeHandle:S4,useInsertionEffect:C4,useLayoutEffect:k4,useMemo:A4,useReducer:M1,useRef:w4,useState:function(){return M1(p0)},useDebugValue:P1,useDeferredValue:function(s){var c=to();return E4(c,Kn.memoizedState,s)},useTransition:function(){var s=M1(p0)[0],c=to().memoizedState;return[s,c]},useMutableSource:h4,useSyncExternalStore:f4,useId:D4,unstable_isNewReconciler:!1},U9={readContext:eo,useCallback:$4,useContext:eo,useEffect:I1,useImperativeHandle:S4,useInsertionEffect:C4,useLayoutEffect:k4,useMemo:A4,useReducer:L1,useRef:w4,useState:function(){return L1(p0)},useDebugValue:P1,useDeferredValue:function(s){var c=to();return Kn===null?c.memoizedState=s:E4(c,Kn.memoizedState,s)},useTransition:function(){var s=L1(p0)[0],c=to().memoizedState;return[s,c]},useMutableSource:h4,useSyncExternalStore:f4,useId:D4,unstable_isNewReconciler:!1};function Lo(s,c){if(s&&s.defaultProps){c=B({},c),s=s.defaultProps;for(var p in s)c[p]===void 0&&(c[p]=s[p]);return c}return c}function R1(s,c,p,v){c=s.memoizedState,p=p(v,c),p=p==null?c:B({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Vd={isMounted:function(s){return(s=s._reactInternals)?ir(s)===s:!1},enqueueSetState:function(s,c,p){s=s._reactInternals;var v=Zr(),x=Di(s),k=Vs(v,x);k.payload=c,p!=null&&(k.callback=p),c=Si(s,k,x),c!==null&&(Ro(c,s,x,v),Pd(c,s,x))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var v=Zr(),x=Di(s),k=Vs(v,x);k.tag=1,k.payload=c,p!=null&&(k.callback=p),c=Si(s,k,x),c!==null&&(Ro(c,s,x,v),Pd(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=Zr(),v=Di(s),x=Vs(p,v);x.tag=2,c!=null&&(x.callback=c),c=Si(s,x,v),c!==null&&(Ro(c,s,v,p),Pd(c,s,v))}};function L4(s,c,p,v,x,k,I){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(v,k,I):c.prototype&&c.prototype.isPureReactComponent?!bi(p,v)||!bi(x,k):!0}function I4(s,c,p){var v=!1,x=zo,k=c.contextType;return typeof k=="object"&&k!==null?k=eo(k):(x=wr(c)?as:Yn.current,v=c.contextTypes,k=(v=v!=null)?Os(s,x):zo),c=new c(p,k),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vd,s.stateNode=c,c._reactInternals=s,v&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=x,s.__reactInternalMemoizedMaskedChildContext=k),c}function P4(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&&Vd.enqueueReplaceState(c,c.state,null)}function q1(s,c,p,v){var x=s.stateNode;x.props=p,x.state=s.memoizedState,x.refs={},k1(s);var k=c.contextType;typeof k=="object"&&k!==null?x.context=eo(k):(k=wr(c)?as:Yn.current,x.context=Os(s,k)),x.state=s.memoizedState,k=c.getDerivedStateFromProps,typeof k=="function"&&(R1(s,c,k,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&&Vd.enqueueReplaceState(x,x.state,null),Rd(s,p,x,v),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308)}function Oc(s,c){try{var p="",v=c;do p+=ae(v),v=v.return;while(v);var x=p}catch(k){x=`
|
|
40
|
-
Error generating stack: `+k.message+`
|
|
41
|
-
`+k.stack}return{value:s,source:c,stack:x,digest:null}}function F1(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function O1(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var H9=typeof WeakMap=="function"?WeakMap:Map;function R4(s,c,p){p=Vs(-1,p),p.tag=3,p.payload={element:null};var v=c.value;return p.callback=function(){Kd||(Kd=!0,nh=v),O1(s,c)},p}function q4(s,c,p){p=Vs(-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(){O1(s,c)}}var k=s.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(p.callback=function(){O1(s,c),typeof v!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var I=c.stack;this.componentDidCatch(c.value,{componentStack:I!==null?I:""})}),p}function F4(s,c,p){var v=s.pingCache;if(v===null){v=s.pingCache=new H9;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=ax.bind(null,s,c,p),c.then(s,s))}function O4(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 B4(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=Vs(-1,1),c.tag=2,Si(p,c,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=x,s)}var V9=M.ReactCurrentOwner,da=!1;function Wr(s,c,p,v){c.child=s===null?l4(c,null,p,v):Pc(c,s.child,p,v)}function U4(s,c,p,v,x){p=p.render;var k=c.ref;return qc(c,x),v=z1(s,c,p,v,k,x),p=T1(),s!==null&&!da?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Gs(s,c,x)):(dn&&p&&o0(c),c.flags|=1,Wr(s,c,v,x),c.child)}function H4(s,c,p,v,x){if(s===null){var k=p.type;return typeof k=="function"&&!ch(k)&&k.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=k,V4(s,c,k,v,x)):(s=ap(p.type,null,v,c,c.mode,x),s.ref=c.ref,s.return=c,c.child=s)}if(k=s.child,(s.lanes&x)===0){var I=k.memoizedProps;if(p=p.compare,p=p!==null?p:bi,p(I,v)&&s.ref===c.ref)return Gs(s,c,x)}return c.flags|=1,s=Ti(k,v),s.ref=c.ref,s.return=c,c.child=s}function V4(s,c,p,v,x){if(s!==null){var k=s.memoizedProps;if(bi(k,v)&&s.ref===c.ref)if(da=!1,c.pendingProps=v=k,(s.lanes&x)!==0)(s.flags&131072)!==0&&(da=!0);else return c.lanes=s.lanes,Gs(s,c,x)}return B1(s,c,p,v,x)}function G4(s,c,p){var v=c.pendingProps,x=v.children,k=s!==null?s.memoizedState:null;if(v.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gt(Uc,Ma),Ma|=p;else{if((p&1073741824)===0)return s=k!==null?k.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Gt(Uc,Ma),Ma|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=k!==null?k.baseLanes:p,Gt(Uc,Ma),Ma|=v}else k!==null?(v=k.baseLanes|p,c.memoizedState=null):v=p,Gt(Uc,Ma),Ma|=v;return Wr(s,c,x,p),c.child}function W4(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function B1(s,c,p,v,x){var k=wr(p)?as:Yn.current;return k=Os(c,k),qc(c,x),p=z1(s,c,p,v,k,x),v=T1(),s!==null&&!da?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~x,Gs(s,c,x)):(dn&&v&&o0(c),c.flags|=1,Wr(s,c,p,x),c.child)}function Z4(s,c,p,v,x){if(wr(p)){var k=!0;Cl(c)}else k=!1;if(qc(c,x),c.stateNode===null)Wd(s,c),I4(c,p,v),q1(c,p,v,x),v=!0;else if(s===null){var I=c.stateNode,V=c.memoizedProps;I.props=V;var K=I.context,ce=p.contextType;typeof ce=="object"&&ce!==null?ce=eo(ce):(ce=wr(p)?as:Yn.current,ce=Os(c,ce));var xe=p.getDerivedStateFromProps,Ce=typeof xe=="function"||typeof I.getSnapshotBeforeUpdate=="function";Ce||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(V!==v||K!==ce)&&P4(c,I,v,ce),Ni=!1;var ye=c.memoizedState;I.state=ye,Rd(c,v,I,x),K=c.memoizedState,V!==v||ye!==K||_r.current||Ni?(typeof xe=="function"&&(R1(c,p,xe,v),K=c.memoizedState),(V=Ni||L4(c,p,V,v,ye,K,ce))?(Ce||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(c.flags|=4194308)):(typeof I.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=K),I.props=v,I.state=K,I.context=ce,v=V):(typeof I.componentDidMount=="function"&&(c.flags|=4194308),v=!1)}else{I=c.stateNode,u4(s,c),V=c.memoizedProps,ce=c.type===c.elementType?V:Lo(c.type,V),I.props=ce,Ce=c.pendingProps,ye=I.context,K=p.contextType,typeof K=="object"&&K!==null?K=eo(K):(K=wr(p)?as:Yn.current,K=Os(c,K));var Oe=p.getDerivedStateFromProps;(xe=typeof Oe=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(V!==Ce||ye!==K)&&P4(c,I,v,K),Ni=!1,ye=c.memoizedState,I.state=ye,Rd(c,v,I,x);var Ge=c.memoizedState;V!==Ce||ye!==Ge||_r.current||Ni?(typeof Oe=="function"&&(R1(c,p,Oe,v),Ge=c.memoizedState),(ce=Ni||L4(c,p,ce,v,ye,Ge,K)||!1)?(xe||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(v,Ge,K),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(v,Ge,K)),typeof I.componentDidUpdate=="function"&&(c.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof I.componentDidUpdate!="function"||V===s.memoizedProps&&ye===s.memoizedState||(c.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&ye===s.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Ge),I.props=v,I.state=Ge,I.context=K,v=ce):(typeof I.componentDidUpdate!="function"||V===s.memoizedProps&&ye===s.memoizedState||(c.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&ye===s.memoizedState||(c.flags|=1024),v=!1)}return U1(s,c,p,v,k,x)}function U1(s,c,p,v,x,k){W4(s,c);var I=(c.flags&128)!==0;if(!v&&!I)return x&&r0(c,p,!1),Gs(s,c,k);v=c.stateNode,V9.current=c;var V=I&&typeof p.getDerivedStateFromError!="function"?null:v.render();return c.flags|=1,s!==null&&I?(c.child=Pc(c,s.child,null,k),c.child=Pc(c,null,V,k)):Wr(s,c,V,k),c.memoizedState=v.state,x&&r0(c,p,!0),c.child}function Q4(s){var c=s.stateNode;c.pendingContext?t0(s,c.pendingContext,c.pendingContext!==c.context):c.context&&t0(s,c.context,!1),N1(s,c.containerInfo)}function X4(s,c,p,v,x){return Ic(),y1(x),c.flags|=256,Wr(s,c,p,v),c.child}var H1={dehydrated:null,treeContext:null,retryLane:0};function V1(s){return{baseLanes:s,cachePool:null,transitions:null}}function Y4(s,c,p){var v=c.pendingProps,x=gn.current,k=!1,I=(c.flags&128)!==0,V;if((V=I)||(V=s!==null&&s.memoizedState===null?!1:(x&2)!==0),V?(k=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(x|=1),Gt(gn,x&1),s===null)return b1(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):(I=v.children,s=v.fallback,k?(v=c.mode,k=c.child,I={mode:"hidden",children:I},(v&1)===0&&k!==null?(k.childLanes=0,k.pendingProps=I):k=op(I,v,0,null),s=Ml(s,v,p,null),k.return=c,s.return=c,k.sibling=s,c.child=k,c.child.memoizedState=V1(p),c.memoizedState=H1,s):G1(c,I));if(x=s.memoizedState,x!==null&&(V=x.dehydrated,V!==null))return G9(s,c,I,v,V,x,p);if(k){k=v.fallback,I=c.mode,x=s.child,V=x.sibling;var K={mode:"hidden",children:v.children};return(I&1)===0&&c.child!==x?(v=c.child,v.childLanes=0,v.pendingProps=K,c.deletions=null):(v=Ti(x,K),v.subtreeFlags=x.subtreeFlags&14680064),V!==null?k=Ti(V,k):(k=Ml(k,I,p,null),k.flags|=2),k.return=c,v.return=c,v.sibling=k,c.child=v,v=k,k=c.child,I=s.child.memoizedState,I=I===null?V1(p):{baseLanes:I.baseLanes|p,cachePool:null,transitions:I.transitions},k.memoizedState=I,k.childLanes=s.childLanes&~p,c.memoizedState=H1,v}return k=s.child,s=k.sibling,v=Ti(k,{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 G1(s,c){return c=op({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Gd(s,c,p,v){return v!==null&&y1(v),Pc(c,s.child,null,p),s=G1(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function G9(s,c,p,v,x,k,I){if(p)return c.flags&256?(c.flags&=-257,v=F1(Error(n(422))),Gd(s,c,I,v)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(k=v.fallback,x=c.mode,v=op({mode:"visible",children:v.children},x,0,null),k=Ml(k,x,I,null),k.flags|=2,v.return=c,k.return=c,v.sibling=k,c.child=v,(c.mode&1)!==0&&Pc(c,s.child,null,I),c.child.memoizedState=V1(I),c.memoizedState=H1,k);if((c.mode&1)===0)return Gd(s,c,I,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var V=v.dgst;return v=V,k=Error(n(419)),v=F1(k,v,void 0),Gd(s,c,I,v)}if(V=(I&s.childLanes)!==0,da||V){if(v=pr,v!==null){switch(I&-I){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|I))!==0?0:x,x!==0&&x!==k.retryLane&&(k.retryLane=x,Hs(s,x),Ro(v,s,x,-1))}return lh(),v=F1(Error(n(421))),Gd(s,c,I,v)}return x.data==="$?"?(c.flags|=128,c.child=s.child,c=ox.bind(null,s),x._reactRetry=c,null):(s=k.treeContext,Ta=Eo(x.nextSibling),za=c,dn=!0,Mo=null,s!==null&&(Q[he++]=Kt,Q[he++]=Cn,Q[he++]=Pe,Kt=s.id,Cn=s.overflow,Pe=c),c=G1(c,v.children),c.flags|=4096,c)}function K4(s,c,p){s.lanes|=c;var v=s.alternate;v!==null&&(v.lanes|=c),j1(s.return,c,p)}function W1(s,c,p,v,x){var k=s.memoizedState;k===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:x}:(k.isBackwards=c,k.rendering=null,k.renderingStartTime=0,k.last=v,k.tail=p,k.tailMode=x)}function J4(s,c,p){var v=c.pendingProps,x=v.revealOrder,k=v.tail;if(Wr(s,c,v.children,p),v=gn.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&&K4(s,p,c);else if(s.tag===19)K4(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(Gt(gn,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&&qd(s)===null&&(x=p),p=p.sibling;p=x,p===null?(x=c.child,c.child=null):(x=p.sibling,p.sibling=null),W1(c,!1,x,p,k);break;case"backwards":for(p=null,x=c.child,c.child=null;x!==null;){if(s=x.alternate,s!==null&&qd(s)===null){c.child=x;break}s=x.sibling,x.sibling=p,p=x,x=s}W1(c,!0,p,null,k);break;case"together":W1(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Wd(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Gs(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),El|=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=Ti(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=Ti(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function W9(s,c,p){switch(c.tag){case 3:Q4(c),Ic();break;case 5:m4(c);break;case 1:wr(c.type)&&Cl(c);break;case 4:N1(c,c.stateNode.containerInfo);break;case 10:var v=c.type._context,x=c.memoizedProps.value;Gt(Ld,v._currentValue),v._currentValue=x;break;case 13:if(v=c.memoizedState,v!==null)return v.dehydrated!==null?(Gt(gn,gn.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?Y4(s,c,p):(Gt(gn,gn.current&1),s=Gs(s,c,p),s!==null?s.sibling:null);Gt(gn,gn.current&1);break;case 19:if(v=(p&c.childLanes)!==0,(s.flags&128)!==0){if(v)return J4(s,c,p);c.flags|=128}if(x=c.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Gt(gn,gn.current),v)break;return null;case 22:case 23:return c.lanes=0,G4(s,c,p)}return Gs(s,c,p)}var e3,Z1,t3,n3;e3=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}},Z1=function(){},t3=function(s,c,p,v){var x=s.memoizedProps;if(x!==v){s=c.stateNode,$l(os.current);var k=null;switch(p){case"input":x=Qt(s,x),v=Qt(s,v),k=[];break;case"select":x=B({},x,{value:void 0}),v=B({},v,{value:void 0}),k=[];break;case"textarea":x=xa(s,x),v=xa(s,v),k=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(s.onclick=_l)}an(p,v);var I;p=null;for(ce in x)if(!v.hasOwnProperty(ce)&&x.hasOwnProperty(ce)&&x[ce]!=null)if(ce==="style"){var V=x[ce];for(I in V)V.hasOwnProperty(I)&&(p||(p={}),p[I]="")}else ce!=="dangerouslySetInnerHTML"&&ce!=="children"&&ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&ce!=="autoFocus"&&(a.hasOwnProperty(ce)?k||(k=[]):(k=k||[]).push(ce,null));for(ce in v){var K=v[ce];if(V=x!=null?x[ce]:void 0,v.hasOwnProperty(ce)&&K!==V&&(K!=null||V!=null))if(ce==="style")if(V){for(I in V)!V.hasOwnProperty(I)||K&&K.hasOwnProperty(I)||(p||(p={}),p[I]="");for(I in K)K.hasOwnProperty(I)&&V[I]!==K[I]&&(p||(p={}),p[I]=K[I])}else p||(k||(k=[]),k.push(ce,p)),p=K;else ce==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,V=V?V.__html:void 0,K!=null&&V!==K&&(k=k||[]).push(ce,K)):ce==="children"?typeof K!="string"&&typeof K!="number"||(k=k||[]).push(ce,""+K):ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&(a.hasOwnProperty(ce)?(K!=null&&ce==="onScroll"&&Xt("scroll",s),k||V===K||(k=[])):(k=k||[]).push(ce,K))}p&&(k=k||[]).push("style",p);var ce=k;(c.updateQueue=ce)&&(c.flags|=4)}},n3=function(s,c,p,v){p!==v&&(c.flags|=4)};function h0(s,c){if(!dn)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 Mr(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 Z9(s,c,p){var v=c.pendingProps;switch(g1(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mr(c),null;case 1:return wr(c.type)&&jl(),Mr(c),null;case 3:return v=c.stateNode,Fc(),Yt(_r),Yt(Yn),A1(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(s===null||s.child===null)&&(Td(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Mo!==null&&(oh(Mo),Mo=null))),Z1(s,c),Mr(c),null;case 5:S1(c);var x=$l(c0.current);if(p=c.type,s!==null&&c.stateNode!=null)t3(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 Mr(c),null}if(s=$l(os.current),Td(c)){v=c.stateNode,p=c.type;var k=c.memoizedProps;switch(v[Ea]=c,v[ji]=k,s=(c.mode&1)!==0,p){case"dialog":Xt("cancel",v),Xt("close",v);break;case"iframe":case"object":case"embed":Xt("load",v);break;case"video":case"audio":for(x=0;x<xi.length;x++)Xt(xi[x],v);break;case"source":Xt("error",v);break;case"img":case"image":case"link":Xt("error",v),Xt("load",v);break;case"details":Xt("toggle",v);break;case"input":An(v,k),Xt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!k.multiple},Xt("invalid",v);break;case"textarea":or(v,k),Xt("invalid",v)}an(p,k),x=null;for(var I in k)if(k.hasOwnProperty(I)){var V=k[I];I==="children"?typeof V=="string"?v.textContent!==V&&(k.suppressHydrationWarning!==!0&&xl(v.textContent,V,s),x=["children",V]):typeof V=="number"&&v.textContent!==""+V&&(k.suppressHydrationWarning!==!0&&xl(v.textContent,V,s),x=["children",""+V]):a.hasOwnProperty(I)&&V!=null&&I==="onScroll"&&Xt("scroll",v)}switch(p){case"input":ut(v),In(v,k,!0);break;case"textarea":ut(v),ra(v);break;case"select":case"option":break;default:typeof k.onClick=="function"&&(v.onclick=_l)}v=x,c.updateQueue=v,v!==null&&(c.flags|=4)}else{I=x.nodeType===9?x:x.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=me(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=I.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof v.is=="string"?s=I.createElement(p,{is:v.is}):(s=I.createElement(p),p==="select"&&(I=s,v.multiple?I.multiple=!0:v.size&&(I.size=v.size))):s=I.createElementNS(s,p),s[Ea]=c,s[ji]=v,e3(s,c,!1,!1),c.stateNode=s;e:{switch(I=Pn(p,v),p){case"dialog":Xt("cancel",s),Xt("close",s),x=v;break;case"iframe":case"object":case"embed":Xt("load",s),x=v;break;case"video":case"audio":for(x=0;x<xi.length;x++)Xt(xi[x],s);x=v;break;case"source":Xt("error",s),x=v;break;case"img":case"image":case"link":Xt("error",s),Xt("load",s),x=v;break;case"details":Xt("toggle",s),x=v;break;case"input":An(s,v),x=Qt(s,v),Xt("invalid",s);break;case"option":x=v;break;case"select":s._wrapperState={wasMultiple:!!v.multiple},x=B({},v,{value:void 0}),Xt("invalid",s);break;case"textarea":or(s,v),x=xa(s,v),Xt("invalid",s);break;default:x=v}an(p,x),V=x;for(k in V)if(V.hasOwnProperty(k)){var K=V[k];k==="style"?Ur(s,K):k==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&ot(s,K)):k==="children"?typeof K=="string"?(p!=="textarea"||K!=="")&>(s,K):typeof K=="number"&>(s,""+K):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(a.hasOwnProperty(k)?K!=null&&k==="onScroll"&&Xt("scroll",s):K!=null&&A(s,k,K,I))}switch(p){case"input":ut(s),In(s,v,!1);break;case"textarea":ut(s),ra(s);break;case"option":v.value!=null&&s.setAttribute("value",""+pe(v.value));break;case"select":s.multiple=!!v.multiple,k=v.value,k!=null?$r(s,!!v.multiple,k,!1):v.defaultValue!=null&&$r(s,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(s.onclick=_l)}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 Mr(c),null;case 6:if(s&&c.stateNode!=null)n3(s,c,s.memoizedProps,v);else{if(typeof v!="string"&&c.stateNode===null)throw Error(n(166));if(p=$l(c0.current),$l(os.current),Td(c)){if(v=c.stateNode,p=c.memoizedProps,v[Ea]=c,(k=v.nodeValue!==p)&&(s=za,s!==null))switch(s.tag){case 3:xl(v.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&xl(v.nodeValue,p,(s.mode&1)!==0)}k&&(c.flags|=4)}else v=(p.nodeType===9?p:p.ownerDocument).createTextNode(v),v[Ea]=c,c.stateNode=v}return Mr(c),null;case 13:if(Yt(gn),v=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(dn&&Ta!==null&&(c.mode&1)!==0&&(c.flags&128)===0)o4(),Ic(),c.flags|=98560,k=!1;else if(k=Td(c),v!==null&&v.dehydrated!==null){if(s===null){if(!k)throw Error(n(318));if(k=c.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(n(317));k[Ea]=c}else Ic(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Mr(c),k=!1}else Mo!==null&&(oh(Mo),Mo=null),k=!0;if(!k)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||(gn.current&1)!==0?Jn===0&&(Jn=3):lh())),c.updateQueue!==null&&(c.flags|=4),Mr(c),null);case 4:return Fc(),Z1(s,c),s===null&&_i(c.stateNode.containerInfo),Mr(c),null;case 10:return w1(c.type._context),Mr(c),null;case 17:return wr(c.type)&&jl(),Mr(c),null;case 19:if(Yt(gn),k=c.memoizedState,k===null)return Mr(c),null;if(v=(c.flags&128)!==0,I=k.rendering,I===null)if(v)h0(k,!1);else{if(Jn!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(I=qd(s),I!==null){for(c.flags|=128,h0(k,!1),v=I.updateQueue,v!==null&&(c.updateQueue=v,c.flags|=4),c.subtreeFlags=0,v=p,p=c.child;p!==null;)k=p,s=v,k.flags&=14680066,I=k.alternate,I===null?(k.childLanes=0,k.lanes=s,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=I.childLanes,k.lanes=I.lanes,k.child=I.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=I.memoizedProps,k.memoizedState=I.memoizedState,k.updateQueue=I.updateQueue,k.type=I.type,s=I.dependencies,k.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return Gt(gn,gn.current&1|2),c.child}s=s.sibling}k.tail!==null&&zt()>Hc&&(c.flags|=128,v=!0,h0(k,!1),c.lanes=4194304)}else{if(!v)if(s=qd(I),s!==null){if(c.flags|=128,v=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),h0(k,!0),k.tail===null&&k.tailMode==="hidden"&&!I.alternate&&!dn)return Mr(c),null}else 2*zt()-k.renderingStartTime>Hc&&p!==1073741824&&(c.flags|=128,v=!0,h0(k,!1),c.lanes=4194304);k.isBackwards?(I.sibling=c.child,c.child=I):(p=k.last,p!==null?p.sibling=I:c.child=I,k.last=I)}return k.tail!==null?(c=k.tail,k.rendering=c,k.tail=c.sibling,k.renderingStartTime=zt(),c.sibling=null,p=gn.current,Gt(gn,v?p&1|2:p&1),c):(Mr(c),null);case 22:case 23:return ih(),v=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==v&&(c.flags|=8192),v&&(c.mode&1)!==0?(Ma&1073741824)!==0&&(Mr(c),c.subtreeFlags&6&&(c.flags|=8192)):Mr(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function Q9(s,c){switch(g1(c),c.tag){case 1:return wr(c.type)&&jl(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Fc(),Yt(_r),Yt(Yn),A1(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return S1(c),null;case 13:if(Yt(gn),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));Ic()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Yt(gn),null;case 4:return Fc(),null;case 10:return w1(c.type._context),null;case 22:case 23:return ih(),null;case 24:return null;default:return null}}var Zd=!1,Lr=!1,X9=typeof WeakSet=="function"?WeakSet:Set,He=null;function Bc(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){kn(s,c,v)}else p.current=null}function Q1(s,c,p){try{p()}catch(v){kn(s,c,v)}}var r3=!1;function Y9(s,c){if($c=Ds,s=qu(),xc(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,k=v.focusNode;v=v.focusOffset;try{p.nodeType,k.nodeType}catch{p=null;break e}var I=0,V=-1,K=-1,ce=0,xe=0,Ce=s,ye=null;t:for(;;){for(var Oe;Ce!==p||x!==0&&Ce.nodeType!==3||(V=I+x),Ce!==k||v!==0&&Ce.nodeType!==3||(K=I+v),Ce.nodeType===3&&(I+=Ce.nodeValue.length),(Oe=Ce.firstChild)!==null;)ye=Ce,Ce=Oe;for(;;){if(Ce===s)break t;if(ye===p&&++ce===x&&(V=I),ye===k&&++xe===v&&(K=I),(Oe=Ce.nextSibling)!==null)break;Ce=ye,ye=Ce.parentNode}Ce=Oe}p=V===-1||K===-1?null:{start:V,end:K}}else p=null}p=p||{start:0,end:0}}else p=null;for(Ac={focusedElem:s,selectionRange:p},Ds=!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 Ge=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Ge!==null){var We=Ge.memoizedProps,zn=Ge.memoizedState,oe=c.stateNode,te=oe.getSnapshotBeforeUpdate(c.elementType===c.type?We:Lo(c.type,We),zn);oe.__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(Te){kn(c,c.return,Te)}if(s=c.sibling,s!==null){s.return=c.return,He=s;break}He=c.return}return Ge=r3,r3=!1,Ge}function f0(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 k=x.destroy;x.destroy=void 0,k!==void 0&&Q1(c,p,k)}x=x.next}while(x!==v)}}function Qd(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 X1(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 a3(s){var c=s.alternate;c!==null&&(s.alternate=null,a3(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[Ea],delete c[ji],delete c[Tc],delete c[Ed],delete c[Dd])),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 o3(s){return s.tag===5||s.tag===3||s.tag===4}function s3(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||o3(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 Y1(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=_l));else if(v!==4&&(s=s.child,s!==null))for(Y1(s,c,p),s=s.sibling;s!==null;)Y1(s,c,p),s=s.sibling}function K1(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(K1(s,c,p),s=s.sibling;s!==null;)K1(s,c,p),s=s.sibling}var jr=null,Io=!1;function $i(s,c,p){for(p=p.child;p!==null;)i3(s,c,p),p=p.sibling}function i3(s,c,p){if(Vr&&typeof Vr.onCommitFiberUnmount=="function")try{Vr.onCommitFiberUnmount(Ca,p)}catch{}switch(p.tag){case 5:Lr||Bc(p,c);case 6:var v=jr,x=Io;jr=null,$i(s,c,p),jr=v,Io=x,jr!==null&&(Io?(s=jr,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):jr.removeChild(p.stateNode));break;case 18:jr!==null&&(Io?(s=jr,p=p.stateNode,s.nodeType===8?zc(s.parentNode,p):s.nodeType===1&&zc(s,p),lr(s)):zc(jr,p.stateNode));break;case 4:v=jr,x=Io,jr=p.stateNode.containerInfo,Io=!0,$i(s,c,p),jr=v,Io=x;break;case 0:case 11:case 14:case 15:if(!Lr&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var k=x,I=k.destroy;k=k.tag,I!==void 0&&((k&2)!==0||(k&4)!==0)&&Q1(p,c,I),x=x.next}while(x!==v)}$i(s,c,p);break;case 1:if(!Lr&&(Bc(p,c),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(V){kn(p,c,V)}$i(s,c,p);break;case 21:$i(s,c,p);break;case 22:p.mode&1?(Lr=(v=Lr)||p.memoizedState!==null,$i(s,c,p),Lr=v):$i(s,c,p);break;default:$i(s,c,p)}}function l3(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new X9),c.forEach(function(v){var x=sx.bind(null,s,v);p.has(v)||(p.add(v),v.then(x,x))})}}function Po(s,c){var p=c.deletions;if(p!==null)for(var v=0;v<p.length;v++){var x=p[v];try{var k=s,I=c,V=I;e:for(;V!==null;){switch(V.tag){case 5:jr=V.stateNode,Io=!1;break e;case 3:jr=V.stateNode.containerInfo,Io=!0;break e;case 4:jr=V.stateNode.containerInfo,Io=!0;break e}V=V.return}if(jr===null)throw Error(n(160));i3(k,I,x),jr=null,Io=!1;var K=x.alternate;K!==null&&(K.return=null),x.return=null}catch(ce){kn(x,c,ce)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)c3(c,s),c=c.sibling}function c3(s,c){var p=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Po(c,s),is(s),v&4){try{f0(3,s,s.return),Qd(3,s)}catch(We){kn(s,s.return,We)}try{f0(5,s,s.return)}catch(We){kn(s,s.return,We)}}break;case 1:Po(c,s),is(s),v&512&&p!==null&&Bc(p,p.return);break;case 5:if(Po(c,s),is(s),v&512&&p!==null&&Bc(p,p.return),s.flags&32){var x=s.stateNode;try{gt(x,"")}catch(We){kn(s,s.return,We)}}if(v&4&&(x=s.stateNode,x!=null)){var k=s.memoizedProps,I=p!==null?p.memoizedProps:k,V=s.type,K=s.updateQueue;if(s.updateQueue=null,K!==null)try{V==="input"&&k.type==="radio"&&k.name!=null&&cn(x,k),Pn(V,I);var ce=Pn(V,k);for(I=0;I<K.length;I+=2){var xe=K[I],Ce=K[I+1];xe==="style"?Ur(x,Ce):xe==="dangerouslySetInnerHTML"?ot(x,Ce):xe==="children"?gt(x,Ce):A(x,xe,Ce,ce)}switch(V){case"input":ya(x,k);break;case"textarea":Qn(x,k);break;case"select":var ye=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!k.multiple;var Oe=k.value;Oe!=null?$r(x,!!k.multiple,Oe,!1):ye!==!!k.multiple&&(k.defaultValue!=null?$r(x,!!k.multiple,k.defaultValue,!0):$r(x,!!k.multiple,k.multiple?[]:"",!1))}x[ji]=k}catch(We){kn(s,s.return,We)}}break;case 6:if(Po(c,s),is(s),v&4){if(s.stateNode===null)throw Error(n(162));x=s.stateNode,k=s.memoizedProps;try{x.nodeValue=k}catch(We){kn(s,s.return,We)}}break;case 3:if(Po(c,s),is(s),v&4&&p!==null&&p.memoizedState.isDehydrated)try{lr(c.containerInfo)}catch(We){kn(s,s.return,We)}break;case 4:Po(c,s),is(s);break;case 13:Po(c,s),is(s),x=s.child,x.flags&8192&&(k=x.memoizedState!==null,x.stateNode.isHidden=k,!k||x.alternate!==null&&x.alternate.memoizedState!==null||(th=zt())),v&4&&l3(s);break;case 22:if(xe=p!==null&&p.memoizedState!==null,s.mode&1?(Lr=(ce=Lr)||xe,Po(c,s),Lr=ce):Po(c,s),is(s),v&8192){if(ce=s.memoizedState!==null,(s.stateNode.isHidden=ce)&&!xe&&(s.mode&1)!==0)for(He=s,xe=s.child;xe!==null;){for(Ce=He=xe;He!==null;){switch(ye=He,Oe=ye.child,ye.tag){case 0:case 11:case 14:case 15:f0(4,ye,ye.return);break;case 1:Bc(ye,ye.return);var Ge=ye.stateNode;if(typeof Ge.componentWillUnmount=="function"){v=ye,p=ye.return;try{c=v,Ge.props=c.memoizedProps,Ge.state=c.memoizedState,Ge.componentWillUnmount()}catch(We){kn(v,p,We)}}break;case 5:Bc(ye,ye.return);break;case 22:if(ye.memoizedState!==null){p3(Ce);continue}}Oe!==null?(Oe.return=ye,He=Oe):p3(Ce)}xe=xe.sibling}e:for(xe=null,Ce=s;;){if(Ce.tag===5){if(xe===null){xe=Ce;try{x=Ce.stateNode,ce?(k=x.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none"):(V=Ce.stateNode,K=Ce.memoizedProps.style,I=K!=null&&K.hasOwnProperty("display")?K.display:null,V.style.display=sr("display",I))}catch(We){kn(s,s.return,We)}}}else if(Ce.tag===6){if(xe===null)try{Ce.stateNode.nodeValue=ce?"":Ce.memoizedProps}catch(We){kn(s,s.return,We)}}else if((Ce.tag!==22&&Ce.tag!==23||Ce.memoizedState===null||Ce===s)&&Ce.child!==null){Ce.child.return=Ce,Ce=Ce.child;continue}if(Ce===s)break e;for(;Ce.sibling===null;){if(Ce.return===null||Ce.return===s)break e;xe===Ce&&(xe=null),Ce=Ce.return}xe===Ce&&(xe=null),Ce.sibling.return=Ce.return,Ce=Ce.sibling}}break;case 19:Po(c,s),is(s),v&4&&l3(s);break;case 21:break;default:Po(c,s),is(s)}}function is(s){var c=s.flags;if(c&2){try{e:{for(var p=s.return;p!==null;){if(o3(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&&(gt(x,""),v.flags&=-33);var k=s3(s);K1(s,k,x);break;case 3:case 4:var I=v.stateNode.containerInfo,V=s3(s);Y1(s,V,I);break;default:throw Error(n(161))}}catch(K){kn(s,s.return,K)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function K9(s,c,p){He=s,u3(s)}function u3(s,c,p){for(var v=(s.mode&1)!==0;He!==null;){var x=He,k=x.child;if(x.tag===22&&v){var I=x.memoizedState!==null||Zd;if(!I){var V=x.alternate,K=V!==null&&V.memoizedState!==null||Lr;V=Zd;var ce=Lr;if(Zd=I,(Lr=K)&&!ce)for(He=x;He!==null;)I=He,K=I.child,I.tag===22&&I.memoizedState!==null?m3(x):K!==null?(K.return=I,He=K):m3(x);for(;k!==null;)He=k,u3(k),k=k.sibling;He=x,Zd=V,Lr=ce}d3(s)}else(x.subtreeFlags&8772)!==0&&k!==null?(k.return=x,He=k):d3(s)}}function d3(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:Lr||Qd(5,c);break;case 1:var v=c.stateNode;if(c.flags&4&&!Lr)if(p===null)v.componentDidMount();else{var x=c.elementType===c.type?p.memoizedProps:Lo(c.type,p.memoizedProps);v.componentDidUpdate(x,p.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var k=c.updateQueue;k!==null&&p4(c,k,v);break;case 3:var I=c.updateQueue;if(I!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}p4(c,I,p)}break;case 5:var V=c.stateNode;if(p===null&&c.flags&4){p=V;var K=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":K.autoFocus&&p.focus();break;case"img":K.src&&(p.src=K.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var ce=c.alternate;if(ce!==null){var xe=ce.memoizedState;if(xe!==null){var Ce=xe.dehydrated;Ce!==null&&lr(Ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Lr||c.flags&512&&X1(c)}catch(ye){kn(c,c.return,ye)}}if(c===s){He=null;break}if(p=c.sibling,p!==null){p.return=c.return,He=p;break}He=c.return}}function p3(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 m3(s){for(;He!==null;){var c=He;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{Qd(4,c)}catch(K){kn(c,p,K)}break;case 1:var v=c.stateNode;if(typeof v.componentDidMount=="function"){var x=c.return;try{v.componentDidMount()}catch(K){kn(c,x,K)}}var k=c.return;try{X1(c)}catch(K){kn(c,k,K)}break;case 5:var I=c.return;try{X1(c)}catch(K){kn(c,I,K)}}}catch(K){kn(c,c.return,K)}if(c===s){He=null;break}var V=c.sibling;if(V!==null){V.return=c.return,He=V;break}He=c.return}}var J9=Math.ceil,Xd=M.ReactCurrentDispatcher,J1=M.ReactCurrentOwner,no=M.ReactCurrentBatchConfig,Dt=0,pr=null,Bn=null,Cr=0,Ma=0,Uc=Do(0),Jn=0,g0=null,El=0,Yd=0,eh=0,v0=null,pa=null,th=0,Hc=1/0,Ws=null,Kd=!1,nh=null,Ai=null,Jd=!1,Ei=null,ep=0,b0=0,rh=null,tp=-1,np=0;function Zr(){return(Dt&6)!==0?zt():tp!==-1?tp:tp=zt()}function Di(s){return(s.mode&1)===0?1:(Dt&2)!==0&&Cr!==0?Cr&-Cr:I9.transition!==null?(np===0&&(np=sl()),np):(s=wt,s!==0||(s=window.event,s=s===void 0?16:zs(s.type)),s)}function Ro(s,c,p,v){if(50<b0)throw b0=0,rh=null,Error(n(185));_o(s,p,v),((Dt&2)===0||s!==pr)&&(s===pr&&((Dt&2)===0&&(Yd|=p),Jn===4&&zi(s,Cr)),ma(s,v),p===1&&Dt===0&&(c.mode&1)===0&&(Hc=zt()+500,kl&&To()))}function ma(s,c){var p=s.callbackNode;xo(s,c);var v=ka(s,s===pr?Cr:0);if(v===0)p!==null&&Ko(p),s.callbackNode=null,s.callbackPriority=0;else if(c=v&-v,s.callbackPriority!==c){if(p!=null&&Ko(p),c===1)s.tag===0?zd(f3.bind(null,s)):a0(f3.bind(null,s)),$d(function(){(Dt&6)===0&&To()}),p=null;else{switch(At(v)){case 1:p=sa;break;case 4:p=di;break;case 16:p=bo;break;case 536870912:p=mc;break;default:p=bo}p=j3(p,h3.bind(null,s))}s.callbackPriority=c,s.callbackNode=p}}function h3(s,c){if(tp=-1,np=0,(Dt&6)!==0)throw Error(n(327));var p=s.callbackNode;if(Vc()&&s.callbackNode!==p)return null;var v=ka(s,s===pr?Cr:0);if(v===0)return null;if((v&30)!==0||(v&s.expiredLanes)!==0||c)c=rp(s,v);else{c=v;var x=Dt;Dt|=2;var k=v3();(pr!==s||Cr!==c)&&(Ws=null,Hc=zt()+500,zl(s,c));do try{nx();break}catch(V){g3(s,V)}while(!0);_1(),Xd.current=k,Dt=x,Bn!==null?c=0:(pr=null,Cr=0,c=Jn)}if(c!==0){if(c===2&&(x=Na(s),x!==0&&(v=x,c=ah(s,x))),c===1)throw p=g0,zl(s,0),zi(s,v),ma(s,zt()),p;if(c===6)zi(s,v);else{if(x=s.current.alternate,(v&30)===0&&!ex(x)&&(c=rp(s,v),c===2&&(k=Na(s),k!==0&&(v=k,c=ah(s,k))),c===1))throw p=g0,zl(s,0),zi(s,v),ma(s,zt()),p;switch(s.finishedWork=x,s.finishedLanes=v,c){case 0:case 1:throw Error(n(345));case 2:Tl(s,pa,Ws);break;case 3:if(zi(s,v),(v&130023424)===v&&(c=th+500-zt(),10<c)){if(ka(s,0)!==0)break;if(x=s.suspendedLanes,(x&v)!==v){Zr(),s.pingedLanes|=s.suspendedLanes&x;break}s.timeoutHandle=Dc(Tl.bind(null,s,pa,Ws),c);break}Tl(s,pa,Ws);break;case 4:if(zi(s,v),(v&4194240)===v)break;for(c=s.eventTimes,x=-1;0<v;){var I=31-un(v);k=1<<I,I=c[I],I>x&&(x=I),v&=~k}if(v=x,v=zt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*J9(v/1960))-v,10<v){s.timeoutHandle=Dc(Tl.bind(null,s,pa,Ws),v);break}Tl(s,pa,Ws);break;case 5:Tl(s,pa,Ws);break;default:throw Error(n(329))}}}return ma(s,zt()),s.callbackNode===p?h3.bind(null,s):null}function ah(s,c){var p=v0;return s.current.memoizedState.isDehydrated&&(zl(s,c).flags|=256),s=rp(s,c),s!==2&&(c=pa,pa=p,c!==null&&oh(c)),s}function oh(s){pa===null?pa=s:pa.push.apply(pa,s)}function ex(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],k=x.getSnapshot;x=x.value;try{if(!ua(k(),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 zi(s,c){for(c&=~eh,c&=~Yd,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var p=31-un(c),v=1<<p;s[p]=-1,c&=~v}}function f3(s){if((Dt&6)!==0)throw Error(n(327));Vc();var c=ka(s,0);if((c&1)===0)return ma(s,zt()),null;var p=rp(s,c);if(s.tag!==0&&p===2){var v=Na(s);v!==0&&(c=v,p=ah(s,v))}if(p===1)throw p=g0,zl(s,0),zi(s,c),ma(s,zt()),p;if(p===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Tl(s,pa,Ws),ma(s,zt()),null}function sh(s,c){var p=Dt;Dt|=1;try{return s(c)}finally{Dt=p,Dt===0&&(Hc=zt()+500,kl&&To())}}function Dl(s){Ei!==null&&Ei.tag===0&&(Dt&6)===0&&Vc();var c=Dt;Dt|=1;var p=no.transition,v=wt;try{if(no.transition=null,wt=1,s)return s()}finally{wt=v,no.transition=p,Dt=c,(Dt&6)===0&&To()}}function ih(){Ma=Uc.current,Yt(Uc)}function zl(s,c){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,Sd(p)),Bn!==null)for(p=Bn.return;p!==null;){var v=p;switch(g1(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&jl();break;case 3:Fc(),Yt(_r),Yt(Yn),A1();break;case 5:S1(v);break;case 4:Fc();break;case 13:Yt(gn);break;case 19:Yt(gn);break;case 10:w1(v.type._context);break;case 22:case 23:ih()}p=p.return}if(pr=s,Bn=s=Ti(s.current,null),Cr=Ma=c,Jn=0,g0=null,eh=Yd=El=0,pa=v0=null,Sl!==null){for(c=0;c<Sl.length;c++)if(p=Sl[c],v=p.interleaved,v!==null){p.interleaved=null;var x=v.next,k=p.pending;if(k!==null){var I=k.next;k.next=x,v.next=I}p.pending=v}Sl=null}return s}function g3(s,c){do{var p=Bn;try{if(_1(),Fd.current=Hd,Od){for(var v=vn.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}Od=!1}if(Al=0,dr=Kn=vn=null,u0=!1,d0=0,J1.current=null,p===null||p.return===null){Jn=1,g0=c,Bn=null;break}e:{var k=s,I=p.return,V=p,K=c;if(c=Cr,V.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var ce=K,xe=V,Ce=xe.tag;if((xe.mode&1)===0&&(Ce===0||Ce===11||Ce===15)){var ye=xe.alternate;ye?(xe.updateQueue=ye.updateQueue,xe.memoizedState=ye.memoizedState,xe.lanes=ye.lanes):(xe.updateQueue=null,xe.memoizedState=null)}var Oe=O4(I);if(Oe!==null){Oe.flags&=-257,B4(Oe,I,V,k,c),Oe.mode&1&&F4(k,ce,c),c=Oe,K=ce;var Ge=c.updateQueue;if(Ge===null){var We=new Set;We.add(K),c.updateQueue=We}else Ge.add(K);break e}else{if((c&1)===0){F4(k,ce,c),lh();break e}K=Error(n(426))}}else if(dn&&V.mode&1){var zn=O4(I);if(zn!==null){(zn.flags&65536)===0&&(zn.flags|=256),B4(zn,I,V,k,c),y1(Oc(K,V));break e}}k=K=Oc(K,V),Jn!==4&&(Jn=2),v0===null?v0=[k]:v0.push(k),k=I;do{switch(k.tag){case 3:k.flags|=65536,c&=-c,k.lanes|=c;var oe=R4(k,K,c);d4(k,oe);break e;case 1:V=K;var te=k.type,se=k.stateNode;if((k.flags&128)===0&&(typeof te.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(Ai===null||!Ai.has(se)))){k.flags|=65536,c&=-c,k.lanes|=c;var Te=q4(k,V,c);d4(k,Te);break e}}k=k.return}while(k!==null)}y3(p)}catch(Xe){c=Xe,Bn===p&&p!==null&&(Bn=p=p.return);continue}break}while(!0)}function v3(){var s=Xd.current;return Xd.current=Hd,s===null?Hd:s}function lh(){(Jn===0||Jn===3||Jn===2)&&(Jn=4),pr===null||(El&268435455)===0&&(Yd&268435455)===0||zi(pr,Cr)}function rp(s,c){var p=Dt;Dt|=2;var v=v3();(pr!==s||Cr!==c)&&(Ws=null,zl(s,c));do try{tx();break}catch(x){g3(s,x)}while(!0);if(_1(),Dt=p,Xd.current=v,Bn!==null)throw Error(n(261));return pr=null,Cr=0,Jn}function tx(){for(;Bn!==null;)b3(Bn)}function nx(){for(;Bn!==null&&!rl();)b3(Bn)}function b3(s){var c=w3(s.alternate,s,Ma);s.memoizedProps=s.pendingProps,c===null?y3(s):Bn=c,J1.current=null}function y3(s){var c=s;do{var p=c.alternate;if(s=c.return,(c.flags&32768)===0){if(p=Z9(p,c,Ma),p!==null){Bn=p;return}}else{if(p=Q9(p,c),p!==null){p.flags&=32767,Bn=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Jn=6,Bn=null;return}}if(c=c.sibling,c!==null){Bn=c;return}Bn=c=s}while(c!==null);Jn===0&&(Jn=5)}function Tl(s,c,p){var v=wt,x=no.transition;try{no.transition=null,wt=1,rx(s,c,p,v)}finally{no.transition=x,wt=v}return null}function rx(s,c,p,v){do Vc();while(Ei!==null);if((Dt&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 k=p.lanes|p.childLanes;if(wo(s,k),s===pr&&(Bn=pr=null,Cr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Jd||(Jd=!0,j3(bo,function(){return Vc(),null})),k=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||k){k=no.transition,no.transition=null;var I=wt;wt=1;var V=Dt;Dt|=4,J1.current=null,Y9(s,p),c3(p,s),xd(Ac),Ds=!!$c,Ac=$c=null,s.current=p,K9(p),Jo(),Dt=V,wt=I,no.transition=k}else s.current=p;if(Jd&&(Jd=!1,Ei=s,ep=x),k=s.pendingLanes,k===0&&(Ai=null),js(p.stateNode),ma(s,zt()),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(Kd)throw Kd=!1,s=nh,nh=null,s;return(ep&1)!==0&&s.tag!==0&&Vc(),k=s.pendingLanes,(k&1)!==0?s===rh?b0++:(b0=0,rh=s):b0=0,To(),null}function Vc(){if(Ei!==null){var s=At(ep),c=no.transition,p=wt;try{if(no.transition=null,wt=16>s?16:s,Ei===null)var v=!1;else{if(s=Ei,Ei=null,ep=0,(Dt&6)!==0)throw Error(n(331));var x=Dt;for(Dt|=4,He=s.current;He!==null;){var k=He,I=k.child;if((He.flags&16)!==0){var V=k.deletions;if(V!==null){for(var K=0;K<V.length;K++){var ce=V[K];for(He=ce;He!==null;){var xe=He;switch(xe.tag){case 0:case 11:case 15:f0(8,xe,k)}var Ce=xe.child;if(Ce!==null)Ce.return=xe,He=Ce;else for(;He!==null;){xe=He;var ye=xe.sibling,Oe=xe.return;if(a3(xe),xe===ce){He=null;break}if(ye!==null){ye.return=Oe,He=ye;break}He=Oe}}}var Ge=k.alternate;if(Ge!==null){var We=Ge.child;if(We!==null){Ge.child=null;do{var zn=We.sibling;We.sibling=null,We=zn}while(We!==null)}}He=k}}if((k.subtreeFlags&2064)!==0&&I!==null)I.return=k,He=I;else e:for(;He!==null;){if(k=He,(k.flags&2048)!==0)switch(k.tag){case 0:case 11:case 15:f0(9,k,k.return)}var oe=k.sibling;if(oe!==null){oe.return=k.return,He=oe;break e}He=k.return}}var te=s.current;for(He=te;He!==null;){I=He;var se=I.child;if((I.subtreeFlags&2064)!==0&&se!==null)se.return=I,He=se;else e:for(I=te;He!==null;){if(V=He,(V.flags&2048)!==0)try{switch(V.tag){case 0:case 11:case 15:Qd(9,V)}}catch(Xe){kn(V,V.return,Xe)}if(V===I){He=null;break e}var Te=V.sibling;if(Te!==null){Te.return=V.return,He=Te;break e}He=V.return}}if(Dt=x,To(),Vr&&typeof Vr.onPostCommitFiberRoot=="function")try{Vr.onPostCommitFiberRoot(Ca,s)}catch{}v=!0}return v}finally{wt=p,no.transition=c}}return!1}function x3(s,c,p){c=Oc(p,c),c=R4(s,c,1),s=Si(s,c,1),c=Zr(),s!==null&&(_o(s,1,c),ma(s,c))}function kn(s,c,p){if(s.tag===3)x3(s,s,p);else for(;c!==null;){if(c.tag===3){x3(c,s,p);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ai===null||!Ai.has(v))){s=Oc(p,s),s=q4(c,s,1),c=Si(c,s,1),s=Zr(),c!==null&&(_o(c,1,s),ma(c,s));break}}c=c.return}}function ax(s,c,p){var v=s.pingCache;v!==null&&v.delete(c),c=Zr(),s.pingedLanes|=s.suspendedLanes&p,pr===s&&(Cr&p)===p&&(Jn===4||Jn===3&&(Cr&130023424)===Cr&&500>zt()-th?zl(s,0):eh|=p),ma(s,c)}function _3(s,c){c===0&&((s.mode&1)===0?c=1:(c=Ga,Ga<<=1,(Ga&130023424)===0&&(Ga=4194304)));var p=Zr();s=Hs(s,c),s!==null&&(_o(s,c,p),ma(s,p))}function ox(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),_3(s,p)}function sx(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),_3(s,p)}var w3;w3=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||_r.current)da=!0;else{if((s.lanes&p)===0&&(c.flags&128)===0)return da=!1,W9(s,c,p);da=(s.flags&131072)!==0}else da=!1,dn&&(c.flags&1048576)!==0&&ki(c,D,c.index);switch(c.lanes=0,c.tag){case 2:var v=c.type;Wd(s,c),s=c.pendingProps;var x=Os(c,Yn.current);qc(c,p),x=z1(null,c,v,s,x,p);var k=T1();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,wr(v)?(k=!0,Cl(c)):k=!1,c.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,k1(c),x.updater=Vd,c.stateNode=x,x._reactInternals=c,q1(c,v,s,p),c=U1(null,c,v,!0,k,p)):(c.tag=0,dn&&k&&o0(c),Wr(null,c,x,p),c=c.child),c;case 16:v=c.elementType;e:{switch(Wd(s,c),s=c.pendingProps,x=v._init,v=x(v._payload),c.type=v,x=c.tag=lx(v),s=Lo(v,s),x){case 0:c=B1(null,c,v,s,p);break e;case 1:c=Z4(null,c,v,s,p);break e;case 11:c=U4(null,c,v,s,p);break e;case 14:c=H4(null,c,v,Lo(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:Lo(v,x),B1(s,c,v,x,p);case 1:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Lo(v,x),Z4(s,c,v,x,p);case 3:e:{if(Q4(c),s===null)throw Error(n(387));v=c.pendingProps,k=c.memoizedState,x=k.element,u4(s,c),Rd(c,v,null,p);var I=c.memoizedState;if(v=I.element,k.isDehydrated)if(k={element:v,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},c.updateQueue.baseState=k,c.memoizedState=k,c.flags&256){x=Oc(Error(n(423)),c),c=X4(s,c,v,p,x);break e}else if(v!==x){x=Oc(Error(n(424)),c),c=X4(s,c,v,p,x);break e}else for(Ta=Eo(c.stateNode.containerInfo.firstChild),za=c,dn=!0,Mo=null,p=l4(c,null,v,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Ic(),v===x){c=Gs(s,c,p);break e}Wr(s,c,v,p)}c=c.child}return c;case 5:return m4(c),s===null&&b1(c),v=c.type,x=c.pendingProps,k=s!==null?s.memoizedProps:null,I=x.children,Ec(v,x)?I=null:k!==null&&Ec(v,k)&&(c.flags|=32),W4(s,c),Wr(s,c,I,p),c.child;case 6:return s===null&&b1(c),null;case 13:return Y4(s,c,p);case 4:return N1(c,c.stateNode.containerInfo),v=c.pendingProps,s===null?c.child=Pc(c,null,v,p):Wr(s,c,v,p),c.child;case 11:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Lo(v,x),U4(s,c,v,x,p);case 7:return Wr(s,c,c.pendingProps,p),c.child;case 8:return Wr(s,c,c.pendingProps.children,p),c.child;case 12:return Wr(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(v=c.type._context,x=c.pendingProps,k=c.memoizedProps,I=x.value,Gt(Ld,v._currentValue),v._currentValue=I,k!==null)if(ua(k.value,I)){if(k.children===x.children&&!_r.current){c=Gs(s,c,p);break e}}else for(k=c.child,k!==null&&(k.return=c);k!==null;){var V=k.dependencies;if(V!==null){I=k.child;for(var K=V.firstContext;K!==null;){if(K.context===v){if(k.tag===1){K=Vs(-1,p&-p),K.tag=2;var ce=k.updateQueue;if(ce!==null){ce=ce.shared;var xe=ce.pending;xe===null?K.next=K:(K.next=xe.next,xe.next=K),ce.pending=K}}k.lanes|=p,K=k.alternate,K!==null&&(K.lanes|=p),j1(k.return,p,c),V.lanes|=p;break}K=K.next}}else if(k.tag===10)I=k.type===c.type?null:k.child;else if(k.tag===18){if(I=k.return,I===null)throw Error(n(341));I.lanes|=p,V=I.alternate,V!==null&&(V.lanes|=p),j1(I,p,c),I=k.sibling}else I=k.child;if(I!==null)I.return=k;else for(I=k;I!==null;){if(I===c){I=null;break}if(k=I.sibling,k!==null){k.return=I.return,I=k;break}I=I.return}k=I}Wr(s,c,x.children,p),c=c.child}return c;case 9:return x=c.type,v=c.pendingProps.children,qc(c,p),x=eo(x),v=v(x),c.flags|=1,Wr(s,c,v,p),c.child;case 14:return v=c.type,x=Lo(v,c.pendingProps),x=Lo(v.type,x),H4(s,c,v,x,p);case 15:return V4(s,c,c.type,c.pendingProps,p);case 17:return v=c.type,x=c.pendingProps,x=c.elementType===v?x:Lo(v,x),Wd(s,c),c.tag=1,wr(v)?(s=!0,Cl(c)):s=!1,qc(c,p),I4(c,v,x),q1(c,v,x,p),U1(null,c,v,!0,s,p);case 19:return J4(s,c,p);case 22:return G4(s,c,p)}throw Error(n(156,c.tag))};function j3(s,c){return qn(s,c)}function ix(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 ro(s,c,p,v){return new ix(s,c,p,v)}function ch(s){return s=s.prototype,!(!s||!s.isReactComponent)}function lx(s){if(typeof s=="function")return ch(s)?1:0;if(s!=null){if(s=s.$$typeof,s===Z)return 11;if(s===ee)return 14}return 2}function Ti(s,c){var p=s.alternate;return p===null?(p=ro(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 ap(s,c,p,v,x,k){var I=2;if(v=s,typeof s=="function")ch(s)&&(I=1);else if(typeof s=="string")I=5;else e:switch(s){case P:return Ml(p.children,x,k,c);case H:I=8,x|=8;break;case R:return s=ro(12,p,c,x|2),s.elementType=R,s.lanes=k,s;case re:return s=ro(13,p,c,x),s.elementType=re,s.lanes=k,s;case le:return s=ro(19,p,c,x),s.elementType=le,s.lanes=k,s;case _e:return op(p,x,k,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case F:I=10;break e;case U:I=9;break e;case Z:I=11;break e;case ee:I=14;break e;case ke:I=16,v=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=ro(I,p,c,x),c.elementType=s,c.type=v,c.lanes=k,c}function Ml(s,c,p,v){return s=ro(7,s,v,c),s.lanes=p,s}function op(s,c,p,v){return s=ro(22,s,v,c),s.elementType=_e,s.lanes=p,s.stateNode={isHidden:!1},s}function uh(s,c,p){return s=ro(6,s,null,c),s.lanes=p,s}function dh(s,c,p){return c=ro(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function cx(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=Er(0),this.expirationTimes=Er(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Er(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function ph(s,c,p,v,x,k,I,V,K){return s=new cx(s,c,p,V,K),c===1?(c=1,k===!0&&(c|=8)):c=0,k=ro(3,null,null,c),s.current=k,k.stateNode=s,k.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},k1(k),s}function ux(s,c,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:v==null?null:""+v,children:s,containerInfo:c,implementation:p}}function C3(s){if(!s)return zo;s=s._reactInternals;e:{if(ir(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(wr(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(wr(p))return n0(s,p,c)}return c}function k3(s,c,p,v,x,k,I,V,K){return s=ph(p,v,!0,s,x,k,I,V,K),s.context=C3(null),p=s.current,v=Zr(),x=Di(p),k=Vs(v,x),k.callback=c??null,Si(p,k,x),s.current.lanes=x,_o(s,x,v),ma(s,v),s}function sp(s,c,p,v){var x=c.current,k=Zr(),I=Di(x);return p=C3(p),c.context===null?c.context=p:c.pendingContext=p,c=Vs(k,I),c.payload={element:s},v=v===void 0?null:v,v!==null&&(c.callback=v),s=Si(x,c,I),s!==null&&(Ro(s,x,I,k),Pd(s,x,I)),I}function ip(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 N3(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function mh(s,c){N3(s,c),(s=s.alternate)&&N3(s,c)}function dx(){return null}var S3=typeof reportError=="function"?reportError:function(s){console.error(s)};function hh(s){this._internalRoot=s}lp.prototype.render=hh.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));sp(s,c,null,null)},lp.prototype.unmount=hh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Dl(function(){sp(null,s,null,null)}),c[Ka]=null}};function lp(s){this._internalRoot=s}lp.prototype.unstable_scheduleHydration=function(s){if(s){var c=Wa();s={blockedOn:null,target:s,priority:c};for(var p=0;p<br.length&&c!==0&&c<br[p].priority;p++);br.splice(p,0,s),p===0&&Co(s)}};function fh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function cp(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function $3(){}function px(s,c,p,v,x){if(x){if(typeof v=="function"){var k=v;v=function(){var ce=ip(I);k.call(ce)}}var I=k3(c,v,s,0,null,!1,!1,"",$3);return s._reactRootContainer=I,s[Ka]=I.current,_i(s.nodeType===8?s.parentNode:s),Dl(),I}for(;x=s.lastChild;)s.removeChild(x);if(typeof v=="function"){var V=v;v=function(){var ce=ip(K);V.call(ce)}}var K=ph(s,0,!1,null,null,!1,!1,"",$3);return s._reactRootContainer=K,s[Ka]=K.current,_i(s.nodeType===8?s.parentNode:s),Dl(function(){sp(c,K,p,v)}),K}function up(s,c,p,v,x){var k=p._reactRootContainer;if(k){var I=k;if(typeof x=="function"){var V=x;x=function(){var K=ip(I);V.call(K)}}sp(c,I,s,x)}else I=px(p,c,s,x,v);return ip(I)}jo=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var p=yo(c.pendingLanes);p!==0&&(il(c,p|1),ma(c,zt()),(Dt&6)===0&&(Hc=zt()+500,To()))}break;case 13:Dl(function(){var v=Hs(s,1);if(v!==null){var x=Zr();Ro(v,s,1,x)}}),mh(s,1)}},mi=function(s){if(s.tag===13){var c=Hs(s,134217728);if(c!==null){var p=Zr();Ro(c,s,134217728,p)}mh(s,134217728)}},ks=function(s){if(s.tag===13){var c=Di(s),p=Hs(s,c);if(p!==null){var v=Zr();Ro(p,s,c,v)}mh(s,c)}},Wa=function(){return wt},Ns=function(s,c){var p=wt;try{return wt=s,c()}finally{wt=p}},Hr=function(s,c,p){switch(c){case"input":if(ya(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=wl(v);if(!x)throw Error(n(90));yt(v),ya(v,x)}}}break;case"textarea":Qn(s,p);break;case"select":c=p.value,c!=null&&$r(s,!!p.multiple,c,!1)}},_a=sh,Ar=Dl;var mx={usingClientEntryPoint:!1,Events:[Ci,qs,wl,tl,ui,sh]},y0={findFiberByHostInstance:rs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hx={bundleType:y0.bundleType,version:y0.version,rendererPackageName:y0.rendererPackageName,rendererConfig:y0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=pc(s),s===null?null:s.stateNode},findFiberByHostInstance:y0.findFiberByHostInstance||dx,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 dp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dp.isDisabled&&dp.supportsFiber)try{Ca=dp.inject(hx),Vr=dp}catch{}}return ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mx,ha.createPortal=function(s,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fh(c))throw Error(n(200));return ux(s,c,null,p)},ha.createRoot=function(s,c){if(!fh(s))throw Error(n(299));var p=!1,v="",x=S3;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onRecoverableError!==void 0&&(x=c.onRecoverableError)),c=ph(s,1,!1,null,null,p,!1,v,x),s[Ka]=c.current,_i(s.nodeType===8?s.parentNode:s),new hh(c)},ha.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=pc(c),s=s===null?null:s.stateNode,s},ha.flushSync=function(s){return Dl(s)},ha.hydrate=function(s,c,p){if(!cp(c))throw Error(n(200));return up(null,s,c,!0,p)},ha.hydrateRoot=function(s,c,p){if(!fh(s))throw Error(n(405));var v=p!=null&&p.hydratedSources||null,x=!1,k="",I=S3;if(p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(k=p.identifierPrefix),p.onRecoverableError!==void 0&&(I=p.onRecoverableError)),c=k3(c,null,s,1,p??null,x,!1,k,I),s[Ka]=c.current,_i(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 lp(c)},ha.render=function(s,c,p){if(!cp(c))throw Error(n(200));return up(null,s,c,!1,p)},ha.unmountComponentAtNode=function(s){if(!cp(s))throw Error(n(40));return s._reactRootContainer?(Dl(function(){up(null,null,s,!1,function(){s._reactRootContainer=null,s[Ka]=null})}),!0):!1},ha.unstable_batchedUpdates=sh,ha.unstable_renderSubtreeIntoContainer=function(s,c,p,v){if(!cp(p))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return up(s,c,p,!1,v)},ha.version="18.3.1-next-f1338f8080-20240426",ha}var R3;function Eb(){if(R3)return xh.exports;R3=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(),xh.exports=Nx(),xh.exports}var q3;function Sx(){if(q3)return pp;q3=1;var e=Eb();return pp.createRoot=e.createRoot,pp.hydrateRoot=e.hydrateRoot,pp}var $x=Sx();function Ax(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(l=>typeof l=="string"):[],a=Dx(n.tareas),i=n.plan;return[{nombre:n.nombre,ficheros:r,...a===void 0?{}:{tareas:a},...i!=null&&typeof i.texto=="string"?{plan:{texto:i.texto,recortado:i.recortado===!0}}:{},modificado:n.modificado}]})}const Ex=["pendiente","en-curso","implementada","finalizada"];function Dx(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,i=a.criterios;return typeof a.numero!="string"||typeof a.titulo!="string"||typeof a.cuerpo!="string"?[]:i==null||typeof i.hechos!="number"||typeof i.total!="number"?[]:[{numero:a.numero,titulo:a.titulo,...typeof a.estado=="string"?{estado:a.estado}:{},bloqueadaPor:Array.isArray(a.bloqueadaPor)?a.bloqueadaPor.filter(l=>typeof l=="string"):[],...typeof a.bloqueadaPorTexto=="string"?{bloqueadaPorTexto:a.bloqueadaPorTexto}:{},criterios:{hechos:i.hechos,total:i.total},...Ex.includes(a.progreso)?{progreso:a.progreso}:{},cuerpo:a.cuerpo}]});return{...typeof t.titulo=="string"?{titulo:t.titulo}:{},tareas:n}}const t2=["por-hacer","en-curso","terminada"],$n=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),zx=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function Tx(e){if(!$n(e))return{};const t=Lx(e.estado),n=qx(e.sitios),r=Fx(e.proyectos),a=Ix(e.busqueda),i=Rx(e.descripcion),l=Bx(e.pendientes),u=Ux(e.ficha),d=Hx(e.borrador),m=Gx(e.transiciones),f=Wx(e.cierre),h=Zx(e.cerrado),b=Qx(e.error);return{...t===void 0?{}:{estado:t},...n===void 0?{}:{sitios:n},...r===void 0?{}:{proyectos:r},...a===void 0?{}:{busqueda:a},...i===void 0?{}:{descripcion:i},...l===void 0?{}:{pendientes:l},...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 Mx(e){if($n(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 Lx(e){if(!$n(e)||!Array.isArray(e.conectores))return;const t=Mx(e.vinculo);if(!(e.vinculo!==void 0&&t===void 0))return{conectores:zx(e.conectores),...t===void 0?{}:{vinculo:t},...typeof e.admiteMias=="boolean"?{admiteMias:e.admiteMias}:{}}}function Ix(e){if(!$n(e)||typeof e.conector!="string"||typeof e.texto!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>$n(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 Px(e){if(!$n(e)||typeof e.proyecto!="string"||typeof e.nombre!="string"||typeof e.titulo!="string")return;const t=e.estado;if(!$n(t)||typeof t.propiedad!="string"||!Array.isArray(t.opciones))return;const n=t.opciones.flatMap(r=>$n(r)&&typeof r.nombre=="string"&&t2.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 Rx(e){if(!$n(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=Px(e.esquema);return n===void 0?void 0:{...t,esquema:n}}function qx(e){if(!$n(e)||typeof e.conector!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>$n(n)&&typeof n.id=="string"&&typeof n.nombre=="string"?[{id:n.id,nombre:n.nombre}]:[]);return{conector:e.conector,lista:t}}function Fx(e){if(!$n(e)||typeof e.sitio!="string"||!Array.isArray(e.lista))return;const t=e.lista.flatMap(n=>$n(n)&&typeof n.clave=="string"&&typeof n.nombre=="string"?[{clave:n.clave,nombre:n.nombre}]:[]);return{sitio:e.sitio,lista:t}}function Ox(e){return $n(e)?typeof e.clave!="string"||typeof e.titulo!="string"||typeof e.estado!="string"?[]:t2.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 Bx(e){if(!(!$n(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(Ox)}}function Ux(e){if(!(!$n(e)||typeof e.clave!="string"||typeof e.descripcion!="string"))return{clave:e.clave,descripcion:e.descripcion}}function Hx(e){if(!(!$n(e)||typeof e.clave!="string"||typeof e.texto!="string"))return{clave:e.clave,texto:e.texto}}function Vx(e){return $n(e)?typeof e.id!="string"||typeof e.nombre!="string"||typeof e.destino!="string"?[]:t2.includes(e.categoria)?[{id:e.id,nombre:e.nombre,destino:e.destino,categoria:e.categoria}]:[]:[]}function Gx(e){if(!(!$n(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(Vx),...typeof e.propuesta=="string"?{propuesta:e.propuesta}:{}}}function Wx(e){if(!(!$n(e)||typeof e.clave!="string"||typeof e.comentario!="string"))return{clave:e.clave,comentario:e.comentario}}function Zx(e){if(!(!$n(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 Qx(e){if(!(!$n(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 Xx(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:_0(n.campos,r=>{const{cambio:a,nombre:i,antes:l,ahora:u}=r;if(!(a!=="nuevo"&&a!=="borrado"&&a!=="tipo"||typeof i!="string"))return{cambio:a,nombre:i,...typeof l=="string"?{antes:l}:{},...typeof u=="string"?{ahora:u}:{}}}),referencias:_0(n.referencias,r=>{const{cambio:a,desde:i,por:l,hacia:u}=r;if(!(!Db(a)||typeof i!="string"||typeof l!="string"||typeof u!="string"))return{cambio:a,desde:i,por:l,hacia:u}}),eventos:_0(n.eventos,jh),nodos:_0(n.nodos,jh),conexiones:_0(n.conexiones,jh)}]})}function Db(e){return e==="nuevo"||e==="borrado"}function jh(e){return Db(e.cambio)&&typeof e.nombre=="string"?{cambio:e.cambio,nombre:e.nombre}:void 0}function _0(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 Yx(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=Kx(r);return a===void 0?[]:[a]}),total:t.total,entrada:L0(t.entrada),login:L0(t.login),rotas:Wf(t.rotas)}}function Kx(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:i}=r;return typeof a!="string"?[]:[{nombre:a,...typeof i=="string"?{tipo:i}:{}}]}):[];return{nombre:t.nombre,fichero:t.fichero,campos:n,eventos:L0(t.eventos),nodos:L0(t.nodos),conexiones:L0(t.conexiones),apuntaA:Wf(t.apuntaA),leApuntan:Wf(t.leApuntan)}}function L0(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function Wf(e){return Array.isArray(e)?e.flatMap(t=>{if(typeof t!="object"||t===null)return[];const{desde:n,por:r,hacia:a,fichero:i}=t;return typeof n!="string"||typeof r!="string"||typeof a!="string"||typeof i!="string"?[]:[{desde:n,por:r,hacia:a,fichero:i}]}):[]}function Jx(e){return e.por==="script"?"script":e.por==="mencion"?"mencion":"resuelta"}const e_=["claude-code","codex","opencode"],t_=["ok","no-encontrado","fallo"],n_=["unico","sin-ejecucion","con-ejecucion"],r_=["esperando","hecho","fallo","cancelado"];function Gp(e,t){return e.find(n=>n===t)}function a_(e){if(typeof e!="object"||e===null)return;const t=e,n=Gp(n_,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 o_(e){if(typeof e!="object"||e===null)return;const t=e,n=Gp(r_,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 s_(e){if(typeof e!="object"||e===null)return;const t=e,n=Gp(e_,t.motor),r=Gp(t_,t.instalado);if(n===void 0||r===void 0||typeof t.medido!="string")return;const a=Array.isArray(t.pruebas)?t.pruebas.map(a_).filter(l=>l!==void 0):void 0,i=o_(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}:{},...i===void 0?{}:{login:i},...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 i_(e){if(Array.isArray(e))return e.map(s_).filter(t=>t!==void 0)}const Zf=/^[A-Za-z0-9._][A-Za-z0-9._-]*$/,l_=/^[A-Za-z0-9._:-]{1,128}$/,F3=64,mp={desde:5554,hasta:5585};function c_(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>=mp.desde&&e<=mp.hasta)return`del ${mp.desde} al ${mp.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}`;for(const[r,a]of Object.entries((n==null?void 0:n.fisicos)??{}))if(a.puerto===e)return`el ${e} ya es del móvil ${r}`}function zb(e,t){if(e==="")return"falta el nombre";if(e.length>F3)return`el nombre no puede pasar de ${F3} caracteres`;if(!Zf.test(e))return"solo letras, números, «.», «_» y «-», y sin empezar por «-»";if(t.includes(e))return`${e} ya existe`}function u_(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 Ch="abcdefghijklmnopqrstuvwxyz0123456789",O3=4;function d_(e,t,n=Math.random){const r=e.slice(0,64-O3-1);for(let a=0;;a++){let i="";for(let u=0;u<O3;u++)i+=Ch[Math.floor(n()*Ch.length)%Ch.length];const l=`${r}-${i}`;if(zb(l,t)===void 0||a>=50)return l}}function Tb(e){return e==="ninguna"||e==="oauth"||e==="api-key"}const p_="(sin desglose)",m_=["comprobando","empaquetando","subiendo","reiniciando","lanzando","comprobando-arranque"],h_=["corriendo","ok","fallo","cancelada","colgada"],f_={nuevo:["en-proceso","requiere-atencion"],"en-proceso":["terminada","requiere-atencion"],"requiere-atencion":["nuevo","terminada"],terminada:[]};function g_(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 v_=["low","medium","high","xhigh","max"],Mb=["android","androidEmulador","ios","iosSimulador"];function Wp(e,t){return(e==null?void 0:e[t])!==!1}function b_(e){if(typeof e!="object"||e===null)return;const t={};for(const[n,r]of Object.entries(e)){if(!Zf.test(n)||typeof r!="object"||r===null)continue;const a=r,i={};typeof a.puerto=="number"&&Number.isInteger(a.puerto)&&a.puerto>=1024&&a.puerto<=65535&&(i.puerto=a.puerto),a.sinVentana===!0&&(i.sinVentana=!0),typeof a.copiaDe=="string"&&Zf.test(a.copiaDe)&&(i.copiaDe=a.copiaDe,a.clon===!0&&(i.clon=!0)),Object.keys(i).length>0&&(t[n]=i)}return Object.keys(t).length===0?void 0:t}function y_(e){if(typeof e!="object"||e===null)return;const t={};for(const[n,r]of Object.entries(e)){if(!l_.test(n)||typeof r!="object"||r===null)continue;const a=r.puerto;typeof a=="number"&&Number.isInteger(a)&&a>=1024&&a<=65535&&(t[n]={puerto:a})}return Object.keys(t).length===0?void 0:t}function x_(e){if(typeof e!="object"||e===null)return{};const t=e,n={};for(const i of Mb)typeof t[i]=="boolean"&&(n[i]=t[i]);const r=b_(t.avds);r!==void 0&&(n.avds=r);const a=y_(t.fisicos);return a!==void 0&&(n.fisicos=a),n}function hp(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 __(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"}function w_(e){return{id:e.id,plataforma:e.plataforma,titulo:String(e.titulo??""),descripcion:String(e.descripcion??""),completa:e.completa===!0,...typeof e.aparte=="object"&&e.aparte!==null&&typeof e.aparte.titulo=="string"&&Array.isArray(e.aparte.comandos)?{aparte:{titulo:e.aparte.titulo,comandos:e.aparte.comandos.filter(t=>typeof t=="string"),...typeof e.aparte.nota=="string"?{nota:e.aparte.nota}:{}}}:{},despues:String(e.despues??""),pasos:e.pasos.filter(t=>typeof t=="object"&&t!==null&&typeof t.titulo=="string"&&Array.isArray(t.comandos)).map(t=>({titulo:t.titulo,comandos:t.comandos.filter(n=>typeof n=="string"),hecho:t.hecho===!0,ejecutable:t.ejecutable===!0,...typeof t.nota=="string"?{nota:t.nota}:{},...typeof t.porQueNo=="string"?{porQueNo:t.porQueNo}:{},...typeof t.acepta=="string"?{acepta:t.acepta}:{},...typeof t.repetir=="object"&&t.repetir!==null&&typeof t.repetir.etiqueta=="string"&&typeof t.repetir.porQue=="string"?{repetir:{etiqueta:t.repetir.etiqueta,porQue:t.repetir.porQue}}:{}}))}}function j_(e){if(typeof e!="object"||e===null)return;const t=e;if(!(typeof t.instalado!="boolean"||typeof t.cuenta!="boolean"))return{instalado:t.instalado,cuenta:t.cuenta,...typeof t.dominio=="string"?{dominio:t.dominio}:{},...typeof t.motivo=="string"?{motivo:t.motivo}:{}}}const C_={actos:[],conectado:!1},k_=new Set(["cuenta","entorno","proyecto"]),N_={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 fp(e){return typeof e=="object"&&e!==null&&"tipo"in e&&typeof e.tipo=="string"&&e.tipo in N_}function S_(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 $_(e){if(typeof e!="object"||e===null)return!1;const t=e.lineas;return Array.isArray(t)&&t.every(A_)}function A_(e){return typeof e!="object"||e===null?!1:typeof e.texto=="string"}function E_(e){return e==="nuevo"||e==="modificado"||e==="borrado"?e:void 0}function D_(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 z_(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 T_(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string"&&typeof t.descripcion=="string"&&Tb(t.autenticacion)}function M_(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 L_(e){const t=e;return typeof t=="object"&&t!==null&&typeof t.nombre=="string"}function I_(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(L_).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 P_(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 B3(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 R_(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 Rp(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function B0(e){const t=typeof e=="object"&&e!==null?e:{};return{entrada:Rp(t.entrada),salida:Rp(t.salida),cache:Rp(t.cache)}}function Lb(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,...B0(r)})}return Object.keys(t).length===0?void 0:t}function q_(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t=e,n=Lb(t.porModelo);return{modelo:B0(t.modelo),externo:B0(t.externo),...n===void 0?{}:{porModelo:n}}}function F_(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.titulo=="string")}function gp(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.nombre=="string")}function U3(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function O_(){let e=C_;const t=[],n=r=>{e={...e,...r};for(const a of t)a()};return{leer:()=>e,aplicar(r){var i,l,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(!fp(g))return;n({actos:[...e.actos,g]});return}case"sustitucion":{const g=r.acto;if(!fp(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(fp))return;n({actos:[...g]});return}case"mirada":{const g=r,_=g.tarea,j=g.via,C=g.actos;if(typeof _!="string"||_===""||!Array.isArray(C)||!C.every(fp))return;if(j==="todos"){n({mirada:{tarea:_,actos:[...C]}});return}const S=e.mirada;if(S===void 0||S.tarea!==_)return;if(j==="alta"){n({mirada:{tarea:_,actos:[...S.actos,...C]}});return}if(j!=="sustitucion")return;n({mirada:{tarea:_,actos:S.actos.length===0?[...C]:[...S.actos.slice(0,-1),...C]}});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,...$_(g.decision)?{decision:{lineas:g.decision.lineas.map(_=>{const j=E_(_.cambio);return{texto:_.texto,...j===void 0?{}:{cambio:j},...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(!S_(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(j=>typeof j=="object"&&j!==null&&typeof j.id=="string"&&typeof j.nombre=="string").map(j=>({id:j.id,nombre:j.nombre,...typeof j.compartido=="boolean"?{compartido:j.compartido}:{},...typeof j.ultimoAcceso=="string"?{ultimoAcceso:j.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,j=Array.isArray(_==null?void 0:_.niveles)?_.niveles.filter(A=>typeof A=="string"&&v_.includes(A)):[],C=j.length===0?void 0:{niveles:j,...typeof(_==null?void 0:_.actual)=="string"&&j.includes(_.actual)?{actual:_.actual}:{},...typeof(_==null?void 0:_.nota)=="string"?{nota:_.nota}:{}},S=g.proveedores.filter(P_).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,...C===void 0?{}:{esfuerzo:C}}});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,j=typeof _=="object"&&_!==null&&typeof _.avd=="string"&&typeof _.ok=="boolean"&&typeof _.detalle=="string"?_:void 0,C=g.informe;if(C==null||typeof C!="object"||!Array.isArray(C.herramientas)||!Array.isArray(C.dispositivos)||!Array.isArray(C.avds)||typeof C.sistema!="string"||typeof C.medido!="string")return;n({dispositivos:{sistema:C.sistema,medido:C.medido,avds:C.avds.filter(S=>typeof S=="string"),recetas:(Array.isArray(C.recetas)?C.recetas:[]).filter(S=>typeof S=="object"&&S!==null&&typeof S.id=="string"&&Array.isArray(S.pasos)).map(w_),herramientas:C.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:C.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:x_(g.ajustes),arranqueDeEmulador:j,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(D_).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(z_).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(T_).map(_=>({id:_.id,nombre:_.nombre,descripcion:_.descripcion,autenticacion:_.autenticacion})),conectores:g.conectores.filter(M_).map(_=>{const j=I_(_.prueba);return{id:_.id,estado:_.estado,...j===void 0?{}:{prueba:j},..._.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"remoto":{const g=r,_=g.via,j=_==="servidor"||_==="ngrok"?{via:_}:{},C=j_(g.ngrok),S={...j,...typeof g.habilitado=="boolean"?{habilitado:g.habilitado}:{},...g.porEntorno===!0?{porEntorno:!0}:{},...C===void 0?{}:{ngrok:C}},A=g.estado;A==="apagada"||A==="abriendo"?n({remoto:{estado:A,...S}}):(A==="activa"||A==="reconectando")&&typeof g.url=="string"?n({remoto:{estado:A,url:g.url,moviles:typeof g.moviles=="number"?g.moviles:0,...S}}):A==="reconectando"&&g.url===void 0?n({remoto:{estado:"reconectando",moviles:typeof g.moviles=="number"?g.moviles:0,...S}}):A==="error"&&typeof g.motivo=="string"&&n({remoto:{estado:"error",motivo:g.motivo,...S}});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"dispositivoPorDefecto":{const g=r.dispositivo;n({dispositivoPorDefecto:hp(g)?{elegido:g}:{}});return}case"mudanzaDeWorkspace":{const g=r,_=g.progreso,j=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(M=>typeof M=="string"):[];typeof j=="object"&&j!==null&&j.estado==="hecho"&&typeof j.mudadas=="number"?n({mudanzaDeWorkspace:{resultado:{estado:"hecho",mudadas:j.mudadas,restos:S(j.restos),avisos:S(j.avisos)}}}):typeof j=="object"&&j!==null&&j.estado==="rechazado"&&typeof j.motivo=="string"&&n({mudanzaDeWorkspace:{resultado:{estado:"rechazado",motivo:j.motivo}}});return}case"carpetaElegida":{const g=r,_=typeof g.ruta=="string"?g.ruta:void 0,j=(((i=e.carpetaElegida)==null?void 0:i.n)??0)+1;n({carpetaElegida:_===void 0?{n:j}:{n:j,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(j=>typeof j=="object"&&j!==null).map(j=>({id:String(j.id??""),proyecto:String(j.proyecto??""),proyectoNombre:String(j.proyectoNombre??""),titulo:String(j.titulo??""),peticion:String(j.peticion??""),encargo:String(j.encargo??""),estado:_.find(C=>C===j.estado)??"nuevo",creada:String(j.creada??""),adjuntos:Array.isArray(j.adjuntos)?j.adjuntos.filter(C=>typeof C=="object"&&C!==null).map(C=>({nombre:String(C.nombre??""),bytes:Number(C.bytes??0),...typeof C.mime=="string"?{mime:C.mime}:{}})):[],...typeof j.motivo=="string"?{motivo:j.motivo}:{},...typeof j.sesion=="string"?{sesion:j.sesion}:{},...typeof j.tras=="string"?{tras:j.tras}:{},...typeof j.empezada=="string"?{empezada:j.empezada}:{},...typeof j.acabada=="string"?{acabada:j.acabada}:{},...Array.isArray(j.autorizadas)?{autorizadas:j.autorizadas.filter(C=>typeof C=="string")}:{},...Array.isArray(j.feedback)?{feedback:j.feedback.filter(C=>typeof C=="object"&&C!==null).map(C=>({texto:String(C.texto??""),creado:String(C.creado??""),consumido:C.consumido===!0}))}:{},...R_(j.veredicto),...j.terminadaAMano===!0?{terminadaAMano:!0}:{}})).filter(j=>j.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(B3).map(j=>({...j}));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(B3).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 _=Xx(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,_=Ax(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=Tx(r),{error:_,borrador:j,cierre:C,cerrado:S,...A}=g;if(Object.keys(g).length===0)return;const M=e.gestor??{},L={...M.errores??{}},z=[...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"],...j===void 0?[]:["empezar"],...A.transiciones===void 0?[]:["transiciones"],...C===void 0?[]:["borradorDeCierre"],...S===void 0?[]:["cerrar"]];for(const re of z)delete L[re];_!==void 0&&(L[_.accion]={motivo:_.motivo,..._.clave===void 0?{}:{clave:_.clave},..._.texto===void 0?{}:{texto:_.texto},..._.pedido===void 0?{}:{pedido:_.pedido}});const P=re=>re===void 0?void 0:`${re.conector}|${re.sitio}|${re.proyecto}`,H=A.estado!==void 0&&M.estado!==void 0&&P(M.estado.vinculo)!==P(A.estado.vinculo),{pendientes:R,ficha:F,transiciones:U,...Z}=M;n({gestor:{...H?Z:M,...A,...j===void 0?{}:{borrador:{...j,id:(((l=M.borrador)==null?void 0:l.id)??0)+1}},...C===void 0?{}:{cierre:{...C,id:(((u=M.cierre)==null?void 0:u.id)??0)+1}},...S===void 0?{}:{cerrado:{...S,id:(((d=M.cerrado)==null?void 0:d.id)??0)+1}},errores:L}});return}case"colecciones":{const g=r,_=Yx(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=i_(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,j=["corriendo","ok","fallo","cancelada","colgada"].find(C=>C===g.estado);if(typeof g.receta!="string"||typeof g.paso!="number"||j===void 0)return;n({instalacion:{receta:g.receta,paso:g.paso,titulo:typeof g.titulo=="string"?g.titulo:"",estado:j,lineas:Array.isArray(g.lineas)?g.lineas.filter(C=>typeof C=="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(C=>typeof C=="string"))return;const j=g.dispositivo;n({lanzable:{proyecto:g.proyecto,listo:g.listo,faltas:_,medido:g.medido,...typeof g.app=="string"?{app:g.app}:{},...hp(j)?{dispositivo:{id:j.id,nombre:j.nombre,plataforma:j.plataforma,clase:j.clase}}:{}}});return}case"lanzamiento":{const g=r,_=m_.find(A=>A===g.fase),j=h_.find(A=>A===g.estado);if(_===void 0||j===void 0||typeof g.ms!="number")return;const C=g.lineas;if(!Array.isArray(C))return;const S=g.dispositivo;n({lanzamiento:{fase:_,estado:j,lineas:C.filter(A=>typeof A=="string"),ms:g.ms,...typeof g.proyecto=="string"?{proyecto:g.proyecto}:{},...hp(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,_=Lb(g.porModelo),j=typeof g.ventana=="object"&&g.ventana!==null?g.ventana:{},C=typeof j.tope=="number"&&Number.isFinite(j.tope)&&j.tope>0?j.tope:void 0;n({consumo:{modelo:B0(g.modelo),externo:B0(g.externo),ventana:{usado:Rp(j.usado),...C===void 0?{}:{tope:C}},..._===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(L=>typeof L=="string"&&k_.has(L))||!gp(g.proveedores)||!gp(g.proyectos))return;const _=g.proyectos.map(L=>{const z=L.sesiones;return{id:L.id,nombre:L.nombre,...F_(z)?{sesiones:z.map(P=>{const H=q_(P.consumo);return{id:P.id,titulo:P.titulo,...typeof P.ultimoTurno=="string"?{ultimoTurno:P.ultimoTurno}:{},...P.deTarea===!0?{deTarea:!0}:{},...P.trabajando===!0?{trabajando:!0}:{},...H===void 0?{}:{consumo:H},...typeof P.ticket=="string"&&P.ticket!==""?{ticket:P.ticket}:{},...typeof P.ticket=="string"&&P.ticket!==""&&typeof P.ticketConector=="string"&&P.ticketConector!==""?{ticketConector:P.ticketConector}:{}}})}:{},...L.local===!0?{local:!0}:{},...(P=>typeof P=="string"&&P!==""?{rama:P}:{})(L.rama),...L.icono===!0?{icono:!0}:{},...L.trabajando===!0?{trabajando:!0}:{},...typeof L.compartido=="boolean"?{compartido:L.compartido}:{},...typeof L.ultimoAcceso=="string"?{ultimoAcceso:L.ultimoAcceso}:{}}});if(!Array.isArray(g.entornos)||!g.entornos.every(L=>typeof(L==null?void 0:L.url)=="string")||!gp(g.entornos))return;const j=Array.isArray(g.registrados)&&g.registrados.every(L=>typeof(L==null?void 0:L.url)=="string")&&gp(g.registrados)?g.registrados.map(L=>({id:L.id,nombre:L.nombre,url:L.url,...Array.isArray(L.proyectos)&&L.proyectos.every(z=>typeof z=="string")?{proyectos:L.proyectos}:{},...Array.isArray(L.fijados)&&L.fijados.every(z=>typeof z=="string")?{fijados:L.fijados}:{},...typeof L.copias=="number"&&Number.isInteger(L.copias)&&L.copias>=0?{copias:L.copias}:{}})):[];if(!Array.isArray(g.ramas)||!g.ramas.every(L=>typeof L=="string")||typeof g.proyectoAbierto!="boolean")return;const S=(typeof g.sesionActiva=="string"?g.sesionActiva:void 0)!==((b=e.alta)==null?void 0:b.sesionActiva),M=(typeof g.proyectoActivo=="string"?g.proyectoActivo:void 0)!==((y=e.alta)==null?void 0:y.proyectoActivo);n({...M?{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:j,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}:{},...hp(g.dispositivoActivo)?{dispositivoActivo:g.dispositivoActivo}:{},...g.historica===!0?{historica:!0}:{},...g.modoDeEscritura==="supervisado"||g.modoDeEscritura==="autonomo"?{modoDeEscritura:g.modoDeEscritura}:{},...__(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)||!U3(g.ficheros)||!U3(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,remoto: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 B_=e=>new EventSource(e);function U_(e){return Math.min(1e3*2**e,3e4)}function H_(){return`c${Date.now().toString(36)}${Math.random().toString(36).slice(2,8)}`}async function kh(e,t,n){var l;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 i=await((l=a==null?void 0:a.text)==null?void 0:l.call(a).catch(()=>""))??"";return{ok:!1,motivo:i.trim()===""?`el servidor contestó ${String((a==null?void 0:a.status)??"?")}`:i.trim()}}function V_(e,t={}){const n=t.fabricaDeEventos??B_,r=t.fetch??((y,g)=>fetch(y,g)),a=t.temporizador??((y,g)=>setTimeout(y,g)),i=t.cancelarTemporizador??(y=>clearTimeout(y));let l=0,u,d,m=!1;const f=t.idDeCliente??H_(),h=()=>{const y=n(`/eventos?cliente=${f}`);d=y,y.onopen=()=>{l=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=U_(l);l+=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&&i(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 j=`/adjunto?tarea=${encodeURIComponent(y)}&nombre=${encodeURIComponent(g)}`,C=await kh(r,j,_);return C.ok?{ok:!0}:{ok:!1,motivo:C.motivo}},async subirAdjuntoDeSesion(y,g){var A,M;const _=`/adjunto?para=sesion&nombre=${encodeURIComponent(y)}`,j=await kh(r,_,g);if(!j.ok)return{ok:!1,motivo:j.motivo};let C;try{C=await((M=(A=j.respuesta)==null?void 0:A.json)==null?void 0:M.call(A))}catch{return{ok:!1,motivo:"el servidor no contestó con el nombre del adjunto"}}const S=C==null?void 0:C.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 j=`/skill?nombre=${encodeURIComponent(y)}&ambito=${encodeURIComponent(g)}`,C=await kh(r,j,_);return C.ok?{ok:!0}:{ok:!1,motivo:C.motivo}}}}const G_="modulepreload",W_=function(e,t){return new URL(e,t).href},H3={},pn=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=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=l(n.map(f=>{if(f=W_(f,r),f in H3)return;H3[f]=!0;const h=f.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(!!r)for(let _=u.length-1;_>=0;_--){const j=u[_];if(j.href===f&&(!h||j.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${b}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":G_,h||(g.as="script"),g.crossOrigin="",g.href=f,m&&g.setAttribute("nonce",m),document.head.appendChild(g),h)return new Promise((_,j)=>{g.addEventListener("load",_),g.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return a.then(l=>{for(const u of l||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};function Ib(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=Ib(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Ib(e))&&(r&&(r+=" "),r+=t);return r}var Z_=Eb(),mn=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Q_(e){return n2(e)}function n2(e){return Array.isArray(e)?X_(e):e instanceof RegExp?e:typeof e=="object"?Y_(e):e}function X_(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=n2(e[n]);return t}function Y_(e){let t={};for(let n in e)t[n]=n2(e[n]);return t}function Pb(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Rb(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Rb(e.substring(0,e.length-1)):e.substr(~t+1)}var Nh=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vp=class{static hasCaptures(e){return e===null?!1:(Nh.lastIndex=0,Nh.test(e))}static replaceCaptures(e,t,n){return e.replace(Nh,(r,a,i,l)=>{let u=n[parseInt(a||i,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function qb(e,t){return e<t?-1:e>t?1:0}function Fb(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 i=qb(e[a],t[a]);if(i!==0)return i}return 0}return n-r}function V3(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 Ob(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Bb=class{constructor(e){de(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}},Zp=class{constructor(e,t,n){de(this,"_cachedMatchRoot",new Bb(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ew(e),t)}static createFromParsedTheme(e,t){return nw(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=>K_(e.parent,a.parentScopes));return r?new Ub(r.fontStyle,r.foreground,r.background):null}},Sh=class qp{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new qp(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new qp(n,t[r]);return n}push(t){return new qp(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 K_(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&&!J_(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function J_(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ub=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ew(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,i=t.length;a<i;a++){let l=t[a];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let h=l.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),u=h.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let h=l.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 l.settings.foreground=="string"&&V3(l.settings.foreground)&&(m=l.settings.foreground);let f=null;typeof l.settings.background=="string"&&V3(l.settings.background)&&(f=l.settings.background);for(let h=0,b=u.length;h<b;h++){let g=u[h].trim().split(" "),_=g[g.length-1],j=null;g.length>1&&(j=g.slice(0,g.length-1),j.reverse()),n[r++]=new tw(_,j,a,d,m,f)}}return n}var tw=class{constructor(e,t,n,r,a,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=i}},qr=(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))(qr||{});function nw(e,t){e.sort((d,m)=>{let f=qb(d.scope,m.scope);return f!==0||(f=Fb(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 i=new rw(t),l=new Ub(n,i.getId(r),i.getId(a)),u=new ow(new Qf(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,i.getId(f.foreground),i.getId(f.background))}return new Zp(i,l,u)}var rw=class{constructor(e){de(this,"_isFrozen");de(this,"_lastColorId");de(this,"_id2color");de(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)}},aw=Object.freeze([]),Qf=class Hb{constructor(t,n,r,a,i){de(this,"scopeDepth");de(this,"parentScopes");de(this,"fontStyle");de(this,"foreground");de(this,"background");this.scopeDepth=t,this.parentScopes=n||aw,this.fontStyle=r,this.foreground=a,this.background=i}clone(){return new Hb(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)}},ow=class Xf{constructor(t,n=[],r={}){de(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 i=n.parentScopes[a].length-t.parentScopes[r].length;if(i!==0)return i;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,i;if(r===-1?(a=t,i=""):(a=t.substring(0,r),i=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Xf._cmpBySpecificity),n}insert(t,n,r,a,i,l){if(n===""){this._doInsertHere(t,r,a,i,l);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 Xf(this._mainRule.clone(),Qf.cloneArr(this._rulesWithParentScopes)),this._children[d]=f),f.insert(t+1,m,r,a,i,l)}_doInsertHere(t,n,r,a,i){if(n===null){this._mainRule.acceptOverwrite(t,r,a,i);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(Fb(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,i);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Qf(t,n,r,a,i))}},Jl=class so{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=so.getLanguageId(t),r=so.getTokenType(t),a=so.getFontStyle(t),i=so.getForeground(t),l=so.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:i,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,i,l,u){let d=so.getLanguageId(t),m=so.getTokenType(t),f=so.containsBalancedBrackets(t)?1:0,h=so.getFontStyle(t),b=so.getForeground(t),y=so.getBackground(t);return n!==0&&(d=n),r!==8&&(m=r),a!==null&&(f=a?1:0),i!==-1&&(h=i),l!==0&&(b=l),u!==0&&(y=u),(d<<0|m<<8|f<<10|h<<11|b<<15|y<<24)>>>0}};function Qp(e,t){const n=[],r=sw(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=l();if(n.push({matcher:m,priority:d}),a!==",")break;a=r.next()}return n;function i(){if(a==="-"){a=r.next();const d=i();return m=>!!d&&!d(m)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(G3(a)){const d=[];do d.push(a),a=r.next();while(G3(a));return m=>t(d,m)}return null}function l(){const d=[];let m=i();for(;m;)d.push(m),m=i();return f=>d.every(h=>h(f))}function u(){const d=[];let m=l();for(;m&&(d.push(m),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");m=l()}return f=>d.some(h=>h(f))}}function G3(e){return!!e&&!!e.match(/[\w\.:]+/)}function sw(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 Vb(e){typeof e.dispose=="function"&&e.dispose()}var U0=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},iw=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},lw=class{constructor(){de(this,"_references",[]);de(this,"_seenReferenceKeys",new Set);de(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))}},cw=class{constructor(e,t){de(this,"seenFullScopeRequests",new Set);de(this,"seenPartialScopeRequests",new Set);de(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new U0(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new lw;for(const n of e)uw(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof U0){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 uw(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 i=n.lookup(t);e instanceof U0?Fp({baseGrammar:i,selfGrammar:a},r):Yf(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new U0(u))}function Yf(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Xp([r],t,n)}}function Fp(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Xp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Xp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Xp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?Pb({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Xp(r.patterns,{...t,repository:a},n);const i=r.include;if(!i)continue;const l=Gb(i);switch(l.kind){case 0:Fp({...t,selfGrammar:t.baseGrammar},n);break;case 1:Fp(t,n);break;case 2:Yf(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};l.kind===4?Yf(l.ruleName,d,n):Fp(d,n)}else l.kind===4?n.add(new iw(l.scopeName,l.ruleName)):n.add(new U0(l.scopeName));break}}}var dw=class{constructor(){de(this,"kind",0)}},pw=class{constructor(){de(this,"kind",1)}},mw=class{constructor(e){de(this,"kind",2);this.ruleName=e}},hw=class{constructor(e){de(this,"kind",3);this.scopeName=e}},fw=class{constructor(e,t){de(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Gb(e){if(e==="$base")return new dw;if(e==="$self")return new pw;const t=e.indexOf("#");if(t===-1)return new hw(e);if(t===0)return new mw(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new fw(n,r)}}var gw=/\\(\d+)/,W3=/\\(\d+)/g,vw=-1,Wb=-2;var nd=class{constructor(e,t,n,r){de(this,"$location");de(this,"id");de(this,"_nameIsCapturing");de(this,"_name");de(this,"_contentNameIsCapturing");de(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=vp.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=vp.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Rb(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:vp.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vp.replaceCaptures(this._contentName,e,t)}},bw=class extends nd{constructor(t,n,r,a,i){super(t,n,r,a);de(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}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!")}},yw=class extends nd{constructor(t,n,r,a,i){super(t,n,r,null);de(this,"_match");de(this,"captures");de(this,"_cachedCompiledPatterns");this._match=new H0(a,this.id),this.captures=i,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 V0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Z3=class extends nd{constructor(t,n,r,a,i){super(t,n,r,a);de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.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 V0,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kf=class extends nd{constructor(t,n,r,a,i,l,u,d,m,f){super(t,n,r,a);de(this,"_begin");de(this,"beginCaptures");de(this,"_end");de(this,"endHasBackReferences");de(this,"endCaptures");de(this,"applyEndPatternLast");de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");this._begin=new H0(i,this.id),this.beginCaptures=l,this._end=new H0(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 V0;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}},Yp=class extends nd{constructor(t,n,r,a,i,l,u,d,m){super(t,n,r,a);de(this,"_begin");de(this,"beginCaptures");de(this,"whileCaptures");de(this,"_while");de(this,"whileHasBackReferences");de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");de(this,"_cachedCompiledWhilePatterns");this._begin=new H0(i,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new H0(u,Wb),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 V0;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 V0,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Zb=class Pr{static createCaptureRule(t,n,r,a,i){return t.registerRule(l=>new bw(n,l,r,a,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new yw(t.$vscodeTextmateLocation,t.id,t.name,t.match,Pr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Pb({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new Z3(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Pr._compilePatterns(i,n,r))}return t.while?new Yp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Pr._compileCaptures(t.whileCaptures||t.captures,n,r),Pr._compilePatterns(t.patterns,n,r)):new Kf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Pr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Pr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let i=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);u>i&&(i=u)}for(let l=0;l<=i;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let d=0;t[l].patterns&&(d=Pr.getCompiledRuleId(t[l],n,r)),a[u]=Pr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let i=0,l=t.length;i<l;i++){const u=t[i];let d=-1;if(u.include){const m=Gb(u.include);switch(m.kind){case 0:case 1:d=Pr.getCompiledRuleId(r[u.include],n,r);break;case 2:let f=r[m.ruleName];f&&(d=Pr.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=Pr.getCompiledRuleId(g,n,y.repository))}else d=Pr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else d=Pr.getCompiledRuleId(u,n,r);if(d!==-1){const m=n.getRule(d);let f=!1;if((m instanceof Z3||m instanceof Kf||m instanceof Yp)&&m.hasMissingPatterns&&m.patterns.length===0&&(f=!0),f)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},H0=class Qb{constructor(t,n){de(this,"source");de(this,"ruleId");de(this,"hasAnchor");de(this,"hasBackReferences");de(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let a=0,i=[],l=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const m=t.charAt(u+1);m==="z"?(i.push(t.substring(a,u)),i.push("$(?!\\n)(?<!\\n)"),a=u+2):(m==="A"||m==="G")&&(l=!0),u++}this.hasAnchor=l,a===0?this.source=t:(i.push(t.substring(a,r)),this.source=i.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=gw.test(this.source):this.hasBackReferences=!1}clone(){return new Qb(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 W3.lastIndex=0,this.source.replace(W3,(a,i)=>Ob(r[parseInt(i,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=[],i,l,u,d;for(i=0,l=this.source.length;i<l;i++)u=this.source.charAt(i),t[i]=u,n[i]=u,r[i]=u,a[i]=u,u==="\\"&&i+1<l&&(d=this.source.charAt(i+1),d==="A"?(t[i+1]="",n[i+1]="",r[i+1]="A",a[i+1]="A"):d==="G"?(t[i+1]="",n[i+1]="G",r[i+1]="",a[i+1]="G"):(t[i+1]=d,n[i+1]=d,r[i+1]=d,a[i+1]=d),i++);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}},V0=class{constructor(){de(this,"_items");de(this,"_hasAnchors");de(this,"_cached");de(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 Q3(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 Q3(e,r,this._items.map(a=>a.ruleId))}},Q3=class{constructor(e,t,n){de(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}},$h=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ni,xw=(ni=class{constructor(t,n){de(this,"_defaultAttributes");de(this,"_embeddedLanguagesMatcher");de(this,"_getBasicScopeAttributes",new Bb(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new $h(n,r)}));this._defaultAttributes=new $h(t,8),this._embeddedLanguagesMatcher=new _w(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?ni._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(ni.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!")}},de(ni,"_NULL_SCOPE_METADATA",new $h(0,0)),de(ni,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ni),_w=class{constructor(e){de(this,"values");de(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Ob(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])}},X3=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Xb(e,t,n,r,a,i,l,u){const d=t.content.length;let m=!1,f=-1;if(l){const y=ww(e,t,n,r,a,i);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 X3(a,!0);b()}return new X3(a,!1);function b(){const y=jw(e,t,n,r,a,f);if(!y){i.produce(a,d),m=!0;return}const g=y.captureIndices,_=y.matchedRuleId,j=g&&g.length>0?g[0].end>r:!1;if(_===vw){const C=a.getRule(e);i.produce(a,g[0].start),a=a.withContentNameScopesList(a.nameScopesList),z0(e,t,n,a,i,C.endCaptures,g),i.produce(a,g[0].end);const S=a;if(a=a.parent,f=S.getAnchorPos(),!j&&S.getEnterPos()===r){a=S,i.produce(a,d),m=!0;return}}else{const C=e.getRule(_);i.produce(a,g[0].start);const S=a,A=C.getName(t.content,g),M=a.contentNameScopesList.pushAttributed(A,e);if(a=a.push(_,r,f,g[0].end===d,null,M,M),C instanceof Kf){const L=C;z0(e,t,n,a,i,L.beginCaptures,g),i.produce(a,g[0].end),f=g[0].end;const z=L.getContentName(t.content,g),P=M.pushAttributed(z,e);if(a=a.withContentNameScopesList(P),L.endHasBackReferences&&(a=a.withEndRule(L.getEndWithResolvedBackReferences(t.content,g))),!j&&S.hasSameRuleAs(a)){a=a.pop(),i.produce(a,d),m=!0;return}}else if(C instanceof Yp){const L=C;z0(e,t,n,a,i,L.beginCaptures,g),i.produce(a,g[0].end),f=g[0].end;const z=L.getContentName(t.content,g),P=M.pushAttributed(z,e);if(a=a.withContentNameScopesList(P),L.whileHasBackReferences&&(a=a.withEndRule(L.getWhileWithResolvedBackReferences(t.content,g))),!j&&S.hasSameRuleAs(a)){a=a.pop(),i.produce(a,d),m=!0;return}}else if(z0(e,t,n,a,i,C.captures,g),i.produce(a,g[0].end),a=a.pop(),!j){a=a.safePop(),i.produce(a,d),m=!0;return}}g[0].end>r&&(r=g[0].end,n=!1)}}function ww(e,t,n,r,a,i){let l=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const m=d.getRule(e);m instanceof Yp&&u.push({rule:m,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:m,findOptions:f}=Nw(d.rule,e,d.stack.endRule,n,r===l),h=m.findNextMatchSync(t,r,f);if(h){if(h.ruleId!==Wb){a=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(i.produce(d.stack,h.captureIndices[0].start),z0(e,t,n,d.stack,i,d.rule.whileCaptures,h.captureIndices),i.produce(d.stack,h.captureIndices[0].end),l=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:l,isFirstLine:n}}function jw(e,t,n,r,a,i){const l=Cw(e,t,n,r,a,i),u=e.getInjections();if(u.length===0)return l;const d=kw(u,e,t,n,r,a,i);if(!d)return l;if(!l)return d;const m=l.captureIndices[0].start,f=d.captureIndices[0].start;return f<m||d.priorityMatch&&f===m?d:l}function Cw(e,t,n,r,a,i){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=Yb(l,e,a.endRule,n,r===i),m=u.findNextMatchSync(t,r,d);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function kw(e,t,n,r,a,i,l){let u=Number.MAX_VALUE,d=null,m,f=0;const h=i.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:j,findOptions:C}=Yb(_,t,null,r,a===l),S=j.findNextMatchSync(n,a,C);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 Yb(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function Nw(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function z0(e,t,n,r,a,i,l){if(i.length===0)return;const u=t.content,d=Math.min(i.length,l.length),m=[],f=l[0].end;for(let h=0;h<d;h++){const b=i[h];if(b===null)continue;const y=l[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,l),j=r.contentNameScopesList.pushAttributed(_,e),C=b.getContentName(u,l),S=j.pushAttributed(C,e),A=r.push(b.retokenizeCapturedWithRuleId,y.start,-1,!1,null,j,S),M=e.createOnigString(u.substring(0,y.end));Xb(e,M,n&&y.start===0,y.start,A,a,!1,0),Vb(M);continue}const g=b.getName(u,l);if(g!==null){const j=(m.length>0?m[m.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);m.push(new Sw(j,y.end))}}for(;m.length>0;)a.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var Sw=class{constructor(e,t){de(this,"scopes");de(this,"endPos");this.scopes=e,this.endPos=t}};function $w(e,t,n,r,a,i,l,u){return new Ew(e,t,n,r,a,i,l,u)}function Y3(e,t,n,r,a){const i=Qp(t,Kp),l=Zb.getCompiledRuleId(n,r,a.repository);for(const u of i)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:a,priority:u.priority})}function Kp(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(Aw(t[a],r))return n=a+1,!0;return!1})}function Aw(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 Ew=class{constructor(e,t,n,r,a,i,l,u){de(this,"_rootId");de(this,"_lastRuleId");de(this,"_ruleId2desc");de(this,"_includedGrammars");de(this,"_grammarRepository");de(this,"_grammar");de(this,"_injections");de(this,"_basicScopeAttributesProvider");de(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=u,this._basicScopeAttributesProvider=new xw(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=K3(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const m=Qp(d,Kp);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 l in a)Y3(t,l,a[l],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const d=u.injectionSelector;d&&Y3(t,d,u,this,u)}})}return t.sort((a,i)=>a.priority-i.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]=K3(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=Zb.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Jf.NULL){a=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),h=Jl.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=I0.createRootAndLookUpScopeName(b,h,this):y=I0.createRoot("unknown",h),t=new Jf(null,this._rootId,-1,-1,!1,null,y,y)}else a=!1,t.reset();e=e+`
|
|
43
|
-
`;const i=this.createOnigString(e),l=i.content.length,u=new zw(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=Xb(this,i,a,0,t,u,!0,r);return Vb(i),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function K3(e,t){return e=Q_(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 I0=class ms{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 i of n)a=Sh.push(a,i.scopeNames),r=new ms(r,a,i.encodedTokenAttributes);return r}static createRoot(t,n){return new ms(null,new Sh(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),i=new Sh(null,t),l=r.themeProvider.themeMatch(i),u=ms.mergeAttributes(n,a,l);return new ms(null,i,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ms.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,i=0,l=0;return r!==null&&(a=r.fontStyle,i=r.foregroundId,l=r.backgroundId),Jl.set(t,n.languageId,n.tokenType,null,a,i,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ms._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const i of r)a=ms._pushAttributed(a,i,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),i=t.scopePath.push(n),l=r.themeProvider.themeMatch(i),u=ms.mergeAttributes(t.tokenAttributes,a,l);return new ms(t,i,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}},lo,Jf=(lo=class{constructor(t,n,r,a,i,l,u,d){de(this,"_stackElementBrand");de(this,"_enterPos");de(this,"_anchorPos");de(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=l,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:lo._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?I0.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(){lo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,i,l,u){return new lo(this,t,n,r,a,i,l,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 lo(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=I0.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new lo(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,I0.fromExtension(r,n.contentNameScopesList))}},de(lo,"NULL",new lo(null,0,0,0,!1,null,null,null)),lo),Dw=class{constructor(e,t){de(this,"balancedBracketScopes");de(this,"unbalancedBracketScopes");de(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Qp(n,Kp).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Qp(n,Kp).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}},zw=class{constructor(e,t,n,r){de(this,"_emitBinaryTokens");de(this,"_lineText");de(this,"_tokens");de(this,"_binaryTokens");de(this,"_lastTokenEndIndex");de(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,i=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const u of this._tokenTypeOverrides)u.matcher(l)&&(a=Jl.set(a,0,u.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(l))}if(i&&(a=Jl.set(a,0,8,i,-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}},Tw=class{constructor(e,t){de(this,"_grammars",new Map);de(this,"_rawGrammars",new Map);de(this,"_injectionGrammars",new Map);de(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 i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,$w(e,i,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},Mw=class{constructor(t){de(this,"_options");de(this,"_syncRegistry");de(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Tw(Zp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Zp.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 Dw(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,i){const l=new cw(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,i)}_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,i=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,i)}},eg=Jf.NULL;function Jp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,i]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof i=="string"?n[a]=i:a===r&&Object.assign(n,i);return n}function Vi(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function Lw(e){return Array.isArray(e)?e:[e]}async function Kb(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Am(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Iw(e){return e==="ansi"||Am(e)}function Em(e){return e==="none"}function Pw(e){return Em(e)}const Rw=/(\r?\n)/g;function Dm(e,t=!1){var i;if(e.length===0)return[["",0]];const n=e.split(Rw);let r=0;const a=[];for(let l=0;l<n.length;l+=2){const u=t?n[l]+(n[l+1]||""):n[l];a.push([u,r]),r+=n[l].length,r+=((i=n[l+1])==null?void 0:i.length)||0}return a}const J3={light:"#333333",dark:"#bbbbbb"},ev={light:"#fffffe",dark:"#1e1e1e"},tv="__shiki_resolved";function r2(e){var u,d,m,f,h;if(e!=null&&e[tv])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"?J3.light:J3.dark),n||(n=t.type==="light"?ev.light:ev.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 i=new Map;function l(b){var g;if(i.has(b))return i.get(b);a+=1;const y=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(g=t.colorReplacements)!=null&&g[`#${y}`]?l(b):(i.set(b,y),y)}t.settings=t.settings.map(b=>{var j,C;const y=((j=b.settings)==null?void 0:j.foreground)&&!b.settings.foreground.startsWith("#"),g=((C=b.settings)==null?void 0:C.background)&&!b.settings.background.startsWith("#");if(!y&&!g)return b;const _={...b,settings:{...b.settings}};if(y){const S=l(b.settings.foreground);t.colorReplacements[S]=b.settings.foreground,_.settings.foreground=S}if(g){const S=l(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=l(t.colors[b]);t.colorReplacements[y]=t.colors[b],t.colors[b]=y}return Object.defineProperty(t,tv,{enumerable:!1,writable:!1,value:!0}),t}async function qw(e){return[...new Set((await Promise.all(e.filter(t=>!Iw(t)).map(async t=>await Kb(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Fw(e){return(await Promise.all(e.map(async t=>Pw(t)?null:r2(await Kb(t))))).filter(t=>!!t)}function Jb(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 mn(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var Ow=class extends Mw{constructor(t,n,r,a={}){super(t);de(this,"_resolver");de(this,"_themes");de(this,"_langs");de(this,"_alias");de(this,"_resolvedThemes",new Map);de(this,"_resolvedGrammars",new Map);de(this,"_langMap",new Map);de(this,"_langGraph",new Map);de(this,"_textmateThemeCache",new WeakMap);de(this,"_loadedThemesCache",null);de(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=r2(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=Zp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Jb(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var i,l,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,(l=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||l.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,i])=>!i);if(r.length){const a=n.filter(([i,l])=>{var u;return l?(u=l.embeddedLanguages||l.embeddedLangs)==null?void 0:u.some(d=>r.map(([m])=>m).includes(d)):!1}).filter(i=>!r.includes(i));throw new mn(`Missing languages ${r.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of n)this._resolver.addLanguage(i);for(const[a,i]of n)this.loadLanguage(i)}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))}},Bw=class{constructor(e,t){de(this,"_langs",new Map);de(this,"_scopeToLang",new Map);de(this,"_injections",new Map);de(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 w0=0;function Uw(e){w0+=1,e.warnings!==!1&&w0>=10&&w0%10===0&&console.warn(`[Shiki] ${w0} 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 mn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(r2),a=new Ow(new Bw(e.engine,n),r,n,e.langAlias);let i;function l(S){return Jb(S,e.langAlias)}function u(S){j();const A=a.getGrammar(typeof S=="string"?S:S.name);if(!A)throw new mn(`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"};j();const A=a.getTheme(S);if(!A)throw new mn(`Theme \`${S}\` not found, you may need to load it first`);return A}function m(S){j();const A=d(S);return i!==S&&(a.setTheme(A),i=S),{theme:A,colorMap:a.getColorMap()}}function f(){return j(),a.getLoadedThemes()}function h(){return j(),a.getLoadedLanguages()}function b(...S){j(),a.loadLanguages(S.flat(1))}async function y(...S){return b(await qw(S))}function g(...S){j();for(const A of S.flat(1))a.loadTheme(A)}async function _(...S){return j(),g(await Fw(S))}function j(){if(t)throw new mn("Shiki instance has been disposed")}function C(){t||(t=!0,a.dispose(),w0-=1)}return{setTheme:m,getTheme:d,getLanguage:u,getLoadedThemes:f,getLoadedLanguages:h,resolveLangAlias:l,loadLanguage:y,loadLanguageSync:b,loadTheme:_,loadThemeSync:g,dispose:C,[Symbol.dispose]:C}}const e7=new WeakMap;function zm(e,t){e7.set(e,t)}function G0(e){return e7.get(e)}var Tm=class t7{constructor(...t){de(this,"_stacks",{});de(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 t7(Object.fromEntries(Lw(n).map(r=>[r,eg])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Hw(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Hw(e){const t=[],n=new Set;function r(a){var l;if(n.has(a))return;n.add(a);const i=(l=a==null?void 0:a.nameScopesList)==null?void 0:l.scopeName;i&&t.push(i),a.parent&&r(a.parent)}return r(e),t}function Vw(e,t){if(!(e instanceof Tm))throw new mn("Invalid grammar state");return e.getInternalStack(t)}const Gw=/,/,Ww=/ /;function n7(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(Am(e.resolveLangAlias(n.lang||"text"))||Em(r))return Dm(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:i}=e.setTheme(r),l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new mn(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(a.name))throw new mn(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Qw(t,l,a,i,n)}function Zw(...e){if(e.length===2)return G0(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=r;if(Am(a)||Em(i))throw new mn("Plain language does not have grammar state");if(a==="ansi")throw new mn("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(i),d=t.getLanguage(a);return new Tm(a2(n,d,l,u,r).stateStack,d.name,l.name)}function Qw(e,t,n,r,a){const i=a2(e,t,n,r,a),l=new Tm(i.stateStack,t.name,n.name);return zm(i.tokens,l),i.tokens}function a2(e,t,n,r,a){const i=Jp(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500,includeExplanation:d=!1}=a,m=Dm(e);let f=a.grammarState?Vw(a.grammarState,n.name)??eg:a.grammarContextCode!=null?a2(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:eg,h=[];const b=[];for(let y=0,g=m.length;y<g;y++){const[_,j]=m[y];if(_===""){h=[],b.push([]);continue}if(l>0&&_.length>=l){h=[],b.push([{content:_,offset:j,color:"",fontStyle:0}]);continue}let C,S,A;d&&d!=="tokenType"&&(C=t.tokenizeLine(_,f,u),S=C.tokens,A=0);const M=t.tokenizeLine2(_,f,u),L=M.tokens.length/2;for(let z=0;z<L;z++){const P=M.tokens[2*z],H=z+1<L?M.tokens[2*z+2]:_.length;if(P===H)continue;const R=M.tokens[2*z+1],F=Vi(r[Jl.getForeground(R)],i),U=Jl.getFontStyle(R),Z={content:_.substring(P,H),offset:j+P,color:F,fontStyle:U};if(d==="tokenType")Z.type=Jl.getTokenType(R);else if(d){const re=[];if(d!=="scopeName")for(const ee of n.settings){let ke;switch(typeof ee.scope){case"string":ke=ee.scope.split(Gw).map(_e=>_e.trim());break;case"object":ke=ee.scope;break;default:continue}re.push({settings:ee,selectors:ke.map(_e=>_e.split(Ww))})}Z.explanation=[];let le=0;for(;P+le<H;){const ee=S[A],ke=_.substring(ee.startIndex,ee.endIndex);le+=ke.length,Z.explanation.push({content:ke,scopes:d==="scopeName"?Xw(ee.scopes):Yw(re,ee.scopes)}),A+=1}}h.push(Z)}b.push(h),h=[],f=M.ruleStack}return{tokens:b,stateStack:f}}function Xw(e){return e.map(t=>({scopeName:t}))}function Yw(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const i=t[r];n[r]={scopeName:i,themeMatches:Jw(e,i,t.slice(0,r))}}return n}function nv(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Kw(e,t,n){if(!nv(e.at(-1),t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)nv(e[r],n[a])&&(r-=1),a-=1;return r===-1}function Jw(e,t,n){const r=[];for(const{selectors:a,settings:i}of e)for(const l of a)if(Kw(l,t,n)){r.push(i);break}return r}function r7(e,t,n,r=n7){const a=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})),i=a.map(m=>{const f=r(e,t,{...n,theme:m.theme});return{tokens:f,state:G0(f),theme:typeof m.theme=="string"?m.theme:m.theme.name}}),l=ej(...i.map(m=>m.tokens)),u=l[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),l.forEach((g,_)=>{const{content:j,explanation:C,offset:S,...A}=g[f][b];y.variants[a[_].color]=A}),y})),d=i[0].state?new Tm(Object.fromEntries(i.map(m=>{var f;return[m.theme,(f=m.state)==null?void 0:f.getInternalStack(m.theme)]})),i[0].state.lang):void 0;return d&&zm(u,d),u}function ej(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),i=t.map(()=>[]);t.forEach((d,m)=>d.push(i[m]));const l=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?(i[m].push(f),l[m]+=1,u[m]=a[m][l[m]]):(i[m].push({...f,content:f.content.slice(0,d)}),u[m]={...f,content:f.content.slice(d),offset:f.offset+d})}}}return t}const tj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class rd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rd.prototype.normal={};rd.prototype.property={};rd.prototype.space=void 0;function a7(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new rd(n,r,t)}function tg(e){return e.toLowerCase()}class ba{constructor(t,n){this.attribute=n,this.property=t}}ba.prototype.attribute="";ba.prototype.booleanish=!1;ba.prototype.boolean=!1;ba.prototype.commaOrSpaceSeparated=!1;ba.prototype.commaSeparated=!1;ba.prototype.defined=!1;ba.prototype.mustUseProperty=!1;ba.prototype.number=!1;ba.prototype.overloadedBoolean=!1;ba.prototype.property="";ba.prototype.spaceSeparated=!1;ba.prototype.space=void 0;let nj=0;const pt=sc(),Hn=sc(),ng=sc(),Ee=sc(),tn=sc(),ec=sc(),La=sc();function sc(){return 2**++nj}const rg=Object.freeze(Object.defineProperty({__proto__:null,boolean:pt,booleanish:Hn,commaOrSpaceSeparated:La,commaSeparated:ec,number:Ee,overloadedBoolean:ng,spaceSeparated:tn},Symbol.toStringTag,{value:"Module"})),Ah=Object.keys(rg);class o2 extends ba{constructor(t,n,r,a){let i=-1;if(super(t,n),rv(this,"space",a),typeof r=="number")for(;++i<Ah.length;){const l=Ah[i];rv(this,Ah[i],(r&rg[l])===rg[l])}}}o2.prototype.defined=!0;function rv(e,t,n){n&&(e[t]=n)}function mu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new o2(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[tg(r)]=r,n[tg(i.attribute)]=r}return new rd(t,n,e.space)}const o7=mu({properties:{ariaActiveDescendant:null,ariaAtomic:Hn,ariaAutoComplete:null,ariaBusy:Hn,ariaChecked:Hn,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:tn,ariaCurrent:null,ariaDescribedBy:tn,ariaDetails:null,ariaDisabled:Hn,ariaDropEffect:tn,ariaErrorMessage:null,ariaExpanded:Hn,ariaFlowTo:tn,ariaGrabbed:Hn,ariaHasPopup:null,ariaHidden:Hn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tn,ariaLevel:Ee,ariaLive:null,ariaModal:Hn,ariaMultiLine:Hn,ariaMultiSelectable:Hn,ariaOrientation:null,ariaOwns:tn,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Hn,ariaReadOnly:Hn,ariaRelevant:null,ariaRequired:Hn,ariaRoleDescription:tn,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Hn,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function s7(e,t){return t in e?e[t]:t}function i7(e,t){return s7(e,t.toLowerCase())}const rj=mu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ec,acceptCharset:tn,accessKey:tn,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alpha:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:tn,autoFocus:pt,autoPlay:pt,blocking:tn,capture:null,charSet:null,checked:pt,cite:null,className:tn,closedBy:null,colorSpace:null,cols:Ee,colSpan:Ee,command:null,commandFor:null,content:null,contentEditable:Hn,controls:pt,controlsList:tn,coords:Ee|ec,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:ng,draggable:Hn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:tn,height:Ee,hidden:ng,high:Ee,href:null,hrefLang:null,htmlFor:tn,httpEquiv:tn,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:tn,itemRef:tn,itemScope:pt,itemType:tn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:Ee,pattern:null,ping:tn,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:tn,required:pt,reversed:pt,rows:Ee,rowSpan:Ee,sandbox:tn,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootCustomElementRegistry:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shadowRootSerializable:pt,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Hn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:Hn,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tn,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Hn,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:pt,disablePictureInPicture:pt,disableRemotePlayback:pt,exportParts:ec,part:tn,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:i7}),aj=mu({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:La,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:tn,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:ec,g2:ec,glyphName:ec,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:La,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:La,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:La,rev:La,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:La,requiredFeatures:La,requiredFonts:La,requiredFormats:La,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:La,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:La,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:La,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:s7}),l7=mu({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()}}),c7=mu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i7}),u7=mu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),oj=/[A-Z]/g,av=/-[a-z]/g,sj=/^data[-\w.:]+$/i;function ij(e,t){const n=tg(t);let r=t,a=ba;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sj.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(av,cj);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!av.test(i)){let l=i.replace(oj,lj);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=o2}return new a(r,t)}function lj(e){return"-"+e.toLowerCase()}function cj(e){return e.charAt(1).toUpperCase()}const uj=a7([o7,rj,l7,c7,u7],"html"),d7=a7([o7,aj,l7,c7,u7],"svg"),ov={}.hasOwnProperty;function dj(e,t){const n=t||{};function r(a,...i){let l=r.invalid;const u=r.handlers;if(a&&ov.call(a,e)){const d=String(a[e]);l=ov.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const pj=/["&'<>`]/g,mj=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hj=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fj=/[|\\{}()[\]^$+*?.]/g,sv=new WeakMap;function gj(e,t){if(e=e.replace(t.subset?vj(t.subset):pj,r),t.subset||t.escapeOnly)return e;return e.replace(mj,n).replace(hj,r);function n(a,i,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),t)}function r(a,i,l){return t.format(a.charCodeAt(0),l.charCodeAt(i+1),t)}}function vj(e){let t=sv.get(e);return t||(t=bj(e),sv.set(e,t)),t}function bj(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(fj,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const yj=/[\dA-Fa-f]/;function xj(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!yj.test(String.fromCharCode(t))?r:r+";"}const _j=/\d/;function wj(e,t,n){const r="&#"+String(e);return n&&t&&!_j.test(String.fromCharCode(t))?r:r+";"}const jj=["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"],Eh={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:"€"},Cj=["cent","copy","divide","gt","lt","not","para","times"],p7={}.hasOwnProperty,ag={};let bp;for(bp in Eh)p7.call(Eh,bp)&&(ag[Eh[bp]]=bp);const kj=/[^\dA-Za-z]/;function Nj(e,t,n,r){const a=String.fromCharCode(e);if(p7.call(ag,a)){const i=ag[a],l="&"+i;return n&&jj.includes(i)&&!Cj.includes(i)&&(!r||t&&t!==61&&kj.test(String.fromCharCode(t)))?l:l+";"}return""}function Sj(e,t,n){let r=xj(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Nj(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=wj(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function au(e,t){return gj(e,Object.assign({format:Sj},t))}const $j=/^>|^->|<!--|-->|--!>|<!-$/g,Aj=[">"],Ej=["<",">"];function Dj(e,t,n,r){return r.settings.bogusComments?"<?"+au(e.value,Object.assign({},r.settings.characterReferences,{subset:Aj}))+">":"<!--"+e.value.replace($j,a)+"-->";function a(i){return au(i,Object.assign({},r.settings.characterReferences,{subset:Ej}))}}function zj(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function em(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 Tj(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Mj(e){return e.join(" ").trim()}const Lj=/[ \t\n\f\r]/g;function s2(e){return typeof e=="object"?e.type==="text"?iv(e.value):!1:iv(e)}function iv(e){return e.replace(Lj,"")===""}const ar=h7(1),m7=h7(-1),Ij=[];function h7(e){return t;function t(n,r,a){const i=n?n.children:Ij;let l=(r||0)+e,u=i[l];if(!a)for(;u&&s2(u);)l+=e,u=i[l];return u}}const Pj={}.hasOwnProperty;function f7(e){return t;function t(n,r,a){return Pj.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const i2=f7({body:qj,caption:Dh,colgroup:Dh,dd:Uj,dt:Bj,head:Dh,html:Rj,li:Oj,optgroup:Hj,option:Vj,p:Fj,rp:lv,rt:lv,tbody:Wj,td:cv,tfoot:Zj,th:cv,thead:Gj,tr:Qj});function Dh(e,t,n){const r=ar(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&s2(r.value.charAt(0)))}function Rj(e,t,n){const r=ar(n,t);return!r||r.type!=="comment"}function qj(e,t,n){const r=ar(n,t);return!r||r.type!=="comment"}function Fj(e,t,n){const r=ar(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Oj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Bj(e,t,n){const r=ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Uj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function lv(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Hj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Vj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Gj(e,t,n){const r=ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Wj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Zj(e,t,n){return!ar(n,t)}function Qj(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function cv(e,t,n){const r=ar(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Xj=f7({body:Jj,colgroup:eC,head:Kj,html:Yj,tbody:tC});function Yj(e){const t=ar(e,-1);return!t||t.type!=="comment"}function Kj(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 Jj(e){const t=ar(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&s2(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function eC(e,t,n){const r=m7(n,t),a=ar(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&i2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function tC(e,t,n){const r=m7(n,t),a=ar(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&i2(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const yp={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 nC(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=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=d7);const m=rC(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(l=!1),(m||!i||!Xj(e,t,n))&&(u.push("<",e.tagName,m?" "+m:""),l&&(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),!l&&(!i||!i2(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function rC(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=aC(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function aC(e,t,n){const r=ij(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let l=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=au(r.attribute,Object.assign({},e.settings.characterReferences,{subset:yp.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Tj:Mj)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=au(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:yp.unquoted[a][i]}))),u!==n&&(e.settings.quoteSmart&&em(n,l)>em(n,e.alternative)&&(l=e.alternative),u=l+au(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?yp.single:yp.double)[a][i],attribute:!0}))+l),d+(u&&"="+u))}const oC=["<","&"];function g7(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:au(e.value,Object.assign({},r.settings.characterReferences,{subset:oC}))}function sC(e,t,n,r){return r.settings.allowDangerousHtml?e.value:g7(e,t,n,r)}function iC(e,t,n,r){return r.all(e)}const lC=dj("type",{invalid:cC,unknown:uC,handlers:{comment:Dj,doctype:zj,element:nC,raw:sC,root:iC,text:g7}});function cC(e){throw new Error("Expected node, not `"+e+"`")}function uC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const dC={},pC={},mC=[];function hC(e,t){const n=t||dC,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:fC,all:gC,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||tj,characterReferences:n.characterReferences||pC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?d7:uj,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function fC(e,t,n){return lC(e,t,n,this)}function gC(e){const t=[],n=e&&e.children||mC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const uv=/\s+/g;function v7(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(uv)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(uv);for(const a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function vC(e){const t=Dm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t.at(-1).length};let i=a,l=0;for(const u of t){if(i<u.length)break;i-=u.length,l++}return{line:l,character:i}}function r(a,i){let l=0;for(let u=0;u<a;u++)l+=t[u].length;return l+=i,l}return{lines:t,indexToPos:n,posToIndex:r}}const bC=["color","background-color"];function yC(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 xC(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 _C(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 i=a.offset+a.content.length,l=xC(n,a.offset);let u=l;for(;u<n.length&&n[u]<i;)u++;if(l===u)return a;const d=n.slice(l,u);for(let m=0;m<d.length;m++)d[m]-=a.offset;return yC(a,d)})):e}function wC(e,t,n,r,a="css-vars"){const i={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(f=>tm(e.variants[f])),u=new Set(l.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 l.forEach((f,h)=>{for(const b of u){const y=f[b]||"inherit";if(h===0&&r&&bC.includes(b))if(r==="light-dark()"&&l.length>1){const g=t.findIndex(S=>S==="light"),_=t.findIndex(S=>S==="dark");if(g===-1||_===-1)throw new mn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const j=l[g][b]||"inherit",C=l[_][b]||"inherit";d[b]=`light-dark(${j}, ${C})`,a==="css-vars"&&(d[m(h,b)]=y)}else d[b]=y;else a==="css-vars"&&(d[m(h,b)]=y)}}),i.htmlStyle=d,i}function tm(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&qr.Italic&&(t["font-style"]="italic"),e.fontStyle&qr.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&qr.Underline&&n.push("underline"),e.fontStyle&qr.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function og(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function jC(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let a=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new mn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...r.indexToPos(l),offset:l}}else{const u=r.lines[l.line];if(u===void 0)throw new mn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${r.lines.length}`);let d=l.character;if(d<0&&(d=u.length+d),d<0||d>u.length)throw new mn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,character:d,offset:r.posToIndex(l.line,d)}}};const r=vC(n.source),i=(n.options.decorations||[]).map(l=>({...l,start:a(l.start),end:a(l.end)}));CC(i),e.set(n.meta,{decorations:i,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 _C(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 mn(`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 i(h,b,y,g){const _=a[h];let j="",C=-1,S=-1;if(b===0&&(C=0),y===0&&(S=0),y===Number.POSITIVE_INFINITY&&(S=_.children.length),C===-1||S===-1)for(let M=0;M<_.children.length;M++)j+=b7(_.children[M]),C===-1&&j.length===b&&(C=M+1),S===-1&&j.length===y&&(S=M+1);if(C===-1)throw new mn(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(S===-1)throw new mn(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const A=_.children.slice(C,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 M={type:"element",tagName:"span",properties:{},children:A};u(M,g,"wrapper"),_.children.splice(C,A.length,M)}}function l(h,b){a[h]=u(a[h],b,"line")}function u(h,b,y){var j;const g=b.properties||{},_=b.transform||(C=>C);return h.tagName=b.tagName||"span",h.properties={...h.properties,...g,class:h.properties.class},(j=b.properties)!=null&&j.class&&v7(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)i(b.line,b.character,y.character,h);else if(b.line<y.line){i(b.line,b.character,Number.POSITIVE_INFINITY,h);for(let g=b.line+1;g<y.line;g++)d.unshift(()=>l(g,h));i(y.line,0,y.character,h)}}d.forEach(h=>h())}}}function CC(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new mn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],i=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,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(i||l||u||d){if(i&&l||u&&d||u&&n.start.offset===n.end.offset||l&&a.start.offset===a.end.offset)continue;throw new mn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function b7(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(b7).join(""):""}const kC=[jC()];function nm(e){const t=NC(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...kC]}function NC(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 Wl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zh={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function SC(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 dv(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 $C(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)zh[r]&&t.push({type:"setDecoration",value:zh[r]});else if(r<=29){const a=zh[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:Wl[r-30]}});else if(r===38){const a=dv(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:Wl[r-40]}});else if(r===48){const a=dv(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:Wl[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Wl[r-100+8]}})}return t}function AC(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let i=0;do{const l=SC(r,i),u=l.sequence?r.substring(i,l.startPosition):r.substring(i);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=$C(l.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)}i=l.position}while(i<r.length);return a}}}var EC={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 DC(e=EC){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<Wl.length;m++)r.push(t(Wl[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 i(u){return a()[u]}function l(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return i(u.index)}}return{value:l}}const zC=/#([0-9a-f]{3,8})/i,TC=/var\((--[\w-]+-ansi-[\w-]+)\)/,MC={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 LC(e,t,n){const r=Jp(e,n),a=Dm(t),i=DC(Object.fromEntries(Wl.map(u=>{var m;const d=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`;return[u,((m=e.colors)==null?void 0:m[d])||MC[u]]}))),l=AC();return a.map(u=>l.parse(u[0]).map(d=>{let m,f;d.decorations.has("reverse")?(m=d.background?i.value(d.background):e.bg,f=d.foreground?i.value(d.foreground):e.fg):(m=d.foreground?i.value(d.foreground):e.fg,f=d.background?i.value(d.background):void 0),m=Vi(m,r),f=Vi(f,r),d.decorations.has("dim")&&(m=IC(m));let h=qr.None;return d.decorations.has("bold")&&(h|=qr.Bold),d.decorations.has("italic")&&(h|=qr.Italic),d.decorations.has("underline")&&(h|=qr.Underline),d.decorations.has("strikethrough")&&(h|=qr.Strikethrough),{content:d.value,offset:u[1],color:m,bgColor:f,fontStyle:h}}))}function IC(e){const t=e.match(zC);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],i=r[1],l=r[2],u=r[3];return`#${a}${a}${i}${i}${l}${l}${Math.round(Number.parseInt(`${u}${u}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const a=r[0],i=r[1],l=r[2];return`#${a}${a}${i}${i}${l}${l}80`}}}const n=e.match(TC);return n?`var(${n[1]}-dim)`:e}function sg(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=n;if(!Am(r)&&!Em(a)&&r==="ansi"){const{theme:i}=e.setTheme(a);return LC(i,t,n)}return n7(e,t,n)}function rm(e,t,n){let r,a,i,l,u,d;if("themes"in n){const{defaultColor:m="light",cssVariablePrefix:f="--shiki-",colorsRendering:h="css-vars"}=n,b=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,S)=>C.color===m?-1:S.color===m?1:0);if(b.length===0)throw new mn("`themes` option must not be empty");const y=r7(e,t,n,sg);if(d=G0(y),m&&m!=="light-dark()"&&!b.some(C=>C.color===m))throw new mn(`\`themes\` option must contain the defaultColor key \`${m}\``);const g=b.map(C=>e.getTheme(C.theme)),_=b.map(C=>C.color);i=y.map(C=>C.map(S=>wC(S,_,f,m,h))),d&&zm(i,d);const j=b.map(C=>Jp(C.theme,n));a=pv(b,g,j,f,m,"fg",h),r=pv(b,g,j,f,m,"bg",h),l=`shiki-themes ${g.map(C=>C.name).join(" ")}`,u=m?void 0:[a,r].join(";")}else if("theme"in n){const m=Jp(n.theme,n);i=sg(e,t,n);const f=e.getTheme(n.theme);r=Vi(f.bg,m),a=Vi(f.fg,m),l=f.name,d=G0(i)}else throw new mn("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:d}}function pv(e,t,n,r,a,i,l){return e.map((u,d)=>{const m=Vi(t[d][i],n[d])||"inherit",f=`${r+u.color}${i==="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 mn('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Vi(t[h][i],n[h])||"inherit"}, ${Vi(t[b][i],n[b])||"inherit"});${f}`}return m}return l==="css-vars"?f:null}).filter(u=>!!u).join(";")}const y7=/^\s+$/,PC=/^(\s*)(.*?)(\s*)$/;function am(e,t,n,r={meta:{},options:n,codeToHast:(a,i)=>am(e,a,i),codeToTokens:(a,i)=>rm(e,a,i)}){var g,_;let a=t;for(const j of nm(n))a=((g=j.preprocess)==null?void 0:g.call(r,a,n))||a;let{tokens:i,fg:l,bg:u,themeName:d,rootStyle:m,grammarState:f}=rm(e,a,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:b=!1}=n;h===!0?i=qC(i):h==="never"&&(i=FC(i)),b&&(i=OC(i));const y={...r,get source(){return a}};for(const j of nm(n))i=((_=j.tokens)==null?void 0:_.call(y,i))||i;return RC(i,{...n,fg:l,bg:u,themeName:d,rootStyle:n.rootStyle===!1?!1:n.rootStyle??m},y,f)}function RC(e,t,n,r=G0(e)){var _,j,C,S;const a=nm(t),i=[],l={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,M]of Object.entries(t.meta||{}))A.startsWith("_")||(m[A]=M);let f={type:"element",tagName:"pre",properties:m,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:i};const b=[],y={...n,structure:u,addClassToHast:v7,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return h},get lines(){return b}};if(e.forEach((A,M)=>{var P,H;M&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&i.push({type:"text",value:`
|
|
52
|
-
`}));let L={type:"element",tagName:"span",properties:{class:"line"},children:[]},z=0;for(const R of A){let F={type:"element",tagName:"span",properties:{...R.htmlAttrs},children:[{type:"text",value:R.content}]};const U=og(R.htmlStyle||tm(R));U&&(F.properties.style=U);for(const Z of a)F=((P=Z==null?void 0:Z.span)==null?void 0:P.call(y,F,M+1,z,L,R))||F;u==="inline"?l.children.push(F):u==="classic"&&L.children.push(F),z+=R.content.length}if(u==="classic"){for(const R of a)L=((H=R==null?void 0:R.line)==null?void 0:H.call(y,L,M+1))||L;b.push(L),i.push(L)}else u==="inline"&&b.push(L)}),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=((j=A==null?void 0:A.pre)==null?void 0:j.call(y,f))||f;l.children.push(f)}else if(u==="inline"){const A=[];let M={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const z of l.children)z.type==="element"&&z.tagName==="br"?(A.push(M),M={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(z.type==="element"||z.type==="text")&&M.children.push(z);A.push(M);let L={type:"element",tagName:"code",properties:{},children:A};for(const z of a)L=((C=z==null?void 0:z.code)==null?void 0:C.call(y,L))||L;l.children=[];for(let z=0;z<L.children.length;z++){z>0&&l.children.push({type:"element",tagName:"br",properties:{},children:[]});const P=L.children[z];P.type==="element"&&l.children.push(...P.children)}}let g=l;for(const A of a)g=((S=A==null?void 0:A.root)==null?void 0:S.call(y,g))||g;return r&&zm(g,r),g}function qC(e){return e.map(t=>{const n=[];let r="",a;return t.forEach((i,l)=>{const u=!(i.fontStyle&&(i.fontStyle&qr.Underline||i.fontStyle&qr.Strikethrough));u&&y7.test(i.content)&&t[l+1]?(a===void 0&&(a=i.offset),r+=i.content):r?(u?n.push({...i,offset:a,content:r+i.content}):n.push({content:r,offset:a},i),a=void 0,r=""):n.push(i)}),n})}function FC(e){return e.map(t=>t.flatMap(n=>{if(y7.test(n.content))return n;const r=n.content.match(PC);if(!r)return n;const[,a,i,l]=r;if(!a&&!l)return n;const u=[{...n,offset:n.offset+a.length,content:i}];return a&&u.unshift({content:a,offset:n.offset}),l&&u.push({content:l,offset:n.offset+a.length+i.length}),u}))}function OC(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),i=og(a.htmlStyle||tm(a)),l=og(r.htmlStyle||tm(r)),u=a.fontStyle&&(a.fontStyle&qr.Underline||a.fontStyle&qr.Strikethrough),d=r.fontStyle&&(r.fontStyle&qr.Underline||r.fontStyle&qr.Strikethrough);!u&&!d&&i===l?a.content+=r.content:n.push({...r})}return n})}const BC=hC;function UC(e,t,n){var i;const r={meta:{},options:n,codeToHast:(l,u)=>am(e,l,u),codeToTokens:(l,u)=>rm(e,l,u)};let a=BC(am(e,t,n,r));for(const l of nm(n))a=((i=l.postprocess)==null?void 0:i.call(r,a,n))||a;return a}function HC(e){const t=Uw(e);return{getLastGrammarState:(...n)=>Zw(t,...n),codeToTokensBase:(n,r)=>sg(t,n,r),codeToTokensWithThemes:(n,r)=>r7(t,n,r),codeToTokens:(n,r)=>rm(t,n,r),codeToHast:(n,r)=>am(t,n,r),codeToHtml:(n,r)=>UC(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function VC(e={}){var l;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})`},i={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||(i.tokenColors=(l=i.tokenColors)==null?void 0:l.map(u=>{var d;return(d=u.settings)!=null&&d.fontStyle&&delete u.settings.fontStyle,u})),i}const mv=4294967295;var GC=class{constructor(e,t={}){de(this,"patterns");de(this,"options");de(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(i=>{if(typeof i!="string")return i;const l=r==null?void 0:r.get(i);if(l){if(l instanceof RegExp)return l;if(n)return null;throw l}try{const u=a(i);return r==null||r.set(i,u),u}catch(u){if(r==null||r.set(i,u),n)return null;throw u}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,a=[];function i(l,u,d=0){return{index:l,captureIndices:u.indices.map(m=>m==null?{start:mv,end:mv,length:0}:{start:m[0]+d,end:m[1]+d,length:m[1]-m[0]})}}for(let l=0;l<this.regexps.length;l++){const u=this.regexps[l];if(u)try{u.lastIndex=t;const d=u.exec(r);if(!d)continue;if(d.index===t)return i(l,d,0);a.push([l,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(a.length){const l=Math.min(...a.map(u=>u[1].index));for(const[u,d,m]of a)if(d.index===l)return i(u,d,m)}return null}};function hu(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function WC(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const l2=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),fr=String.raw;function fu(e,t){if(e==null)throw new Error(t??"Value expected");return e}const x7=fr`\[\^?`,_7=`c.? | C(?:-.?)?|${fr`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${fr`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${fr`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${fr`o\{[^\}]*\}?`}|${fr`\d{1,3}`}`,c2=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,xp=new RegExp(fr`
|
|
53
|
-
\\ (?:
|
|
54
|
-
${_7}
|
|
55
|
-
| [gk]<[^>]*>?
|
|
56
|
-
| [gk]'[^']*'?
|
|
57
|
-
| .
|
|
58
|
-
)
|
|
59
|
-
| \( (?:
|
|
60
|
-
\? (?:
|
|
61
|
-
[:=!>({]
|
|
62
|
-
| <[=!]
|
|
63
|
-
| <[^>]*>
|
|
64
|
-
| '[^']*'
|
|
65
|
-
| ~\|?
|
|
66
|
-
| #(?:[^)\\]|\\.?)*
|
|
67
|
-
| [^:)]*[:)]
|
|
68
|
-
)?
|
|
69
|
-
| \*[^\)]*\)?
|
|
70
|
-
)?
|
|
71
|
-
| (?:${c2.source})+
|
|
72
|
-
| ${x7}
|
|
73
|
-
| .
|
|
74
|
-
`.replace(/\s+/g,""),"gsu"),Th=new RegExp(fr`
|
|
75
|
-
\\ (?:
|
|
76
|
-
${_7}
|
|
77
|
-
| .
|
|
78
|
-
)
|
|
79
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
80
|
-
| ${x7}
|
|
81
|
-
| &&
|
|
82
|
-
| .
|
|
83
|
-
`.replace(/\s+/g,""),"gsu");function ZC(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=mk(n.flags),a=[r.extended],i={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 l=[],u;for(xp.lastIndex=0;u=xp.exec(e);){const h=QC(i,e,u[0],xp.lastIndex);h.tokens?l.push(...h.tokens):h.token&&l.push(h.token),h.lastIndex!==void 0&&(xp.lastIndex=h.lastIndex)}const d=[];let m=0;l.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:l.map(h=>h.type==="EscapedNumber"?fk(h,f):h).flat(),flags:r}}function QC(e,t,n,r){const[a,i]=n;if(n==="["||n==="[^"){const l=XC(t,n,r);return{tokens:l.tokens,lastIndex:l.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(i))return{token:hv(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:sk(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:j7(n)}}if(i==="K")return{token:C7("keep",n)};if(i==="N"||i==="R")return{token:Zl("newline",n,{negate:i==="N"})};if(i==="O")return{token:Zl("any",n)};if(i==="X")return{token:Zl("text_segment",n)};const l=w7(n,{inCharClass:!1});return Array.isArray(l)?{tokens:l}:{token:l}}if(a==="("){if(i==="*")return{token:uk(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:ck(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Jc("group",n)};if(n==="(?>")return{token:Jc("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Jc(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Jc("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Jc("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:rk(n)}}if(e.getCurrentModX()){if(n==="#"){const l=t.indexOf(`
|
|
84
|
-
`,r);return{lastIndex:l===-1?t.length:l}}if(/^\s$/.test(n)){const l=/\s+/y;return l.lastIndex=r,{lastIndex:l.exec(t)?l.lastIndex:r}}}if(n===".")return{token:Zl("dot",n)};if(n==="^"||n==="$"){const l=e.singleline?{"^":fr`\A`,$:fr`\Z`}[n]:n;return{token:hv(l,n)}}return n==="|"?{token:KC(n)}:c2.test(n)?{tokens:gk(n)}:{token:ri(hu(n),n)}}function XC(e,t,n){const r=[fv(t[1]==="^",t)];let a=1,i;for(Th.lastIndex=n;i=Th.exec(e);){const l=i[0];if(l[0]==="["&&l[1]!==":")a++,r.push(fv(l[1]==="^",l));else if(l==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(ri(93,l));else if(a--,r.push(JC(l)),!a)break}else{const u=YC(l);Array.isArray(u)?r.push(...u):r.push(u)}}return{tokens:r,lastIndex:Th.lastIndex||e.length}}function YC(e){if(e[0]==="\\")return w7(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!l2.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Zl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ek(e):e==="&&"?tk(e):ri(hu(e),e)}function w7(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return lk(e);if("dDhHsSwW".includes(n))return dk(e);if(e.startsWith(fr`\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 pk(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(l=>parseInt(l,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),i=new TextEncoder;return[...a].map(l=>{const u=[...i.encode(l)].map(d=>`\\x${d.toString(16)}`).join("");return ri(hu(l),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ri(hk(e),e);if(gv.has(n))return ri(gv.get(n),e);if(/\d/.test(n))return nk(t,e);if(e==="\\")throw new Error(fr`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ri(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function KC(e){return{type:"Alternator",raw:e}}function hv(e,t){return{type:"Assertion",kind:e,raw:t}}function j7(e){return{type:"Backreference",raw:e}}function ri(e,t){return{type:"Character",value:e,raw:t}}function JC(e){return{type:"CharacterClassClose",raw:e}}function ek(e){return{type:"CharacterClassHyphen",raw:e}}function tk(e){return{type:"CharacterClassIntersector",raw:e}}function fv(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Zl(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function C7(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:fu(n.flags),raw:t}}function nk(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function rk(e){return{type:"GroupClose",raw:e}}function Jc(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function ak(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function ok(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function sk(e){return{type:"Subroutine",raw:e}}const ik=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),gv=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function lk(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 ri(hu(t.toUpperCase())-64,e)}function ck(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"),i=bv(n),l=bv(r),u={};if(i&&(u.enable=i),l&&(u.disable=l),e.endsWith(")"))return t.replaceCurrentModX(a),C7("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Jc("group",e,{...(i||l)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function uk(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 i=a?a.split(",").filter(f=>f!=="").map(f=>/^[+-]?\d+$/.test(f)?+f:f):[],[l,u,d]=i,m=ik.has(n)?n.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof l=="string")throw new Error(`Named callout argument must be a number "${l}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument one must be a tag or number "${l}"`);if(i.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(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${l}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument one must be a tag or number "${l}"`);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 ak(m,r??null,(a==null?void 0:a.split(","))??null,e)}function vv(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,l=1e5;if(+a>l||i&&+i>l)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=i===void 0?+a:i===""?1/0:+i,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 ok(t,n,r,e)}function dk(e){const t=e[1].toLowerCase();return Zl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function pk(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Zl("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function bv(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 mk(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 hk(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 fk(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[j7(n)];const i=[],l=a.match(/^[0-7]+|\d/g);for(let u=0;u<l.length;u++){const d=l[u];let m;if(u===0&&d!=="8"&&d!=="9"){if(m=parseInt(d,8),m>127)throw new Error(fr`Octal encoded byte above 177 unsupported "${n}"`)}else m=hu(d);i.push(ri(m,(u===0?"\\":"")+d))}return i}function gk(e){const t=[],n=new RegExp(c2,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(i){const{min:l,max:u}=i.groups;if(+l>+u&&a.endsWith("?")){n.lastIndex--,t.push(vv(a.slice(0,-1)));continue}}}t.push(vv(a))}return t}function k7(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 vk(e){return bk.has(e.type)}const bk=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function N7(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=ZC(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(b,y)=>{const g=r.tokens[i.nextIndex];switch(i.parent=b,i.nextIndex++,g.type){case"Alternator":return tc();case"Assertion":return yk(g);case"Backreference":return xk(g,i);case"Character":return Mm(g.value,{useLastValid:!!y.isCheckingRangeEnd});case"CharacterClassHyphen":return _k(g,i,y);case"CharacterClassOpen":return wk(g,i,y);case"CharacterSet":return jk(g,i);case"Directive":return Ak(g.kind,{flags:g.flags});case"GroupOpen":return Ck(g,i,y);case"NamedCallout":return Dk(g.kind,g.tag,g.arguments);case"Quantifier":return kk(g,i);case"Subroutine":return Nk(g,i);default:throw new Error(`Unexpected token type "${g.type}"`)}},i={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},l=Tk(Ek(r.flags));let u=l.body[0];for(;i.nextIndex<r.tokens.length;){const b=a(u,{});b.type==="Alternative"?(l.body.push(b),u=b):u.body.push(b)}const{capturingGroups:d,hasNumberedRef:m,namedGroupsByName:f,subroutines:h}=i;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(fr`Subroutine uses a duplicate group name "\g<${b}>"`);f.get(b)[0].isSubroutined=!0}else throw new Error(fr`Subroutine uses a group name that's not defined "\g<${b}>"`);return l}function yk({kind:e}){return ig(fu({"^":"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===fr`\B`||e===fr`\Y`})}function xk({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(i,l=!1)=>{const u=t.capturingGroups.length;let d=!1;if(i>u)if(t.skipBackrefValidation)d=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,lg(l?u+1-i:i,{orphan:d})};if(n){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(i)return a(+i.groups.num,!!i.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 lg(r)}return a(+r)}function _k(e,t,n){const{tokens:r,walk:a}=t,i=t.parent,l=i.body.at(-1),u=r[t.nextIndex];if(!n.isCheckingRangeEnd&&l&&l.type!=="CharacterClass"&&l.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const d=a(i,{...n,isCheckingRangeEnd:!0});if(l.type==="Character"&&d.type==="Character")return i.body.pop(),$k(l,d);throw new Error("Invalid character class range")}return Mm(hu("-"))}function wk({negate:e},t,n){const{tokens:r,walk:a}=t,i=[Op()],l=r[t.nextIndex];let u=_v(l);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")i.push(Op()),t.nextIndex++;else{const m=i.at(-1);m.body.push(a(m,n))}u=_v(r[t.nextIndex],l)}const d=Op({negate:e});return i.length===1?d.body=i[0].body:(d.kind="intersection",d.body=i.map(m=>m.body.length===1?m.body[0]:m)),t.nextIndex++,d}function jk({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:l}=r;if(e==="property"){const u=Lm(n);if(l2.has(u)&&!(l!=null&&l.has(u)))e="posix",n=u;else return eu(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:l})}return e==="posix"?zk(n,{negate:t}):cg(e,{negate:t})}function Ck(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:i,skipLookbehindValidation:l,walk:u}=t,d=Mk(e),m=d.type==="AbsenceFunction",f=xv(d),h=f&&d.negate;if(d.type==="CapturingGroup"&&(a.push(d),d.name&&WC(i,d.name,[]).push(d)),m&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let b=wv(r[t.nextIndex]);for(;b.type!=="GroupClose";){if(b.type==="Alternator")d.body.push(tc()),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)&&!l){const _="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(yv(g)||g.type==="CapturingGroup")throw new Error(_)}else if(yv(g)||xv(g)&&g.negate)throw new Error(_)}}b=wv(r[t.nextIndex])}return t.nextIndex++,d}function kk({kind:e,min:t,max:n},r){const a=r.parent,i=a.body.at(-1);if(!i||!vk(i))throw new Error("Quantifier requires a repeatable token");const l=$7(e,t,n,i);return a.body.pop(),l}function Nk({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(i){const u=+i.groups.num,d=n.length;if(t.hasNumberedRef=!0,a={"":u,"+":d+u,"-":d+1-u}[i.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const l=A7(a);return r.push(l),l}function Sk(e,t){return{type:"AbsenceFunction",kind:e,body:ad(t==null?void 0:t.body)}}function tc(e){return{type:"Alternative",body:E7(e==null?void 0:e.body)}}function ig(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function lg(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function S7(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Lk(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:ad(t==null?void 0:t.body)}}function Mm(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 Op(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:E7(e==null?void 0:e.body)}}function $k(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function cg(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 Ak(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:fu(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Ek(e){return{type:"Flags",...e}}function Vo(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:ad(e==null?void 0:e.body)}}function Hl(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:ad(e==null?void 0:e.body)}}function Dk(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function zk(e,t){const n=!!(t!=null&&t.negate);if(!l2.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function $7(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 Tk(e,t){return{type:"Regex",body:ad(t==null?void 0:t.body),flags:e}}function A7(e){return{type:"Subroutine",ref:e}}function eu(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(Lm(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Ik(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(fr`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function Mk({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return Sk("repeater");case"atomic":return Vo({atomic:!0});case"capturing":return S7(a,{name:n});case"group":return Vo({flags:e});case"lookahead":case"lookbehind":return Hl({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function ad(e){if(e===void 0)e=[tc()];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 E7(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 yv(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function xv(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Lk(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Ik(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 Lm(e){return e.replace(/[- _]+/g,"").toLowerCase()}function _v(e,t){const n=t;return fu(e,`Unclosed character class${(n==null?void 0:n.type)==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function wv(e){return fu(e,"Unclosed group")}function P0(e,t,n=null){function r(i,l){for(let u=0;u<i.length;u++){const d=a(i[u],l,u,i);u=Math.max(-1,u+d)}}function a(i,l=null,u=null,d=null){var C,S;let m=0,f=!1;const h={node:i,parent:l,key:u,container:d,root:e,remove(){_p(d).splice(Math.max(0,Gc(u)+m),1),m--,f=!0},removeAllNextSiblings(){return _p(d).splice(Gc(u)+1)},removeAllPrevSiblings(){const A=Gc(u)+m;return m-=A,_p(d).splice(0,Math.max(0,A))},replaceWith(A,M={}){const L=!!M.traverse;d?d[Math.max(0,Gc(u)+m)]=A:fu(l,"Can't replace root node")[u]=A,L&&a(A,l,u,d),f=!0},replaceWithMultiple(A,M={}){const L=!!M.traverse;if(_p(d).splice(Math.max(0,Gc(u)+m),1,...A),m+=A.length-1,L){let z=0;for(let P=0;P<A.length;P++)z+=a(A[P],l,Gc(u)+P+z,d)}f=!0},skip(){f=!0}},{type:b}=i,y=t["*"],g=t[b],_=typeof y=="function"?y:y==null?void 0:y.enter,j=typeof g=="function"?g:g==null?void 0:g.enter;if(_==null||_(h,n),j==null||j(h,n),!f)switch(b){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(i.min,i,"min"),a(i.max,i,"max");break;case"Quantifier":a(i.body,i,"body");break;case"Regex":r(i.body,i),a(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${b}"`)}return(C=g==null?void 0:g.exit)==null||C.call(g,h,n),(S=y==null?void 0:y.exit)==null||S.call(y,h,n),m}return a(e),e}function _p(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Gc(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Pk=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Rk(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function qk(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const po=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function u2(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let l=0,u="";for(const d of e.matchAll(a)){const{0:m,groups:{$skip:f}}=d;if(!f&&(!r||r===po.DEFAULT==!l)){n instanceof Function?u+=n(d,{context:l?po.CHAR_CLASS:po.DEFAULT,negated:i[i.length-1]}):u+=n;continue}m[0]==="["?(l++,i.push(m[1]==="^")):m==="]"&&l&&(l--,i.pop()),u+=m}return u}function D7(e,t,n,r){u2(e,t,n,r)}function Fk(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 i=0,l;for(;l=a.exec(e);){const{0:u,groups:{$skip:d}}=l;if(!d&&(!r||r===po.DEFAULT==!i))return l;u==="["?i++:u==="]"&&i&&i--,a.lastIndex==l.index&&a.lastIndex++}return null}function wp(e,t,n){return!!Fk(e,t,0,n)}function Ok(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,i=1,l;for(;l=n.exec(e);){const[u]=l;if(u==="[")a++;else if(a)u==="]"&&a--;else if(u==="(")i++;else if(u===")"&&(i--,!i)){r=l.index;break}}return e.slice(t,r)}const jv=new RegExp(String.raw`(?<noncapturingStart>${Pk})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Bk(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="(?>",i="(?:(?=(",l=[0],u=[];let d=0,m=0,f=NaN,h;do{h=!1;let b=0,y=0,g=!1,_;for(jv.lastIndex=Number.isNaN(f)?0:f+i.length;_=jv.exec(e);){const{0:j,index:C,groups:{capturingStart:S,noncapturingStart:A}}=_;if(j==="[")b++;else if(b)j==="]"&&b--;else if(j===a&&!g)f=C,g=!0;else if(g&&A)y++;else if(S)g?y++:(d++,l.push(d+m));else if(j===")"&&g){if(!y){m++;const M=d+m;if(e=`${e.slice(0,f)}${i}${e.slice(f+a.length,C)}))<$$${M}>)${e.slice(C+1)}`,h=!0,u.push(M),Rk(n,M),r.size){const L=new Map;r.forEach((z,P)=>{L.set(P>=M?P+1:P,z.map(H=>H>=M?H+1:H))}),r=L}break}y--}}}while(h);return n.push(...u),e=u2(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:b,groups:{backrefNum:y,wrappedBackrefNum:g}})=>{if(y){const _=+y;if(_>l.length-1)throw new Error(`Backref "${b}" greater than number of captures`);return`\\${l[_]}`}return`\\${g}`},po.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const z7=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Mh=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>${z7})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
98
|
-
| \\?.
|
|
99
|
-
`.replace(/\s+/g,""),"gsu");function Uk(e){if(!new RegExp(`${z7}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",i=0,l;for(Mh.lastIndex=0;l=Mh.exec(e);){const{0:u,index:d,groups:{qBase:m,qMod:f,invalidQ:h}}=l;if(u==="[")i||(r=d),i++;else if(u==="]")i?i--:r=null;else if(!i)if(f==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${u}"`);let b=-1;if(/^\{\d+\}$/.test(m))e=qk(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}Mh.lastIndex+=b}else u[0]==="("?t.push(d):u===")"&&(n=t.length?t.pop():null);a=u}return{pattern:e}}const co=String.raw,Hk=co`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ug=co`\(\?R=(?<rDepth>[^\)]+)\)|${Hk}`,Im=co`\(\?<(?![=!])(?<captureName>[^>]+)>`,T7=co`${Im}|(?<unnamed>\()(?!\?)`,Il=new RegExp(co`${Im}|${ug}|\(\?|\\?.`,"gsu"),Lh="Cannot use multiple overlapping recursions";function Vk(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(ug,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&wp(e,co`\(\?\(DEFINE\)`,po.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],l=wp(e,co`\\[1-9]`,po.DEFAULT),u=new Map,d=[];let m=!1,f=0,h=0,b;for(Il.lastIndex=0;b=Il.exec(e);){const{0:y,groups:{captureName:g,rDepth:_,gRNameOrNum:j,gRDepth:C}}=b;if(y==="[")f++;else if(f)y==="]"&&f--;else if(_){if(Cv(_),m)throw new Error(Lh);if(l)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const S=e.slice(0,b.index),A=e.slice(Il.lastIndex);if(wp(A,ug,po.DEFAULT))throw new Error(Lh);const M=+_-1;e=kv(S,A,M,!1,n,i,h),a=Sv(a,S,M,i.length,0,h);break}else if(j){Cv(C);let S=!1;for(const Z of d)if(Z.name===j||Z.num===+j){if(S=!0,Z.hasRecursedWithin)throw new Error(Lh);break}if(!S)throw new Error(co`Recursive \g cannot be used outside the referenced group "${r==="external"?j:co`\g<${j}&R=${C}>`}"`);const A=u.get(j),M=Ok(e,A);if(l&&wp(M,co`${Im}|\((?!\?)`,po.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const L=e.slice(A,b.index),z=M.slice(L.length+y.length),P=i.length,H=+C-1,R=kv(L,z,H,!0,n,i,h);a=Sv(a,L,H,i.length-P,P,h);const F=e.slice(0,A),U=e.slice(A+M.length);e=`${F}${R}${U}`,Il.lastIndex+=R.length-y.length-L.length-z.length,d.forEach(Z=>Z.hasRecursedWithin=!0),m=!0}else if(g)h++,u.set(String(h),Il.lastIndex),u.set(g,Il.lastIndex),d.push({num:h,name:g});else if(y[0]==="("){const S=y==="(";S&&(h++,u.set(String(h),Il.lastIndex)),d.push(S?{num:h}:{})}else y===")"&&d.pop()}return n.push(...i),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function Cv(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 kv(e,t,n,r,a,i,l){const u=new Set;r&&D7(e+t,Im,({groups:{captureName:m}})=>{u.add(m)},po.DEFAULT);const d=[n,r?u:null,a,i,l];return`${e}${Nv(`(?:${e}`,"forward",...d)}(?:)${Nv(`${t})`,"backward",...d)}${t}`}function Nv(e,t,n,r,a,i,l){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+=u2(e,co`${T7}|\\k<(?<backref>[^>]+)>`,({0:b,groups:{captureName:y,unnamed:g,backref:_}})=>{if(_&&r&&!r.has(_))return b;const j=`_$${h}`;if(g||y){const C=l+i.length+1;return i.push(C),Gk(a,C),g?b:`(?<${y}${j}>`}return co`\k<${_}${j}>`},po.DEFAULT)}return m}function Gk(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Sv(e,t,n,r,a,i){if(e.size&&r){let l=0;D7(t,T7,()=>l++,po.DEFAULT);const u=i-l+a,d=new Map;return e.forEach((m,f)=>{const h=(r-l*n)/n,b=l*n,y=f>u+l?f+r:f,g=[];for(const _ of m)if(_<=u)g.push(_);else if(_>u+l+h)g.push(_+r);else if(_<=u+l)for(let j=0;j<=n;j++)g.push(_+l*j);else for(let j=0;j<=n;j++)g.push(_+b+h*j);d.set(y,g)}),d}return e}var nr=String.fromCodePoint,ft=String.raw,Go={},Pm=globalThis.RegExp;Go.flagGroups=(()=>{try{new Pm("(?i:)")}catch{return!1}return!0})();Go.unicodeSets=(()=>{try{new Pm("[[]]","v")}catch{return!1}return!0})();Go.bugFlagVLiteralHyphenIsRange=Go.unicodeSets?(()=>{try{new Pm(ft`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Go.bugNestedClassIgnoresNegation=Go.unicodeSets&&new Pm("[[^a]]","v").test("a");function om(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 W0(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function dg(e,t){return $v[e]>=$v[t]}function Wk(e,t){if(e==null)throw new Error(t??"Value expected");return e}var $v={ES2025:2025,ES2024:2024,ES2018:2018},Zk={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function M7(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Zk[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=Go.flagGroups?"ES2025":Go.unicodeSets?"ES2024":"ES2018"),t}var Qk="[ -\r ]",Xk=new Set([nr(304),nr(305)]),Zs=ft`[\p{L}\p{M}\p{N}\p{Pc}]`;function L7(e){if(Xk.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=Jk.get(n),i=Yk.get(n),l=Kk.get(n);return[...r].length===1&&t.add(r),l&&t.add(l),a&&t.add(a),t.add(n),i&&t.add(i),[...t]}var d2=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=>[Lm(e),e])),Yk=new Map([["s",nr(383)],[nr(383),"s"]]),Kk=new Map([[nr(223),nr(7838)],[nr(107),nr(8490)],[nr(229),nr(8491)],[nr(969),nr(8486)]]),Jk=new Map([qi(453),qi(456),qi(459),qi(498),...Ih(8072,8079),...Ih(8088,8095),...Ih(8104,8111),qi(8124),qi(8140),qi(8188)]),eN=new Map([["alnum",ft`[\p{Alpha}\p{Nd}]`],["alpha",ft`\p{Alpha}`],["ascii",ft`\p{ASCII}`],["blank",ft`[\p{Zs}\t]`],["cntrl",ft`\p{Cc}`],["digit",ft`\p{Nd}`],["graph",ft`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ft`\p{Lower}`],["print",ft`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ft`[\p{P}\p{S}]`],["space",ft`\p{space}`],["upper",ft`\p{Upper}`],["word",ft`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ft`\p{AHex}`]]);function tN(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function qi(e){const t=nr(e);return[t.toLowerCase(),t]}function Ih(e,t){return tN(e,t).map(n=>qi(n))}var I7=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function nN(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};P7(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:dg(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};P0(e,rN,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};P0(e,aN,i);const l={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return P0(e,oN,l),e._originMap=i.groupOriginByCopy,e._strategy=r.strategy,e}var rN={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const i=Vo();i.body[0].body.push(Hl({negate:!0,body:r}),eu("Any"));const l=Vo();l.body[0].body.push($7("greedy",0,1/0,i)),n(Tn(l,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(i=>i.kind==="flags");for(let i=n+1;i<t.body.length;i++){const l=t.body[i];W0(r,l,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=q7(t.get(e));if(r){const a=Vo({flags:r});a.body[0].body=e.body,e.body=[Tn(a,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:i,replaceWith:l},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")l(Tn(Hl({body:[tc({body:[ig("string_end")]}),tc({body:[Mm(10)]})]}),t));else if(d==="line_start")l(Tn(Qs(ft`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(d==="search_start")if(b.has(e))a.flags.sticky=!0,i();else{const g=r[n-1];if(g&&dN(g))l(Tn(Hl({negate:!0}),t));else{if(h)throw new Error(ft`Uses "\G" in a way that requires a subclass`);l(Fi(ig("string_start"),t)),u.strategy="clip_search"}}else if(!(d==="string_end"||d==="string_start"))if(d==="string_end_newline")l(Tn(Qs(ft`(?=\n?\z)`),t));else if(d==="word_boundary"){if(!y&&!f){const g=`(?:(?<=${Zs})(?!${Zs})|(?<!${Zs})(?=${Zs}))`,_=`(?:(?<=${Zs})(?=${Zs})|(?<!${Zs})(?!${Zs}))`;l(Tn(Qs(m?_:g),t))}}else throw new Error(`Unexpected assertion kind "${d}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Rh(n)&&(n=Ph(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Rh(r)&&(r=Ph(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=Op({body:[e]});n(Tn(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:l,wordIsAscii:u}){const{kind:d,negate:m,value:f}=e;if(i&&(d==="digit"||f==="digit")){n(Fi(cg("digit",{negate:m}),t));return}if(l&&(d==="space"||f==="space")){n(Tn(qh(Qs(Qk),m),t));return}if(u&&(d==="word"||f==="word")){n(Fi(cg("word",{negate:m}),t));return}if(d==="any")n(Fi(eu("Any"),t));else if(d==="digit")n(Fi(eu("Nd",{negate:m}),t));else if(d!=="dot")if(d==="text_segment"){if(r==="strict")throw new Error(ft`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",b=ft`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Tn(Qs(ft`(?>\r\n|${a?ft`\p{RGI_Emoji}`:b}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(d==="hex")n(Fi(eu("AHex",{negate:m}),t));else if(d==="newline")n(Tn(Qs(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-${nr(h.codePointAt(0)-1)}${nr(h.codePointAt(2)+1)}-`),n(Tn(Qs(`[${h}]`),t))}else n(Tn(qh(Qs(eN.get(f)),m),t));else if(d==="property")d2.has(Lm(f))||(e.key="sc");else if(d==="space")n(Fi(eu("space",{negate:m}),t));else if(d==="word")n(Tn(qh(Qs(Zs),m),t));else throw new Error(`Unexpected character set kind "${d}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:l}){const{kind:u,flags:d}=e;if(u==="flags")if(!d.enable&&!d.disable)r();else{const m=Vo({flags:d});m.body[0].body=l(),a(Tn(m,t),{traverse:!0})}else if(u==="keep"){const m=n.body[0],h=n.body.length===1&&k7(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:n;if(t.parent!==h||h.body.length>1)throw new Error(ft`Uses "\K" in a way that's unsupported`);const b=Hl({behind:!0});b.body[0].body=i(),a(Tn(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(Tn(Hl({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Vo();t.body[0].body.push(e.body),e.body=Tn(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const l=O7(i.body);l?(r=!0,Array.isArray(l)?n.push(...l):n.push(l)):a=!0}r&&!a&&n.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ft`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Rh(n)&&(n=Ph(n,t),e.ref=n)}},aN={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:l,openRefs:u,reffedNodesByReferencer:d}){const m=a.get(e);if(m&&u.has(e.number)){const h=Fi(Av(e.number),t);d.set(h,u.get(e.number)),n(h);return}u.set(e.number,e),l.set(e.number,[]),e.name&&W0(l,e.name,[]);const f=l.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(l.get(e.number).push({node:e,origin:m}),e.name&&l.get(e.name).push({node:e,origin:m}),e.name){const h=W0(i,e.name,new Map);let b=!1;if(m)b=!0;else for(const y of h.values())if(!y.hasDuplicateNameToRemove){b=!0;break}i.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=om(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:i}=e;if(a){let f=t;for(;(f=f.parent)&&!(f.type==="CapturingGroup"&&(f.name===i||f.number===i)););r.reffedNodesByReferencer.set(e,f);return}const l=r.subroutineRefMap.get(i),u=i===0,d=u?Av(0):R7(l,r.groupOriginByCopy,null);let m=d;if(!u){const f=q7(lN(l,b=>b.type==="Group"&&!!b.flags)),h=f?om(r.globalFlags,f):r.globalFlags;sN(h,r.currentFlags)||(m=Vo({flags:cN(h)}),m.body[0].body.push(d))}n(Tn(m,t),{traverse:!u})}},oN={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const i=r.reffedNodesByReferencer.get(e).filter(l=>iN(l,e));if(!i.length)n(Tn(Hl({negate:!0}),t));else if(i.length>1){const l=Vo({atomic:!0,body:i.reverse().map(u=>tc({body:[lg(u.number)]}))});n(Tn(l,t))}else e.ref=i[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=S7();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function P7(e){P0(e,{"*"({node:t,parent:n}){t.parent=n}})}function sN(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function iN(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=F7(n.parent);for(const a of r){if(a===n)break;if(a===e||B7(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function R7(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[i,l]of Object.entries(e))i==="parent"?a.parent=Array.isArray(n)?r:n:l&&typeof l=="object"?a[i]=R7(l,t,a,n):(i==="type"&&l==="CapturingGroup"&&t.set(a,t.get(e)??e),a[i]=l);return a}function Av(e){const t=A7(e);return t.isRecursive=!0,t}function lN(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ph(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 q7(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{var i,l;(i=r.enable)!=null&&i[a]&&(delete n.disable[a],n.enable[a]=!0),(l=r.disable)!=null&&l[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 cN({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 F7(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function O7(e){const t=e.find(n=>n.kind==="search_start"||pN(n,{negate:!1})||!uN(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=O7(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function B7(e,t){const n=F7(e)??[];for(const r of n)if(r===t||B7(r,t))return!0;return!1}function uN({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function dN(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function pN(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&k7(e.body[0],{type:"Assertion",kind:"search_start"})}function Rh(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Qs(e,t){const r=N7(e,{...t,unicodePropertyMap:d2}).body;return r.length>1||r[0].body.length>1?Vo({body:r}):r[0].body[0]}function qh(e,t){return e.negate=t,e}function Fi(e,t){return e.parent=t,e}function Tn(e,t){return P7(e),e.parent=t,e}function mN(e,t){const n=M7(t),r=dg(n.target,"ES2024"),a=dg(n.target,"ES2025"),i=n.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let l=null,u=null;if(!a){const y=[e.flags.ignoreCase];P0(e,hN,{getCurrentModI:()=>y.at(-1),popModI(){y.pop()},pushModI(g){y.push(g)},setHasCasedChar(){y.at(-1)?l=!0:u=!0}})}const d={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||l)&&!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:i,useAppliedIgnoreCase:!!(!a&&l&&u),useFlagMods:a,useFlagV:r,verbose:n.verbose};function h(y){return f.lastNode=m,m=y,Wk(fN[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&&W0(b._captureTransfers,y.transferTo,[]).push(g)}),b}var hN={"*":{enter({node:e},t){if(Dv(e)){const n=t.getCurrentModI();t.pushModI(e.flags?om({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Dv(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){p2(nr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),U7(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&I7.has(e.value)&&t.setHasCasedChar()}},fN={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?ft`\B`:ft`\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:i}=e,l={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(l.hidden=!0,i>u.number&&(l.transferTo=u.number)),t.captureMap.set(i,l),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=nr(e),r=Wc(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&p2(n)){const a=L7(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:i}=e;let{body:l}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Go.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&l.some(zv)&&(l=[Mm(45),...l.filter(m=>!zv(m))]);const u=()=>`[${a?"^":""}${l.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Go.bugNestedClassIgnoresNegation)&&!a){const f=l.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(f.length){const h=Vo(),b=h.body[0];return h.parent=i,b.parent=h,l=l.filter(y=>!f.includes(y)),e.body=l,l.length?(e.parent=b,b.body.push(e)):h.body.pop(),f.forEach(y=>{const g=tc({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=l[0];if(r==="union"&&!a&&d&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(Go.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&l.length===1&&d.type!=="CharacterClassRange"))return l.map(n).join("");if(!t.useFlagV&&i.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},i=Wc(n,a),l=Wc(r,a),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const d=U7(e);xN(d).forEach(f=>{u.add(Array.isArray(f)?`${Wc(f[0],a)}-${Wc(f[1],a)}`:Wc(f,a))})}return`${i}-${l}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":ft`[^\n]`;if(e==="digit")return t?ft`\D`:ft`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&I7.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ft`\P`:ft`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ft`\W`:ft`\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,i){const l=a.currentFlags;n&&(a.currentFlags=om(l,n));const u=t.map(i).join("|"),d=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?u:`(?${_N(e,n,a.useFlagMods)}${u})`;return a.currentFlags=l,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)+wN(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})`:ft`\g<${t}&R=${r}>`}},gN=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),vN=new Set(["-","\\","]","^","["]),bN=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ev=new Map([[9,ft`\t`],[10,ft`\n`],[11,ft`\v`],[12,ft`\f`],[13,ft`\r`],[8232,ft`\u2028`],[8233,ft`\u2029`],[65279,ft`\uFEFF`]]),yN=new RegExp("^\\p{Cased}$","u");function p2(e){return yN.test(e)}function U7(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,a=e.max.value,i=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return i;for(let l=r;l<=a;l++){const u=nr(l);if(!p2(u))continue;const d=L7(u).filter(m=>{const f=m.codePointAt(0);return f<r||f>a});if(d.length&&(i.push(...d),n))break}return i}function Wc(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ev.has(e))return Ev.get(e);if(e<32||e>126&&e<160||e>262143||t&&jN(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?bN:vN:gN,i=nr(e);return(a.has(i)?"\\":"")+i}function xN(e){const t=e.map(a=>a.codePointAt(0)).sort((a,i)=>a-i),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 _N(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:i}=t;r=(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")+(i?"-":"")+(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")}return`${r}:`}function wN({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 Dv({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function jN(e){return e>47&&e<58}function zv({type:e,value:t}){return e==="Character"&&t===45}var Oi,ti,Yl,Bi,Kl,td,pg,Gi,CN=(Gi=class extends RegExp{constructor(n,r,a){var t=(...Ule)=>(super(...Ule),Ll(this,td),Ll(this,Oi,new Map),Ll(this,ti,null),Ll(this,Yl),Ll(this,Bi,null),Ll(this,Kl,null),de(this,"rawOptions",{}),this);const i=!!(a!=null&&a.lazyCompile);if(n instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const l=n;t(l,r),qo(this,Yl,l.source),l instanceof Gi&&(qo(this,Oi,Qr(l,Oi)),qo(this,Bi,Qr(l,Bi)),qo(this,Kl,Qr(l,Kl)),this.rawOptions=l.rawOptions)}else{const l={hiddenCaptures:[],strategy:null,transfers:[],...a};t(i?"":n,r),qo(this,Yl,n),qo(this,Oi,NN(l.hiddenCaptures,l.transfers)),qo(this,Kl,l.strategy),this.rawOptions=a??{}}i||qo(this,ti,this)}get source(){return Qr(this,Yl)||"(?:)"}exec(n){if(!Qr(this,ti)){const{lazyCompile:i,...l}=this.rawOptions;qo(this,ti,new Gi(Qr(this,Yl),this.flags,l))}const r=this.global||this.sticky,a=this.lastIndex;if(Qr(this,Kl)==="clip_search"&&r&&a){this.lastIndex=0;const i=vh(this,td,pg).call(this,n.slice(a));return i&&(kN(i,a,n,this.hasIndices),this.lastIndex+=a),i}return vh(this,td,pg).call(this,n)}},Oi=new WeakMap,ti=new WeakMap,Yl=new WeakMap,Bi=new WeakMap,Kl=new WeakMap,td=new WeakSet,pg=function(n){Qr(this,ti).lastIndex=this.lastIndex;const r=E3(Gi.prototype,this,"exec").call(Qr(this,ti),n);if(this.lastIndex=Qr(this,ti).lastIndex,!r||!Qr(this,Oi).size)return r;const a=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const l=[0];for(let u=1;u<a.length;u++){const{hidden:d,transferTo:m}=Qr(this,Oi).get(u)??{};if(d?l.push(null):(l.push(r.length),r.push(a[u]),this.hasIndices&&r.indices.push(i[u])),m&&a[u]!==void 0){const f=l[m];if(!f)throw new Error(`Invalid capture transfer to "${f}"`);if(r[f]=a[u],this.hasIndices&&(r.indices[f]=i[u]),r.groups){Qr(this,Bi)||qo(this,Bi,SN(this.source));const h=Qr(this,Bi).get(m);h&&(r.groups[h]=a[u],this.hasIndices&&(r.indices.groups[h]=i[u]))}}}return r},Gi);function kN(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let l=0;l<a.length;l++){const u=a[l];u&&(a[l]=[u[0]+t,u[1]+t])}const i=a.groups;i&&Object.keys(i).forEach(l=>{const u=i[l];u&&(i[l]=[u[0]+t,u[1]+t])})}}function NN(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const i of a)W0(n,i,{}).transferTo=r;return n}function SN(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,i;for(;i=t.exec(e);){const{0:l,groups:{capture:u,name:d}}=i;l==="["?r++:r?l==="]"&&r--:u&&(a++,d&&n.set(a,d))}return n}function $N(e,t){const n=AN(e,t);return n.options?new CN(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function AN(e,t){const n=M7(t),r=N7(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:d2}),a=nN(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=mN(a,n),l=Vk(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),u=Uk(l.pattern),d=Bk(u.pattern,{captureTransfers:l.captureTransfers,hiddenCaptures:l.hiddenCaptures}),m={pattern:d.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.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 H7(e,t){return $N(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function EN(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||(t.regexConstructor=n=>H7(n,{target:t.target})),{createScanner(n){return new GC(n,t)},createString(n){return{content:n}}}}const DN=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"]}')),zN=[DN],TN=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"]}`)),MN=[TN],LN=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"}')),IN=[LN],PN={};function RN(e,t){const n=PN,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return V7(e,r,a)}function V7(e,t,n){if(qN(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 Tv(e.children,t,n)}return Array.isArray(e)?Tv(e,t,n):""}function Tv(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=V7(e[a],t,n);return r.join("")}function qN(e){return!!(e&&typeof e=="object")}const Mv=document.createElement("i");function m2(e){const t="&"+e+";";Mv.innerHTML=t;const n=Mv.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Pa(e,t,n,r){const a=e.length;let i=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function io(e,t){return e.length>0?(Pa(e,e.length,0,t),e):t}const Lv={}.hasOwnProperty;function G7(e){const t={};let n=-1;for(;++n<e.length;)FN(t,e[n]);return t}function FN(e,t){let n;for(n in t){const a=(Lv.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){Lv.call(a,l)||(a[l]=[]);const u=i[l];ON(a[l],Array.isArray(u)?u:u?[u]:[])}}}function ON(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pa(e,0,0,r)}function W7(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 Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ea=Ki(/[A-Za-z]/),Fr=Ki(/[\dA-Za-z]/),BN=Ki(/[#-'*+\--9=?A-Z^-~]/);function sm(e){return e!==null&&(e<32||e===127)}const mg=Ki(/\d/),UN=Ki(/[\dA-Fa-f]/),HN=Ki(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function nn(e){return e!==null&&(e<0||e===32)}function jt(e){return e===-2||e===-1||e===32}const od=Ki(new RegExp("\\p{P}|\\p{S}","u")),nc=Ki(/\s/);function Ki(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function h2(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Fr(e.charCodeAt(n+1))&&Fr(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(l=String.fromCharCode(i,u),a=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function vt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(d){return jt(d)?(e.enter(n),u(d)):t(d)}function u(d){return jt(d)&&i++<a?(e.consume(d),u):(e.exit(n),t(d))}}const VN={tokenize:GN};function GN(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"),vt(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ve(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),l)}}const WN={tokenize:ZN},Iv={tokenize:QN};function ZN(e){const t=this,n=[];let r=0,a,i,l;return u;function u(A){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,m)(A)}return m(A)}function d(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&S();const M=t.events.length;let L=M,z;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){z=t.events[L][1].end;break}C(r);let P=M;for(;P<t.events.length;)t.events[P][1].end={...z},P++;return Pa(t.events,L+1,0,t.events.slice(M)),t.events.length=P,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(Iv,f,h)(A)}function f(A){return a&&S(),C(r),b(A)}function h(A){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(A)}function b(A){return t.containerState={},e.attempt(Iv,y,g)(A)}function y(A){return r++,n.push([t.currentConstruct,t.containerState]),b(A)}function g(A){if(A===null){a&&S(),C(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),_(A)}function _(A){if(A===null){j(e.exit("chunkFlow"),!0),C(0),e.consume(A);return}return Ve(A)?(e.consume(A),j(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(A),_)}function j(A,M){const L=t.sliceStream(A);if(M&&L.push(null),A.previous=i,i&&(i.next=A),i=A,a.defineSkip(A.start),a.write(L),t.parser.lazy[A.start.line]){let z=a.events.length;for(;z--;)if(a.events[z][1].start.offset<l&&(!a.events[z][1].end||a.events[z][1].end.offset>l))return;const P=t.events.length;let H=P,R,F;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(R){F=t.events[H][1].end;break}R=!0}for(C(r),z=P;z<t.events.length;)t.events[z][1].end={...F},z++;Pa(t.events,H+1,0,t.events.slice(P)),t.events.length=z}}function C(A){let M=n.length;for(;M-- >A;){const L=n[M];t.containerState=L[1],L[0].exit.call(t,e)}n.length=A}function S(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function QN(e,t,n){return vt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iu(e){if(e===null||nn(e)||nc(e))return 1;if(od(e))return 2}function Rm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const im={name:"attention",resolveAll:XN,tokenize:YN};function XN(e,t){let n=-1,r,a,i,l,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};Pv(h,-d),Pv(b,d),l={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},i={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},m=[],e[r][1].end.offset-e[r][1].start.offset&&(m=io(m,[["enter",e[r][1],t],["exit",e[r][1],t]])),m=io(m,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",i,t]]),m=io(m,Rm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),m=io(m,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,m=io(m,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Pa(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 YN(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=iu(r);let i;return l;function l(d){return i=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===i)return e.consume(d),u;const m=e.exit("attentionSequence"),f=iu(d),h=!f||f===2&&a||n.includes(d),b=!a||a===2&&f||n.includes(r);return m._open=!!(i===42?h:h&&(a||!b)),m._close=!!(i===42?b:b&&(f||!h)),t(d)}}function Pv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const KN={name:"autolink",tokenize:JN};function JN(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"),i}function i(y){return ea(y)?(e.consume(y),l):y===64?n(y):m(y)}function l(y){return y===43||y===45||y===46||Fr(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||Fr(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||sm(y)?n(y):(e.consume(y),d)}function m(y){return y===64?(e.consume(y),f):BN(y)?(e.consume(y),m):n(y)}function f(y){return Fr(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||Fr(y))&&r++<63){const g=y===45?b:h;return e.consume(y),g}return n(y)}}const sd={partial:!0,tokenize:eS};function eS(e,t,n){return r;function r(i){return jt(i)?vt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Ve(i)?t(i):n(i)}}const Z7={continuation:{tokenize:nS},exit:rS,name:"blockQuote",tokenize:tS};function tS(e,t,n){const r=this;return a;function a(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return jt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function nS(e,t,n){const r=this;return a;function a(l){return jt(l)?vt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(Z7,t,n)(l)}}function rS(e){e.exit("blockQuote")}const Q7={name:"characterEscape",tokenize:aS};function aS(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return HN(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const X7={name:"characterReference",tokenize:oS};function oS(e,t,n){const r=this;let a=0,i,l;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"),i=31,l=Fr,f(h))}function m(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=UN,f):(e.enter("characterReferenceValue"),i=7,l=mg,f(h))}function f(h){if(h===59&&a){const b=e.exit("characterReferenceValue");return l===Fr&&!m2(r.sliceSerialize(b))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(h)&&a++<i?(e.consume(h),f):n(h)}}const Rv={partial:!0,tokenize:iS},qv={concrete:!0,name:"codeFenced",tokenize:sS};function sS(e,t,n){const r=this,a={partial:!0,tokenize:L};let i=0,l=0,u;return d;function d(z){return m(z)}function m(z){const P=r.events[r.events.length-1];return i=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(z)}function f(z){return z===u?(l++,e.consume(z),f):l<3?n(z):(e.exit("codeFencedFenceSequence"),jt(z)?vt(e,h,"whitespace")(z):h(z))}function h(z){return z===null||Ve(z)?(e.exit("codeFencedFence"),r.interrupt?t(z):e.check(Rv,_,M)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||Ve(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(z)):jt(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),vt(e,y,"whitespace")(z)):z===96&&z===u?n(z):(e.consume(z),b)}function y(z){return z===null||Ve(z)?h(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(z))}function g(z){return z===null||Ve(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(z)):z===96&&z===u?n(z):(e.consume(z),g)}function _(z){return e.attempt(a,M,j)(z)}function j(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),C}function C(z){return i>0&&jt(z)?vt(e,S,"linePrefix",i+1)(z):S(z)}function S(z){return z===null||Ve(z)?e.check(Rv,_,M)(z):(e.enter("codeFlowValue"),A(z))}function A(z){return z===null||Ve(z)?(e.exit("codeFlowValue"),S(z)):(e.consume(z),A)}function M(z){return e.exit("codeFenced"),t(z)}function L(z,P,H){let R=0;return F;function F(ee){return z.enter("lineEnding"),z.consume(ee),z.exit("lineEnding"),U}function U(ee){return z.enter("codeFencedFence"),jt(ee)?vt(z,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Z(ee)}function Z(ee){return ee===u?(z.enter("codeFencedFenceSequence"),re(ee)):H(ee)}function re(ee){return ee===u?(R++,z.consume(ee),re):R>=l?(z.exit("codeFencedFenceSequence"),jt(ee)?vt(z,le,"whitespace")(ee):le(ee)):H(ee)}function le(ee){return ee===null||Ve(ee)?(z.exit("codeFencedFence"),P(ee)):H(ee)}}}function iS(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Fh={name:"codeIndented",tokenize:cS},lS={partial:!0,tokenize:uS};function cS(e,t,n){const r=this;return a;function a(m){return e.enter("codeIndented"),vt(e,i,"linePrefix",5)(m)}function i(m){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(m):n(m)}function l(m){return m===null?d(m):Ve(m)?e.attempt(lS,l,d)(m):(e.enter("codeFlowValue"),u(m))}function u(m){return m===null||Ve(m)?(e.exit("codeFlowValue"),l(m)):(e.consume(m),u)}function d(m){return e.exit("codeIndented"),t(m)}}function uS(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):vt(e,i,"linePrefix",5)(l)}function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):Ve(l)?a(l):n(l)}}const dS={name:"codeText",previous:mS,resolve:pS,tokenize:hS};function pS(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 mS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hS(e,t,n){let r=0,a,i;return l;function l(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?(i=e.enter("codeTextSequence"),a=0,f(h)):Ve(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||Ve(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)):(i.type="codeTextData",m(h))}}class fS{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 i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&j0(this.left,r),i.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),j0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),j0(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);j0(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);j0(this.left,n.reverse())}}}function j0(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 Y7(e){const t={};let n=-1,r,a,i,l,u,d,m;const f=new fS(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,i=0,i<d.length&&d[i][1].type==="lineEndingBlank"&&(i+=2),i<d.length&&d[i][1].type==="content"))for(;++i<d.length&&d[i][1].type!=="content";)d[i][1].type==="chunkText"&&(d[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gS(f,n)),n=t[n],m=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(l=f.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=i);else if(!(l[1].type==="linePrefix"||l[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 Pa(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!m}function gS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,d=[],m={};let f,h,b=-1,y=n,g=0,_=0;const j=[_];for(;y;){for(;e.get(++a)[1]!==y;);i.push(a),y._tokenizer||(f=r.sliceStream(y),y.next||f.push(null),h&&l.defineSkip(y.start),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),y._isInFirstContentOfListItem&&(l._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,j.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(l.events=[],y?(y._tokenizer=void 0,y.previous=void 0):j.pop(),b=j.length;b--;){const C=u.slice(j[b],j[b+1]),S=i.pop();d.push([S,S+C.length-1]),e.splice(S,2,C)}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 vS={resolve:yS,tokenize:xS},bS={partial:!0,tokenize:_S};function yS(e){return Y7(e),e}function xS(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?i(u):Ve(u)?e.check(bS,l,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function _S(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),vt(e,i,"linePrefix")}function i(l){if(l===null||Ve(l))return n(l);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(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function K7(e,t,n,r,a,i,l,u,d){const m=d||Number.POSITIVE_INFINITY;let f=0;return h;function h(C){return C===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(C),e.exit(i),b):C===null||C===32||C===41||sm(C)?n(C):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(C))}function b(C){return C===62?(e.enter(i),e.consume(C),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===62?(e.exit("chunkString"),e.exit(u),b(C)):C===null||C===60||Ve(C)?n(C):(e.consume(C),C===92?g:y)}function g(C){return C===60||C===62||C===92?(e.consume(C),y):y(C)}function _(C){return!f&&(C===null||C===41||nn(C))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(C)):f<m&&C===40?(e.consume(C),f++,_):C===41?(e.consume(C),f--,_):C===null||C===32||C===40||sm(C)?n(C):(e.consume(C),C===92?j:_)}function j(C){return C===40||C===41||C===92?(e.consume(C),_):_(C)}}function J7(e,t,n,r,a,i){const l=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(i),f}function f(y){return u>999||y===null||y===91||y===93&&!d||y===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(y):y===93?(e.exit(i),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Ve(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||Ve(y)||u++>999?(e.exit("chunkString"),f(y)):(e.consume(y),d||(d=!jt(y)),y===92?b:h)}function b(y){return y===91||y===92||y===93?(e.consume(y),u++,h):h(y)}}function e8(e,t,n,r,a,i){let l;return u;function u(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),l=b===40?41:b,d):n(b)}function d(b){return b===l?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(i),m(b))}function m(b){return b===l?(e.exit(i),d(l)):b===null?n(b):Ve(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),vt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===l||b===null||Ve(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?h:f)}function h(b){return b===l||b===92?(e.consume(b),f):f(b)}}function R0(e,t){let n;return r;function r(a){return Ve(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):jt(a)?vt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const wS={name:"definition",tokenize:CS},jS={partial:!0,tokenize:kS};function CS(e,t,n){const r=this;let a;return i;function i(y){return e.enter("definition"),l(y)}function l(y){return J7.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function u(y){return a=Wo(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 nn(y)?R0(e,m)(y):m(y)}function m(y){return K7(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function f(y){return e.attempt(jS,h,h)(y)}function h(y){return jt(y)?vt(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Ve(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function kS(e,t,n){return r;function r(u){return nn(u)?R0(e,a)(u):n(u)}function a(u){return e8(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return jt(u)?vt(e,l,"whitespace")(u):l(u)}function l(u){return u===null||Ve(u)?t(u):n(u)}}const NS={name:"hardBreakEscape",tokenize:SS};function SS(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Ve(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const $S={name:"headingAtx",resolve:AS,tokenize:ES};function AS(e,t){let n=e.length-2,r=3,a,i;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},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pa(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function ES(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||nn(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),d(f)):f===null||Ve(f)?(e.exit("atxHeading"),t(f)):jt(f)?vt(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||nn(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),m)}}const DS=["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"],Fv=["pre","script","style","textarea"],zS={concrete:!0,name:"htmlFlow",resolveTo:LS,tokenize:IS},TS={partial:!0,tokenize:RS},MS={partial:!0,tokenize:PS};function LS(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 IS(e,t,n){const r=this;let a,i,l,u,d;return m;function m(E){return f(E)}function f(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),b):E===47?(e.consume(E),i=!0,_):E===63?(e.consume(E),a=3,r.interrupt?t:B):ea(E)?(e.consume(E),l=String.fromCharCode(E),j):n(E)}function b(E){return E===45?(e.consume(E),a=2,y):E===91?(e.consume(E),a=5,u=0,g):ea(E)?(e.consume(E),a=4,r.interrupt?t:B):n(E)}function y(E){return E===45?(e.consume(E),r.interrupt?t:B):n(E)}function g(E){const ue="CDATA[";return E===ue.charCodeAt(u++)?(e.consume(E),u===ue.length?r.interrupt?t:Z:g):n(E)}function _(E){return ea(E)?(e.consume(E),l=String.fromCharCode(E),j):n(E)}function j(E){if(E===null||E===47||E===62||nn(E)){const ue=E===47,ae=l.toLowerCase();return!ue&&!i&&Fv.includes(ae)?(a=1,r.interrupt?t(E):Z(E)):DS.includes(l.toLowerCase())?(a=6,ue?(e.consume(E),C):r.interrupt?t(E):Z(E)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):i?S(E):A(E))}return E===45||Fr(E)?(e.consume(E),l+=String.fromCharCode(E),j):n(E)}function C(E){return E===62?(e.consume(E),r.interrupt?t:Z):n(E)}function S(E){return jt(E)?(e.consume(E),S):F(E)}function A(E){return E===47?(e.consume(E),F):E===58||E===95||ea(E)?(e.consume(E),M):jt(E)?(e.consume(E),A):F(E)}function M(E){return E===45||E===46||E===58||E===95||Fr(E)?(e.consume(E),M):L(E)}function L(E){return E===61?(e.consume(E),z):jt(E)?(e.consume(E),L):A(E)}function z(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),d=E,P):jt(E)?(e.consume(E),z):H(E)}function P(E){return E===d?(e.consume(E),d=null,R):E===null||Ve(E)?n(E):(e.consume(E),P)}function H(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||nn(E)?L(E):(e.consume(E),H)}function R(E){return E===47||E===62||jt(E)?A(E):n(E)}function F(E){return E===62?(e.consume(E),U):n(E)}function U(E){return E===null||Ve(E)?Z(E):jt(E)?(e.consume(E),U):n(E)}function Z(E){return E===45&&a===2?(e.consume(E),ke):E===60&&a===1?(e.consume(E),_e):E===62&&a===4?(e.consume(E),O):E===63&&a===3?(e.consume(E),B):E===93&&a===5?(e.consume(E),Ne):Ve(E)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(TS,ne,re)(E)):E===null||Ve(E)?(e.exit("htmlFlowData"),re(E)):(e.consume(E),Z)}function re(E){return e.check(MS,le,ne)(E)}function le(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),ee}function ee(E){return E===null||Ve(E)?re(E):(e.enter("htmlFlowData"),Z(E))}function ke(E){return E===45?(e.consume(E),B):Z(E)}function _e(E){return E===47?(e.consume(E),l="",ie):Z(E)}function ie(E){if(E===62){const ue=l.toLowerCase();return Fv.includes(ue)?(e.consume(E),O):Z(E)}return ea(E)&&l.length<8?(e.consume(E),l+=String.fromCharCode(E),ie):Z(E)}function Ne(E){return E===93?(e.consume(E),B):Z(E)}function B(E){return E===62?(e.consume(E),O):E===45&&a===2?(e.consume(E),B):Z(E)}function O(E){return E===null||Ve(E)?(e.exit("htmlFlowData"),ne(E)):(e.consume(E),O)}function ne(E){return e.exit("htmlFlow"),t(E)}}function PS(e,t,n){const r=this;return a;function a(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function RS(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(sd,t,n)}}const qS={name:"htmlText",tokenize:FS};function FS(e,t,n){const r=this;let a,i,l;return u;function u(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),m):B===47?(e.consume(B),L):B===63?(e.consume(B),A):ea(B)?(e.consume(B),H):n(B)}function m(B){return B===45?(e.consume(B),f):B===91?(e.consume(B),i=0,g):ea(B)?(e.consume(B),S):n(B)}function f(B){return B===45?(e.consume(B),y):n(B)}function h(B){return B===null?n(B):B===45?(e.consume(B),b):Ve(B)?(l=h,_e(B)):(e.consume(B),h)}function b(B){return B===45?(e.consume(B),y):h(B)}function y(B){return B===62?ke(B):B===45?b(B):h(B)}function g(B){const O="CDATA[";return B===O.charCodeAt(i++)?(e.consume(B),i===O.length?_:g):n(B)}function _(B){return B===null?n(B):B===93?(e.consume(B),j):Ve(B)?(l=_,_e(B)):(e.consume(B),_)}function j(B){return B===93?(e.consume(B),C):_(B)}function C(B){return B===62?ke(B):B===93?(e.consume(B),C):_(B)}function S(B){return B===null||B===62?ke(B):Ve(B)?(l=S,_e(B)):(e.consume(B),S)}function A(B){return B===null?n(B):B===63?(e.consume(B),M):Ve(B)?(l=A,_e(B)):(e.consume(B),A)}function M(B){return B===62?ke(B):A(B)}function L(B){return ea(B)?(e.consume(B),z):n(B)}function z(B){return B===45||Fr(B)?(e.consume(B),z):P(B)}function P(B){return Ve(B)?(l=P,_e(B)):jt(B)?(e.consume(B),P):ke(B)}function H(B){return B===45||Fr(B)?(e.consume(B),H):B===47||B===62||nn(B)?R(B):n(B)}function R(B){return B===47?(e.consume(B),ke):B===58||B===95||ea(B)?(e.consume(B),F):Ve(B)?(l=R,_e(B)):jt(B)?(e.consume(B),R):ke(B)}function F(B){return B===45||B===46||B===58||B===95||Fr(B)?(e.consume(B),F):U(B)}function U(B){return B===61?(e.consume(B),Z):Ve(B)?(l=U,_e(B)):jt(B)?(e.consume(B),U):R(B)}function Z(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),a=B,re):Ve(B)?(l=Z,_e(B)):jt(B)?(e.consume(B),Z):(e.consume(B),le)}function re(B){return B===a?(e.consume(B),a=void 0,ee):B===null?n(B):Ve(B)?(l=re,_e(B)):(e.consume(B),re)}function le(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||nn(B)?R(B):(e.consume(B),le)}function ee(B){return B===47||B===62||nn(B)?R(B):n(B)}function ke(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function _e(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),ie}function ie(B){return jt(B)?vt(e,Ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):Ne(B)}function Ne(B){return e.enter("htmlTextData"),l(B)}}const f2={name:"labelEnd",resolveAll:HS,resolveTo:VS,tokenize:GS},OS={tokenize:WS},BS={tokenize:ZS},US={tokenize:QS};function HS(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&&Pa(e,0,e.length,n),e}function VS(e,t){let n=e.length,r=0,a,i,l,u;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",d,t],["enter",m,t]],u=io(u,e.slice(i+1,i+r+3)),u=io(u,[["enter",f,t]]),u=io(u,Rm(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),u=io(u,[["exit",f,t],e[l-2],e[l-1],["exit",m,t]]),u=io(u,e.slice(l+1)),u=io(u,[["exit",d,t]]),Pa(e,i,e.length,u),e}function GS(e,t,n){const r=this;let a=r.events.length,i,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return u;function u(b){return i?i._inactive?h(b):(l=r.parser.defined.includes(Wo(r.sliceSerialize({start:i.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(OS,f,l?f:h)(b):b===91?e.attempt(BS,f,l?m:h)(b):l?f(b):h(b)}function m(b){return e.attempt(US,f,h)(b)}function f(b){return t(b)}function h(b){return i._balanced=!0,n(b)}}function WS(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 nn(h)?R0(e,i)(h):i(h)}function i(h){return h===41?f(h):K7(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function l(h){return nn(h)?R0(e,d)(h):f(h)}function u(h){return n(h)}function d(h){return h===34||h===39||h===40?e8(e,m,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function m(h){return nn(h)?R0(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 ZS(e,t,n){const r=this;return a;function a(u){return J7.call(r,e,i,l,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function QS(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const XS={name:"labelStartImage",resolveAll:f2.resolveAll,tokenize:YS};function YS(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const KS={name:"labelStartLink",resolveAll:f2.resolveAll,tokenize:JS};function JS(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Oh={name:"lineEnding",tokenize:e$};function e$(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),vt(e,t,"linePrefix")}}const Bp={name:"thematicBreak",tokenize:t$};function t$(e,t,n){let r=0,a;return i;function i(m){return e.enter("thematicBreak"),l(m)}function l(m){return a=m,u(m)}function u(m){return m===a?(e.enter("thematicBreakSequence"),d(m)):r>=3&&(m===null||Ve(m))?(e.exit("thematicBreak"),t(m)):n(m)}function d(m){return m===a?(e.consume(m),r++,d):(e.exit("thematicBreakSequence"),jt(m)?vt(e,u,"whitespace")(m):u(m))}}const fa={continuation:{tokenize:o$},exit:i$,name:"list",tokenize:a$},n$={partial:!0,tokenize:l$},r$={partial:!0,tokenize:s$};function a$(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=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:mg(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(Bp,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 mg(y)&&++l<10?(e.consume(y),d):(!r.interrupt||l<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),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(sd,r.interrupt?n:f,e.attempt(n$,b,h))}function f(y){return r.containerState.initialBlankLine=!0,i++,b(y)}function h(y){return jt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function o$(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(sd,a,i);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,vt(e,t,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!jt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r$,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,vt(e,e.attempt(fa,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function s$(e,t,n){const r=this;return vt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function i$(e){e.exit(this.containerState.type)}function l$(e,t,n){const r=this;return vt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=r.events[r.events.length-1];return!jt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Ov={name:"setextUnderline",resolveTo:c$,tokenize:u$};function c$(e,t){let n=e.length,r,a,i;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),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function u$(e,t,n){const r=this;let a;return i;function i(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,l(m)):n(m)}function l(m){return e.enter("setextHeadingLineSequence"),u(m)}function u(m){return m===a?(e.consume(m),u):(e.exit("setextHeadingLineSequence"),jt(m)?vt(e,d,"lineSuffix")(m):d(m))}function d(m){return m===null||Ve(m)?(e.exit("setextHeadingLine"),t(m)):n(m)}}const d$={tokenize:p$};function p$(e){const t=this,n=e.attempt(sd,r,e.attempt(this.parser.constructs.flowInitial,a,vt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(vS,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const m$={resolveAll:n8()},h$=t8("string"),f$=t8("text");function t8(e){return{resolveAll:n8(e==="text"?g$:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,l,u);return l;function l(f){return m(f)?i(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"),i(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 n8(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function g$(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 i=a.length,l=-1,u=0,d;for(;i--;){const m=a[i];if(typeof m=="string"){for(l=m.length;m.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(m===-2)d=!0,u++;else if(m!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const m={type:n===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,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 v$={42:fa,43:fa,45:fa,48:fa,49:fa,50:fa,51:fa,52:fa,53:fa,54:fa,55:fa,56:fa,57:fa,62:Z7},b$={91:wS},y$={[-2]:Fh,[-1]:Fh,32:Fh},x$={35:$S,42:Bp,45:[Ov,Bp],60:zS,61:Ov,95:Bp,96:qv,126:qv},_$={38:X7,92:Q7},w$={[-5]:Oh,[-4]:Oh,[-3]:Oh,33:XS,38:X7,42:im,60:[KN,qS],91:KS,92:[NS,Q7],93:f2,95:im,96:dS},j$={null:[im,m$]},C$={null:[42,95]},k$={null:[]},N$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:C$,contentInitial:b$,disable:k$,document:v$,flow:x$,flowInitial:y$,insideSpan:j$,string:_$,text:w$},Symbol.toStringTag,{value:"Module"}));function S$(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={},i=[];let l=[],u=[];const d={attempt:P(L),check:P(z),consume:S,enter:A,exit:M,interrupt:P(z,{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&&i.push(t),m;function h(U){return l=io(l,U),j(),l[l.length-1]!==null?[]:(H(t,0),m.events=Rm(i,m.events,m),m.events)}function b(U,Z){return A$(y(U),Z)}function y(U){return $$(l,U)}function g(){const{_bufferIndex:U,_index:Z,line:re,column:le,offset:ee}=r;return{_bufferIndex:U,_index:Z,line:re,column:le,offset:ee}}function _(U){a[U.line]=U.column,F()}function j(){let U;for(;r._index<l.length;){const Z=l[r._index];if(typeof Z=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<Z.length;)C(Z.charCodeAt(r._bufferIndex));else C(Z)}}function C(U){f=f(U)}function S(U){Ve(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,F()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=U}function A(U,Z){const re=Z||{};return re.type=U,re.start=g(),m.events.push(["enter",re,m]),u.push(re),re}function M(U){const Z=u.pop();return Z.end=g(),m.events.push(["exit",Z,m]),Z}function L(U,Z){H(U,Z.from)}function z(U,Z){Z.restore()}function P(U,Z){return re;function re(le,ee,ke){let _e,ie,Ne,B;return Array.isArray(le)?ne(le):"tokenize"in le?ne([le]):O(le);function O(be){return $e;function $e(pe){const Le=pe!==null&&be[pe],Ae=pe!==null&&be.null,ut=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ae)?Ae:Ae?[Ae]:[]];return ne(ut)(pe)}}function ne(be){return _e=be,ie=0,be.length===0?ke:E(be[ie])}function E(be){return $e;function $e(pe){return B=R(),Ne=be,be.partial||(m.currentConstruct=be),be.name&&m.parser.constructs.disable.null.includes(be.name)?ae():be.tokenize.call(Z?Object.assign(Object.create(m),Z):m,d,ue,ae)(pe)}}function ue(be){return U(Ne,B),ee}function ae(be){return B.restore(),++ie<_e.length?E(_e[ie]):ke}}}function H(U,Z){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&Pa(m.events,Z,m.events.length-Z,U.resolve(m.events.slice(Z),m)),U.resolveTo&&(m.events=U.resolveTo(m.events,m))}function R(){const U=g(),Z=m.previous,re=m.currentConstruct,le=m.events.length,ee=Array.from(u);return{from:le,restore:ke};function ke(){r=U,m.previous=Z,m.currentConstruct=re,m.events.length=le,u=ee,F()}}function F(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function $$(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,i)];else{if(l=e.slice(n,a),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function A$(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
193
|
-
`;break}case-3:{l=`\r
|
|
194
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(i)}a=i===-2,r.push(l)}return r.join("")}function E$(e){const r={constructs:G7([N$,...(e||{}).extensions||[]]),content:a(VN),defined:[],document:a(WN),flow:a(d$),lazy:{},string:a(h$),text:a(f$)};return r;function a(i){return l;function l(u){return S$(r,i,u)}}}function D$(e){for(;!Y7(e););return e}const Bv=/[\0\t\n\r]/g;function z$(){let e=1,t="",n=!0,r;return a;function a(i,l,u){const d=[];let m,f,h,b,y;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(Bv.lastIndex=h,m=Bv.exec(i),b=m&&m.index!==void 0?m.index:i.length,y=i.charCodeAt(b),!m){t=i.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(i.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 T$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function M$(e){return e.replace(T$,L$)}function L$(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return W7(n.slice(i?2:1),i?16:10)}return m2(n)||e}function Up(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Uv(e.position):"start"in e||"end"in e?Uv(e):"line"in e||"column"in e?hg(e):""}function hg(e){return Hv(e&&e.line)+":"+Hv(e&&e.column)}function Uv(e){return hg(e&&e.start)+"-"+hg(e&&e.end)}function Hv(e){return e&&typeof e=="number"?e:1}const r8={}.hasOwnProperty;function a8(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),I$(n)(D$(E$(n).document().write(z$()(e,t,!0))))}function I$(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(gr),autolinkProtocol:R,autolinkEmail:R,atxHeading:i(An),blockQuote:i(Ae),characterEscape:R,characterReference:R,codeFenced:i(ut),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(ut,l),codeText:i(yt,l),codeTextData:R,data:R,codeFlowValue:R,definition:i(Ct),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(Qt),hardBreakEscape:i(cn),hardBreakTrailing:i(cn),htmlFlow:i(ya,l),htmlFlowData:R,htmlText:i(ya,l),htmlTextData:R,image:i(In),label:l,link:i(gr),listItem:i($r),listItemValue:b,listOrdered:i(qt,h),listUnordered:i(qt),paragraph:i(xa),reference:E,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(An),strong:i(or),thematicBreak:i(ra)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:Le,autolinkProtocol:pe,blockQuote:d(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:be,characterReference:$e,codeFenced:d(j),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:g,codeFlowValue:F,codeIndented:d(C),codeText:d(ee),codeTextData:F,data:F,definition:d(),definitionDestinationString:M,definitionLabelString:S,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(Z),hardBreakTrailing:d(Z),htmlFlow:d(re),htmlFlowData:F,htmlText:d(le),htmlTextData:F,image:d(_e),label:Ne,labelText:ie,lineEnding:U,link:d(ke),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ue,resourceDestinationString:B,resourceTitleString:O,resource:ne,setextHeading:d(H),setextHeadingLineSequence:P,setextHeadingText:z,strong:d(),thematicBreak:d()}};o8(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(me){let Se={type:"root",children:[]};const qe={stack:[Se],tokenStack:[],config:t,enter:u,exit:m,buffer:l,resume:f,data:n},ot=[];let gt=-1;for(;++gt<me.length;)if(me[gt][1].type==="listOrdered"||me[gt][1].type==="listUnordered")if(me[gt][0]==="enter")ot.push(gt);else{const Ht=ot.pop();gt=a(me,Ht,gt)}for(gt=-1;++gt<me.length;){const Ht=t[me[gt][0]];r8.call(Ht,me[gt][1].type)&&Ht[me[gt][1].type].call(Object.assign({sliceSerialize:me[gt][2].sliceSerialize},qe),me[gt][1])}if(qe.tokenStack.length>0){const Ht=qe.tokenStack[qe.tokenStack.length-1];(Ht[1]||Vv).call(qe,void 0,Ht[0])}for(Se.position={start:Li(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:Li(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},gt=-1;++gt<t.transforms.length;)Se=t.transforms[gt](Se)||Se;return Se}function a(me,Se,qe){let ot=Se-1,gt=-1,Ht=!1,Br,sr,Ur,vr;for(;++ot<=qe;){const an=me[ot];switch(an[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{an[0]==="enter"?gt++:gt--,vr=void 0;break}case"lineEndingBlank":{an[0]==="enter"&&(Br&&!vr&&!gt&&!Ur&&(Ur=ot),vr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vr=void 0}if(!gt&&an[0]==="enter"&&an[1].type==="listItemPrefix"||gt===-1&&an[0]==="exit"&&(an[1].type==="listUnordered"||an[1].type==="listOrdered")){if(Br){let Pn=ot;for(sr=void 0;Pn--;){const En=me[Pn];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;sr&&(me[sr][1].type="lineEndingBlank",Ht=!0),En[1].type="lineEnding",sr=Pn}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}Ur&&(!sr||Ur<sr)&&(Br._spread=!0),Br.end=Object.assign({},sr?me[sr][1].start:an[1].end),me.splice(sr||ot,0,["exit",Br,an[2]]),ot++,qe++}if(an[1].type==="listItemPrefix"){const Pn={type:"listItem",_spread:!1,start:Object.assign({},an[1].start),end:void 0};Br=Pn,me.splice(ot,0,["enter",Pn,an[2]]),ot++,qe++,Ur=void 0,vr=!0}}}return me[Se][1]._spread=Ht,qe}function i(me,Se){return qe;function qe(ot){u.call(this,me(ot),ot),Se&&Se.call(this,ot)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(me,Se,qe){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([Se,qe||void 0]),me.position={start:Li(Se.start),end:void 0}}function d(me){return Se;function Se(qe){me&&me.call(this,qe),m.call(this,qe)}}function m(me,Se){const qe=this.stack.pop(),ot=this.tokenStack.pop();if(ot)ot[0].type!==me.type&&(Se?Se.call(this,me,ot[0]):(ot[1]||Vv).call(this,me,ot[0]));else throw new Error("Cannot close `"+me.type+"` ("+Up({start:me.start,end:me.end})+"): it’s not open");qe.position.end=Li(me.end)}function f(){return RN(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function b(me){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function y(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=me}function g(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=me}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.value=me.replace(/(\r?\n|\r)$/g,"")}function S(me){const Se=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Se,qe.identifier=Wo(this.sliceSerialize(me)).toLowerCase()}function A(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.title=me}function M(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.url=me}function L(me){const Se=this.stack[this.stack.length-1];if(!Se.depth){const qe=this.sliceSerialize(me).length;Se.depth=qe}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function P(me){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function R(me){const qe=this.stack[this.stack.length-1].children;let ot=qe[qe.length-1];(!ot||ot.type!=="text")&&(ot=Qn(),ot.position={start:Li(me.start),end:void 0},qe.push(ot)),this.stack.push(ot)}function F(me){const Se=this.stack.pop();Se.value+=this.sliceSerialize(me),Se.position.end=Li(me.end)}function U(me){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const qe=Se.children[Se.children.length-1];qe.position.end=Li(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(R.call(this,me),F.call(this,me))}function Z(){this.data.atHardBreak=!0}function re(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.value=me}function le(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.value=me}function ee(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.value=me}function ke(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Se,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function _e(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Se,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function ie(me){const Se=this.sliceSerialize(me),qe=this.stack[this.stack.length-2];qe.label=M$(Se),qe.identifier=Wo(Se).toLowerCase()}function Ne(){const me=this.stack[this.stack.length-1],Se=this.resume(),qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,qe.type==="link"){const ot=me.children;qe.children=ot}else qe.alt=Se}function B(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.url=me}function O(){const me=this.resume(),Se=this.stack[this.stack.length-1];Se.title=me}function ne(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ue(me){const Se=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Se,qe.identifier=Wo(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function ae(me){this.data.characterReferenceType=me.type}function be(me){const Se=this.sliceSerialize(me),qe=this.data.characterReferenceType;let ot;qe?(ot=W7(Se,qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ot=m2(Se);const gt=this.stack[this.stack.length-1];gt.value+=ot}function $e(me){const Se=this.stack.pop();Se.position.end=Li(me.end)}function pe(me){F.call(this,me);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(me)}function Le(me){F.call(this,me);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(me)}function Ae(){return{type:"blockquote",children:[]}}function ut(){return{type:"code",lang:null,meta:null,value:""}}function yt(){return{type:"inlineCode",value:""}}function Ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function An(){return{type:"heading",depth:0,children:[]}}function cn(){return{type:"break"}}function ya(){return{type:"html",value:""}}function In(){return{type:"image",title:null,url:"",alt:null}}function gr(){return{type:"link",title:null,url:"",children:[]}}function qt(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function $r(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function xa(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function Qn(){return{type:"text",value:""}}function ra(){return{type:"thematicBreak"}}}function Li(e){return{line:e.line,column:e.column,offset:e.offset}}function o8(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?o8(e,r):P$(e,r)}}function P$(e,t){let n;for(n in t)if(r8.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 Vv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Up({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Up({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Up({start:t.start,end:t.end})+") is still open")}function R$(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const g2=(function(e){if(e==null)return B$;if(typeof e=="function")return qm(e);if(typeof e=="object")return Array.isArray(e)?q$(e):F$(e);if(typeof e=="string")return O$(e);throw new Error("Expected function, string, or object as test")});function q$(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=g2(e[n]);return qm(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function F$(e){const t=e;return qm(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function O$(e){return qm(t);function t(n){return n&&n.type===e}}function qm(e){return t;function t(n,r,a){return!!(U$(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function B$(){return!0}function U$(e){return e!==null&&typeof e=="object"&&"type"in e}const s8=[],H$=!0,Gv=!1,V$="skip";function G$(e,t,n,r){let a;a=t;const i=g2(a),l=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=s8,g,_,j;if(i(d,m,f[f.length-1]||void 0)&&(y=W$(n(d,f)),y[0]===Gv))return y;if("children"in d&&d.children){const C=d;if(C.children&&y[0]!==V$)for(_=-1+l,j=f.concat(C);_>-1&&_<C.children.length;){const S=C.children[_];if(g=u(S,_,j)(),g[0]===Gv)return g;_=typeof g[1]=="number"?g[1]:_+l}}return y}}}function W$(e){return Array.isArray(e)?e:typeof e=="number"?[H$,e]:e==null?s8:[e]}function Z$(e,t,n){const a=g2((n||{}).ignore||[]),i=Q$(t);let l=-1;for(;++l<i.length;)G$(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=i[l][0],y=i[l][1];let g=0;const j=h.children.indexOf(m);let C=!1,S=[];b.lastIndex=0;let A=b.exec(m.value);for(;A;){const M=A.index,L={index:A.index,input:A.input,stack:[...f,m]};let z=y(...A,L);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?b.lastIndex=M+1:(g!==M&&S.push({type:"text",value:m.value.slice(g,M)}),Array.isArray(z)?S.push(...z):z&&S.push(z),g=M+A[0].length,C=!0),!b.global)break;A=b.exec(m.value)}return C?(g<m.value.length&&S.push({type:"text",value:m.value.slice(g)}),h.children.splice(j,1,...S)):S=[m],j+S.length}}function Q$(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([X$(a[0]),Y$(a[1])])}return t}function X$(e){return typeof e=="string"?new RegExp(R$(e),"g"):e}function Y$(e){return typeof e=="function"?e:function(){return e}}function K$(){return{transforms:[aA],enter:{literalAutolink:J$,literalAutolinkEmail:Bh,literalAutolinkHttp:Bh,literalAutolinkWww:Bh},exit:{literalAutolink:rA,literalAutolinkEmail:nA,literalAutolinkHttp:eA,literalAutolinkWww:tA}}}function J$(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bh(e){this.config.enter.autolinkProtocol.call(this,e)}function eA(e){this.config.exit.autolinkProtocol.call(this,e)}function tA(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 nA(e){this.config.exit.autolinkEmail.call(this,e)}function rA(e){this.exit(e)}function aA(e){Z$(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,oA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),sA]],{ignore:["link","linkReference"]})}function oA(e,t,n,r,a){let i="";if(!i8(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!iA(n)))return!1;const l=lA(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function sA(e,t,n,r){return!i8(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iA(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 lA(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=em(e,"(");let i=em(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function i8(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||nc(n)||od(n))&&(!t||n!==47)}function cA(){this.buffer()}function uA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dA(){this.buffer()}function pA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function mA(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function hA(e){this.exit(e)}function fA(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gA(e){this.exit(e)}function vA(){return{enter:{gfmFootnoteCallString:cA,gfmFootnoteCall:uA,gfmFootnoteDefinitionLabelString:dA,gfmFootnoteDefinition:pA},exit:{gfmFootnoteCallString:mA,gfmFootnoteCall:hA,gfmFootnoteDefinitionLabelString:fA,gfmFootnoteDefinition:gA}}}function bA(){return{canContainEols:["delete"],enter:{strikethrough:yA},exit:{strikethrough:xA}}}function yA(e){this.enter({type:"delete",children:[]},e)}function xA(e){this.exit(e)}function _A(){return{enter:{table:wA,tableData:Wv,tableHeader:Wv,tableRow:CA},exit:{codeText:kA,table:jA,tableData:Uh,tableHeader:Uh,tableRow:Uh}}}function wA(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 jA(e){this.exit(e),this.data.inTable=void 0}function CA(e){this.enter({type:"tableRow",children:[]},e)}function Uh(e){this.exit(e)}function Wv(e){this.enter({type:"tableCell",children:[]},e)}function kA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,NA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function NA(e,t){return t==="|"?t:e}function SA(){return{exit:{taskListCheckValueChecked:Zv,taskListCheckValueUnchecked:Zv,paragraph:$A}}}function Zv(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $A(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 i=-1,l;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function l8(){return[K$(),vA(),bA(),_A(),SA()]}function AA(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:u,mathText:l,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 i(d){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},d),this.buffer()}function l(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 EA={tokenize:IA,partial:!0},c8={tokenize:PA,partial:!0},u8={tokenize:RA,partial:!0},d8={tokenize:qA,partial:!0},DA={tokenize:FA,partial:!0},p8={name:"wwwAutolink",tokenize:MA,previous:h8},m8={name:"protocolAutolink",tokenize:LA,previous:f8},si={name:"emailAutolink",tokenize:TA,previous:g8},vs={};function zA(){return{text:vs}}let Pl=48;for(;Pl<123;)vs[Pl]=si,Pl++,Pl===58?Pl=65:Pl===91&&(Pl=97);vs[43]=si;vs[45]=si;vs[46]=si;vs[95]=si;vs[72]=[si,m8];vs[104]=[si,m8];vs[87]=[si,p8];vs[119]=[si,p8];function TA(e,t,n){const r=this;let a,i;return l;function l(h){return!fg(h)||!g8.call(r,r.previous)||v2(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(h))}function u(h){return fg(h)?(e.consume(h),u):h===64?(e.consume(h),d):n(h)}function d(h){return h===46?e.check(DA,f,m)(h):h===45||h===95||Fr(h)?(i=!0,e.consume(h),d):f(h)}function m(h){return e.consume(h),a=!0,d}function f(h){return i&&a&&ea(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function MA(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!h8.call(r,r.previous)||v2(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(EA,e.attempt(c8,e.attempt(u8,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function LA(e,t,n){const r=this;let a="",i=!1;return l;function l(h){return(h===72||h===104)&&f8.call(r,r.previous)&&!v2(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),u):n(h)}function u(h){if(ea(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),i?m:(i=!0,d)):n(h)}function m(h){return h===null||sm(h)||nn(h)||nc(h)||od(h)?n(h):e.attempt(c8,e.attempt(u8,f),n)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function IA(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):t(l)}}function PA(e,t,n){let r,a,i;return l;function l(m){return m===46||m===95?e.check(d8,d,u)(m):m===null||nn(m)||nc(m)||m!==45&&od(m)?d(m):(i=!0,e.consume(m),l)}function u(m){return m===95?r=!0:(a=r,r=void 0),e.consume(m),l}function d(m){return a||r||!i?n(m):t(m)}}function RA(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(d8,t,i)(l):l===null||nn(l)||nc(l)?t(l):(e.consume(l),a)}function i(l){return l===41&&r++,e.consume(l),a}}function qA(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),i):u===93?(e.consume(u),a):u===60||u===null||nn(u)||nc(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||nn(u)||nc(u)?t(u):r(u)}function i(u){return ea(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):ea(u)?(e.consume(u),l):n(u)}}function FA(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Fr(i)?n(i):t(i)}}function h8(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nn(e)}function f8(e){return!ea(e)}function g8(e){return!(e===47||fg(e))}function fg(e){return e===43||e===45||e===46||e===95||Fr(e)}function v2(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 OA={tokenize:QA,partial:!0};function BA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:GA,continuation:{tokenize:WA},exit:ZA}},text:{91:{name:"gfmFootnoteCall",tokenize:VA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:UA,resolveTo:HA}}}}function UA(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!l||!l._balanced)return n(d);const m=Wo(r.sliceSerialize({start:l.end,end:r.now()}));return m.codePointAt(0)!==94||!i.includes(m.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function HA(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 i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function VA(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,l;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(i>999||h===93&&!l||h===null||h===91||nn(h))return n(h);if(h===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Wo(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return nn(h)||(l=!0),i++,e.consume(h),h===92?f:m}function f(h){return h===91||h===92||h===93?(e.consume(h),i++,m):m(h)}}function GA(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=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(l>999||g===93&&!u||g===null||g===91||nn(g))return n(g);if(g===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return nn(g)||(u=!0),l++,e.consume(g),g===92?h:f}function h(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function b(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),vt(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function WA(e,t,n){return e.check(sd,t,e.attempt(OA,t,n))}function ZA(e){e.exit("gfmFootnoteDefinition")}function QA(e,t,n){const r=this;return vt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(i):n(i)}}function XA(e){let n={}.singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,u){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let m=d;for(;m--;)if(l[m][0]==="exit"&&l[m][1].type==="strikethroughSequenceTemporary"&&l[m][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[m][1].end.offset-l[m][1].start.offset){l[d][1].type="strikethroughSequence",l[m][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[m][1].start),end:Object.assign({},l[d][1].end)},h={type:"strikethroughText",start:Object.assign({},l[m][1].end),end:Object.assign({},l[d][1].start)},b=[["enter",f,u],["enter",l[m][1],u],["exit",l[m][1],u],["enter",h,u]],y=u.parser.constructs.insideSpan.null;y&&Pa(b,b.length,0,Rm(y,l.slice(m+1,d),u)),Pa(b,b.length,0,[["exit",h,u],["enter",l[d][1],u],["exit",l[d][1],u],["exit",f,u]]),Pa(l,m-1,d-m+3,b),d=m+b.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function i(l,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):(l.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const _=iu(m);if(g===126)return h>1?d(g):(l.consume(g),h++,y);if(h<2&&!n)return d(g);const j=l.exit("strikethroughSequenceTemporary"),C=iu(g);return j._open=!C||C===2&&!!_,j._close=!_||_===2&&!!C,u(g)}}}class YA{constructor(){this.map=[]}add(t,n,r){KA(this,t,n,r)}consume(t){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function KA(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 JA(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 i=r.length-1;r[i]=r[i]==="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 eE(){return{flow:{null:{name:"table",tokenize:tE,resolveAll:nE}}}}function tE(e,t,n){const r=this;let a=0,i=0,l;return u;function u(F){let U=r.events.length-1;for(;U>-1;){const le=r.events[U][1].type;if(le==="lineEnding"||le==="linePrefix")U--;else break}const Z=U>-1?r.events[U][1].type:null,re=Z==="tableHead"||Z==="tableRow"?z:d;return re===z&&r.parser.lazy[r.now().line]?n(F):re(F)}function d(F){return e.enter("tableHead"),e.enter("tableRow"),m(F)}function m(F){return F===124||(l=!0,i+=1),f(F)}function f(F){return F===null?n(F):Ve(F)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),y):n(F):jt(F)?vt(e,f,"whitespace")(F):(i+=1,l&&(l=!1,a+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),h(F)))}function h(F){return F===null||F===124||nn(F)?(e.exit("data"),f(F)):(e.consume(F),F===92?b:h)}function b(F){return F===92||F===124?(e.consume(F),h):h(F)}function y(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),l=!1,jt(F)?vt(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):g(F))}function g(F){return F===45||F===58?j(F):F===124?(l=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),_):L(F)}function _(F){return jt(F)?vt(e,j,"whitespace")(F):j(F)}function j(F){return F===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),C):F===45?(i+=1,C(F)):F===null||Ve(F)?M(F):L(F)}function C(F){return F===45?(e.enter("tableDelimiterFiller"),S(F)):L(F)}function S(F){return F===45?(e.consume(F),S):F===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(F))}function A(F){return jt(F)?vt(e,M,"whitespace")(F):M(F)}function M(F){return F===124?g(F):F===null||Ve(F)?!l||a!==i?L(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):L(F)}function L(F){return n(F)}function z(F){return e.enter("tableRow"),P(F)}function P(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),P):F===null||Ve(F)?(e.exit("tableRow"),t(F)):jt(F)?vt(e,P,"whitespace")(F):(e.enter("data"),H(F))}function H(F){return F===null||F===124||nn(F)?(e.exit("data"),P(F)):(e.consume(F),F===92?R:H)}function R(F){return F===92||F===124?(e.consume(F),H):H(F)}}function nE(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],u=!1,d=0,m,f,h;const b=new YA;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(u=!1,d!==0&&(Qv(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,i=[0,0,0,0],l=[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,l[2]===0&&(i[1]!==0&&(l[0]=l[1],h=jp(b,t,i,a,void 0,h),i=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(l[0]=l[1],h=jp(b,t,i,a,void 0,h)),i=l,l=[i[1],n,0,0])):g.type==="tableHead"?(u=!0,d=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(d=n,i[1]!==0?(l[0]=l[1],h=jp(b,t,i,a,n,h)):l[1]!==0&&(h=jp(b,t,l,a,n,h)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&Qv(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=JA(t.events,n))}return e}function jp(e,t,n,r,a,i){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(i.end=Object.assign({},tu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const d=tu(t.events,n[1]);if(i={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const m=tu(t.events,n[2]),f=tu(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&&(i.end=Object.assign({},tu(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Qv(e,t,n,r,a){const i=[],l=tu(t.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function tu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const rE={name:"tasklistCheck",tokenize:oE};function aE(){return{text:{91:rE}}}function oE(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"),i)}function i(d){return nn(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return Ve(d)?t(d):jt(d)?e.check({tokenize:sE},t,n)(d):n(d)}}function sE(e,t,n){return vt(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function v8(e){return G7([zA(),BA(),XA(),eE(),aE()])}const iE={tokenize:lE,concrete:!0,name:"mathFlow"},Xv={tokenize:cE,partial:!0};function lE(e,t,n){const r=this,a=r.events[r.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=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),l++,d):l<2?n(S):(e.exit("mathFlowFenceSequence"),vt(e,m,"whitespace")(S))}function m(S){return S===null||Ve(S)?h(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||Ve(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(Xv,b,j)(S)}function b(S){return e.attempt({tokenize:C,partial:!0},j,y)(S)}function y(S){return(i?vt(e,g,"linePrefix",i+1):g)(S)}function g(S){return S===null?j(S):Ve(S)?e.attempt(Xv,b,j)(S):(e.enter("mathFlowValue"),_(S))}function _(S){return S===null||Ve(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),_)}function j(S){return e.exit("mathFlow"),t(S)}function C(S,A,M){let L=0;return vt(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function z(R){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),P(R)}function P(R){return R===36?(L++,S.consume(R),P):L<l?M(R):(S.exit("mathFlowFenceSequence"),vt(S,H,"whitespace")(R))}function H(R){return R===null||Ve(R)?(S.exit("mathFlowFence"),A(R)):M(R)}}}function cE(e,t,n){const r=this;return a;function a(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function uE(e){let n={}.singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:dE,previous:pE,name:"mathText"};function r(a,i,l){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?l(_):(a.exit("mathTextSequence"),b(_))}function b(_){return _===null?l(_):_===36?(m=a.enter("mathTextSequence"),d=0,g(_)):_===32?(a.enter("space"),a.consume(_),a.exit("space"),b):Ve(_)?(a.enter("lineEnding"),a.consume(_),a.exit("lineEnding"),b):(a.enter("mathTextData"),y(_))}function y(_){return _===null||_===32||_===36||Ve(_)?(a.exit("mathTextData"),b(_)):(a.consume(_),y)}function g(_){return _===36?(a.consume(_),d++,g):d===u?(a.exit("mathTextSequence"),a.exit("mathText"),i(_)):(m.type="mathTextData",y(_))}}}function dE(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 pE(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function mE(e){return{flow:{36:iE},text:{36:uE()}}}class De extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,i,l=n&&n.loc;if(l&&l.start<=l.end){var u=l.lexer.input;a=l.start,i=l.end,a===u.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var d=u.slice(a,i).replace(/[^]/g,"$&̲"),m;a>15?m="…"+u.slice(a-15,a):m=u.slice(0,a);var f;i+15<u.length?f=u.slice(i,i+15)+"…":f=u.slice(i),r+=m+d+f}super(r),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,De.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=t}}var hE=/([A-Z])/g,fE=e=>e.replace(hE,"-$1").toLowerCase(),gE={"&":"&",">":">","<":"<",'"':""","'":"'"},vE=/[&><"']/g,Or=e=>String(e).replace(vE,t=>gE[t]),Hp=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Hp(e.body[0]):e:e.type==="font"?Hp(e.body):e,bE=new Set(["mathord","textord","atom"]),ii=e=>bE.has(Hp(e).type),yE=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"},gg={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 xE(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 _E(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return xE(t)}function wE(e,t,n,r){var a=n[t];e[t]=a!==void 0?r.processor?r.processor(a):a:_E(r)}class b2{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(gg)){var r=gg[n];r&&wE(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 De("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=yE(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Ii{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 hs[jE[this.id]]}sub(){return hs[CE[this.id]]}fracNum(){return hs[kE[this.id]]}fracDen(){return hs[NE[this.id]]}cramp(){return hs[SE[this.id]]}text(){return hs[$E[this.id]]}isTight(){return this.size>=2}}var y2=0,lm=1,ou=2,ai=3,Z0=4,mo=5,lu=6,ta=7,hs=[new Ii(y2,0,!1),new Ii(lm,0,!0),new Ii(ou,1,!1),new Ii(ai,1,!0),new Ii(Z0,2,!1),new Ii(mo,2,!0),new Ii(lu,3,!1),new Ii(ta,3,!0)],jE=[Z0,mo,Z0,mo,lu,ta,lu,ta],CE=[mo,mo,mo,mo,ta,ta,ta,ta],kE=[ou,ai,Z0,mo,lu,ta,lu,ta],NE=[ai,ai,mo,mo,ta,ta,ta,ta],SE=[lm,lm,ai,ai,mo,mo,ta,ta],$E=[y2,lm,ou,ai,ou,ai,ou,ai],ht={DISPLAY:hs[y2],TEXT:hs[ou],SCRIPT:hs[Z0],SCRIPTSCRIPT:hs[lu]},vg=[{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 AE(e){for(var t=0;t<vg.length;t++)for(var n=vg[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 Vp=[];vg.forEach(e=>e.blocks.forEach(t=>Vp.push(...t)));function b8(e){for(var t=0;t<Vp.length;t+=2)if(e>=Vp[t]&&e<=Vp[t+1])return!0;return!1}var er=e=>e+" "+e,Zc=80,EE=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"},DE=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"},zE=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"},TE=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"},ME=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"},LE=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},IE=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"},PE=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=EE(n,Zc);break;case"sqrtSize1":a=DE(n,Zc);break;case"sqrtSize2":a=zE(n,Zc);break;case"sqrtSize3":a=TE(n,Zc);break;case"sqrtSize4":a=ME(n,Zc);break;case"sqrtTall":a=IE(n,Zc,r)}return a},RE=function(t,n){switch(t){case"⎜":return er("M291 0 H417 V"+n+" H291z");case"∣":return er("M145 0 H188 V"+n+" H145z");case"∥":return er("M145 0 H188 V"+n+" H145z")+er("M367 0 H410 V"+n+" H367z");case"⎟":return er("M457 0 H583 V"+n+" H457z");case"⎢":return er("M319 0 H403 V"+n+" H319z");case"⎥":return er("M263 0 H347 V"+n+" H263z");case"⎪":return er("M384 0 H504 V"+n+" H384z");case"⏐":return er("M312 0 H355 V"+n+" H312z");case"‖":return er("M257 0 H300 V"+n+" H257z")+er("M478 0 H521 V"+n+" H478z");default:return""}},Yv={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:er("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:er("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:er("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:er("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:er("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:er("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:er("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:er("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`},qE=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 FE(e){return"toText"in e}class gu{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(FE(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var bg={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},OE={ex:!0,em:!0,mu:!0},y8=function(t){return typeof t!="string"&&(t=t.unit),t in bg||t in OE||t==="ex"},wn=function(t,n){var r;if(t.unit in bg)r=bg[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 De("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},Wi=function(t){return t.filter(n=>n).join(" ")},x2=function(t){var n="";for(var r of Object.keys(t)){var a=t[r];a!==void 0&&(n+=fE(r)+":"+a+";")}return n},x8=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)}},_8=function(t){var n=document.createElement(t);n.className=Wi(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},BE=/[\s"'>/=\x00-\x1f]/,w8=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Or(Wi(this.classes))+'"');var r=x2(this.style);r&&(n+=' style="'+Or(r)+'"');for(var a of Object.keys(this.attributes)){if(BE.test(a))throw new De("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Or(this.attributes[a])+'"'}n+=">";for(var i=0;i<this.children.length;i++)n+=this.children[i].toMarkup();return n+="</"+t+">",n};class vu{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,x8.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return _8.call(this,"span")}toMarkup(){return w8.call(this,"span")}}class Fm{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,x8.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 _8.call(this,"a")}toMarkup(){return w8.call(this,"a")}}class UE{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="'+Or(this.src)+'"'+(' alt="'+Or(this.alt)+'"'),n=x2(this.style);return n&&(t+=' style="'+Or(n)+'"'),t+="'/>",t}}var HE={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Fa{constructor(t,n,r,a,i,l,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=i||0,this.width=l||0,this.classes=u||[],this.style=d||{},this.maxFontSize=0;var m=AE(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=HE[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=Me(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Wi(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+=Or(Wi(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+Me(this.italic)+";"),r+=x2(this.style),r&&(t=!0,n+=' style="'+Or(r)+'"');var a=Or(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class oi{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+'="'+Or(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Zi{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",Yv[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Or(this.alternate)+'"/>':'<path d="'+Or(Yv[this.pathName])+'"/>'}}class yg{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+'="'+Or(this.attributes[n])+'"';return t+="/>",t}}function VE(e){if(e instanceof Fa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function GE(e){if(e instanceof vu)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var WE=e=>e instanceof vu||e instanceof Fm||e instanceof gu,fs={"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]}},Cp={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]},Kv={Å:"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 ZE(e,t){fs[e]=t}function _2(e,t,n){if(!fs[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=fs[t][r];if(!a&&e[0]in Kv&&(r=Kv[e[0]].charCodeAt(0),a=fs[t][r]),!a&&n==="text"&&b8(r)&&(a=fs[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Hh={};function QE(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Hh[t]){var n=Hh[t]={cssEmPerMu:Cp.quad[t]/18};for(var r in Cp)Cp.hasOwnProperty(r)&&(n[r]=Cp[r][t])}return Hh[t]}var hn={math:{},text:{}};function w(e,t,n,r,a,i){hn[e][a]={font:t,group:n,replace:r},i&&r&&(hn[e][r]=hn[e][a])}var N="math",ve="text",T="main",G="ams",fn="accent-token",Be="bin",na="close",bu="inner",at="mathord",Wn="op-token",Oa="open",id="punct",W="rel",li="spacing",J="textord";w(N,T,W,"≡","\\equiv",!0);w(N,T,W,"≺","\\prec",!0);w(N,T,W,"≻","\\succ",!0);w(N,T,W,"∼","\\sim",!0);w(N,T,W,"⊥","\\perp");w(N,T,W,"⪯","\\preceq",!0);w(N,T,W,"⪰","\\succeq",!0);w(N,T,W,"≃","\\simeq",!0);w(N,T,W,"∣","\\mid",!0);w(N,T,W,"≪","\\ll",!0);w(N,T,W,"≫","\\gg",!0);w(N,T,W,"≍","\\asymp",!0);w(N,T,W,"∥","\\parallel");w(N,T,W,"⋈","\\bowtie",!0);w(N,T,W,"⌣","\\smile",!0);w(N,T,W,"⊑","\\sqsubseteq",!0);w(N,T,W,"⊒","\\sqsupseteq",!0);w(N,T,W,"≐","\\doteq",!0);w(N,T,W,"⌢","\\frown",!0);w(N,T,W,"∋","\\ni",!0);w(N,T,W,"∝","\\propto",!0);w(N,T,W,"⊢","\\vdash",!0);w(N,T,W,"⊣","\\dashv",!0);w(N,T,W,"∋","\\owns");w(N,T,id,".","\\ldotp");w(N,T,id,"⋅","\\cdotp");w(N,T,id,"⋅","·");w(ve,T,J,"⋅","·");w(N,T,J,"#","\\#");w(ve,T,J,"#","\\#");w(N,T,J,"&","\\&");w(ve,T,J,"&","\\&");w(N,T,J,"ℵ","\\aleph",!0);w(N,T,J,"∀","\\forall",!0);w(N,T,J,"ℏ","\\hbar",!0);w(N,T,J,"∃","\\exists",!0);w(N,T,J,"∇","\\nabla",!0);w(N,T,J,"♭","\\flat",!0);w(N,T,J,"ℓ","\\ell",!0);w(N,T,J,"♮","\\natural",!0);w(N,T,J,"♣","\\clubsuit",!0);w(N,T,J,"℘","\\wp",!0);w(N,T,J,"♯","\\sharp",!0);w(N,T,J,"♢","\\diamondsuit",!0);w(N,T,J,"ℜ","\\Re",!0);w(N,T,J,"♡","\\heartsuit",!0);w(N,T,J,"ℑ","\\Im",!0);w(N,T,J,"♠","\\spadesuit",!0);w(N,T,J,"§","\\S",!0);w(ve,T,J,"§","\\S");w(N,T,J,"¶","\\P",!0);w(ve,T,J,"¶","\\P");w(N,T,J,"†","\\dag");w(ve,T,J,"†","\\dag");w(ve,T,J,"†","\\textdagger");w(N,T,J,"‡","\\ddag");w(ve,T,J,"‡","\\ddag");w(ve,T,J,"‡","\\textdaggerdbl");w(N,T,na,"⎱","\\rmoustache",!0);w(N,T,Oa,"⎰","\\lmoustache",!0);w(N,T,na,"⟯","\\rgroup",!0);w(N,T,Oa,"⟮","\\lgroup",!0);w(N,T,Be,"∓","\\mp",!0);w(N,T,Be,"⊖","\\ominus",!0);w(N,T,Be,"⊎","\\uplus",!0);w(N,T,Be,"⊓","\\sqcap",!0);w(N,T,Be,"∗","\\ast");w(N,T,Be,"⊔","\\sqcup",!0);w(N,T,Be,"◯","\\bigcirc",!0);w(N,T,Be,"∙","\\bullet",!0);w(N,T,Be,"‡","\\ddagger");w(N,T,Be,"≀","\\wr",!0);w(N,T,Be,"⨿","\\amalg");w(N,T,Be,"&","\\And");w(N,T,W,"⟵","\\longleftarrow",!0);w(N,T,W,"⇐","\\Leftarrow",!0);w(N,T,W,"⟸","\\Longleftarrow",!0);w(N,T,W,"⟶","\\longrightarrow",!0);w(N,T,W,"⇒","\\Rightarrow",!0);w(N,T,W,"⟹","\\Longrightarrow",!0);w(N,T,W,"↔","\\leftrightarrow",!0);w(N,T,W,"⟷","\\longleftrightarrow",!0);w(N,T,W,"⇔","\\Leftrightarrow",!0);w(N,T,W,"⟺","\\Longleftrightarrow",!0);w(N,T,W,"↦","\\mapsto",!0);w(N,T,W,"⟼","\\longmapsto",!0);w(N,T,W,"↗","\\nearrow",!0);w(N,T,W,"↩","\\hookleftarrow",!0);w(N,T,W,"↪","\\hookrightarrow",!0);w(N,T,W,"↘","\\searrow",!0);w(N,T,W,"↼","\\leftharpoonup",!0);w(N,T,W,"⇀","\\rightharpoonup",!0);w(N,T,W,"↙","\\swarrow",!0);w(N,T,W,"↽","\\leftharpoondown",!0);w(N,T,W,"⇁","\\rightharpoondown",!0);w(N,T,W,"↖","\\nwarrow",!0);w(N,T,W,"⇌","\\rightleftharpoons",!0);w(N,G,W,"≮","\\nless",!0);w(N,G,W,"","\\@nleqslant");w(N,G,W,"","\\@nleqq");w(N,G,W,"⪇","\\lneq",!0);w(N,G,W,"≨","\\lneqq",!0);w(N,G,W,"","\\@lvertneqq");w(N,G,W,"⋦","\\lnsim",!0);w(N,G,W,"⪉","\\lnapprox",!0);w(N,G,W,"⊀","\\nprec",!0);w(N,G,W,"⋠","\\npreceq",!0);w(N,G,W,"⋨","\\precnsim",!0);w(N,G,W,"⪹","\\precnapprox",!0);w(N,G,W,"≁","\\nsim",!0);w(N,G,W,"","\\@nshortmid");w(N,G,W,"∤","\\nmid",!0);w(N,G,W,"⊬","\\nvdash",!0);w(N,G,W,"⊭","\\nvDash",!0);w(N,G,W,"⋪","\\ntriangleleft");w(N,G,W,"⋬","\\ntrianglelefteq",!0);w(N,G,W,"⊊","\\subsetneq",!0);w(N,G,W,"","\\@varsubsetneq");w(N,G,W,"⫋","\\subsetneqq",!0);w(N,G,W,"","\\@varsubsetneqq");w(N,G,W,"≯","\\ngtr",!0);w(N,G,W,"","\\@ngeqslant");w(N,G,W,"","\\@ngeqq");w(N,G,W,"⪈","\\gneq",!0);w(N,G,W,"≩","\\gneqq",!0);w(N,G,W,"","\\@gvertneqq");w(N,G,W,"⋧","\\gnsim",!0);w(N,G,W,"⪊","\\gnapprox",!0);w(N,G,W,"⊁","\\nsucc",!0);w(N,G,W,"⋡","\\nsucceq",!0);w(N,G,W,"⋩","\\succnsim",!0);w(N,G,W,"⪺","\\succnapprox",!0);w(N,G,W,"≆","\\ncong",!0);w(N,G,W,"","\\@nshortparallel");w(N,G,W,"∦","\\nparallel",!0);w(N,G,W,"⊯","\\nVDash",!0);w(N,G,W,"⋫","\\ntriangleright");w(N,G,W,"⋭","\\ntrianglerighteq",!0);w(N,G,W,"","\\@nsupseteqq");w(N,G,W,"⊋","\\supsetneq",!0);w(N,G,W,"","\\@varsupsetneq");w(N,G,W,"⫌","\\supsetneqq",!0);w(N,G,W,"","\\@varsupsetneqq");w(N,G,W,"⊮","\\nVdash",!0);w(N,G,W,"⪵","\\precneqq",!0);w(N,G,W,"⪶","\\succneqq",!0);w(N,G,W,"","\\@nsubseteqq");w(N,G,Be,"⊴","\\unlhd");w(N,G,Be,"⊵","\\unrhd");w(N,G,W,"↚","\\nleftarrow",!0);w(N,G,W,"↛","\\nrightarrow",!0);w(N,G,W,"⇍","\\nLeftarrow",!0);w(N,G,W,"⇏","\\nRightarrow",!0);w(N,G,W,"↮","\\nleftrightarrow",!0);w(N,G,W,"⇎","\\nLeftrightarrow",!0);w(N,G,W,"△","\\vartriangle");w(N,G,J,"ℏ","\\hslash");w(N,G,J,"▽","\\triangledown");w(N,G,J,"◊","\\lozenge");w(N,G,J,"Ⓢ","\\circledS");w(N,G,J,"®","\\circledR");w(ve,G,J,"®","\\circledR");w(N,G,J,"∡","\\measuredangle",!0);w(N,G,J,"∄","\\nexists");w(N,G,J,"℧","\\mho");w(N,G,J,"Ⅎ","\\Finv",!0);w(N,G,J,"⅁","\\Game",!0);w(N,G,J,"‵","\\backprime");w(N,G,J,"▲","\\blacktriangle");w(N,G,J,"▼","\\blacktriangledown");w(N,G,J,"■","\\blacksquare");w(N,G,J,"⧫","\\blacklozenge");w(N,G,J,"★","\\bigstar");w(N,G,J,"∢","\\sphericalangle",!0);w(N,G,J,"∁","\\complement",!0);w(N,G,J,"ð","\\eth",!0);w(ve,T,J,"ð","ð");w(N,G,J,"╱","\\diagup");w(N,G,J,"╲","\\diagdown");w(N,G,J,"□","\\square");w(N,G,J,"□","\\Box");w(N,G,J,"◊","\\Diamond");w(N,G,J,"¥","\\yen",!0);w(ve,G,J,"¥","\\yen",!0);w(N,G,J,"✓","\\checkmark",!0);w(ve,G,J,"✓","\\checkmark");w(N,G,J,"ℶ","\\beth",!0);w(N,G,J,"ℸ","\\daleth",!0);w(N,G,J,"ℷ","\\gimel",!0);w(N,G,J,"ϝ","\\digamma",!0);w(N,G,J,"ϰ","\\varkappa");w(N,G,Oa,"┌","\\@ulcorner",!0);w(N,G,na,"┐","\\@urcorner",!0);w(N,G,Oa,"└","\\@llcorner",!0);w(N,G,na,"┘","\\@lrcorner",!0);w(N,G,W,"≦","\\leqq",!0);w(N,G,W,"⩽","\\leqslant",!0);w(N,G,W,"⪕","\\eqslantless",!0);w(N,G,W,"≲","\\lesssim",!0);w(N,G,W,"⪅","\\lessapprox",!0);w(N,G,W,"≊","\\approxeq",!0);w(N,G,Be,"⋖","\\lessdot");w(N,G,W,"⋘","\\lll",!0);w(N,G,W,"≶","\\lessgtr",!0);w(N,G,W,"⋚","\\lesseqgtr",!0);w(N,G,W,"⪋","\\lesseqqgtr",!0);w(N,G,W,"≑","\\doteqdot");w(N,G,W,"≓","\\risingdotseq",!0);w(N,G,W,"≒","\\fallingdotseq",!0);w(N,G,W,"∽","\\backsim",!0);w(N,G,W,"⋍","\\backsimeq",!0);w(N,G,W,"⫅","\\subseteqq",!0);w(N,G,W,"⋐","\\Subset",!0);w(N,G,W,"⊏","\\sqsubset",!0);w(N,G,W,"≼","\\preccurlyeq",!0);w(N,G,W,"⋞","\\curlyeqprec",!0);w(N,G,W,"≾","\\precsim",!0);w(N,G,W,"⪷","\\precapprox",!0);w(N,G,W,"⊲","\\vartriangleleft");w(N,G,W,"⊴","\\trianglelefteq");w(N,G,W,"⊨","\\vDash",!0);w(N,G,W,"⊪","\\Vvdash",!0);w(N,G,W,"⌣","\\smallsmile");w(N,G,W,"⌢","\\smallfrown");w(N,G,W,"≏","\\bumpeq",!0);w(N,G,W,"≎","\\Bumpeq",!0);w(N,G,W,"≧","\\geqq",!0);w(N,G,W,"⩾","\\geqslant",!0);w(N,G,W,"⪖","\\eqslantgtr",!0);w(N,G,W,"≳","\\gtrsim",!0);w(N,G,W,"⪆","\\gtrapprox",!0);w(N,G,Be,"⋗","\\gtrdot");w(N,G,W,"⋙","\\ggg",!0);w(N,G,W,"≷","\\gtrless",!0);w(N,G,W,"⋛","\\gtreqless",!0);w(N,G,W,"⪌","\\gtreqqless",!0);w(N,G,W,"≖","\\eqcirc",!0);w(N,G,W,"≗","\\circeq",!0);w(N,G,W,"≜","\\triangleq",!0);w(N,G,W,"∼","\\thicksim");w(N,G,W,"≈","\\thickapprox");w(N,G,W,"⫆","\\supseteqq",!0);w(N,G,W,"⋑","\\Supset",!0);w(N,G,W,"⊐","\\sqsupset",!0);w(N,G,W,"≽","\\succcurlyeq",!0);w(N,G,W,"⋟","\\curlyeqsucc",!0);w(N,G,W,"≿","\\succsim",!0);w(N,G,W,"⪸","\\succapprox",!0);w(N,G,W,"⊳","\\vartriangleright");w(N,G,W,"⊵","\\trianglerighteq");w(N,G,W,"⊩","\\Vdash",!0);w(N,G,W,"∣","\\shortmid");w(N,G,W,"∥","\\shortparallel");w(N,G,W,"≬","\\between",!0);w(N,G,W,"⋔","\\pitchfork",!0);w(N,G,W,"∝","\\varpropto");w(N,G,W,"◀","\\blacktriangleleft");w(N,G,W,"∴","\\therefore",!0);w(N,G,W,"∍","\\backepsilon");w(N,G,W,"▶","\\blacktriangleright");w(N,G,W,"∵","\\because",!0);w(N,G,W,"⋘","\\llless");w(N,G,W,"⋙","\\gggtr");w(N,G,Be,"⊲","\\lhd");w(N,G,Be,"⊳","\\rhd");w(N,G,W,"≂","\\eqsim",!0);w(N,T,W,"⋈","\\Join");w(N,G,W,"≑","\\Doteq",!0);w(N,G,Be,"∔","\\dotplus",!0);w(N,G,Be,"∖","\\smallsetminus");w(N,G,Be,"⋒","\\Cap",!0);w(N,G,Be,"⋓","\\Cup",!0);w(N,G,Be,"⩞","\\doublebarwedge",!0);w(N,G,Be,"⊟","\\boxminus",!0);w(N,G,Be,"⊞","\\boxplus",!0);w(N,G,Be,"⋇","\\divideontimes",!0);w(N,G,Be,"⋉","\\ltimes",!0);w(N,G,Be,"⋊","\\rtimes",!0);w(N,G,Be,"⋋","\\leftthreetimes",!0);w(N,G,Be,"⋌","\\rightthreetimes",!0);w(N,G,Be,"⋏","\\curlywedge",!0);w(N,G,Be,"⋎","\\curlyvee",!0);w(N,G,Be,"⊝","\\circleddash",!0);w(N,G,Be,"⊛","\\circledast",!0);w(N,G,Be,"⋅","\\centerdot");w(N,G,Be,"⊺","\\intercal",!0);w(N,G,Be,"⋒","\\doublecap");w(N,G,Be,"⋓","\\doublecup");w(N,G,Be,"⊠","\\boxtimes",!0);w(N,G,W,"⇢","\\dashrightarrow",!0);w(N,G,W,"⇠","\\dashleftarrow",!0);w(N,G,W,"⇇","\\leftleftarrows",!0);w(N,G,W,"⇆","\\leftrightarrows",!0);w(N,G,W,"⇚","\\Lleftarrow",!0);w(N,G,W,"↞","\\twoheadleftarrow",!0);w(N,G,W,"↢","\\leftarrowtail",!0);w(N,G,W,"↫","\\looparrowleft",!0);w(N,G,W,"⇋","\\leftrightharpoons",!0);w(N,G,W,"↶","\\curvearrowleft",!0);w(N,G,W,"↺","\\circlearrowleft",!0);w(N,G,W,"↰","\\Lsh",!0);w(N,G,W,"⇈","\\upuparrows",!0);w(N,G,W,"↿","\\upharpoonleft",!0);w(N,G,W,"⇃","\\downharpoonleft",!0);w(N,T,W,"⊶","\\origof",!0);w(N,T,W,"⊷","\\imageof",!0);w(N,G,W,"⊸","\\multimap",!0);w(N,G,W,"↭","\\leftrightsquigarrow",!0);w(N,G,W,"⇉","\\rightrightarrows",!0);w(N,G,W,"⇄","\\rightleftarrows",!0);w(N,G,W,"↠","\\twoheadrightarrow",!0);w(N,G,W,"↣","\\rightarrowtail",!0);w(N,G,W,"↬","\\looparrowright",!0);w(N,G,W,"↷","\\curvearrowright",!0);w(N,G,W,"↻","\\circlearrowright",!0);w(N,G,W,"↱","\\Rsh",!0);w(N,G,W,"⇊","\\downdownarrows",!0);w(N,G,W,"↾","\\upharpoonright",!0);w(N,G,W,"⇂","\\downharpoonright",!0);w(N,G,W,"⇝","\\rightsquigarrow",!0);w(N,G,W,"⇝","\\leadsto");w(N,G,W,"⇛","\\Rrightarrow",!0);w(N,G,W,"↾","\\restriction");w(N,T,J,"‘","`");w(N,T,J,"$","\\$");w(ve,T,J,"$","\\$");w(ve,T,J,"$","\\textdollar");w(N,T,J,"%","\\%");w(ve,T,J,"%","\\%");w(N,T,J,"_","\\_");w(ve,T,J,"_","\\_");w(ve,T,J,"_","\\textunderscore");w(N,T,J,"∠","\\angle",!0);w(N,T,J,"∞","\\infty",!0);w(N,T,J,"′","\\prime");w(N,T,J,"△","\\triangle");w(N,T,J,"Γ","\\Gamma",!0);w(N,T,J,"Δ","\\Delta",!0);w(N,T,J,"Θ","\\Theta",!0);w(N,T,J,"Λ","\\Lambda",!0);w(N,T,J,"Ξ","\\Xi",!0);w(N,T,J,"Π","\\Pi",!0);w(N,T,J,"Σ","\\Sigma",!0);w(N,T,J,"Υ","\\Upsilon",!0);w(N,T,J,"Φ","\\Phi",!0);w(N,T,J,"Ψ","\\Psi",!0);w(N,T,J,"Ω","\\Omega",!0);w(N,T,J,"A","Α");w(N,T,J,"B","Β");w(N,T,J,"E","Ε");w(N,T,J,"Z","Ζ");w(N,T,J,"H","Η");w(N,T,J,"I","Ι");w(N,T,J,"K","Κ");w(N,T,J,"M","Μ");w(N,T,J,"N","Ν");w(N,T,J,"O","Ο");w(N,T,J,"P","Ρ");w(N,T,J,"T","Τ");w(N,T,J,"X","Χ");w(N,T,J,"¬","\\neg",!0);w(N,T,J,"¬","\\lnot");w(N,T,J,"⊤","\\top");w(N,T,J,"⊥","\\bot");w(N,T,J,"∅","\\emptyset");w(N,G,J,"∅","\\varnothing");w(N,T,at,"α","\\alpha",!0);w(N,T,at,"β","\\beta",!0);w(N,T,at,"γ","\\gamma",!0);w(N,T,at,"δ","\\delta",!0);w(N,T,at,"ϵ","\\epsilon",!0);w(N,T,at,"ζ","\\zeta",!0);w(N,T,at,"η","\\eta",!0);w(N,T,at,"θ","\\theta",!0);w(N,T,at,"ι","\\iota",!0);w(N,T,at,"κ","\\kappa",!0);w(N,T,at,"λ","\\lambda",!0);w(N,T,at,"μ","\\mu",!0);w(N,T,at,"ν","\\nu",!0);w(N,T,at,"ξ","\\xi",!0);w(N,T,at,"ο","\\omicron",!0);w(N,T,at,"π","\\pi",!0);w(N,T,at,"ρ","\\rho",!0);w(N,T,at,"σ","\\sigma",!0);w(N,T,at,"τ","\\tau",!0);w(N,T,at,"υ","\\upsilon",!0);w(N,T,at,"ϕ","\\phi",!0);w(N,T,at,"χ","\\chi",!0);w(N,T,at,"ψ","\\psi",!0);w(N,T,at,"ω","\\omega",!0);w(N,T,at,"ε","\\varepsilon",!0);w(N,T,at,"ϑ","\\vartheta",!0);w(N,T,at,"ϖ","\\varpi",!0);w(N,T,at,"ϱ","\\varrho",!0);w(N,T,at,"ς","\\varsigma",!0);w(N,T,at,"φ","\\varphi",!0);w(N,T,Be,"∗","*",!0);w(N,T,Be,"+","+");w(N,T,Be,"−","-",!0);w(N,T,Be,"⋅","\\cdot",!0);w(N,T,Be,"∘","\\circ",!0);w(N,T,Be,"÷","\\div",!0);w(N,T,Be,"±","\\pm",!0);w(N,T,Be,"×","\\times",!0);w(N,T,Be,"∩","\\cap",!0);w(N,T,Be,"∪","\\cup",!0);w(N,T,Be,"∖","\\setminus",!0);w(N,T,Be,"∧","\\land");w(N,T,Be,"∨","\\lor");w(N,T,Be,"∧","\\wedge",!0);w(N,T,Be,"∨","\\vee",!0);w(N,T,J,"√","\\surd");w(N,T,Oa,"⟨","\\langle",!0);w(N,T,Oa,"∣","\\lvert");w(N,T,Oa,"∥","\\lVert");w(N,T,na,"?","?");w(N,T,na,"!","!");w(N,T,na,"⟩","\\rangle",!0);w(N,T,na,"∣","\\rvert");w(N,T,na,"∥","\\rVert");w(N,T,W,"=","=");w(N,T,W,":",":");w(N,T,W,"≈","\\approx",!0);w(N,T,W,"≅","\\cong",!0);w(N,T,W,"≥","\\ge");w(N,T,W,"≥","\\geq",!0);w(N,T,W,"←","\\gets");w(N,T,W,">","\\gt",!0);w(N,T,W,"∈","\\in",!0);w(N,T,W,"","\\@not");w(N,T,W,"⊂","\\subset",!0);w(N,T,W,"⊃","\\supset",!0);w(N,T,W,"⊆","\\subseteq",!0);w(N,T,W,"⊇","\\supseteq",!0);w(N,G,W,"⊈","\\nsubseteq",!0);w(N,G,W,"⊉","\\nsupseteq",!0);w(N,T,W,"⊨","\\models");w(N,T,W,"←","\\leftarrow",!0);w(N,T,W,"≤","\\le");w(N,T,W,"≤","\\leq",!0);w(N,T,W,"<","\\lt",!0);w(N,T,W,"→","\\rightarrow",!0);w(N,T,W,"→","\\to");w(N,G,W,"≱","\\ngeq",!0);w(N,G,W,"≰","\\nleq",!0);w(N,T,li," ","\\ ");w(N,T,li," ","\\space");w(N,T,li," ","\\nobreakspace");w(ve,T,li," ","\\ ");w(ve,T,li," "," ");w(ve,T,li," ","\\space");w(ve,T,li," ","\\nobreakspace");w(N,T,li,"","\\nobreak");w(N,T,li,"","\\allowbreak");w(N,T,id,",",",");w(N,T,id,";",";");w(N,G,Be,"⊼","\\barwedge",!0);w(N,G,Be,"⊻","\\veebar",!0);w(N,T,Be,"⊙","\\odot",!0);w(N,T,Be,"⊕","\\oplus",!0);w(N,T,Be,"⊗","\\otimes",!0);w(N,T,J,"∂","\\partial",!0);w(N,T,Be,"⊘","\\oslash",!0);w(N,G,Be,"⊚","\\circledcirc",!0);w(N,G,Be,"⊡","\\boxdot",!0);w(N,T,Be,"△","\\bigtriangleup");w(N,T,Be,"▽","\\bigtriangledown");w(N,T,Be,"†","\\dagger");w(N,T,Be,"⋄","\\diamond");w(N,T,Be,"⋆","\\star");w(N,T,Be,"◃","\\triangleleft");w(N,T,Be,"▹","\\triangleright");w(N,T,Oa,"{","\\{");w(ve,T,J,"{","\\{");w(ve,T,J,"{","\\textbraceleft");w(N,T,na,"}","\\}");w(ve,T,J,"}","\\}");w(ve,T,J,"}","\\textbraceright");w(N,T,Oa,"{","\\lbrace");w(N,T,na,"}","\\rbrace");w(N,T,Oa,"[","\\lbrack",!0);w(ve,T,J,"[","\\lbrack",!0);w(N,T,na,"]","\\rbrack",!0);w(ve,T,J,"]","\\rbrack",!0);w(N,T,Oa,"(","\\lparen",!0);w(N,T,na,")","\\rparen",!0);w(ve,T,J,"<","\\textless",!0);w(ve,T,J,">","\\textgreater",!0);w(N,T,Oa,"⌊","\\lfloor",!0);w(N,T,na,"⌋","\\rfloor",!0);w(N,T,Oa,"⌈","\\lceil",!0);w(N,T,na,"⌉","\\rceil",!0);w(N,T,J,"\\","\\backslash");w(N,T,J,"∣","|");w(N,T,J,"∣","\\vert");w(ve,T,J,"|","\\textbar",!0);w(N,T,J,"∥","\\|");w(N,T,J,"∥","\\Vert");w(ve,T,J,"∥","\\textbardbl");w(ve,T,J,"~","\\textasciitilde");w(ve,T,J,"\\","\\textbackslash");w(ve,T,J,"^","\\textasciicircum");w(N,T,W,"↑","\\uparrow",!0);w(N,T,W,"⇑","\\Uparrow",!0);w(N,T,W,"↓","\\downarrow",!0);w(N,T,W,"⇓","\\Downarrow",!0);w(N,T,W,"↕","\\updownarrow",!0);w(N,T,W,"⇕","\\Updownarrow",!0);w(N,T,Wn,"∐","\\coprod");w(N,T,Wn,"⋁","\\bigvee");w(N,T,Wn,"⋀","\\bigwedge");w(N,T,Wn,"⨄","\\biguplus");w(N,T,Wn,"⋂","\\bigcap");w(N,T,Wn,"⋃","\\bigcup");w(N,T,Wn,"∫","\\int");w(N,T,Wn,"∫","\\intop");w(N,T,Wn,"∬","\\iint");w(N,T,Wn,"∭","\\iiint");w(N,T,Wn,"∏","\\prod");w(N,T,Wn,"∑","\\sum");w(N,T,Wn,"⨂","\\bigotimes");w(N,T,Wn,"⨁","\\bigoplus");w(N,T,Wn,"⨀","\\bigodot");w(N,T,Wn,"∮","\\oint");w(N,T,Wn,"∯","\\oiint");w(N,T,Wn,"∰","\\oiiint");w(N,T,Wn,"⨆","\\bigsqcup");w(N,T,Wn,"∫","\\smallint");w(ve,T,bu,"…","\\textellipsis");w(N,T,bu,"…","\\mathellipsis");w(ve,T,bu,"…","\\ldots",!0);w(N,T,bu,"…","\\ldots",!0);w(N,T,bu,"⋯","\\@cdots",!0);w(N,T,bu,"⋱","\\ddots",!0);w(N,T,J,"⋮","\\varvdots");w(ve,T,J,"⋮","\\varvdots");w(N,T,fn,"ˊ","\\acute");w(N,T,fn,"ˋ","\\grave");w(N,T,fn,"¨","\\ddot");w(N,T,fn,"~","\\tilde");w(N,T,fn,"ˉ","\\bar");w(N,T,fn,"˘","\\breve");w(N,T,fn,"ˇ","\\check");w(N,T,fn,"^","\\hat");w(N,T,fn,"⃗","\\vec");w(N,T,fn,"˙","\\dot");w(N,T,fn,"˚","\\mathring");w(N,T,at,"","\\@imath");w(N,T,at,"","\\@jmath");w(N,T,J,"ı","ı");w(N,T,J,"ȷ","ȷ");w(ve,T,J,"ı","\\i",!0);w(ve,T,J,"ȷ","\\j",!0);w(ve,T,J,"ß","\\ss",!0);w(ve,T,J,"æ","\\ae",!0);w(ve,T,J,"œ","\\oe",!0);w(ve,T,J,"ø","\\o",!0);w(ve,T,J,"Æ","\\AE",!0);w(ve,T,J,"Œ","\\OE",!0);w(ve,T,J,"Ø","\\O",!0);w(ve,T,fn,"ˊ","\\'");w(ve,T,fn,"ˋ","\\`");w(ve,T,fn,"ˆ","\\^");w(ve,T,fn,"˜","\\~");w(ve,T,fn,"ˉ","\\=");w(ve,T,fn,"˘","\\u");w(ve,T,fn,"˙","\\.");w(ve,T,fn,"¸","\\c");w(ve,T,fn,"˚","\\r");w(ve,T,fn,"ˇ","\\v");w(ve,T,fn,"¨",'\\"');w(ve,T,fn,"˝","\\H");w(ve,T,fn,"◯","\\textcircled");var j8={"--":!0,"---":!0,"``":!0,"''":!0};w(ve,T,J,"–","--",!0);w(ve,T,J,"–","\\textendash");w(ve,T,J,"—","---",!0);w(ve,T,J,"—","\\textemdash");w(ve,T,J,"‘","`",!0);w(ve,T,J,"‘","\\textquoteleft");w(ve,T,J,"’","'",!0);w(ve,T,J,"’","\\textquoteright");w(ve,T,J,"“","``",!0);w(ve,T,J,"“","\\textquotedblleft");w(ve,T,J,"”","''",!0);w(ve,T,J,"”","\\textquotedblright");w(N,T,J,"°","\\degree",!0);w(ve,T,J,"°","\\degree");w(ve,T,J,"°","\\textdegree",!0);w(N,T,J,"£","\\pounds");w(N,T,J,"£","\\mathsterling",!0);w(ve,T,J,"£","\\pounds");w(ve,T,J,"£","\\textsterling",!0);w(N,G,J,"✠","\\maltese");w(ve,G,J,"✠","\\maltese");var Jv='0123456789/@."';for(var Vh=0;Vh<Jv.length;Vh++){var e5=Jv.charAt(Vh);w(N,T,J,e5,e5)}var t5='0123456789!@*()-=+";:?/.,';for(var Gh=0;Gh<t5.length;Gh++){var n5=t5.charAt(Gh);w(ve,T,J,n5,n5)}var cm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Wh=0;Wh<cm.length;Wh++){var kp=cm.charAt(Wh);w(N,T,at,kp,kp),w(ve,T,J,kp,kp)}w(N,G,J,"C","ℂ");w(ve,G,J,"C","ℂ");w(N,G,J,"H","ℍ");w(ve,G,J,"H","ℍ");w(N,G,J,"N","ℕ");w(ve,G,J,"N","ℕ");w(N,G,J,"P","ℙ");w(ve,G,J,"P","ℙ");w(N,G,J,"Q","ℚ");w(ve,G,J,"Q","ℚ");w(N,G,J,"R","ℝ");w(ve,G,J,"R","ℝ");w(N,G,J,"Z","ℤ");w(ve,G,J,"Z","ℤ");w(N,T,at,"h","ℎ");w(ve,T,at,"h","ℎ");var it;for(var Xr=0;Xr<cm.length;Xr++){var Nn=cm.charAt(Xr);it=String.fromCharCode(55349,56320+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56372+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56424+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56580+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56684+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56736+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56788+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56840+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56944+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),Xr<26&&(it=String.fromCharCode(55349,56632+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it),it=String.fromCharCode(55349,56476+Xr),w(N,T,at,Nn,it),w(ve,T,J,Nn,it))}it="𝕜";w(N,T,at,"k",it);w(ve,T,J,"k",it);for(var Rl=0;Rl<10;Rl++){var Pi=Rl.toString();it=String.fromCharCode(55349,57294+Rl),w(N,T,at,Pi,it),w(ve,T,J,Pi,it),it=String.fromCharCode(55349,57314+Rl),w(N,T,at,Pi,it),w(ve,T,J,Pi,it),it=String.fromCharCode(55349,57324+Rl),w(N,T,at,Pi,it),w(ve,T,J,Pi,it),it=String.fromCharCode(55349,57334+Rl),w(N,T,at,Pi,it),w(ve,T,J,Pi,it)}var xg="ÐÞþ";for(var Zh=0;Zh<xg.length;Zh++){var Np=xg.charAt(Zh);w(N,T,at,Np,Np),w(ve,T,J,Np,Np)}var _g={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},r5={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},a5={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},XE={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Vl={mathClass:"",textClass:"",font:""},o5={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},s5={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},i5={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},wg={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},jg={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},l5={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Cg={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},c5=[_g,_g,r5,r5,a5,a5,XE,Vl,Vl,Vl,o5,o5,s5,s5,i5,i5,wg,wg,jg,jg,l5,l5,Vl,Vl,Cg,Cg],YE=[_g,Vl,wg,jg,Cg],KE=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 c5[a]}else if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return YE[i]}else{if(r===120485||r===120486)return c5[0];if(120486<r&&r<120782)return Vl;throw new De("Unsupported character: "+e)}},Om=function(t,n,r){if(hn[r][t]){var a=hn[r][t].replace;a&&(t=a)}return{value:t,metrics:_2(t,n,r)}},Jr=function(t,n,r,a,i){var l=Om(t,n,r),u=l.metrics;t=l.value;var d;if(u){var m=u.italic;(r==="text"||a&&a.font==="mathit")&&(m=0),d=new Fa(t,u.height,u.depth,m,u.skew,u.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),d=new Fa(t,0,0,0,0,0,i);if(a){d.maxFontSize=a.sizeMultiplier,a.style.isTight()&&d.classes.push("mtight");var f=a.getColor();f&&(d.style.color=f)}return d},w2=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&Om(t,"Main-Bold",n).metrics?Jr(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||hn[n][t].font==="main"?Jr(t,"Main-Regular",n,r,a):Jr(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},JE=function(t,n,r){return r!=="textord"&&Om(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Bm=function(t,n,r){var a=t.mode,i=t.text,l=["mord"],{font:u,fontFamily:d,fontWeight:m,fontShape:f}=n,h=a==="math"||a==="text"&&!!u,b=h?u:d,y="",g="";if(i.charCodeAt(0)===55349){var _=KE(i);y=_.font,g=_[a+"Class"]}if(y)return Jr(i,y,a,n,l.concat(g));if(b){var j,C;if(b==="boldsymbol"){var S=JE(i,a,r);j=S.fontName,C=[S.fontClass]}else h?(j=kg[u].fontName,C=[u]):(j=Sp(d,m,f),C=[d,m,f]);if(Om(i,j,a).metrics)return Jr(i,j,a,n,l.concat(C));if(j8.hasOwnProperty(i)&&j.slice(0,10)==="Typewriter"){for(var A=[],M=0;M<i.length;M++)A.push(Jr(i[M],j,a,n,l.concat(C)));return ci(A)}}if(r==="mathord")return Jr(i,"Math-Italic",a,n,l.concat(["mathnormal"]));if(r==="textord"){var L=hn[a][i]&&hn[a][i].font;if(L==="ams"){var z=Sp("amsrm",m,f);return Jr(i,z,a,n,l.concat("amsrm",m,f))}else if(L==="main"||!L){var P=Sp("textrm",m,f);return Jr(i,P,a,n,l.concat(m,f))}else{var H=Sp(L,m,f);return Jr(i,H,a,n,l.concat(H,m,f))}}else throw new Error("unexpected type: "+r+" in makeOrd")},eD=(e,t)=>{if(Wi(e.classes)!==Wi(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},C8=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Fa&&r instanceof Fa&&eD(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},j2=function(t){for(var n=0,r=0,a=0,i=0;i<t.children.length;i++){var l=t.children[i];l.height>n&&(n=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>a&&(a=l.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},je=function(t,n,r,a){var i=new vu(t,n,r,a);return j2(i),i},Qi=(e,t,n,r)=>new vu(e,t,n,r),cu=function(t,n,r){var a=je([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=Me(a.height),a.maxFontSize=1,a},tD=function(t,n,r,a){var i=new Fm(t,n,r,a);return j2(i),i},ci=function(t){var n=new gu(t);return j2(n),n},uu=function(t,n){return t instanceof gu?je([],[t],n):t},nD=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,i=a,l=1;l<n.length;l++){var u=-n[l].shift-i-n[l].elem.depth,d=u-(n[l-1].elem.height+n[l-1].elem.depth);i=i+u,r.push({type:"kern",size:d}),r.push(n[l])}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}},Pt=function(t,n){for(var{children:r,depth:a}=nD(t),i=0,l=0;l<r.length;l++){var u=r[l];if(u.type==="elem"){var d=u.elem;i=Math.max(i,d.maxFontSize,d.height)}}i+=2;var m=je(["pstrut"],[]);m.style.height=Me(i);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 j=_.elem,C=_.wrapperClasses||[],S=_.wrapperStyle||{},A=je(C,[m,j],void 0,S);A.style.top=Me(-i-y-j.depth),_.marginLeft&&(A.style.marginLeft=_.marginLeft),_.marginRight&&(A.style.marginRight=_.marginRight),f.push(A),y+=j.height+j.depth}h=Math.min(h,y),b=Math.max(b,y)}var M=je(["vlist"],f);M.style.height=Me(b);var L;if(h<0){var z=je([],[]),P=je(["vlist"],[z]);P.style.height=Me(-h);var H=je(["vlist-s"],[new Fa("")]);L=[je(["vlist-r"],[M,H]),je(["vlist-r"],[P])]}else L=[je(["vlist-r"],[M])];var R=je(["vlist-t"],L);return L.length===2&&R.classes.push("vlist-t2"),R.height=b,R.depth=-h,R},k8=(e,t)=>{var n=je(["mspace"],[],t),r=wn(e,t);return n.style.marginRight=Me(r),n},Sp=(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},kg={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"}},N8={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},S8=function(t,n){var[r,a,i]=N8[t],l=new Zi(r),u=new oi([l],{width:Me(a),height:Me(i),style:"width:"+Me(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),d=Qi(["overlay"],[u],n);return d.height=i,d.style.height=Me(i),d.style.width=Me(a),d},bn={number:3,unit:"mu"},ql={number:4,unit:"mu"},Xs={number:5,unit:"mu"},rD={mord:{mop:bn,mbin:ql,mrel:Xs,minner:bn},mop:{mord:bn,mop:bn,mrel:Xs,minner:bn},mbin:{mord:ql,mop:ql,mopen:ql,minner:ql},mrel:{mord:Xs,mop:Xs,mopen:Xs,minner:Xs},mopen:{},mclose:{mop:bn,mbin:ql,mrel:Xs,minner:bn},mpunct:{mord:bn,mop:bn,mrel:Xs,mopen:bn,mclose:bn,mpunct:bn,minner:bn},minner:{mord:bn,mop:bn,mbin:ql,mrel:Xs,mopen:bn,mpunct:bn,minner:bn}},aD={mord:{mop:bn},mop:{mord:bn,mop:bn},mbin:{},mrel:{},mopen:{},mclose:{mop:bn},mpunct:{},minner:{mop:bn}},$8={},um={},dm={};function Fe(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:l}=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)$8[n[d]]=u;t&&(i&&(um[t]=i),l&&(dm[t]=l))}function ic(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Fe({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var pm=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Vn=function(t){return t.type==="ordgroup"?t.body:[t]},oD=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),sD=new Set(["rightmost","mrel","mclose","mpunct"]),iD={display:ht.DISPLAY,text:ht.TEXT,script:ht.SCRIPT,scriptscript:ht.SCRIPTSCRIPT},lD={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rr=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var i=[],l=0;l<t.length;l++){var u=Rt(t[l],n);if(u instanceof gu){var d=u.children;i.push(...d)}else i.push(u)}if(C8(i),!r)return i;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(iD[f.style]))}var h=je([a[0]||"leftmost"],[],n),b=je([a[1]||"rightmost"],[],n),y=r==="root";return Ng(i,(g,_)=>{var j=_.classes[0],C=g.classes[0];j==="mbin"&&sD.has(C)?_.classes[0]="mord":C==="mbin"&&oD.has(j)&&(g.classes[0]="mord")},{node:h},b,y),Ng(i,(g,_)=>{var j,C,S=$g(_),A=$g(g),M=S&&A?g.hasClass("mtight")?(j=aD[S])==null?void 0:j[A]:(C=rD[S])==null?void 0:C[A]:null;if(M)return k8(M,m)},{node:h},b,y),i},Ng=function(t,n,r,a,i){a&&t.push(a);for(var l=0;l<t.length;l++){var u=t[l],d=A8(u);if(d){Ng(d.children,n,r,null,i);continue}var m=!u.hasClass("mspace");if(m){var f=n(u,r.node);f&&(r.insertAfter?r.insertAfter(f):(t.unshift(f),l++))}m?r.node=u:i&&u.hasClass("newline")&&(r.node=je(["leftmost"])),r.insertAfter=(h=>b=>{t.splice(h+1,0,b),l++})(l)}a&&t.pop()},A8=function(t){return t instanceof gu||t instanceof Fm||t instanceof vu&&t.hasClass("enclosing")?t:null},Sg=function(t,n){var r=A8(t);if(r){var a=r.children;if(a.length){if(n==="right")return Sg(a[a.length-1],"right");if(n==="left")return Sg(a[0],"left")}}return t},$g=function(t,n){if(!t)return null;n&&(t=Sg(t,n));var r=t.classes[0];return lD[r]||null},Q0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return je(n.concat(r))},Rt=function(t,n,r){if(!t)return je();if(um[t.type]){var a=um[t.type](t,n);if(r&&n.size!==r.size){a=je(n.sizingClasses(r),[a],n);var i=n.sizeMultiplier/r.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new De("Got group of unknown type: '"+t.type+"'")};function $p(e,t){var n=je(["base"],e,t),r=je(["strut"]);return r.style.height=Me(n.height+n.depth),n.depth&&(r.style.verticalAlign=Me(-n.depth)),n.children.unshift(r),n}function Ag(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=rr(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var i=[],l=[],u=0;u<r.length;u++)if(l.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++,l.push(r[u]),r[u].hasClass("nobreak")&&(d=!0);d||(i.push($p(l,t)),l=[])}else r[u].hasClass("newline")&&(l.pop(),l.length>0&&(i.push($p(l,t)),l=[]),i.push(r[u]));l.length>0&&i.push($p(l,t));var m;n?(m=$p(rr(n,t,!0),t),m.classes=["tag"],i.push(m)):a&&i.push(a);var f=je(["katex-html"],i);if(f.setAttribute("aria-hidden","true"),m){var h=m.children[0];h.style.height=Me(f.height+f.depth),f.depth&&(h.style.verticalAlign=Me(-f.depth))}return f}function E8(e){return new gu(e)}class ze{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=Wi(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Gn&&this.children[r+1]instanceof Gn){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Gn;)a+=this.children[++r].toText();t.appendChild(new Gn(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+=Or(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Or(Wi(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 Gn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Or(this.toText())}toText(){return this.text}}class D8{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",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var cD=new Set(["\\imath","\\jmath"]),uD=new Set(["mrow","mtable"]),ho=function(t,n,r){return hn[n][t]&&hn[n][t].replace&&t.charCodeAt(0)!==55349&&!(j8.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=hn[n][t].replace),new Gn(t)},C2=function(t){return t.length===1?t[0]:new ze("mrow",t)},dD={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"},k2=(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=dD[n];if(a)return typeof a=="function"?a(e):a;var i=e.text;if(cD.has(i))return null;if(hn[r][i]){var l=hn[r][i].replace;l&&(i=l)}var u=kg[n].fontName;return _2(i,u,r)?kg[n].variant:null};function Qh(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Gn&&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 Gn&&n.text===","}else return!1}var Ba=function(t,n,r){if(t.length===1){var a=rn(t[0],n);return r&&a instanceof ze&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],l,u=0;u<t.length;u++){var d=rn(t[u],n);if(d instanceof ze&&l instanceof ze){if(d.type==="mtext"&&l.type==="mtext"&&d.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...d.children);continue}else if(d.type==="mn"&&l.type==="mn"){l.children.push(...d.children);continue}else if(Qh(d)&&l.type==="mn"){l.children.push(...d.children);continue}else if(d.type==="mn"&&Qh(l))d.children=[...l.children,...d.children],i.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(l.type==="mn"||Qh(l))){var m=d.children[0];m instanceof ze&&m.type==="mn"&&(m.children=[...l.children,...m.children],i.pop())}else if(l.type==="mi"&&l.children.length===1){var f=l.children[0];if(f instanceof Gn&&f.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var h=d.children[0];h instanceof Gn&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(d),l=d}return i},Xi=function(t,n,r){return C2(Ba(t,n,r))},rn=function(t,n){if(!t)return new ze("mrow");if(dm[t.type])return dm[t.type](t,n);throw new De("Got group of unknown type: '"+t.type+"'")};function u5(e,t,n,r,a){var i=Ba(e,n),l;i.length===1&&i[0]instanceof ze&&uD.has(i[0].type)?l=i[0]:l=new ze("mrow",i);var u=new ze("annotation",[new Gn(t)]);u.setAttribute("encoding","application/x-tex");var d=new ze("semantics",[l,u]),m=new ze("math",[d]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&m.setAttribute("display","block");var f=a?"katex":"katex-mathml";return je([f],[m])}var pD=[[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]],d5=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],p5=function(t,n){return n.size<2?t:pD[t-1][n.size-1]};class ei{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||ei.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=d5[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 ei(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:p5(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:d5[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=p5(ei.BASESIZE,t);return this.size===n&&this.textSize===ei.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!==ei.BASESIZE?["sizing","reset-size"+this.size,"size"+ei.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=QE(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ei.BASESIZE=6;var z8=function(t){return new ei({style:t.displayMode?ht.DISPLAY:ht.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},T8=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=je(r,[t])}return t},mD=function(t,n,r){var a=z8(r),i;if(r.output==="mathml")return u5(t,n,a,r.displayMode,!0);if(r.output==="html"){var l=Ag(t,a);i=je(["katex"],[l])}else{var u=u5(t,n,a,r.displayMode,!1),d=Ag(t,a);i=je(["katex"],[u,d])}return T8(i,r)},hD=function(t,n,r){var a=z8(r),i=Ag(t,a),l=je(["katex"],[i]);return T8(l,r)},fD={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":"="},Um=function(t){var n=new ze("mo",[new Gn(fD[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},gD={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]},vD=new Set(["widehat","widecheck","widetilde","utilde"]),Hm=function(t,n){function r(){var u=4e5,d=t.label.slice(1);if(vD.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 Zi(h),_=new oi([g],{width:"100%",height:Me(b),viewBox:"0 0 "+u+" "+f,preserveAspectRatio:"none"});return{span:Qi([],[_],n),minWidth:0,height:b}}else{var j=[],C=gD[d];if(!C)throw new Error('No SVG data for "'+d+'".');var[S,A,M]=C,L=M/1e3,z=S.length,P,H;if(z===1){if(C.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+d+'".');P=["hide-tail"],H=[C[3]]}else if(z===2)P=["halfarrow-left","halfarrow-right"],H=["xMinYMin","xMaxYMin"];else if(z===3)P=["brace-left","brace-center","brace-right"],H=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
445
|
-
`+z+" children.");for(var R=0;R<z;R++){var F=new Zi(S[R]),U=new oi([F],{width:"400em",height:Me(L),viewBox:"0 0 "+u+" "+M,preserveAspectRatio:H[R]+" slice"}),Z=Qi([P[R]],[U],n);if(z===1)return{span:Z,minWidth:A,height:L};Z.style.height=Me(L),j.push(Z)}return{span:je(["stretchy"],j,n),minWidth:A,height:L}}}var{span:a,minWidth:i,height:l}=r();return a.height=l,a.style.height=Me(l),i>0&&(a.style.minWidth=Me(i)),a},bD=function(t,n,r,a,i){var l,u=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(l=je(["stretchy",n],[],i),n==="fbox"){var d=i.color&&i.getColor();d&&(l.style.borderColor=d)}}else{var m=[];/^[bx]cancel$/.test(n)&&m.push(new yg({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&m.push(new yg({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new oi(m,{width:"100%",height:Me(u)});l=Qi([],[f],i)}return l.height=u,l.style.height=Me(u),l},yD={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xD={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function _D(e){return e in yD}function bt(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 Vm(e){var t=Gm(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 Gm(e){return e&&(e.type==="atom"||xD.hasOwnProperty(e.type))?e:null}var M8=e=>{if(e instanceof Fa)return e;if(WE(e)&&e.children.length===1)return M8(e.children[0])},N2=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=bt(e.base,"accent"),n=r.base,e.base=n,a=GE(Rt(e,t)),e.base=r):(r=bt(e,"accent"),n=r.base);var i=Rt(n,t.havingCrampedStyle()),l=r.isShifty&&ii(n),u=0;if(l){var d,m;u=(d=(m=M8(i))==null?void 0:m.skew)!=null?d:0}var f=r.label==="\\c",h=f?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),b;if(r.isStretchy)b=Hm(r,t),b=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+Me(2*u)+")",marginLeft:Me(2*u)}:void 0}]});else{var y,g;r.label==="\\vec"?(y=S8("vec",t),g=N8.vec[1]):(y=Bm({mode:r.mode,text:r.label},t,"textord"),y=VE(y),y.italic=0,g=y.width,f&&(h+=y.depth)),b=je(["accent-body"],[y]);var _=r.label==="\\textcircled";_&&(b.classes.push("accent-full"),h=i.height);var j=u;_||(j-=g/2),b.style.left=Me(j),r.label==="\\textcircled"&&(b.style.top=".2em"),b=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:b}]})}var C=je(["mord","accent"],[b],t);return a?(a.children[0]=C,a.height=Math.max(C.height,a.height),a.classes[0]="mord",a):C},L8=(e,t)=>{var n=e.isStretchy?Um(e.label):new ze("mo",[ho(e.label,e.mode)]),r=new ze("mover",[rn(e.base,t),n]);return r.setAttribute("accent","true"),r},wD=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Fe({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=pm(t[0]),r=!wD.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:N2,mathmlBuilder:L8});Fe({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:N2,mathmlBuilder:L8});Fe({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=Rt(e.base,t),r=Hm(e,t),a=e.label==="\\utilde"?.12:0,i=Pt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return je(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=Um(e.label),r=new ze("munder",[rn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ap=e=>{var t=new ze("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Fe({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=uu(Rt(e.body,r,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var l;e.below&&(r=t.havingStyle(n.sub()),l=uu(Rt(e.below,r,t),t),l.classes.push(i+"-arrow-pad"));var u=Hm(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(l){var h=-t.fontMetrics().axisHeight+l.height+.5*u.height+.111;f=Pt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]},{type:"elem",elem:l,shift:h}]})}else f=Pt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:u,shift:d,wrapperClasses:["svg-align"]}]});return je(["mrel","x-arrow"],[f],t)},mathmlBuilder(e,t){var n=Um(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=Ap(rn(e.body,t));if(e.below){var i=Ap(rn(e.below,t));r=new ze("munderover",[n,i,a])}else r=new ze("mover",[n,a])}else if(e.below){var l=Ap(rn(e.below,t));r=new ze("munder",[n,l])}else r=Ap(),r=new ze("mover",[n,r]);return r}});function I8(e,t){var n=rr(e.body,t,!0);return je([e.mclass],n,t)}function P8(e,t){var n,r=Ba(e.body,t);return e.mclass==="minner"?n=new ze("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ze("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ze("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}Fe({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:Vn(a),isCharacterBox:ii(a)}},htmlBuilder:I8,mathmlBuilder:P8});var Wm=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"};Fe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Wm(t[0]),body:Vn(t[1]),isCharacterBox:ii(t[1])}}});Fe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],i=t[0],l;r!=="\\stackrel"?l=Wm(a):l="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Vn(a)},d={type:"supsub",mode:i.mode,base:u,sup:r==="\\underset"?null:i,sub:r==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:l,body:[d],isCharacterBox:ii(d)}},htmlBuilder:I8,mathmlBuilder:P8});Fe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Wm(t[0]),body:Vn(t[0])}},htmlBuilder(e,t){var n=rr(e.body,t,!0),r=je([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ba(e.body,t),r=new ze("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var jD={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},m5=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),h5=e=>e.type==="textord"&&e.text==="@",CD=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function kD(e,t,n){var r=jD[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]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},l=n.callFunction("\\Big",[i],[]),u=n.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[a,l,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 ND(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 De("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],i=0;i<t.length;i++){for(var l=t[i],u=m5(),d=0;d<l.length;d++)if(!h5(l[d]))u.body.push(l[d]);else{r.push(u),d+=1;var m=Vm(l[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<l.length;y++){if(CD(l[y],m)){b=!1,d=y;break}if(h5(l[y]))throw new De("Missing a "+m+" character to complete a CD arrow.",l[y]);f[h].body.push(l[y])}if(b)throw new De("Missing a "+m+" character to complete a CD arrow.",l[d])}else throw new De('Expected one of "<>AV=|." after @',l[d]);var g=kD(m,f,e),_={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};r.push(_),u=m5()}i%2===0?r.push(u):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var j=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:j,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Fe({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=uu(Rt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Me(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ze("mrow",[rn(e.label,t)]);return n=new ze("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ze("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Fe({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=uu(Rt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ze("mrow",[rn(e.fragment,t)])}});Fe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=bt(t[0],"ordgroup"),a=r.body,i="",l=0;l<a.length;l++){var u=bt(a[l],"textord");i+=u.text}var d=parseInt(i),m;if(isNaN(d))throw new De("\\@char has non-numeric argument "+i);if(d<0||d>=1114111)throw new De("\\@char with invalid code point "+i);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 R8=(e,t)=>{var n=rr(e.body,t.withColor(e.color),!1);return ci(n)},q8=(e,t)=>{var n=Ba(e.body,t.withColor(e.color)),r=new ze("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Fe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=bt(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Vn(a)}},htmlBuilder:R8,mathmlBuilder:q8});Fe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=bt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:i}},htmlBuilder:R8,mathmlBuilder:q8});Fe({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,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:a&&bt(a,"size").value}},htmlBuilder(e,t){var n=je(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(wn(e.size,t)))),n},mathmlBuilder(e,t){var n=new ze("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(wn(e.size,t)))),n}});var Eg={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},F8=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new De("Expected a control sequence",e);return t},SD=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},O8=(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)};Fe({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(Eg[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Eg[r.text]),bt(t.parseFunction(),"internal");throw new De("Invalid token after macro prefix",r)}});Fe({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 De("Expected a control sequence",r);for(var i=0,l,u=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),u[i].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new De('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==i+1)throw new De('Argument number "'+r.text+'" out of order');i++,u.push([])}else{if(r.text==="EOF")throw new De("Expected a macro definition");u[i].push(r.text)}var{tokens:d}=t.gullet.consumeArg();return l&&d.unshift(l),(n==="\\edef"||n==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(a,{tokens:d,numArgs:i,delimiters:u},n===Eg[n]),{type:"internal",mode:t.mode}}});Fe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=F8(t.gullet.popToken());t.gullet.consumeSpaces();var a=SD(t);return O8(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Fe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=F8(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return O8(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var T0=function(t,n,r){var a=hn.math[t]&&hn.math[t].replace,i=_2(a||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},S2=function(t,n,r,a){var i=r.havingBaseStyle(n),l=je(a.concat(i.sizingClasses(r)),[t],r),u=i.sizeMultiplier/r.sizeMultiplier;return l.height*=u,l.depth*=u,l.maxFontSize=i.sizeMultiplier,l},B8=function(t,n,r){var a=n.havingBaseStyle(r),i=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(i),t.height-=i,t.depth+=i},$D=function(t,n,r,a,i,l){var u=Jr(t,"Main-Regular",i,a),d=S2(u,n,a,l);return B8(d,a,n),d},AD=function(t,n,r,a){return Jr(t,"Size"+n+"-Regular",r,a)},U8=function(t,n,r,a,i,l){var u=AD(t,n,i,a),d=S2(je(["delimsizing","size"+n],[u],a),ht.TEXT,a,l);return r&&B8(d,a,ht.TEXT),d},Xh=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=je(["delimsizinginner",a],[je([],[Jr(t,n,r)])]);return{type:"elem",elem:i}},Yh=function(t,n,r){var a=fs["Size4-Regular"][t.charCodeAt(0)]?fs["Size4-Regular"][t.charCodeAt(0)][4]:fs["Size1-Regular"][t.charCodeAt(0)][4],i=new Zi("inner",RE(t,Math.round(1e3*n))),l=new oi([i],{width:Me(a),height:Me(n),style:"width:"+Me(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),u=Qi([],[l],r);return u.height=n,u.style.height=Me(n),u.style.width=Me(a),{type:"elem",elem:u}},Dg=.008,Ep={type:"kern",size:-1*Dg},ED=new Set(["|","\\lvert","\\rvert","\\vert"]),DD=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),H8=function(t,n,r,a,i,l){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"):ED.has(t)?(m="∣",h="vert",b=333):DD.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=T0(u,y,i),_=g.height+g.depth,j=T0(m,y,i),C=j.height+j.depth,S=T0(f,y,i),A=S.height+S.depth,M=0,L=1;if(d!==null){var z=T0(d,y,i);M=z.height+z.depth,L=2}var P=_+A+M,H=Math.max(0,Math.ceil((n-P)/(L*C))),R=P+H*L*C,F=a.fontMetrics().axisHeight;r&&(F*=a.sizeMultiplier);var U=R/2-F,Z=[];if(h.length>0){var re=R-_-A,le=Math.round(R*1e3),ee=qE(h,Math.round(re*1e3)),ke=new Zi(h,ee),_e=Me(b/1e3),ie=Me(le/1e3),Ne=new oi([ke],{width:_e,height:ie,viewBox:"0 0 "+b+" "+le}),B=Qi([],[Ne],a);B.height=le/1e3,B.style.width=_e,B.style.height=ie,Z.push({type:"elem",elem:B})}else{if(Z.push(Xh(f,y,i)),Z.push(Ep),d===null){var O=R-_-A+2*Dg;Z.push(Yh(m,O,a))}else{var ne=(R-_-A-M)/2+2*Dg;Z.push(Yh(m,ne,a)),Z.push(Ep),Z.push(Xh(d,y,i)),Z.push(Ep),Z.push(Yh(m,ne,a))}Z.push(Ep),Z.push(Xh(u,y,i))}var E=a.havingBaseStyle(ht.TEXT),ue=Pt({positionType:"bottom",positionData:U,children:Z});return S2(je(["delimsizing","mult"],[ue],E),ht.TEXT,a,l)},Kh=80,Jh=.08,ef=function(t,n,r,a,i){var l=PE(t,a,r),u=new Zi(t,l),d=new oi([u],{width:"400em",height:Me(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qi(["hide-tail"],[d],i)},zD=function(t,n){var r=n.havingBaseSizing(),a=Q8("\\surd",t*r.sizeMultiplier,Z8,r),i=r.sizeMultiplier,l=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),u,d,m,f,h;return a.type==="small"?(f=1e3+1e3*l+Kh,t<1?i=1:t<1.4&&(i=.7),d=(1+l+Jh)/i,m=(1+l)/i,u=ef("sqrtMain",d,f,l,n),u.style.minWidth="0.853em",h=.833/i):a.type==="large"?(f=(1e3+Kh)*q0[a.size],m=(q0[a.size]+l)/i,d=(q0[a.size]+l+Jh)/i,u=ef("sqrtSize"+a.size,d,f,l,n),u.style.minWidth="1.02em",h=1/i):(d=t+l+Jh,m=t+l,f=Math.floor(1e3*t+l)+Kh,u=ef("sqrtTall",d,f,l,n),u.style.minWidth="0.742em",h=1.056),u.height=m,u.style.height=Me(d),{span:u,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+l)*i}},V8=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),TD=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),G8=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),q0=[0,1.2,1.8,2.4,3],W8=function(t,n,r,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),V8.has(t)||G8.has(t))return U8(t,n,!1,r,a,i);if(TD.has(t))return H8(t,q0[n],!1,r,a,i);throw new De("Illegal delimiter: '"+t+"'")},MD=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],LD=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"stack"}],Z8=[{type:"small",style:ht.SCRIPTSCRIPT},{type:"small",style:ht.SCRIPT},{type:"small",style:ht.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ID=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.")},Q8=function(t,n,r,a){for(var i=Math.min(2,3-a.style.size),l=i;l<r.length;l++){var u=r[l];if(u.type==="stack")break;var d=T0(t,ID(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]},zg=function(t,n,r,a,i,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;G8.has(t)?u=MD:V8.has(t)?u=Z8:u=LD;var d=Q8(t,n,u,a);return d.type==="small"?$D(t,d.style,r,a,i,l):d.type==="large"?U8(t,d.size,r,a,i,l):H8(t,n,r,a,i,l)},tf=function(t,n,r,a,i,l){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 zg(t,h,!0,a,i,l)},f5={"\\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}},PD=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 g5(e){return"isMiddle"in e}function Zm(e,t){var n=Gm(e);if(n&&PD.has(n.text))return n;throw n?new De("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new De("Invalid delimiter type '"+e.type+"'",e)}Fe({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=Zm(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:f5[e.funcName].size,mclass:f5[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?je([e.mclass]):W8(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ho(e.delim,e.mode));var n=new ze("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Me(q0[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function v5(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Fe({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 De("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Zm(t[0],e).text,color:n}}});Fe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Zm(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=bt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{v5(e);for(var n=rr(e.body,t,!0,["mopen","mclose"]),r=0,a=0,i=!1,l=0;l<n.length;l++){var u=n[l];g5(u)?i=!0:(r=Math.max(n[l].height,r),a=Math.max(n[l].depth,a))}r*=t.sizeMultiplier,a*=t.sizeMultiplier;var d;if(e.left==="."?d=Q0(t,["mopen"]):d=tf(e.left,r,a,t,e.mode,["mopen"]),n.unshift(d),i)for(var m=1;m<n.length;m++){var f=n[m];if(g5(f)){var h=f.isMiddle;n[m]=tf(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=tf(e.right,r,a,y,e.mode,["mclose"])}return n.push(b),je(["minner"],n,t)},mathmlBuilder:(e,t)=>{v5(e);var n=Ba(e.body,t);if(e.left!=="."){var r=new ze("mo",[ho(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new ze("mo",[ho(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return C2(n)}});Fe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Zm(t[0],e);if(!e.parser.leftrightDepth)throw new De("\\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=W8(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?ho("|","text"):ho(e.delim,e.mode),r=new ze("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Qm=(e,t)=>{var n=uu(Rt(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,i,l,u=ii(e.body);if(r==="sout")i=je(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,l=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var d=wn({number:.6,unit:"pt"},t),m=wn({number:.35,unit:"ex"},t),f=t.havingBaseSizing();a=a/f.sizeMultiplier;var h=n.height+n.depth+d+m;n.style.paddingLeft=Me(h/2+d);var b=Math.floor(1e3*h*a),y=LE(b),g=new oi([new Zi("phase",y)],{width:"400em",height:Me(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});i=Qi(["hide-tail"],[g],t),i.style.height=Me(h),l=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 _,j,C=0;/box/.test(r)?(C=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),_=t.fontMetrics().fboxsep+(r==="colorbox"?0:C),j=_):r==="angl"?(C=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),_=4*C,j=Math.max(0,.25-n.depth)):(_=u?.2:0,j=_),i=bD(n,r,_,j,t),/fbox|boxed|fcolorbox/.test(r)?(i.style.borderStyle="solid",i.style.borderWidth=Me(C)):r==="angl"&&C!==.049&&(i.style.borderTopWidth=Me(C),i.style.borderRightWidth=Me(C)),l=n.depth+j,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=Pt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:n,shift:0}]});else{var A=/cancel|phase/.test(r)?["svg-align"]:[];S=Pt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:l,wrapperClasses:A}]})}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!u?je(["mord","cancel-lap"],[S],t):je(["mord"],[S],t)},Xm=(e,t)=>{var n,r=new ze(e.label.includes("colorbox")?"mpadded":"menclose",[rn(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: "+Me(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Fe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=bt(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,body:l}},htmlBuilder:Qm,mathmlBuilder:Xm});Fe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=bt(t[0],"color-token").color,l=bt(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,borderColor:i,body:u}},htmlBuilder:Qm,mathmlBuilder:Xm});Fe({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]}}});Fe({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:Qm,mathmlBuilder:Xm});Fe({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:Qm,mathmlBuilder:Xm});Fe({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 X8={};function bs(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:l}=e,u={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},d=0;d<n.length;++d)X8[n[d]]=u;i&&(um[t]=i),l&&(dm[t]=l)}var Y8={};function q(e,t){Y8[e]=t}class va{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 va(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Ra{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 Ra(n,va.range(this,t))}}function b5(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 Ym=e=>{var t=e.parser.settings;if(!t.displayMode)throw new De("{"+e.envName+"} can be used only in display mode.")},RD=new Set(["gather","gather*"]);function $2(e){if(!e.includes("ed"))return!e.includes("*")}function Ji(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:i,arraystretch:l,colSeparationType:u,autoTag:d,singleRow:m,emptySingleRow:f,maxNumCols:h,leqno:b}=t;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var y=e.gullet.expandMacroAsText("\\arraystretch");if(y==null)l=1;else if(l=parseFloat(y),!l||l<0)throw new De("Invalid \\arraystretch: "+y)}e.gullet.beginGroup();var g=[],_=[g],j=[],C=[],S=d!=null?[]:void 0;function A(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function M(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new Ra("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(A(),C.push(b5(e));;){var L=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var z={type:"ordgroup",mode:e.mode,body:L};n&&(z={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[z]}),g.push(z);var P=e.fetch().text;if(P==="&"){if(h&&g.length===h){if(m||u)throw new De("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(P==="\\end"){M(),g.length===1&&z.type==="styling"&&z.body.length===1&&z.body[0].type==="ordgroup"&&z.body[0].body.length===0&&(_.length>1||!f)&&_.pop(),C.length<_.length+1&&C.push([]);break}else if(P==="\\\\"){e.consume();var H=void 0;e.gullet.future().text!==" "&&(H=e.parseSizeGroup(!0)),j.push(H?H.value:null),M(),C.push(b5(e)),g=[],_.push(g),A()}else throw new De("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:l,body:_,cols:i,rowGaps:j,hskipBeforeAndAfter:r,hLinesBeforeRow:C,colSeparationType:u,tags:S,leqno:b}}function A2(e){return e.slice(0,1)==="d"?"display":"text"}var ys=function(t,n){var r,a,i=t.body.length,l=t.hLinesBeforeRow,u=0,d=new Array(i),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(ht.SCRIPT).sizeMultiplier;b=.2778*(y/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?wn({number:3,unit:"ex"},n):12*h,_=3*h,j=t.arraystretch*g,C=.7*j,S=.3*j,A=0;function M(qe){for(var ot=0;ot<qe.length;++ot)ot>0&&(A+=.25),m.push({pos:A,isDashed:qe[ot]})}for(M(l[0]),r=0;r<t.body.length;++r){var L=t.body[r],z=C,P=S;u<L.length&&(u=L.length);var H={cells:new Array(L.length),height:0,depth:0,pos:0};for(a=0;a<L.length;++a){var R=Rt(L[a],n);P<R.depth&&(P=R.depth),z<R.height&&(z=R.height),H.cells[a]=R}var F=t.rowGaps[r],U=0;F&&(U=wn(F,n),U>0&&(U+=S,P<U&&(P=U),U=0)),t.addJot&&r<t.body.length-1&&(P+=_),H.height=z,H.depth=P,A+=z,H.pos=A,A+=P+U,d[r]=H,M(l[r+1])}var Z=A/2+n.fontMetrics().axisHeight,re=t.cols||[],le=[],ee,ke,_e=[];if(t.tags&&t.tags.some(qe=>qe))for(r=0;r<i;++r){var ie=d[r],Ne=ie.pos-Z,B=t.tags[r],O=void 0;B===!0?O=je(["eqn-num"],[],n):B===!1?O=je([],[],n):O=je([],rr(B,n,!0),n),O.depth=ie.depth,O.height=ie.height,_e.push({type:"elem",elem:O,shift:Ne})}for(a=0,ke=0;a<u||ke<re.length;++a,++ke){for(var ne,E=re[ke],ue=!0;((ae=E)==null?void 0:ae.type)==="separator";){var ae;if(ue||(ee=je(["arraycolsep"],[]),ee.style.width=Me(n.fontMetrics().doubleRuleSep),le.push(ee)),E.separator==="|"||E.separator===":"){var be=E.separator==="|"?"solid":"dashed",$e=je(["vertical-separator"],[],n);$e.style.height=Me(A),$e.style.borderRightWidth=Me(f),$e.style.borderRightStyle=be,$e.style.margin="0 "+Me(-f/2);var pe=A-Z;pe&&($e.style.verticalAlign=Me(-pe)),le.push($e)}else throw new De("Invalid separator type: "+E.separator);ke++,E=re[ke],ue=!1}if(!(a>=u)){var Le=void 0;if(a>0||t.hskipBeforeAndAfter){var Ae,ut;Le=(Ae=(ut=E)==null?void 0:ut.pregap)!=null?Ae:b,Le!==0&&(ee=je(["arraycolsep"],[]),ee.style.width=Me(Le),le.push(ee))}var yt=[];for(r=0;r<i;++r){var Ct=d[r],Qt=Ct.cells[a];if(Qt){var An=Ct.pos-Z;Qt.depth=Ct.depth,Qt.height=Ct.height,yt.push({type:"elem",elem:Qt,shift:An})}}var cn=Pt({positionType:"individualShift",children:yt}),ya=je(["col-align-"+(((ne=E)==null?void 0:ne.align)||"c")],[cn]);if(le.push(ya),a<u-1||t.hskipBeforeAndAfter){var In,gr;Le=(In=(gr=E)==null?void 0:gr.postgap)!=null?In:b,Le!==0&&(ee=je(["arraycolsep"],[]),ee.style.width=Me(Le),le.push(ee))}}}var qt=je(["mtable"],le);if(m.length>0){for(var $r=cu("hline",n,f),xa=cu("hdashline",n,f),or=[{type:"elem",elem:qt,shift:0}];m.length>0;){var Qn=m.pop(),ra=Qn.pos-Z;Qn.isDashed?or.push({type:"elem",elem:xa,shift:ra}):or.push({type:"elem",elem:$r,shift:ra})}qt=Pt({positionType:"individualShift",children:or})}if(_e.length===0)return je(["mord"],[qt],n);var me=Pt({positionType:"individualShift",children:_e}),Se=je(["tag"],[me],n);return ci([qt,Se])},qD={c:"center ",l:"left ",r:"right "},xs=function(t,n){for(var r=[],a=new ze("mtd",[],["mtr-glue"]),i=new ze("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var u=t.body[l],d=[],m=0;m<u.length;m++)d.push(new ze("mtd",[rn(u[m],n)]));t.tags&&t.tags[l]&&(d.unshift(a),d.push(a),t.leqno?d.unshift(i):d.push(i)),r.push(new ze("mtr",d))}var f=new ze("mtable",r),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);f.setAttribute("rowspacing",Me(h));var b="",y="";if(t.cols&&t.cols.length>0){var g=t.cols,_="",j=!1,C=0,S=g.length;g[0].type==="separator"&&(b+="top ",C=1),g[g.length-1].type==="separator"&&(b+="bottom ",S-=1);for(var A=C;A<S;A++){var M=g[A];M.type==="align"?(y+=qD[M.align],j&&(_+="none "),j=!0):M.type==="separator"&&j&&(_+=M.separator==="|"?"solid ":"dashed ",j=!1)}f.setAttribute("columnalign",y.trim()),/[sd]/.test(_)&&f.setAttribute("columnlines",_.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],z="",P=1;P<L.length;P++)z+=P%2?"0em ":"1em ";f.setAttribute("columnspacing",z.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 H="",R=t.hLinesBeforeRow;b+=R[0].length>0?"left ":"",b+=R[R.length-1].length>0?"right ":"";for(var F=1;F<R.length-1;F++)H+=R[F].length===0?"none ":R[F][0]?"dashed ":"solid ";return/[sd]/.test(H)&&f.setAttribute("rowlines",H.trim()),b!==""&&(f=new ze("menclose",[f]),f.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(f=new ze("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},K8=function(t,n){t.envName.includes("ed")||Ym(t);var r=[],a=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",l=Ji(t.parser,{cols:r,addJot:!0,autoTag:i?void 0:$2(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?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=bt(n[0].body[h],"textord");f+=b.text}u=Number(f),d=u*2}var y=!d;l.body.forEach(function(C){for(var S=1;S<C.length;S+=2){var A=bt(C[S],"styling"),M=bt(A.body[0],"ordgroup");M.body.unshift(m)}if(y)d<C.length&&(d=C.length);else{var L=C.length/2;if(u<L)throw new De("Too many math in a row: "+("expected "+u+", but got "+L),C[0])}});for(var g=0;g<d;++g){var _="r",j=0;g%2===1?_="l":g>0&&y&&(j=1),r[g]={type:"align",align:_,pregap:j,postgap:0}}return l.colSeparationType=y?"align":"alignat",l};bs({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gm(t[0]),r=n?[t[0]]:bt(t[0],"ordgroup").body,a=r.map(function(l){var u=Vm(l),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 De("Unknown column alignment: "+d,l)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Ji(e.parser,i,A2(e.envName))},htmlBuilder:ys,mathmlBuilder:xs});bs({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 De("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var i=Ji(e.parser,r,A2(e.envName)),l=Math.max(0,...i.body.map(u=>u.length));return i.cols=new Array(l).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Ji(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gm(t[0]),r=n?[t[0]]:bt(t[0],"ordgroup").body,a=r.map(function(u){var d=Vm(u),m=d.text;if("lc".includes(m))return{type:"align",align:m};throw new De("Unknown column alignment: "+m,u)});if(a.length>1)throw new De("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},l=Ji(e.parser,i,"script");if(l.body.length>0&&l.body[0].length>1)throw new De("{subarray} can contain only one column");return l},htmlBuilder:ys,mathmlBuilder:xs});bs({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=Ji(e.parser,t,A2(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:K8,htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){RD.has(e.envName)&&Ym(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$2(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ji(e.parser,t,"display")},htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:K8,htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ym(e);var t={autoTag:$2(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ji(e.parser,t,"display")},htmlBuilder:ys,mathmlBuilder:xs});bs({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Ym(e),ND(e.parser)},htmlBuilder:ys,mathmlBuilder:xs});q("\\nonumber","\\gdef\\@eqnsw{0}");q("\\notag","\\nonumber");Fe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new De(e.funcName+" valid only within array environment")}});var y5=X8;Fe({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 De("Invalid environment name",a);for(var i="",l=0;l<a.body.length;++l)i+=bt(a.body[l],"textord").text;if(r==="\\begin"){if(!y5.hasOwnProperty(i))throw new De("No such environment: "+i,a);var u=y5[i],{args:d,optArgs:m}=n.parseArguments("\\begin{"+i+"}",u),f={mode:n.mode,envName:i,parser:n},h=u.handler(f,d,m);n.expect("\\end",!1);var b=n.nextToken,y=bt(n.parseFunction(),"environment");if(y.name!==i)throw new De("Mismatch: \\begin{"+i+"} matched by \\end{"+y.name+"}",b);return h}return{type:"environment",mode:n.mode,name:i,nameGroup:a}}});var J8=(e,t)=>{var n=e.font,r=t.withFont(n);return Rt(e.body,r)},ey=(e,t)=>{var n=e.font,r=t.withFont(n);return rn(e.body,r)},x5={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Fe({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=pm(t[0]),i=r;return i in x5&&(i=x5[i]),{type:"font",mode:n.mode,font:i.slice(1),body:a}},htmlBuilder:J8,mathmlBuilder:ey});Fe({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:Wm(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:ii(r)}}});Fe({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:i}=n,l=n.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:l}}},htmlBuilder:J8,mathmlBuilder:ey});var FD=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),i;i=t.havingStyle(r);var l=Rt(e.numer,i,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;l.height=l.height<u?u:l.height,l.depth=l.depth<d?d:l.depth}i=t.havingStyle(a);var m=Rt(e.denom,i,t),f,h,b;e.hasBarLine?(e.barSize?(h=wn(e.barSize,t),f=cu("frac-line",t,h)):f=cu("frac-line",t),h=f.height,b=f.height):(f=null,h=0,b=t.fontMetrics().defaultRuleThickness);var y,g,_;n.size===ht.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 j;if(f){var S=t.fontMetrics().axisHeight;y-l.depth-(S+.5*h)<g&&(y+=g-(y-l.depth-(S+.5*h))),S-.5*h-(m.height-_)<g&&(_+=g-(S-.5*h-(m.height-_)));var A=-(S-.5*h);j=Pt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:_},{type:"elem",elem:f,shift:A},{type:"elem",elem:l,shift:-y}]})}else{var C=y-l.depth-(m.height-_);C<g&&(y+=.5*(g-C),_+=.5*(g-C)),j=Pt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:_},{type:"elem",elem:l,shift:-y}]})}i=t.havingStyle(n),j.height*=i.sizeMultiplier/t.sizeMultiplier,j.depth*=i.sizeMultiplier/t.sizeMultiplier;var M;n.size===ht.DISPLAY.size?M=t.fontMetrics().delim1:n.size===ht.SCRIPTSCRIPT.size?M=t.havingStyle(ht.SCRIPT).fontMetrics().delim2:M=t.fontMetrics().delim2;var L,z;return e.leftDelim==null?L=Q0(t,["mopen"]):L=zg(e.leftDelim,M,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?z=je([]):e.rightDelim==null?z=Q0(t,["mclose"]):z=zg(e.rightDelim,M,!0,t.havingStyle(n),e.mode,["mclose"]),je(["mord"].concat(i.sizingClasses(t)),[L,je(["mfrac"],[j]),z],t)},OD=(e,t)=>{var n=new ze("mfrac",[rn(e.numer,t),rn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=wn(e.barSize,t);n.setAttribute("linethickness",Me(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var i=new ze("mo",[new Gn(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(n),e.rightDelim!=null){var l=new ze("mo",[new Gn(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return C2(a)}return n},ty=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Fe({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],i=t[1],l,u=null,d=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,u="(",d=")";break;case"\\\\bracefrac":l=!1,u="\\{",d="\\}";break;case"\\\\brackfrac":l=!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"),ty({type:"genfrac",mode:n.mode,numer:a,denom:i,continued:m,hasBarLine:l,leftDelim:u,rightDelim:d,barSize:null},f)},htmlBuilder:FD,mathmlBuilder:OD});Fe({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 _5=["display","text","script","scriptscript"],w5=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Fe({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],i=pm(t[0]),l=i.type==="atom"&&i.family==="open"?w5(i.text):null,u=pm(t[1]),d=u.type==="atom"&&u.family==="close"?w5(u.text):null,m=bt(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=bt(y.body[0],"textord");b=_5[Number(g.text)]}}else y=bt(y,"textord"),b=_5[Number(y.text)];return ty({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:f,barSize:h,leftDelim:l,rightDelim:d},b)}});Fe({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:bt(t[0],"size").value,token:a}}});Fe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=bt(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var l=t[2],u=i.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:l,continued:!1,hasBarLine:u,barSize:i,leftDelim:null,rightDelim:null}}});var ny=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?Rt(e.sup,t.havingStyle(n.sup()),t):Rt(e.sub,t.havingStyle(n.sub()),t),a=bt(e.base,"horizBrace")):a=bt(e,"horizBrace");var i=Rt(a.base,t.havingBaseStyle(ht.DISPLAY)),l=Hm(a,t),u;if(a.isOver?u=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:l,wrapperClasses:["svg-align"]}]}):u=Pt({positionType:"bottom",positionData:i.depth+.1+l.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),r){var d=je(["minner",a.isOver?"mover":"munder"],[u],t);a.isOver?u=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:r}]}):u=Pt({positionType:"bottom",positionData:d.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:d}]})}return je(["minner",a.isOver?"mover":"munder"],[u],t)},BD=(e,t)=>{var n=Um(e.label);return new ze(e.isOver?"mover":"munder",[rn(e.base,t),n])};Fe({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:ny,mathmlBuilder:BD});Fe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=bt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Vn(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=rr(e.body,t,!1);return tD(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Xi(e.body,t);return n instanceof ze||(n=new ze("mrow",[n])),n.setAttribute("href",e.href),n}});Fe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=bt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<r.length;i++){var l=r[i];l==="~"&&(l="\\textasciitilde"),a.push({type:"textord",mode:"text",text:l})}var u={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Vn(u)}}});Fe({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:Vn(t[0])}},htmlBuilder(e,t){var n=rr(e.body,t.withFont(""),!1);return ci(n)},mathmlBuilder(e,t){return new ze("mrow",Ba(e.body,t.withFont("")))}});Fe({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,i=bt(t[0],"raw").string,l=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=i,u={command:"\\htmlClass",class:i};break;case"\\htmlId":d.id=i,u={command:"\\htmlId",id:i};break;case"\\htmlStyle":d.style=i,u={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var m=i.split(","),f=0;f<m.length;f++){var h=m[f],b=h.indexOf("=");if(b<0)throw new De("\\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:Vn(l)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=rr(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=je(r,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>Xi(e.body,t)});Fe({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:Vn(t[0]),mathml:Vn(t[1])}},htmlBuilder:(e,t)=>{var n=rr(e.html,t,!1);return ci(n)},mathmlBuilder:(e,t)=>Xi(e.mathml,t)});var nf=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 De("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!y8(r))throw new De("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Fe({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"},i={number:.9,unit:"em"},l={number:0,unit:"em"},u="";if(n[0])for(var d=bt(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=nf(b);break;case"height":i=nf(b);break;case"totalheight":l=nf(b);break;default:throw new De("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var y=bt(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:i,totalheight:l,src:y}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=wn(e.height,t),r=0;e.totalheight.number>0&&(r=wn(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=wn(e.width,t));var i={height:Me(n+r)};a>0&&(i.width=Me(a)),r>0&&(i.verticalAlign=Me(-r));var l=new UE(e.src,e.alt,i);return l.height=n,l.depth=r,l},mathmlBuilder:(e,t)=>{var n=new ze("mglyph",[]);n.setAttribute("alt",e.alt);var r=wn(e.height,t),a=0;if(e.totalheight.number>0&&(a=wn(e.totalheight,t)-r,n.setAttribute("valign",Me(-a))),n.setAttribute("height",Me(r+a)),e.width.number>0){var i=wn(e.width,t);n.setAttribute("width",Me(i))}return n.setAttribute("src",e.src),n}});Fe({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=bt(t[0],"size");if(n.settings.strict){var i=r[1]==="m",l=a.value.unit==="mu";i?(l||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")):l&&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 k8(e.dimension,t)},mathmlBuilder(e,t){var n=wn(e.dimension,t);return new D8(n)}});Fe({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=je([],[Rt(e.body,t)]),n=je(["inner"],[n],t)):n=je(["inner"],[Rt(e.body,t)]);var r=je(["fix"],[]),a=je([e.alignment],[n,r],t),i=je(["strut"]);return i.style.height=Me(a.height+a.depth),a.depth&&(i.style.verticalAlign=Me(-a.depth)),a.children.unshift(i),a=je(["thinbox"],[a],t),je(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ze("mpadded",[rn(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}});Fe({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 i=n==="\\("?"\\)":"$",l=r.parseExpression(!1,i);return r.expect(i),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:l}}});Fe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new De("Mismatched "+e.funcName)}});var j5=(e,t)=>{switch(t.style.size){case ht.DISPLAY.size:return e.display;case ht.TEXT.size:return e.text;case ht.SCRIPT.size:return e.script;case ht.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Fe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Vn(t[0]),text:Vn(t[1]),script:Vn(t[2]),scriptscript:Vn(t[3])}},htmlBuilder:(e,t)=>{var n=j5(e,t),r=rr(n,t,!1);return ci(r)},mathmlBuilder:(e,t)=>{var n=j5(e,t);return Xi(n,t)}});var ry=(e,t,n,r,a,i,l)=>{e=je([],[e]);var u=n&&ii(n),d,m;if(t){var f=Rt(t,r.havingStyle(a.sup()),r);m={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-f.depth)}}if(n){var h=Rt(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+l;b=Pt({positionType:"bottom",positionData:y,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Me(-i)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Me(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(d){var g=e.height-l;b=Pt({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:Me(-i)},{type:"kern",size:d.kern},{type:"elem",elem:e}]})}else if(m){var _=e.depth+l;b=Pt({positionType:"bottom",positionData:_,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Me(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var j=[b];if(d&&i!==0&&!u){var C=je(["mspace"],[],r);C.style.marginRight=Me(i),j.unshift(C)}return je(["mop","op-limits"],j,r)},ay=new Set(["\\smallint"]),yu=(e,t)=>{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=bt(e.base,"op"),a=!0):i=bt(e,"op");var l=t.style,u=!1;l.size===ht.DISPLAY.size&&i.symbol&&!ay.has(i.name)&&(u=!0);var d,m;if(i.symbol){var f=u?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),d=Jr(i.name,f,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),m=d.italic,h.length>0){var b=S8(h+"Size"+(u?"2":"1"),t);d=Pt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:b,shift:u?.08:0}]}),i.name="\\"+h,d.classes.unshift("mop"),d.italic=m}}else if(i.body){var y=rr(i.body,t,!0);y.length===1&&y[0]instanceof Fa?(d=y[0],d.classes[0]="mop"):d=je(["mop"],y,t)}else{for(var g=[],_=1;_<i.name.length;_++)g.push(w2(i.name[_],i.mode,t));d=je(["mop"],g,t)}var j=0,C=0;if((d instanceof Fa||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var S;j=(d.height-d.depth)/2-t.fontMetrics().axisHeight,C=(S=d.italic)!=null?S:0}return a?ry(d,n,r,t,l,C,j):(j&&(d.style.position="relative",d.style.top=Me(j)),d)},ld=(e,t)=>{var n;if(e.symbol)n=new ze("mo",[ho(e.name,e.mode)]),ay.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ze("mo",Ba(e.body,t));else{n=new ze("mi",[new Gn(e.name.slice(1))]);var r=new ze("mo",[ho("","text")]);e.parentIsSupSub?n=new ze("mrow",[n,r]):n=E8([n,r])}return n},UD={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Fe({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=UD[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:yu,mathmlBuilder:ld});Fe({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:Vn(r)}},htmlBuilder:yu,mathmlBuilder:ld});var HD={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Fe({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:yu,mathmlBuilder:ld});Fe({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:yu,mathmlBuilder:ld});Fe({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=HD[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yu,mathmlBuilder:ld});var oy=(e,t)=>{var n,r,a=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=bt(e.base,"operatorname"),a=!0):i=bt(e,"operatorname");var l;if(i.body.length>0){for(var u=i.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=rr(u,t.withFont("mathrm"),!0),m=0;m<d.length;m++){var f=d[m];f instanceof Fa&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=je(["mop"],d,t)}else l=je(["mop"],[],t);return a?ry(l,n,r,t,t.style,0,0):l},VD=(e,t)=>{for(var n=Ba(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var i=n[a];if(!(i instanceof D8))if(i instanceof ze)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=i.children[0];i.children.length===1&&l instanceof Gn?l.text=l.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 Gn(u)]}var d=new ze("mi",n);d.setAttribute("mathvariant","normal");var m=new ze("mo",[ho("","text")]);return e.parentIsSupSub?new ze("mrow",[d,m]):E8([d,m])};Fe({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:Vn(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:oy,mathmlBuilder:VD});q("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ic({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ci(rr(e.body,t,!1)):je(["mord"],rr(e.body,t,!0),t)},mathmlBuilder(e,t){return Xi(e.body,t,!0)}});Fe({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=Rt(e.body,t.havingCrampedStyle()),r=cu("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return je(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new ze("mo",[new Gn("‾")]);n.setAttribute("stretchy","true");var r=new ze("mover",[rn(e.body,t),n]);return r.setAttribute("accent","true"),r}});Fe({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:Vn(r)}},htmlBuilder:(e,t)=>{var n=rr(e.body,t.withPhantom(),!1);return ci(n)},mathmlBuilder:(e,t)=>{var n=Ba(e.body,t);return new ze("mphantom",n)}});q("\\hphantom","\\smash{\\phantom{#1}}");Fe({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=je(["inner"],[Rt(e.body,t.withPhantom())]),r=je(["fix"],[]);return je(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ba(Vn(e.body),t),r=new ze("mphantom",n),a=new ze("mpadded",[r]);return a.setAttribute("width","0px"),a}});Fe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=bt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=Rt(e.body,t),r=wn(e.dy,t);return Pt({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ze("mpadded",[rn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Fe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Fe({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],i=bt(t[0],"size"),l=bt(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&bt(a,"size").value,width:i.value,height:l.value}},htmlBuilder(e,t){var n=je(["mord","rule"],[],t),r=wn(e.width,t),a=wn(e.height,t),i=e.shift?wn(e.shift,t):0;return n.style.borderRightWidth=Me(r),n.style.borderTopWidth=Me(a),n.style.bottom=Me(i),n.width=r,n.height=a+i,n.depth=-i,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=wn(e.width,t),r=wn(e.height,t),a=e.shift?wn(e.shift,t):0,i=t.color&&t.getColor()||"black",l=new ze("mspace");l.setAttribute("mathbackground",i),l.setAttribute("width",Me(n)),l.setAttribute("height",Me(r));var u=new ze("mpadded",[l]);return a>=0?u.setAttribute("height",Me(a)):(u.setAttribute("height",Me(a)),u.setAttribute("depth",Me(-a))),u.setAttribute("voffset",Me(a)),u}});function sy(e,t,n){for(var r=rr(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var l=r[i].classes.indexOf("sizing");l<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[l+1]==="reset-size"+t.size&&(r[i].classes[l+1]="reset-size"+n.size),r[i].height*=a,r[i].depth*=a}return ci(r)}var C5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],GD=(e,t)=>{var n=t.havingSize(e.size);return sy(e.body,n,t)};Fe({type:"sizing",names:C5,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:C5.indexOf(r)+1,body:i}},htmlBuilder:GD,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ba(e.body,n),a=new ze("mstyle",r);return a.setAttribute("mathsize",Me(n.sizeMultiplier)),a}});Fe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,i=!1,l=n[0]&&bt(n[0],"ordgroup");if(l)for(var u,d=0;d<l.body.length;++d){var m=l.body[d];if(u=Vm(m).text,u==="t")a=!0;else if(u==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var f=t[0];return{type:"smash",mode:r.mode,body:f,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var n=je([],[Rt(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 je(["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=Pt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return je(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ze("mpadded",[rn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Fe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:a}},htmlBuilder(e,t){var n=Rt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=uu(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,i=a;t.style.id<ht.TEXT.id&&(i=t.fontMetrics().xHeight);var l=a+i/4,u=n.height+n.depth+l+a,{span:d,ruleWidth:m,advanceWidth:f}=zD(u,t),h=d.height-m;h>n.height+n.depth+l&&(l=(l+h-n.height-n.depth)/2);var b=d.height-n.height-l-m;n.style.paddingLeft=Me(f);var y=Pt({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(ht.SCRIPTSCRIPT),_=Rt(e.index,g,t),j=.6*(y.height-y.depth),C=Pt({positionType:"shift",positionData:-j,children:[{type:"elem",elem:_}]}),S=je(["root"],[C]);return je(["mord","sqrt"],[S,y],t)}else return je(["mord","sqrt"],[y],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ze("mroot",[rn(n,t),rn(r,t)]):new ze("msqrt",[rn(n,t)])}});var Tg={display:ht.DISPLAY,text:ht.TEXT,script:ht.SCRIPT,scriptscript:ht.SCRIPTSCRIPT};function WD(e){return e in Tg}Fe({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,i=a.parseExpression(!0,n),l=r.slice(1,r.length-5);if(!WD(l))throw new Error("Unknown style: "+l);return{type:"styling",mode:a.mode,style:l,body:i}},htmlBuilder(e,t){var n=Tg[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),sy(e.body,r,t)},mathmlBuilder(e,t){var n=Tg[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var a=Ba(e.body,r),i=new ze("mstyle",a),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=l[e.style];return i.setAttribute("scriptlevel",u[0]),i.setAttribute("displaystyle",u[1]),i}});var ZD=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===ht.DISPLAY.size||r.alwaysHandleSupSub);return a?yu:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===ht.DISPLAY.size||r.limits);return i?oy:null}else{if(r.type==="accent")return ii(r.base)?N2:null;if(r.type==="horizBrace"){var l=!t.sub;return l===r.isOver?ny:null}else return null}else return null};ic({type:"supsub",htmlBuilder(e,t){var n=ZD(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:i}=e,l=Rt(r,t),u,d,m=t.fontMetrics(),f=0,h=0,b=r&&ii(r);if(a){var y=t.havingStyle(t.style.sup());u=Rt(a,y,t),b||(f=l.height-y.fontMetrics().supDrop*y.sizeMultiplier/t.sizeMultiplier)}if(i){var g=t.havingStyle(t.style.sub());d=Rt(i,g,t),b||(h=l.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var _;t.style===ht.DISPLAY?_=m.sup1:t.style.cramped?_=m.sup3:_=m.sup2;var j=t.sizeMultiplier,C=Me(.5/m.ptPerEm/j),S=null;if(d){var A=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(l instanceof Fa||A){var M;S=Me(-((M=l.italic)!=null?M:0))}}var L;if(u&&d){f=Math.max(f,_,u.depth+.25*m.xHeight),h=Math.max(h,m.sub2);var z=m.defaultRuleThickness,P=4*z;if(f-u.depth-(d.height-h)<P){h=P-(f-u.depth)+d.height;var H=.8*m.xHeight-(f-u.depth);H>0&&(f+=H,h-=H)}var R=[{type:"elem",elem:d,shift:h,marginRight:C,marginLeft:S},{type:"elem",elem:u,shift:-f,marginRight:C}];L=Pt({positionType:"individualShift",children:R})}else if(d){h=Math.max(h,m.sub1,d.height-.8*m.xHeight);var F=[{type:"elem",elem:d,marginLeft:S,marginRight:C}];L=Pt({positionType:"shift",positionData:h,children:F})}else if(u)f=Math.max(f,_,u.depth+.25*m.xHeight),L=Pt({positionType:"shift",positionData:-f,children:[{type:"elem",elem:u,marginRight:C}]});else throw new Error("supsub must have either sup or sub.");var U=$g(l,"right")||"mord";return je([U],[l,je(["msupsub"],[L])],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 i=[rn(e.base,t)];e.sub&&i.push(rn(e.sub,t)),e.sup&&i.push(rn(e.sup,t));var l;if(n)l=r?"mover":"munder";else if(e.sub)if(e.sup){var m=e.base;m&&m.type==="op"&&m.limits&&t.style===ht.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(t.style===ht.DISPLAY||m.limits)?l="munderover":l="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===ht.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===ht.DISPLAY)?l="munder":l="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ht.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ht.DISPLAY)?l="mover":l="msup"}return new ze(l,i)}});ic({type:"atom",htmlBuilder(e,t){return w2(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ze("mo",[ho(e.text,e.mode)]);if(e.family==="bin"){var r=k2(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 iy={mi:"italic",mn:"normal",mtext:"normal"};ic({type:"mathord",htmlBuilder(e,t){return Bm(e,t,"mathord")},mathmlBuilder(e,t){var n=new ze("mi",[ho(e.text,e.mode,t)]),r=k2(e,t)||"italic";return r!==iy[n.type]&&n.setAttribute("mathvariant",r),n}});ic({type:"textord",htmlBuilder(e,t){return Bm(e,t,"textord")},mathmlBuilder(e,t){var n=ho(e.text,e.mode,t),r=k2(e,t)||"normal",a;return e.mode==="text"?a=new ze("mtext",[n]):/[0-9]/.test(e.text)?a=new ze("mn",[n]):e.text==="\\prime"?a=new ze("mo",[n]):a=new ze("mi",[n]),r!==iy[a.type]&&a.setAttribute("mathvariant",r),a}});var rf={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},af={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ic({type:"spacing",htmlBuilder(e,t){if(af.hasOwnProperty(e.text)){var n=af[e.text].className||"";if(e.mode==="text"){var r=Bm(e,t,"textord");return r.classes.push(n),r}else return je(["mspace",n],[w2(e.text,e.mode,t)],t)}else{if(rf.hasOwnProperty(e.text))return je(["mspace",rf[e.text]],[],t);throw new De('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(af.hasOwnProperty(e.text))n=new ze("mtext",[new Gn(" ")]);else{if(rf.hasOwnProperty(e.text))return new ze("mspace");throw new De('Unknown type of space "'+e.text+'"')}return n}});var k5=()=>{var e=new ze("mtd",[]);return e.setAttribute("width","50%"),e};ic({type:"tag",mathmlBuilder(e,t){var n=new ze("mtable",[new ze("mtr",[k5(),new ze("mtd",[Xi(e.body,t)]),k5(),new ze("mtd",[Xi(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var N5={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},S5={"\\textbf":"textbf","\\textmd":"textmd"},QD={"\\textit":"textit","\\textup":"textup"},$5=(e,t)=>{var n=e.font;if(n){if(N5[n])return t.withTextFontFamily(N5[n]);if(S5[n])return t.withTextFontWeight(S5[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(QD[n])};Fe({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:Vn(a),font:r}},htmlBuilder(e,t){var n=$5(e,t),r=rr(e.body,n,!0);return je(["mord","text"],r,n)},mathmlBuilder(e,t){var n=$5(e,t);return Xi(e.body,n)}});Fe({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=Rt(e.body,t),r=cu("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Pt({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return je(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new ze("mo",[new Gn("‾")]);n.setAttribute("stretchy","true");var r=new ze("munder",[rn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Fe({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=Rt(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return Pt({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ze("mpadded",[rn(e.body,t)],["vcenter"]);return new ze("mrow",[n])}});Fe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new De("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=A5(e),r=[],a=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var l=n[i];l==="~"&&(l="\\textasciitilde"),r.push(Jr(l,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return je(["mord","text"].concat(a.sizingClasses(t)),C8(r),a)},mathmlBuilder(e,t){var n=new Gn(A5(e)),r=new ze("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var A5=e=>e.body.replace(/ /g,e.star?"␣":" "),Ui=$8,ly=`[ \r
|
|
446
|
-
]`,XD="\\\\[a-zA-Z@]+",YD="\\\\[^\uD800-\uDFFF]",KD="("+XD+")"+ly+"*",JD=`\\\\(
|
|
447
|
-
|[ \r ]+
|
|
448
|
-
?)[ \r ]*`,Mg="[̀-ͯ]",ez=new RegExp(Mg+"+$"),tz="("+ly+"+)|"+(JD+"|")+"([!-\\[\\]-‧-豈-]"+(Mg+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Mg+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+KD)+("|"+YD+")");class E5{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(tz,"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 Ra("EOF",new va(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new De("Unexpected character: '"+t[n]+"'",new Ra(t[n],new va(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
|
|
449
|
-
`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new Ra(a,new va(this,n,this.tokenRegex.lastIndex))}}class nz{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 De("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 i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var rz=Y8;q("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});q("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});q("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});q("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});q("\\@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}});q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");q("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var D5={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};q("\\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 De("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=D5[t.text],r==null||r>=n)throw new De("Invalid base-"+n+" digit "+t.text);for(var a;(a=D5[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var E2=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new De("\\newcommand's first argument must be a macro name");var i=a[0].text,l=e.isDefined(i);if(l&&!t)throw new De("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!l&&!n)throw new De("\\renewcommand{"+i+"} when command "+i+" 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 De("Invalid number of arguments: "+d);u=parseInt(d),a=e.consumeArg().tokens}return l&&r||e.macros.set(i,{tokens:a,numArgs:u}),""};q("\\newcommand",e=>E2(e,!1,!0,!1));q("\\renewcommand",e=>E2(e,!0,!1,!1));q("\\providecommand",e=>E2(e,!0,!0,!0));q("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});q("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});q("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Ui[n],hn.math[n],hn.text[n]),""});q("\\bgroup","{");q("\\egroup","}");q("~","\\nobreakspace");q("\\lq","`");q("\\rq","'");q("\\aa","\\r a");q("\\AA","\\r A");q("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");q("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");q("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");q("ℬ","\\mathscr{B}");q("ℰ","\\mathscr{E}");q("ℱ","\\mathscr{F}");q("ℋ","\\mathscr{H}");q("ℐ","\\mathscr{I}");q("ℒ","\\mathscr{L}");q("ℳ","\\mathscr{M}");q("ℛ","\\mathscr{R}");q("ℭ","\\mathfrak{C}");q("ℌ","\\mathfrak{H}");q("ℨ","\\mathfrak{Z}");q("\\Bbbk","\\Bbb{k}");q("\\llap","\\mathllap{\\textrm{#1}}");q("\\rlap","\\mathrlap{\\textrm{#1}}");q("\\clap","\\mathclap{\\textrm{#1}}");q("\\mathstrut","\\vphantom{(}");q("\\underbar","\\underline{\\text{#1}}");q("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');q("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");q("\\ne","\\neq");q("≠","\\neq");q("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");q("∉","\\notin");q("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");q("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");q("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");q("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");q("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");q("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");q("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");q("⟂","\\perp");q("‼","\\mathclose{!\\mkern-0.8mu!}");q("∌","\\notni");q("⌜","\\ulcorner");q("⌝","\\urcorner");q("⌞","\\llcorner");q("⌟","\\lrcorner");q("©","\\copyright");q("®","\\textregistered");q("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');q("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');q("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');q("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');q("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");q("⋮","\\vdots");q("\\varGamma","\\mathit{\\Gamma}");q("\\varDelta","\\mathit{\\Delta}");q("\\varTheta","\\mathit{\\Theta}");q("\\varLambda","\\mathit{\\Lambda}");q("\\varXi","\\mathit{\\Xi}");q("\\varPi","\\mathit{\\Pi}");q("\\varSigma","\\mathit{\\Sigma}");q("\\varUpsilon","\\mathit{\\Upsilon}");q("\\varPhi","\\mathit{\\Phi}");q("\\varPsi","\\mathit{\\Psi}");q("\\varOmega","\\mathit{\\Omega}");q("\\substack","\\begin{subarray}{c}#1\\end{subarray}");q("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");q("\\boxed","\\fbox{$\\displaystyle{#1}$}");q("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");q("\\implies","\\DOTSB\\;\\Longrightarrow\\;");q("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");q("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");q("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var z5={",":"\\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"},az=new Set(["bin","rel"]);q("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in z5?t=z5[n]:(n.slice(0,4)==="\\not"||n in hn.math&&az.has(hn.math[n].group))&&(t="\\dotsb"),t});var D2={")":!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};q("\\dotso",function(e){var t=e.future().text;return t in D2?"\\ldots\\,":"\\ldots"});q("\\dotsc",function(e){var t=e.future().text;return t in D2&&t!==","?"\\ldots\\,":"\\ldots"});q("\\cdots",function(e){var t=e.future().text;return t in D2?"\\@cdots\\,":"\\@cdots"});q("\\dotsb","\\cdots");q("\\dotsm","\\cdots");q("\\dotsi","\\!\\cdots");q("\\dotsx","\\ldots\\,");q("\\DOTSI","\\relax");q("\\DOTSB","\\relax");q("\\DOTSX","\\relax");q("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");q("\\,","\\tmspace+{3mu}{.1667em}");q("\\thinspace","\\,");q("\\>","\\mskip{4mu}");q("\\:","\\tmspace+{4mu}{.2222em}");q("\\medspace","\\:");q("\\;","\\tmspace+{5mu}{.2777em}");q("\\thickspace","\\;");q("\\!","\\tmspace-{3mu}{.1667em}");q("\\negthinspace","\\!");q("\\negmedspace","\\tmspace-{4mu}{.2222em}");q("\\negthickspace","\\tmspace-{5mu}{.277em}");q("\\enspace","\\kern.5em ");q("\\enskip","\\hskip.5em\\relax");q("\\quad","\\hskip1em\\relax");q("\\qquad","\\hskip2em\\relax");q("\\tag","\\@ifstar\\tag@literal\\tag@paren");q("\\tag@paren","\\tag@literal{({#1})}");q("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new De("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});q("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");q("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");q("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");q("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");q("\\newline","\\\\\\relax");q("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var cy=Me(fs["Main-Regular"][84][1]-.7*fs["Main-Regular"][65][1]);q("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+cy+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");q("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+cy+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");q("\\hspace","\\@ifstar\\@hspacer\\@hspace");q("\\@hspace","\\hskip #1\\relax");q("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");q("\\ordinarycolon",":");q("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");q("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');q("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');q("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');q("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');q("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');q("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');q("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');q("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');q("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');q("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');q("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');q("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');q("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');q("∷","\\dblcolon");q("∹","\\eqcolon");q("≔","\\coloneqq");q("≕","\\eqqcolon");q("⩴","\\Coloneqq");q("\\ratio","\\vcentcolon");q("\\coloncolon","\\dblcolon");q("\\colonequals","\\coloneqq");q("\\coloncolonequals","\\Coloneqq");q("\\equalscolon","\\eqqcolon");q("\\equalscoloncolon","\\Eqqcolon");q("\\colonminus","\\coloneq");q("\\coloncolonminus","\\Coloneq");q("\\minuscolon","\\eqcolon");q("\\minuscoloncolon","\\Eqcolon");q("\\coloncolonapprox","\\Colonapprox");q("\\coloncolonsim","\\Colonsim");q("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");q("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");q("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");q("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");q("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");q("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");q("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");q("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");q("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");q("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");q("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");q("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");q("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");q("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");q("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");q("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");q("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");q("\\nleqq","\\html@mathml{\\@nleqq}{≰}");q("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");q("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");q("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");q("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");q("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");q("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");q("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");q("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");q("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");q("\\imath","\\html@mathml{\\@imath}{ı}");q("\\jmath","\\html@mathml{\\@jmath}{ȷ}");q("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");q("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");q("⟦","\\llbracket");q("⟧","\\rrbracket");q("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");q("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");q("⦃","\\lBrace");q("⦄","\\rBrace");q("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");q("⦵","\\minuso");q("\\darr","\\downarrow");q("\\dArr","\\Downarrow");q("\\Darr","\\Downarrow");q("\\lang","\\langle");q("\\rang","\\rangle");q("\\uarr","\\uparrow");q("\\uArr","\\Uparrow");q("\\Uarr","\\Uparrow");q("\\N","\\mathbb{N}");q("\\R","\\mathbb{R}");q("\\Z","\\mathbb{Z}");q("\\alef","\\aleph");q("\\alefsym","\\aleph");q("\\Alpha","\\mathrm{A}");q("\\Beta","\\mathrm{B}");q("\\bull","\\bullet");q("\\Chi","\\mathrm{X}");q("\\clubs","\\clubsuit");q("\\cnums","\\mathbb{C}");q("\\Complex","\\mathbb{C}");q("\\Dagger","\\ddagger");q("\\diamonds","\\diamondsuit");q("\\empty","\\emptyset");q("\\Epsilon","\\mathrm{E}");q("\\Eta","\\mathrm{H}");q("\\exist","\\exists");q("\\harr","\\leftrightarrow");q("\\hArr","\\Leftrightarrow");q("\\Harr","\\Leftrightarrow");q("\\hearts","\\heartsuit");q("\\image","\\Im");q("\\infin","\\infty");q("\\Iota","\\mathrm{I}");q("\\isin","\\in");q("\\Kappa","\\mathrm{K}");q("\\larr","\\leftarrow");q("\\lArr","\\Leftarrow");q("\\Larr","\\Leftarrow");q("\\lrarr","\\leftrightarrow");q("\\lrArr","\\Leftrightarrow");q("\\Lrarr","\\Leftrightarrow");q("\\Mu","\\mathrm{M}");q("\\natnums","\\mathbb{N}");q("\\Nu","\\mathrm{N}");q("\\Omicron","\\mathrm{O}");q("\\plusmn","\\pm");q("\\rarr","\\rightarrow");q("\\rArr","\\Rightarrow");q("\\Rarr","\\Rightarrow");q("\\real","\\Re");q("\\reals","\\mathbb{R}");q("\\Reals","\\mathbb{R}");q("\\Rho","\\mathrm{P}");q("\\sdot","\\cdot");q("\\sect","\\S");q("\\spades","\\spadesuit");q("\\sub","\\subset");q("\\sube","\\subseteq");q("\\supe","\\supseteq");q("\\Tau","\\mathrm{T}");q("\\thetasym","\\vartheta");q("\\weierp","\\wp");q("\\Zeta","\\mathrm{Z}");q("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");q("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");q("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");q("\\bra","\\mathinner{\\langle{#1}|}");q("\\ket","\\mathinner{|{#1}\\rangle}");q("\\braket","\\mathinner{\\langle{#1}\\rangle}");q("\\Bra","\\left\\langle#1\\right|");q("\\Ket","\\left|#1\\right\\rangle");var uy=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var d=h=>b=>{e&&(b.macros.set("|",l),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([...i,...m,...n]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};q("\\bra@ket",uy(!1));q("\\bra@set",uy(!0));q("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");q("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");q("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");q("\\angln","{\\angl n}");q("\\blue","\\textcolor{##6495ed}{#1}");q("\\orange","\\textcolor{##ffa500}{#1}");q("\\pink","\\textcolor{##ff00af}{#1}");q("\\red","\\textcolor{##df0030}{#1}");q("\\green","\\textcolor{##28ae7b}{#1}");q("\\gray","\\textcolor{gray}{#1}");q("\\purple","\\textcolor{##9d38bd}{#1}");q("\\blueA","\\textcolor{##ccfaff}{#1}");q("\\blueB","\\textcolor{##80f6ff}{#1}");q("\\blueC","\\textcolor{##63d9ea}{#1}");q("\\blueD","\\textcolor{##11accd}{#1}");q("\\blueE","\\textcolor{##0c7f99}{#1}");q("\\tealA","\\textcolor{##94fff5}{#1}");q("\\tealB","\\textcolor{##26edd5}{#1}");q("\\tealC","\\textcolor{##01d1c1}{#1}");q("\\tealD","\\textcolor{##01a995}{#1}");q("\\tealE","\\textcolor{##208170}{#1}");q("\\greenA","\\textcolor{##b6ffb0}{#1}");q("\\greenB","\\textcolor{##8af281}{#1}");q("\\greenC","\\textcolor{##74cf70}{#1}");q("\\greenD","\\textcolor{##1fab54}{#1}");q("\\greenE","\\textcolor{##0d923f}{#1}");q("\\goldA","\\textcolor{##ffd0a9}{#1}");q("\\goldB","\\textcolor{##ffbb71}{#1}");q("\\goldC","\\textcolor{##ff9c39}{#1}");q("\\goldD","\\textcolor{##e07d10}{#1}");q("\\goldE","\\textcolor{##a75a05}{#1}");q("\\redA","\\textcolor{##fca9a9}{#1}");q("\\redB","\\textcolor{##ff8482}{#1}");q("\\redC","\\textcolor{##f9685d}{#1}");q("\\redD","\\textcolor{##e84d39}{#1}");q("\\redE","\\textcolor{##bc2612}{#1}");q("\\maroonA","\\textcolor{##ffbde0}{#1}");q("\\maroonB","\\textcolor{##ff92c6}{#1}");q("\\maroonC","\\textcolor{##ed5fa6}{#1}");q("\\maroonD","\\textcolor{##ca337c}{#1}");q("\\maroonE","\\textcolor{##9e034e}{#1}");q("\\purpleA","\\textcolor{##ddd7ff}{#1}");q("\\purpleB","\\textcolor{##c6b9fc}{#1}");q("\\purpleC","\\textcolor{##aa87ff}{#1}");q("\\purpleD","\\textcolor{##7854ab}{#1}");q("\\purpleE","\\textcolor{##543b78}{#1}");q("\\mintA","\\textcolor{##f5f9e8}{#1}");q("\\mintB","\\textcolor{##edf2df}{#1}");q("\\mintC","\\textcolor{##e0e5cc}{#1}");q("\\grayA","\\textcolor{##f6f7f7}{#1}");q("\\grayB","\\textcolor{##f0f1f2}{#1}");q("\\grayC","\\textcolor{##e3e5e6}{#1}");q("\\grayD","\\textcolor{##d6d8da}{#1}");q("\\grayE","\\textcolor{##babec2}{#1}");q("\\grayF","\\textcolor{##888d93}{#1}");q("\\grayG","\\textcolor{##626569}{#1}");q("\\grayH","\\textcolor{##3b3e40}{#1}");q("\\grayI","\\textcolor{##21242c}{#1}");q("\\kaBlue","\\textcolor{##314453}{#1}");q("\\kaGreen","\\textcolor{##71B307}{#1}");var dy={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class oz{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 nz(rz,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new E5(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 Ra("EOF",r.loc)),this.pushTokens(a),new Ra("",va.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(),i,l=0,u=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++l;else if(i.text==="}"){if(--l,l===-1)throw new De("Extra }",i)}else if(i.text==="EOF")throw new De("Unexpected end of input in a macro argument, expected '"+(t&&r?t[u]:"}")+"'",i);if(t&&r)if((l===0||l===1&&t[u]==="{")&&i.text===t[u]){if(++u,u===t.length){n.splice(-u,u);break}}else u=0}while(l!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new De("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var i=this.popToken();if(r[a]!==i.text)throw new De("Use of the macro doesn't match its definition",i)}}for(var l=[],u=0;u<t;u++)l.push(this.consumeArg(n&&n[u+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new De("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 De("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var i=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var u=i.length-1;u>=0;--u){var d=i[u];if(d.text==="#"){if(u===0)throw new De("Incomplete placeholder at end of macro body",d);if(d=i[--u],d.text==="#")i.splice(u+1,1);else if(/^[1-9]$/.test(d.text))i.splice(u,2,...l[+d.text-1]);else throw new De("Not a valid argument number",d)}}}return this.pushTokens(i),i.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 Ra(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 i=0;if(a.includes("#"))for(var l=a.replace(/##/g,"");l.includes("#"+(i+1));)++i;for(var u=new E5(a,this.settings),d=[],m=u.lex();m.text!=="EOF";)d.push(m),m=u.lex();d.reverse();var f={tokens:d,numArgs:i};return f}return a}isDefined(t){return this.macros.has(t)||Ui.hasOwnProperty(t)||hn.math.hasOwnProperty(t)||hn.text.hasOwnProperty(t)||dy.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Ui.hasOwnProperty(t)&&!Ui[t].primitive}}var T5=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Dp=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),of={"́":{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"}},M5={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Km{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 oz(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 De("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 Ra("}")),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(Km.endOfExpression.has(a.text)||n&&a.text===n||t&&Ui[a.text]&&Ui[a.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;r.push(i)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var i=t[a];if(i.type==="infix"){if(n!==-1)throw new De("only one infix operator per group",i.token);n=a,r=i.replaceWith}}if(n!==-1&&r){var l,u,d=t.slice(0,n),m=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?l=d[0]:l={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,[l,t[n],u],[]):f=this.callFunction(r,[l,u],[]),[f]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new De("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},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}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 i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var l=i.text==="\\limits";n.limits=l,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new De("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(r)throw new De("Double superscript",i);r=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new De("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(r)throw new De("Double superscript",i);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(Dp[i.text]){var m=T5.test(i.text),f=[];for(f.push(new Ra(Dp[i.text])),this.consume();;){var h=this.fetch().text;if(!Dp[h]||T5.test(h)!==m)break;f.unshift(new Ra(Dp[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,i=Ui[a];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new De("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!i.allowedInText)throw new De("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&i.allowedInMath===!1)throw new De("Can't use function '"+a+"' in math mode",r);var{args:l,optArgs:u}=this.parseArguments(a,i);return this.callFunction(a,l,u,r,t)}callFunction(t,n,r,a,i){var l={funcName:t,parser:this,token:a,breakOnTokenText:i},u=Ui[t];if(u&&u.handler)return u.handler(l,n,r);throw new De("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],i=[],l=0;l<r;l++){var u=n.argTypes&&n.argTypes[l],d=l<n.numOptionalArgs;("primitive"in n&&n.primitive&&u==null||n.type==="sqrt"&&l===1&&i[0]==null)&&(u="primitive");var m=this.parseGroupOfType("argument to '"+t+"'",u,d);if(d)i.push(m);else if(m!=null)a.push(m);else throw new De("Null argument, please report this as a bug")}return{args:a,optArgs:i}}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 i=this.parseStringGroup("raw",r);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(r)throw new De("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new De("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new De("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="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,i="",l;(l=this.fetch()).text!=="EOF"&&t.test(i+l.text);)a=l,i+=a.text,this.consume();if(i==="")throw new De("Invalid "+n+": '"+r.text+"'",r);return r.range(a,i)}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 De("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 De("Invalid size: '"+n.text+"'",n);var i={number:+(a[1]+a[2]),unit:a[3]};if(!y8(i))throw new De("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,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 i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return n&&this.switchMode(a),l}parseGroup(t,n){var r=this.fetch(),a=r.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var l=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,l),d=this.fetch();this.expect(l),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:va.range(r,d),body:u,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!dy.hasOwnProperty(a)){if(this.settings.throwOnError)throw new De("Undefined control sequence: "+a,r);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var i=a.text,l=t[r+1];if(!(!l||l.type!=="textord")){if(i==="-"&&l.text==="-"){var u=t[r+2];r+1<n&&u&&u.type==="textord"&&u.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:va.range(a,u),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:va.range(a,l),text:"--"}),n-=1)}(i==="'"||i==="`")&&l.text===i&&(t.splice(r,2,{type:"textord",mode:"text",loc:va.range(a,l),text:i+i}),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 De(`\\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}}M5.hasOwnProperty(n[0])&&!hn[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=M5[n[0]]+n.slice(1));var i=ez.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var l;if(hn[this.mode][n]){this.settings.strict&&this.mode==="math"&&xg.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var u=hn[this.mode][n].group,d=va.range(t),m;_D(u)?m={type:"atom",mode:this.mode,family:u,loc:d,text:n}:m={type:u,mode:this.mode,loc:d,text:n},l=m}else if(n.charCodeAt(0)>=128)this.settings.strict&&(b8(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)),l={type:"textord",mode:"text",loc:va.range(t),text:n};else return null;if(this.consume(),i)for(var f=0;f<i[0].length;f++){var h=i[0][f];if(!of[h])throw new De("Unknown accent ' "+h+"'",t);var b=of[h][this.mode]||of[h].text;if(!b)throw new De("Accent "+h+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:va.range(t),label:b,isStretchy:!1,isShifty:!0,base:l}}return l}}Km.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var z2=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Km(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 De("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Ra("\\df@tag")])}]}return a},py=function(t,n,r){n.textContent="";var a=T2(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."),py=function(){throw new De("KaTeX doesn't work in quirks mode.")});var sz=function(t,n){var r=T2(t,n).toMarkup();return r},iz=function(t,n){var r=new b2(n);return z2(t,r)},my=function(t,n,r){if(r.throwOnError||!(t instanceof De))throw t;var a=je(["katex-error"],[new Fa(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},T2=function(t,n){var r=new b2(n);try{var a=z2(t,r);return mD(a,t,r)}catch(i){return my(i,t,r)}},lz=function(t,n){var r=new b2(n);try{var a=z2(t,r);return hD(a,t,r)}catch(i){return my(i,t,r)}},cz="0.16.47",uz={Span:vu,Anchor:Fm,SymbolNode:Fa,SvgNode:oi,PathNode:Zi,LineNode:yg},L5={version:cz,render:py,renderToString:sz,ParseError:De,SETTINGS_SCHEMA:gg,__parse:iz,__renderToDomTree:T2,__renderToHTMLTree:lz,__setFontMetrics:ZE,__defineSymbol:w,__defineFunction:Fe,__defineMacro:q,__domTree:uz};const Nt={eof:null,dollarSign:36,leftParenthesis:40,rightParenthesis:41,asterisk:42,leftSquareBracket:91,backslash:92,rightSquareBracket:93},Lg={characterGroupPunctuation:2,tabSize:4},Ia={whitespace:"whitespace",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape",chunkString:"chunkString"},dz=({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"})}),pz=({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"})]}),X0=({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"})})})]}),mz=({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"})]}),M2=({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"})}),hz=({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"})}),fz=({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"})}),gz=({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"})]}),vz=({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"})}),bz=({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"})}),L2=({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"})}),yz=({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.2426 4.80473V6.10551H4.75819V4.80473H11.2426Z",fill:"currentColor"}),o.jsx("path",{d:"M9.40858 7.84478V9.14557H4.75819V7.84478H9.40858Z",fill:"currentColor"}),o.jsx("path",{d:"M9.23438 0.546389C10.1941 0.546389 10.9683 0.544914 11.5859 0.611819C12.2161 0.680096 12.7634 0.825745 13.2393 1.17139C13.5172 1.3733 13.7619 1.61812 13.9639 1.896C14.3096 2.37183 14.4551 2.91922 14.5234 3.54932C14.5903 4.16686 14.5889 4.94133 14.5889 5.90088V10.0981C14.5889 11.0576 14.5903 11.8321 14.5234 12.4497C14.4552 13.0798 14.3094 13.6272 13.9639 14.103C13.7619 14.381 13.5172 14.6257 13.2393 14.8276C12.7633 15.1734 12.2163 15.3189 11.5859 15.3872C10.9683 15.4541 10.1942 15.4536 9.23438 15.4536H6.76563C5.80591 15.4536 5.03168 15.4541 4.41407 15.3872C3.78385 15.3189 3.23665 15.1734 2.76074 14.8276C2.48291 14.6257 2.23802 14.3809 2.03614 14.103C1.69066 13.6272 1.54483 13.0798 1.47657 12.4497C1.40973 11.8321 1.41114 11.0576 1.41114 10.0981V5.90088C1.41113 4.94132 1.40966 4.16686 1.47657 3.54932C1.54488 2.91921 1.69042 2.37184 2.03614 1.896C2.2381 1.61807 2.4828 1.37333 2.76074 1.17139C3.23665 0.825682 3.78386 0.680109 4.41407 0.611819C5.03168 0.544905 5.80591 0.546389 6.76563 0.546389H9.23438ZM6.76563 1.896C5.77586 1.896 5.0876 1.89738 4.55957 1.95459C4.0443 2.01043 3.76214 2.11349 3.55469 2.26416C3.39135 2.38284 3.24761 2.52662 3.12891 2.68994C2.97821 2.89736 2.8752 3.17967 2.81934 3.69483C2.76214 4.22279 2.76075 4.91131 2.76074 5.90088V10.0981C2.76074 11.0876 2.76221 11.7762 2.81934 12.3042C2.87516 12.8194 2.97829 13.1026 3.12891 13.3101C3.24754 13.4733 3.39147 13.6172 3.55469 13.7358C3.76213 13.8865 4.04438 13.9896 4.55957 14.0454C5.0876 14.1026 5.77586 14.103 6.76563 14.103H9.23438C10.2242 14.103 10.9124 14.1026 11.4404 14.0454C11.9556 13.9896 12.2379 13.8865 12.4453 13.7358C12.6086 13.6172 12.7525 13.4733 12.8711 13.3101C13.0217 13.1026 13.1248 12.8195 13.1807 12.3042C13.2378 11.7762 13.2393 11.0876 13.2393 10.0981V5.90088C13.2393 4.91131 13.2379 4.22279 13.1807 3.69483C13.1248 3.17969 13.0218 2.89736 12.8711 2.68994C12.7524 2.52667 12.6086 2.38281 12.4453 2.26416C12.2379 2.11355 11.9556 2.01041 11.4404 1.95459C10.9124 1.8974 10.2241 1.896 9.23438 1.896H6.76563Z",fill:"currentColor"})]}),xz=({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"})]}),I2=({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"})}),_z=({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"})]}),hy=({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"})}),wz=({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"})}),jz=({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"})]}),Cz=({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"})}),kz=({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"})]}),Nz=({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"})}),Sz=({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"})]}),$z=({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"})]}),Az=({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"})]}),Ez=({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 zp={};function Re({variant:e="ghost",size:t="md",icon:n,className:r,children:a,...i}){return o.jsxs("button",{type:"button",className:tt(zp.button,zp[e],zp[t],r),...i,children:[n!=null&&o.jsx("span",{className:zp.icon,children:n}),a]})}var sf={};function qa({icon:e,className:t,...n}){return o.jsxs("span",{className:tt(sf.wrap,t),children:[e!=null&&o.jsx("span",{className:sf.icon,children:e}),o.jsx("input",{className:sf.input,...n})]})}async function Dz(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 ls={};function Zn({open:e,onClose:t,title:n,closeLabel:r="Close",description:a,children:i,footer:l,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?Z_.createPortal(o.jsxs("div",{className:ls.root,role:"presentation",children:[o.jsx("div",{className:ls.mask,"aria-hidden":"true",onClick:t}),o.jsx("div",{className:tt(ls.dialog,u),role:"dialog","aria-modal":"true","aria-label":n,children:m?i:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:tt(ls.content,d),children:[o.jsxs("div",{className:ls.header,children:[o.jsx("h2",{className:ls.title,children:n}),o.jsx("button",{type:"button",className:ls.close,"aria-label":r,onClick:t,children:o.jsx(gz,{size:14})})]}),a!==void 0&&a!==""&&o.jsx("p",{className:ls.description,children:a}),i!==void 0&&o.jsx("div",{className:ls.body,children:i})]}),l!==void 0&&o.jsx("div",{className:ls.footer,children:l})]})})]}),document.body):null}var zz={};function Tz({reconnecting:e,label:t="连接已断开,正在重连…"}){return e?o.jsx("div",{className:zz.banner,children:t}):null}const Mz=[zN,MN,IN],Lz=new Map([["python",()=>pn(()=>import("./python-B6aJPvgy.js"),[],import.meta.url)],["ruby",()=>pn(()=>import("./ruby-C1ETrNOC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)],["go",()=>pn(()=>import("./go-C27-OAKa.js"),[],import.meta.url)],["rust",()=>pn(()=>import("./rust-B1yitclQ.js"),[],import.meta.url)],["java",()=>pn(()=>import("./java-CylS5w8V.js"),[],import.meta.url)],["c",()=>pn(()=>import("./c-BIGW1oBm.js"),[],import.meta.url)],["cpp",()=>pn(()=>import("./cpp-DddhVWhK.js"),__vite__mapDeps([6,7]),import.meta.url)],["csharp",()=>pn(()=>import("./csharp-DSvCPggb.js"),[],import.meta.url)],["kotlin",()=>pn(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url)],["swift",()=>pn(()=>import("./swift-C2oV4EkX.js"),[],import.meta.url)],["php",()=>pn(()=>import("./php-D_cRJn_2.js"),__vite__mapDeps([10,1,2,3,4,5]),import.meta.url)],["yaml",()=>pn(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url)],["toml",()=>pn(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url)],["ini",()=>pn(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url)],["markdown",()=>pn(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url)],["mdx",()=>pn(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url)],["html",()=>pn(()=>import("./html-CfGypltT.js").then(e=>e.a),__vite__mapDeps([1,2]),import.meta.url)],["css",()=>pn(()=>import("./css-CLj8gQPS.js"),[],import.meta.url)],["scss",()=>pn(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([11,2]),import.meta.url)],["less",()=>pn(()=>import("./less-B1dDrJ26.js"),[],import.meta.url)],["sql",()=>pn(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url)],["xml",()=>pn(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]),import.meta.url)],["lua",()=>pn(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([8,7]),import.meta.url)]]),Iz=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"]]),Pz=VC({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),Rz=EN({forgiving:!0,regexConstructor:e=>H7(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let I5;const qz=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function Fz(){const e=HC({themes:[Pz],langs:Mz,engine:Rz});for(const t of qz)e.codeToTokens(t.code,{lang:t.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function mm(){return I5??(I5=Fz()),I5}const P5=new Set,Ig=new Set;let fy=0;function Oz(e){return Ig.add(e),()=>{Ig.delete(e)}}function R5(){return fy}function Bz(e){const t=Lz.get(e);return t===void 0||mm().getLoadedLanguages().includes(e)?!0:(P5.has(e)||(P5.add(e),t().then(n=>{mm().loadLanguageSync(n.default),fy+=1;for(const r of Ig)r()})),!1)}var $b,Ab;(Ab=($b=setTimeout(()=>{mm()},0)).unref)==null||Ab.call($b);function Uz(e,t){const n=t===void 0?void 0:Iz.get(t.toLowerCase());if(n!==void 0&&Bz(n))return mm().codeToHtml(e,{lang:n,theme:"css-variables"})}const Hz=2;function q5(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 Vz=class{constructor(e){de(this,"parse");de(this,"prevText","");de(this,"tailStart",0);de(this,"frozen",[]);de(this,"generation",0);de(this,"cached",null);this.parse=e}update(e){var i,l;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-Hz);if(r>0){const u=(l=(i=n[r-1])==null?void 0:i.position)==null?void 0:l.end.offset;if(u===void 0)r=0;else{for(const d of n.slice(0,r))this.frozen.push({node:d,key:q5(d,t,this.frozen.length)});this.tailStart=t+u}}const a=n.slice(r).map((u,d)=>({node:u,key:q5(u,t,d)}));return this.cached={frozen:[...this.frozen],tail:a,generation:this.generation},this.cached}};const Gz=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 Wz(e){return e!==null&&e>=0&&Gz.test(String.fromCodePoint(e))}const Zz=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,i=this.previous,l=iu(i);let u=Nt.eof;return d;function d(f){return f!==Nt.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=iu(f),y=!b||b===Lg.characterGroupPunctuation&&!!l||a.includes(f),g=!l||l===Lg.characterGroupPunctuation&&!!b||a.includes(i),_=h.end.offset-h.start.offset>=2&&od(i)&&Wz(f),j=g||_;return h._open=y,h._close=j,t(f)}},Qz={name:"cjkFriendlyAttention",resolveAll:im.resolveAll,tokenize:Zz},Xz={text:{[Nt.asterisk]:Qz}};function gy(){return Xz}const Yz=function(e){if(e!==Nt.backslash)return!0;const t=this.events.at(-1);return t===void 0?!1:t[1].type===Ia.characterEscape},Kz=function(e,t,n){return r;function r(y){return y!==Nt.backslash?n(y):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(y),a)}function a(y){return y!==Nt.leftParenthesis?n(y):(e.consume(y),e.exit("mathTextSequence"),i)}function i(y){return y===Nt.eof?n(y):y===Nt.backslash?e.attempt({partial:!0,tokenize:h},f,l)(y):Ve(y)?(e.enter(Ia.lineEnding),e.consume(y),e.exit(Ia.lineEnding),i):u(y)}function l(y){return e.check({partial:!0,tokenize:b},n,u)(y)}function u(y){return e.enter("mathTextData"),e.consume(y),y===Nt.backslash?d:m}function d(y){return y===Nt.backslash?(e.consume(y),m):m(y)}function m(y){return y===Nt.eof||y===Nt.backslash||Ve(y)?(e.exit("mathTextData"),i(y)):(e.consume(y),m)}function f(y){return e.exit("mathText"),t(y)}function h(y,g,_){return j;function j(S){return S!==Nt.backslash?_(S):(y.enter("mathTextSequence"),y.consume(S),C)}function C(S){return S!==Nt.rightParenthesis?_(S):(y.consume(S),y.exit("mathTextSequence"),g)}}function b(y,g,_){return j;function j(S){return S!==Nt.backslash?_(S):(y.enter(Ia.chunkString),y.consume(S),C)}function C(S){return S!==Nt.leftParenthesis?_(S):(y.consume(S),y.exit(Ia.chunkString),g)}}};function vy(e,t,n,r){const a=function(i,l,u){const d=this;let m=!1;const f=d.events.at(-1),h=(f==null?void 0:f[1].type)===Ia.linePrefix?f[2].sliceSerialize(f[1],!0).length:0;return b;function b(R){return R!==e?u(R):(i.enter("mathFlow"),i.enter("mathFlowFence"),i.enter("mathFlowFenceSequence"),i.consume(R),y)}function y(R){return R!==t?u(R):(i.consume(R),i.exit("mathFlowFenceSequence"),i.exit("mathFlowFence"),e===Nt.dollarSign?g:_)}function g(R){return R===Nt.dollarSign?u(R):_(R)}function _(R){return R===Nt.eof?u(R):R===e&&(e!==Nt.dollarSign||!m)?i.attempt({partial:!0,tokenize:P},z,j)(R):Ve(R)?r?i.attempt(eT,C,u)(R):u(R):S(R)}function j(R){return e===Nt.backslash?i.check({partial:!0,tokenize:H},u,A)(R):A(R)}function C(R){return i.attempt({partial:!0,tokenize:P},z,h?vt(i,_,Ia.linePrefix,h+1):_)(R)}function S(R){return i.enter("mathFlowValue"),m=R===Nt.backslash,i.consume(R),L}function A(R){return i.enter("mathFlowValue"),m=!1,i.consume(R),M}function M(R){return R===e?(i.consume(R),L):L(R)}function L(R){return R===Nt.eof||R===e||Ve(R)?(i.exit("mathFlowValue"),_(R)):(m=R===Nt.backslash?!m:!1,i.consume(R),L)}function z(R){return i.exit("mathFlow"),l(R)}function P(R,F,U){return vt(R,Z,Ia.linePrefix,Lg.tabSize);function Z(ee){return ee!==e?U(ee):(R.enter("mathFlowFence"),R.enter("mathFlowFenceSequence"),R.consume(ee),re)}function re(ee){return ee!==n?U(ee):(R.consume(ee),R.exit("mathFlowFenceSequence"),vt(R,le,Ia.whitespace))}function le(ee){return ee!==Nt.eof&&!Ve(ee)?U(ee):(R.exit("mathFlowFence"),F(ee))}}function H(R,F,U){return Z;function Z(le){return le!==e?U(le):(R.enter(Ia.chunkString),R.consume(le),re)}function re(le){return le!==t?U(le):(R.consume(le),R.exit(Ia.chunkString),F)}}};return{concrete:!0,name:e===Nt.dollarSign?"sameLineDollarMathFlow":"backslashMathFlow",tokenize:a}}const Jz=function(e,t,n){const r=this;return a;function a(l){return l===Nt.eof?t(l):Ve(l)?(e.enter(Ia.lineEnding),e.consume(l),e.exit(Ia.lineEnding),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}},eT={partial:!0,tokenize:Jz},tT={name:"backslashMathText",previous:Yz,tokenize:Kz},nT=vy(Nt.backslash,Nt.leftSquareBracket,Nt.rightSquareBracket,!0),rT=vy(Nt.dollarSign,Nt.dollarSign,Nt.dollarSign,!1),aT={flow:{[Nt.backslash]:nT,[Nt.dollarSign]:rT},text:{[Nt.backslash]:tT}};function oT(){return aT}function sT(e){return a8(e,{extensions:[v8(),gy()],mdastExtensions:[l8()]})}function iT(e){return a8(e,{extensions:[v8(),gy(),oT(),mE()],mdastExtensions:[l8(),AA()]})}var Fl={};function by({code:e,lang:t,className:n,copyLabel:r="复制",copiedLabel:a="复制成功"}){const i=e.endsWith(`
|
|
451
|
-
`)?e.slice(0,-1):e,l=$.useMemo(()=>Uz(i,t),[i,t,$.useSyncExternalStore(Oz,R5,R5)]),u=$.useRef(null),[d,m]=$.useState(!1),f=$.useCallback(()=>{var b,y;d||Dz(((y=(b=u.current)==null?void 0:b.querySelector("pre"))==null?void 0:y.textContent)??i).then(g=>{g&&(m(!0),window.setTimeout(()=>{m(!1)},1e3))})},[d,i]),h=l===void 0?o.jsx("pre",{className:Fl.plain,children:o.jsx("code",{children:i})}):o.jsx("div",{dangerouslySetInnerHTML:{__html:l}});return o.jsxs("div",{ref:u,className:tt(Fl.block,"md-code-block",n),children:[o.jsx("div",{className:Fl.bannerWrap,children:o.jsxs("div",{className:Fl.banner,children:[o.jsx("div",{className:Fl.infostring,children:t??""}),o.jsx("div",{className:Fl.action,children:o.jsx("button",{type:"button",className:Fl.copyButton,onClick:f,children:d?a:r})})]})}),h]})}function lT(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,(i,l)=>l.toUpperCase());t[a]=n.slice(r+1).trim()}return t}function yy(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 i of n.attributes)i.name==="class"?r.className=i.value:i.name==="style"?r.style=lT(i.value):r[i.name]=i.value;const a=[...n.childNodes].map(yy);return a.length===0?$.createElement(n.localName,r):$.createElement(n.localName,r,...a)}function Pg(e,t){let n;try{n=L5.renderToString(e,{displayMode:t,throwOnError:!0})}catch(r){try{n=L5.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(yy)}var Y0={};function xy(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}function cT(e){try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function Rg(){return{definitions:new Map,footnotes:new Map}}function hm(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&&hm(n.children,t)}}function qg(e,t){return e.map(n=>R2(n.node,n.key,t)).filter(n=>n!==null)}function P2(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 _y(e,t){const n=[];for(const[r,a]of e.entries())if(a.type==="paragraph")n.push({paragraph:Bo(a.children,t)});else{const i=R2(a,r,t);i!==null&&n.push({element:i})}return n}function Bo(e,t){return e.map((n,r)=>R2(n,r,t))}function R2(e,t,n){var r;switch(e.type){case"text":return e.value;case"paragraph":return o.jsx("p",{children:Bo(e.children,n)},t);case"heading":return $.createElement(`h${e.depth}`,{key:t},...Bo(e.children,n));case"blockquote":return o.jsx("blockquote",{children:P2(Bo(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:Bo(e.children,n)},t);case"emphasis":return o.jsx("em",{children:Bo(e.children,n)},t);case"delete":return o.jsx("del",{children:Bo(e.children,n)},t);case"inlineCode":{const a=e.value.replace(/\r?\n|\r/g," "),i=hT(a);if(i!==void 0)return o.jsx("code",{children:Cy(i,[a],"link")},t);const l=n.inLink===!0||(r=n.fileMentions)==null?void 0:r.resolve(a);return l!==void 0?o.jsx("code",{children:o.jsx("button",{type:"button",className:Y0.fileMention,title:l.title,"aria-label":l.label,onClick:l.open,children:a})},t):o.jsx("code",{children:a},t)}case"html":return e.value;case"code":return uT(e,t,n);case"math":return o.jsx($.Fragment,{children:Pg(e.value,!0)},t);case"inlineMath":return o.jsx($.Fragment,{children:Pg(e.value,!1)},t);case"list":return pT(e,t,n);case"listItem":return jy(e,wy(e),t,n);case"table":return mT(e,t,n);case"link":return ky(e.url,Bo(e.children,{...n,inLink:!0}),t);case"linkReference":return fT(e,t,n);case"image":return Ny(e.url,e.alt??"",t);case"imageReference":return gT(e,t,n);case"footnoteReference":return vT(e,t,n);case"definition":case"footnoteDefinition":return null;default:return null}}function uT(e,t,n){var i,l,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||(i=/^[\w-]+/.exec(r))==null?void 0:i[0];return!n.streaming&&a==="math"?o.jsx($.Fragment,{children:Pg(`${e.value}
|
|
455
|
-
`,!0)},t):o.jsx(by,{code:`${e.value}
|
|
456
|
-
`,lang:n.streaming?void 0:a,copyLabel:(l=n.codeLabels)==null?void 0:l.copyLabel,copiedLabel:(u=n.codeLabels)==null?void 0:u.copiedLabel},t)}function dT(e){return(e.spread??!1)||e.children.some(wy)}function wy(e){return e.spread??e.children.length>1}function pT(e,t,n){const r=dT(e),a={};return typeof e.start=="number"&&e.start!==1&&(a.start=e.start),e.children.some(i=>typeof i.checked=="boolean")&&(a.className="contains-task-list"),$.createElement(e.ordered===!0?"ol":"ul",{key:t,...a},...e.children.map((i,l)=>jy(i,r,l,n)))}function jy(e,t,n,r){const a=_y(e.children,r),i=typeof e.checked=="boolean";if(i){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 l=[];for(const[d,m]of a.entries()){const f="paragraph"in m;(t||d!==0||!f)&&l.push(`
|
|
457
|
-
`),f?t?l.push(o.jsx("p",{children:m.paragraph},`p-${d}`)):l.push(o.jsx($.Fragment,{children:m.paragraph},`p-${d}`)):l.push(m.element)}const u=a[a.length-1];return u!==void 0&&(t||!("paragraph"in u))&&l.push(`
|
|
458
|
-
`),o.jsx("li",{className:i?"task-list-item":void 0,children:l},n)}function mT(e,t,n){const r=e.align??null,[a,...i]=e.children;return o.jsx("div",{className:Y0.tableScroll,children:o.jsxs("table",{children:[a!==void 0&&o.jsx("thead",{children:F5(a,"th",r,0,n)}),i.length>0&&o.jsx("tbody",{children:i.map((l,u)=>F5(l,"td",r,u+1,n))})]})},t)}function F5(e,t,n,r,a){const i=n===null?e.children.length:n.length,l=[];for(let u=0;u<i;u++){const d=e.children[u],m=n==null?void 0:n[u];l.push($.createElement(t,{key:u,style:m==null?void 0:{textAlign:m}},...d===void 0?[]:Bo(d.children,a)))}return o.jsx("tr",{children:l},r)}function Cy(e,t,n){const r=xy(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 ky(e,t,n){return Cy(h2(e),t,n)}function hT(e){if(e.trim()===e)try{const t=new URL(e).protocol;return t==="http:"||t==="https:"?e:void 0}catch{return}}function Ny(e,t,n){const r=cT(xy(h2(e)));return r===void 0?o.jsx("span",{className:Y0.imageAlt,children:t},n):o.jsx("img",{className:Y0.image,src:r,alt:t,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"},n)}function Sy(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function fT(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?o.jsxs($.Fragment,{children:["[",Bo(e.children,n),Sy(e)]},t):ky(r.url,Bo(e.children,{...n,inLink:!0}),t)}function gT(e,t,n){const r=n.targets.definitions.get(e.identifier.toUpperCase());return r===void 0?`![${e.alt??""}${Sy(e)}`:Ny(r.url,e.alt??"",t)}function vT(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 $y(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,i=[];for(let m=1;m<=a;m++)i.length>0&&i.push(" "),i.push("↩"),m>1&&i.push(o.jsx("sup",{children:String(m)},`re-${m}`));const l=_y(r.children,e),u=l[l.length-1],d=l.map((m,f)=>"paragraph"in m?o.jsxs("p",{children:[m.paragraph,m===u&&o.jsxs(o.Fragment,{children:[" ",i]})]},`p-${f}`):m.element);(u===void 0||!("paragraph"in u))&&d.push(...i),t.push(o.jsx("li",{id:`user-content-fn-${h2(n.toLowerCase())}`,children:P2(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 bT(e,t,n){const r=iT(e),a=Rg();hm(r.children,a);const i={streaming:!1,codeLabels:t,fileMentions:n,targets:a,footnoteOrder:[],footnoteCounts:new Map},l=P2(qg(r.children.map((d,m)=>({node:d,key:m})),i),!1),u=$y(i);return u===null?l:[...l,`
|
|
459
|
-
`,u]}var yT=class{constructor(e){de(this,"codeLabels");de(this,"parser",new Vz(sT));de(this,"generation",-1);de(this,"frozenCount",0);de(this,"frozenElements",[]);de(this,"frozenTargets",Rg());de(this,"frozenFootnoteOrder",[]);de(this,"frozenFootnoteCounts",new Map);de(this,"lastText",null);de(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=Rg(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=t.slice(this.frozenCount);hm(a.map(m=>m.node),this.frozenTargets);const i={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(hm(n.map(m=>m.node),i),a.length>0){const m={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:i,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},f=[...this.frozenElements];for(const h of qg(a,m))f.length>0&&f.push(`
|
|
460
|
-
`),f.push(h);this.frozenElements=f,this.frozenCount=t.length}const l={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:i,footnoteOrder:[...this.frozenFootnoteOrder],footnoteCounts:new Map(this.frozenFootnoteCounts)},u=[...this.frozenElements];for(const m of qg(n,l))u.length>0&&u.push(`
|
|
461
|
-
`),u.push(m);const d=$y(l);return d!==null&&u.push(`
|
|
462
|
-
`,d),this.lastText=e,this.lastRendered=u,this.lastRendered}};const rc=$.memo(function({text:t,streaming:n=!1,codeLabels:r,fileMentions:a}){const i=$.useRef(null),l=$.useRef(r),u=$.useMemo(()=>n?((i.current===null||l.current!==r)&&(i.current=new yT(r),l.current=r),i.current.render(t)):(i.current=null,bT(t,r,a)),[t,n,r,a]);return o.jsx("div",{className:Y0.markdown,children:u})});function ac(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):xT(r)}).join(`
|
|
464
|
-
`)}function xT(e){let t="",n=0;for(;n<e.length;){if(e[n]==="`"){let r=0;for(;e[n+r]==="`";)r++;const a="`".repeat(r),i=e.indexOf(a,n+r);if(i>=0){t+=e.slice(n,i+r),n=i+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 oc={copyLabel:"Copiar",copiedLabel:"Copiado"},_T="_planes_id60q_4",wT="_aviso_id60q_14",jT="_elegir_id60q_21",CT="_pastilla_id60q_29 _secundario_1l1rx_39",kT="_boton_id60q_30 _secundario_1l1rx_39",NT="_cabecera_id60q_39",ST="_titulo_id60q_52",$T="_ruta_id60q_58",AT="_nota_id60q_68",ET="_tareas_id60q_74",DT="_tarea_id60q_74",zT="_fila_id60q_84",TT="_numero_id60q_99",MT="_tituloDeTarea_id60q_105",LT="_estado_id60q_112",IT="_criterios_id60q_120",PT="_bloqueo_id60q_125",RT="_prosa_id60q_131",qT="_ficha_id60q_135",FT="_markdown_id60q_139",OT="_resumen_id60q_160",BT="_progreso_id60q_170",UT="_barra_id60q_201",HT="_pista_id60q_208",VT="_relleno_id60q_216",GT="_porcentaje_id60q_223",Ut={planes:_T,aviso:wT,elegir:jT,pastilla:CT,boton:kT,cabecera:NT,titulo:ST,ruta:$T,nota:AT,tareas:ET,tarea:DT,fila:zT,numero:TT,tituloDeTarea:MT,estado:LT,criterios:IT,bloqueo:PT,prosa:RT,ficha:qT,markdown:FT,resumen:OT,progreso:BT,barra:UT,pista:HT,relleno:VT,porcentaje:GT};function WT({planes:e,error:t}){var b,y;const[n,r]=$.useState(void 0),[a,i]=$.useState(void 0),[l,u]=$.useState(!1);if($.useEffect(()=>{i(void 0),u(!1)},[n]),e===void 0)return o.jsx("p",{className:Ut.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:Ut.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:Ut.planes,children:[e.length>1?o.jsx("div",{className:Ut.elegir,role:"group","aria-label":"Planes del proyecto",children:e.map(g=>o.jsx("button",{type:"button",className:Ut.pastilla,"aria-pressed":g.nombre===d.nombre,onClick:()=>r(g.nombre),children:g.nombre},g.nombre))}):null,o.jsxs("div",{className:Ut.cabecera,children:[o.jsx("h2",{className:Ut.titulo,children:((y=d.tareas)==null?void 0:y.titulo)??d.nombre}),o.jsx("span",{className:Ut.ruta,children:`/planes/${d.nombre}/`}),d.plan===void 0?null:o.jsx("button",{type:"button",className:Ut.boton,"aria-pressed":l,onClick:()=>u(g=>!g),children:l?"Ver las tareas":"Ver PLAN.md"})]}),l&&d.plan!==void 0?o.jsxs("div",{className:`${Ut.markdown} md-cuerpo`,children:[d.plan.recortado?o.jsx("p",{className:Ut.nota,children:"Recortado: el `PLAN.md` entero está en la carpeta del plan."}):null,o.jsx(rc,{text:ac(d.plan.texto),codeLabels:oc})]}):d.tareas===void 0?o.jsx("p",{className:Ut.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:Ut.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:Ut.resumen,"aria-label":"Por dónde va el plan",children:Ay(m)}),o.jsx(Ey,{tareas:m})]}):o.jsx("p",{className:Ut.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:Ut.tareas,children:m.map(g=>o.jsx(QT,{tarea:g,abierta:a===g.numero,alPulsar:()=>i(_=>_===g.numero?void 0:g.numero)},g.numero))})]})]})}const O5={pendiente:"pendiente","en-curso":"en curso",implementada:"implementada, sin comprobar",finalizada:"finalizada: todos sus criterios comprobados"};function Ay(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 ZT(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 Ey({tareas:e}){const t=ZT(e);if(t===void 0)return null;const n=`${t.hechos} de ${t.total} criterios comprobados`;return o.jsxs("div",{className:Ut.barra,children:[o.jsx("div",{className:Ut.pista,role:"progressbar","aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.porcentaje,title:n,children:o.jsx("div",{className:Ut.relleno,style:{width:`${t.porcentaje}%`}})}),o.jsx("span",{className:Ut.porcentaje,children:`${t.porcentaje} %`})]})}function QT({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:Ut.tarea,"data-progreso":e.progreso,children:[o.jsxs("button",{type:"button",className:Ut.fila,"aria-expanded":t,onClick:n,children:[e.progreso===void 0?null:o.jsx("span",{className:Ut.progreso,"data-progreso":e.progreso,role:"img","aria-label":O5[e.progreso],title:O5[e.progreso]}),o.jsx("span",{className:Ut.numero,children:e.numero}),o.jsx("span",{className:Ut.tituloDeTarea,children:e.titulo}),e.estado===void 0?null:o.jsx("span",{className:Ut.estado,children:e.estado}),e.criterios.total===0?null:o.jsx("span",{className:Ut.criterios,children:`${e.criterios.hechos} de ${e.criterios.total}`})]}),e.bloqueadaPor.length===0&&r?null:o.jsxs("p",{className:Ut.bloqueo,children:[e.bloqueadaPor.length===0?"":`bloqueada por ${e.bloqueadaPor.join(", ")}`,r?null:o.jsx("span",{className:Ut.prosa,children:`${e.bloqueadaPor.length===0?"":" · "}${e.bloqueadaPorTexto}`})]}),t?o.jsx("div",{className:`${Ut.ficha} md-cuerpo`,children:o.jsx(rc,{text:ac(e.cuerpo),codeLabels:oc})}):null]})}const XT="_caja_8ybgr_7",YT="_colecciones_8ybgr_5",KT="_detalle_8ybgr_21",JT="_lista_8ybgr_27",eM="_aviso_8ybgr_52",tM="_vacio_8ybgr_59",nM="_filtro_8ybgr_66",rM="_fila_8ybgr_77",aM="_nombre_8ybgr_101",oM="_marca_8ybgr_108",sM="_cuerpo_8ybgr_117",iM="_cabecera_8ybgr_124",lM="_titulo_8ybgr_137",cM="_ruta_8ybgr_143",uM="_codigo_8ybgr_144",dM="_recargar_8ybgr_157 _secundario_1l1rx_39",pM="_seccion_8ybgr_162",mM="_seccionTitulo_8ybgr_166",hM="_lineas_8ybgr_173",fM="_campos_8ybgr_174",gM="_tipo_8ybgr_196",vM="_grupo_8ybgr_202",bM="_subtitulo_8ybgr_212",yM="_nota_8ybgr_218",xM="_por_8ybgr_224",_M="_desdeDonde_8ybgr_229",wM="_enlace_8ybgr_236",Je={caja:XT,colecciones:YT,detalle:KT,lista:JT,aviso:eM,vacio:tM,filtro:nM,fila:rM,nombre:aM,marca:oM,cuerpo:sM,cabecera:iM,titulo:lM,ruta:cM,codigo:uM,recargar:dM,seccion:pM,seccionTitulo:mM,lineas:hM,campos:fM,tipo:gM,grupo:vM,subtitulo:bM,nota:yM,por:xM,desdeDonde:_M,enlace:wM};function jM({foto:e,error:t,conectado:n,alPedir:r,alAbrirFichero:a}){const i=e!==void 0||t!==void 0;$.useEffect(()=>{n===!1||i||r()},[i,n,r]);const[l,u]=$.useState(void 0),[d,m]=$.useState("");if(!i)return o.jsx("p",{className:Je.aviso,children:"Leyendo el modelo del proyecto…"});if(e===void 0)return o.jsxs("p",{className:Je.aviso,children:["No se ha podido leer el modelo del proyecto: ",t]});if(e.total===0)return o.jsxs("div",{className:Je.vacio,children:[o.jsx("p",{className:Je.aviso,children:"El índice no encuentra ninguna colección en este proyecto."}),o.jsx("button",{type:"button",className:Je.recargar,onClick:r,children:"Volver a leer"})]});const f=new Map(e.colecciones.map(j=>[j.nombre.toLowerCase(),j])),h=j=>f.has(j.toLowerCase()),b=l===void 0?void 0:f.get(l.toLowerCase()),y=e.colecciones.filter(j=>j.nombre.toLowerCase().includes(d.trim().toLowerCase())),g=new Set(e.entrada.map(j=>j.toLowerCase())),_=new Set(e.login.map(j=>j.toLowerCase()));return o.jsx("div",{className:Je.caja,children:o.jsxs("div",{className:Je.colecciones,children:[o.jsx("div",{className:Je.detalle,children:b===void 0?o.jsx(CM,{foto:e,existe:h,alElegir:u,alPedir:r}):o.jsx(kM,{coleccion:b,existe:h,alElegir:u,...a===void 0?{}:{alAbrirFichero:a}})}),o.jsxs("nav",{className:Je.lista,"aria-label":"Colecciones del proyecto",children:[o.jsx("input",{className:Je.filtro,type:"search",placeholder:"Filtrar colecciones","aria-label":"Filtrar colecciones",value:d,onChange:j=>m(j.target.value)}),o.jsx("button",{type:"button",className:Je.fila,"aria-current":b===void 0?"true":void 0,onClick:()=>u(void 0),children:"Resumen del proyecto"}),y.map(j=>o.jsxs("button",{type:"button",className:Je.fila,"aria-current":(b==null?void 0:b.nombre)===j.nombre?"true":void 0,onClick:()=>u(j.nombre),children:[o.jsx("span",{className:Je.nombre,children:j.nombre}),g.has(j.nombre.toLowerCase())?o.jsx("span",{className:Je.marca,children:"entrada"}):null,_.has(j.nombre.toLowerCase())?o.jsx("span",{className:Je.marca,children:"login"}):null]},`${j.nombre}:${j.fichero}`)),e.total>e.colecciones.length?o.jsx("p",{className:Je.nota,children:`Y ${e.total-e.colecciones.length} más que no caben en esta vista.`}):null]})]})})}function CM({foto:e,existe:t,alElegir:n,alPedir:r}){return o.jsxs("div",{className:Je.cuerpo,children:[o.jsxs("div",{className:Je.cabecera,children:[o.jsx("h2",{className:Je.titulo,children:`${e.total} ${e.total===1?"colección":"colecciones"}`}),o.jsx("button",{type:"button",className:Je.recargar,onClick:r,children:"Volver a leer"})]}),o.jsx(ru,{titulo:"Por dónde arranca",children:e.entrada.length===0&&e.login.length===0?o.jsx("p",{className:Je.nota,children:"El `app.xml` no declara colecciones de entrada ni de login que el índice vea."}):o.jsxs("ul",{className:Je.lineas,children:[e.entrada.map(a=>o.jsxs("li",{children:["entrada · ",o.jsx(fm,{nombre:a,existe:t,alElegir:n})]},`e:${a}`)),e.login.map(a=>o.jsxs("li",{children:["login · ",o.jsx(fm,{nombre:a,existe:t,alElegir:n})]},`l:${a}`))]})}),o.jsx(ru,{titulo:"Referencias a colecciones que no existen",children:e.rotas.length===0?o.jsx("p",{className:Je.nota,children:"Ninguna que el índice vea."}):o.jsx("ul",{className:Je.lineas,children:e.rotas.map((a,i)=>o.jsxs("li",{children:[o.jsx(zy,{referencia:a,existe:t,alElegir:n}),` → ${a.hacia} `,o.jsx("span",{className:Je.por,children:a.por})]},i))})})]})}function kM({coleccion:e,existe:t,alElegir:n,alAbrirFichero:r}){return o.jsxs("div",{className:Je.cuerpo,children:[o.jsxs("div",{className:Je.cabecera,children:[o.jsx("h2",{className:Je.titulo,children:e.nombre}),o.jsx("span",{className:Je.ruta,children:e.fichero}),r===void 0?null:o.jsx("button",{type:"button",className:Je.recargar,onClick:()=>r(e.fichero.replace(/^\//,"")),children:"Abrir"})]}),o.jsx(ru,{titulo:`Campos · ${e.campos.length}`,children:e.campos.length===0?o.jsx("p",{className:Je.nota,children:"Sin campos declarados."}):o.jsx("ul",{className:Je.campos,children:e.campos.map(a=>o.jsxs("li",{children:[o.jsx("span",{className:Je.codigo,children:a.nombre}),a.tipo===void 0?null:o.jsx("span",{className:Je.tipo,children:a.tipo})]},a.nombre))})}),e.eventos.length+e.nodos.length+e.conexiones.length===0?null:o.jsx(ru,{titulo:"Eventos, nodos y conexiones",children:o.jsxs("ul",{className:Je.lineas,children:[e.eventos.map(a=>o.jsxs("li",{children:["evento · ",o.jsx("span",{className:Je.codigo,children:a})]},`ev:${a}`)),e.nodos.map(a=>o.jsxs("li",{children:["nodo · ",o.jsx("span",{className:Je.codigo,children:a})]},`no:${a}`)),e.conexiones.map(a=>o.jsxs("li",{children:["conexión · ",o.jsx("span",{className:Je.codigo,children:a})]},`co:${a}`))]})}),o.jsx(ru,{titulo:"Apunta a",children:e.apuntaA.length===0?o.jsx("p",{className:Je.nota,children:"A nada que el índice vea."}):o.jsx(B5,{referencias:e.apuntaA,lado:"hacia",existe:t,alElegir:n})}),o.jsx(ru,{titulo:"Le apuntan",children:e.leApuntan.length===0?o.jsxs("p",{className:Je.nota,children:["Nada que el índice vea. No concluyas que no se usa: el índice no ve un"," ",o.jsx("span",{className:Je.codigo,children:"getCollection(variable)"})," ni un nombre compuesto al ejecutar."]}):o.jsx(B5,{referencias:e.leApuntan,lado:"desde",existe:t,alElegir:n})})]})}const NM=[{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 B5({referencias:e,lado:t,existe:n,alElegir:r}){return o.jsx(o.Fragment,{children:NM.map(({confianza:a,titulo:i,nota:l})=>{const u=e.filter(d=>Jx(d)===a);return u.length===0?null:o.jsxs("div",{className:Je.grupo,"data-confianza":a,children:[o.jsx("p",{className:Je.subtitulo,children:`${i} · ${u.length}`}),l===void 0?null:o.jsx("p",{className:Je.nota,children:l}),o.jsx("ul",{className:Je.lineas,children:u.map((d,m)=>o.jsxs("li",{children:[t==="hacia"?o.jsxs(o.Fragment,{children:[o.jsx(fm,{nombre:Dy(d.hacia),existe:n,alElegir:r}),d.hacia.includes(".")?o.jsx("span",{className:Je.codigo,children:d.hacia.slice(d.hacia.indexOf("."))}):null,o.jsx("span",{className:Je.desdeDonde,children:` desde ${d.desde}`})]}):o.jsx(zy,{referencia:d,existe:n,alElegir:r})," ",o.jsx("span",{className:Je.por,children:d.por})]},m))})]},a)})})}function Dy(e){return e.split(/[.:]/)[0]}function fm({nombre:e,existe:t,alElegir:n}){return t(e)?o.jsx("button",{type:"button",className:Je.enlace,onClick:()=>n(e),children:e}):o.jsx("span",{className:Je.codigo,children:e})}function zy({referencia:e,existe:t,alElegir:n}){if(e.desde.startsWith("/"))return o.jsx("span",{className:Je.codigo,children:e.desde});const r=Dy(e.desde);return o.jsxs(o.Fragment,{children:[o.jsx(fm,{nombre:r,existe:t,alElegir:n}),e.desde.length>r.length?o.jsx("span",{className:Je.codigo,children:e.desde.slice(r.length)}):null]})}function ru({titulo:e,children:t}){return o.jsxs("section",{className:Je.seccion,children:[o.jsx("h3",{className:Je.seccionTitulo,children:e}),t]})}const SM="_frame_1s1wd_10",$M="_sidebarCol_1s1wd_39",AM="_centerCol_1s1wd_46",EM="_detailsCol_1s1wd_53",DM="_handle_1s1wd_68",M0={frame:SM,sidebarCol:$M,centerCol:AM,detailsCol:EM,handle:DM},zM="_root_6hsqj_6",TM="_header_6hsqj_8",MM="_titleRow_6hsqj_8",LM="_titleCluster_6hsqj_9",IM="_crumbs_6hsqj_9",PM="_crumbSeg_6hsqj_122",RM="_crumb_6hsqj_9",qM="_crumbCurrent_6hsqj_160",FM="_headerActions_6hsqj_9",OM="_headerUtilities_6hsqj_9",BM="_tabs_6hsqj_10",UM="_tab_6hsqj_10",HM="_tabActive_6hsqj_10",VM="_viewArea_6hsqj_10",GM="_body_6hsqj_10",_n={root:zM,header:TM,titleRow:MM,titleCluster:LM,crumbs:IM,crumbSeg:PM,crumb:RM,crumbCurrent:qM,headerActions:FM,headerUtilities:OM,tabs:BM,tab:UM,tabActive:HM,viewArea:VM,body:GM},Fg=560,gm=360,vm=480,Og=1400;function WM({anchoVentana:e,anchoBarra:t,anchoPanel:n,barraPlegadaPorElUsuario:r,panelAbierto:a}){const i=Number.isFinite(e)&&e>0?e:Number.POSITIVE_INFINITY,l=Math.max(n,gm);return a?!r&&i>=t+Fg+l?{barra:"abierta",panel:"columna"}:i>=Fg+l?{barra:"plegada",panel:"columna"}:{barra:r?"plegada":"abierta",panel:"centro"}:{barra:r?"plegada":"abierta",panel:"cerrado"}}function Bg(e,t){if(!Number.isFinite(e))return vm;const n=t===void 0||!Number.isFinite(t)?Og:Math.max(gm,Math.min(Og,Math.round(t-Fg)));return Math.round(Math.min(Math.max(e,gm),n))}const ZM="_alto_1583r_9",QM="_cabecera_1583r_16",XM="_tirador_1583r_36",YM="_tiradorEnFila_1583r_67",KM="_tiradorDelPanel_1583r_79",JM="_tiradorDelPanelEnFila_1583r_92",Qc={alto:ZM,cabecera:QM,tirador:XM,tiradorEnFila:YM,tiradorDelPanel:KM,tiradorDelPanelEnFila:JM},bm=320,Ug=220,Hg=560,Ty=.6,U5=16;function H5(e,t){if(!Number.isFinite(e))return bm;const n=t===void 0?Hg:Math.max(Ug,Math.min(Hg,Math.round(t*Ty)));return Math.round(Math.min(Math.max(e,Ug),n))}function eL({centro:e,barra:t,panel:n,cabecera:r,barraContraida:a=!1,anchoBarra:i,anchoPanel:l,alRedimensionarBarra:u,alRedimensionarPanel:d}){const m=$.useRef(null),f=$.useRef(null),[h,b]=$.useState(0),[y,g]=$.useState(!1),_=H5(i??bm),j=Bg(l??vm),C=u!==void 0&&!a,S=d!==void 0&&n!==void 0,A=a?"0px":`min(${_}px, ${Math.round(Ty*100)}vw)`,M=n===void 0?"0px":`${j}px`;return $.useEffect(()=>{const L=m.current;if(L===null||typeof ResizeObserver>"u")return;const z=new ResizeObserver(()=>{const P=L.getBoundingClientRect().width;P>0&&b(P)});return z.observe(L),()=>z.disconnect()},[]),o.jsxs("div",{ref:f,className:tt(M0.frame,Qc.alto),...y?{"data-dragging":"true"}:{},...n===void 0?{"data-details-collapsed":"true"}:{},style:{gridTemplateColumns:`${A} minmax(0, 1fr) ${M}`,...r===void 0?{}:{gridTemplateRows:"auto minmax(0, 1fr)"}},children:[r===void 0?null:o.jsx("div",{className:Qc.cabecera,children:r}),o.jsx("div",{className:M0.sidebarCol,children:a?null:t}),C?o.jsx(V5,{lado:"sidebar",etiqueta:"Ancho de la barra lateral",ancho:_,minimo:Ug,maximo:Hg,porOmision:bm,izquierda:A,clase:Qc.tirador,...r===void 0?{}:{claseDeFila:Qc.tiradorEnFila},marcoNodo:f,medir:(L,z)=>L-z.left,acotar:H5,alPedir:u,alArrastrar:g}):null,o.jsx("div",{ref:m,className:tt(M0.centerCol,_n.root),style:h===0?void 0:{"--dsh-conversation-column-width":`${h}px`},children:e}),o.jsx("div",{className:tt(M0.detailsCol,_n.root),children:n}),S?o.jsx(V5,{lado:"details",etiqueta:"Ancho del panel",ancho:j,minimo:gm,maximo:Og,porOmision:vm,izquierda:`calc(100% - ${j}px)`,clase:Qc.tiradorDelPanel,...r===void 0?{}:{claseDeFila:Qc.tiradorDelPanelEnFila},marcoNodo:f,medir:(L,z)=>z.right-L,acotar:Bg,alPedir:d,alArrastrar:g}):null]})}function V5({lado:e,etiqueta:t,ancho:n,minimo:r,maximo:a,porOmision:i,izquierda:l,clase:u,claseDeFila:d,marcoNodo:m,medir:f,acotar:h,alPedir:b,alArrastrar:y}){const[g,_]=$.useState(!1),j=A=>{_(A),y(A)},C=(A,M)=>{b(h(A,typeof window>"u"?void 0:window.innerWidth),M)},S=(A,M)=>{const L=m.current;L!==null&&C(f(A,L.getBoundingClientRect()),M)};return o.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":t,"aria-valuenow":n,"aria-valuemin":r,"aria-valuemax":a,tabIndex:0,className:tt(M0.handle,u,d),"data-side":e,...g?{"data-dragging":"true"}:{},style:{left:l},onPointerDown:A=>{var M,L;if(!(A.button>0)){A.preventDefault(),j(!0);try{(L=(M=A.currentTarget).setPointerCapture)==null||L.call(M,A.pointerId)}catch{}}},onPointerMove:A=>{g&&S(A.clientX,!1)},onPointerUp:A=>{g&&(j(!1),S(A.clientX,!0))},onPointerCancel:()=>{g&&(j(!1),C(n,!0))},onLostPointerCapture:()=>{g&&(j(!1),C(n,!0))},onKeyDown:A=>{const M=e==="details"?-1:1,L=A.key==="ArrowLeft"?n-U5*M:A.key==="ArrowRight"?n+U5*M:A.key==="Home"?r:A.key==="End"?a:void 0;L!==void 0&&(A.preventDefault(),C(L,!0))},onDoubleClick:()=>C(i,!0)})}const tL="_root_1tziz_20",nL="_regionArea_1tziz_79",rL="_footArea_1tziz_83",aL="_settingsArea_1tziz_338",Tp={root:tL,regionArea:nL,footArea:rL,settingsArea:aL},oL="_root_1cpu6_7",sL="_sectionHeader_1cpu6_8",iL="_listArea_1cpu6_9",lL="_treeBody_1cpu6_9",cL="_fade_1cpu6_10",uL="_list_1cpu6_9",dL="_groupSection_1cpu6_10",pL="_empty_1cpu6_11",Yr={root:oL,sectionHeader:sL,listArea:iL,treeBody:lL,fade:cL,list:uL,groupSection:dL,empty:pL},mL="_projectRow_592sx_5",hL="_sessionRow_592sx_5",fL="_title_592sx_7",gL="_slot_592sx_6",vL="_chevron_592sx_6",bL="_folder_592sx_6",yL="_arrow_592sx_92",xL="_arrowOpen_592sx_96",_L="_projectText_592sx_7",wL="_meta_592sx_7",jL="_iconButton_592sx_8",Rr={projectRow:mL,sessionRow:hL,title:fL,slot:gL,chevron:vL,folder:bL,arrow:yL,arrowOpen:xL,projectText:_L,meta:wL,iconButton:jL},CL="_triggerRow_kwik8_13",kL="_trigger_kwik8_13",NL="_triggerLabel_kwik8_69",lf={triggerRow:CL,trigger:kL,triggerLabel:NL};function Jm(e,t,n){$.useEffect(()=>{if(!e)return;const r=i=>{const l=t.current;l!==null&&i.target instanceof Node&&!l.contains(i.target)&&n()},a=i=>{i.key==="Escape"&&n()};return document.addEventListener("mousedown",r),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",a)}},[e,t,n])}const SL="_ancla_1klgz_8",$L="_menu_1klgz_18",AL="_opcion_1klgz_35",EL="_destructiva_1klgz_57",C0={ancla:SL,menu:$L,opcion:AL,destructiva:EL};function DL({titulo:e,className:t,alRenombrar:n,alBorrar:r}){const a=$.useRef(null),[i,l]=$.useState(!1),u=$.useCallback(()=>l(!1),[]);Jm(i,a,u);const d=m=>()=>{l(!1),m()};return o.jsxs("span",{className:tt(C0.ancla,t),"data-abierto":i?"":void 0,ref:a,children:[o.jsx("button",{type:"button",className:Rr.iconButton,"aria-label":`opciones de «${e}»`,"aria-haspopup":"menu","aria-expanded":i,onClick:()=>l(m=>!m),children:o.jsx(mz,{size:16})}),i?o.jsxs("div",{className:C0.menu,role:"menu",children:[o.jsxs("button",{type:"button",role:"menuitem",className:C0.opcion,onClick:d(n),children:[o.jsx(L2,{size:16}),"Renombrar"]}),o.jsxs("button",{type:"button",role:"menuitem",className:tt(C0.opcion,C0.destructiva),onClick:d(r),children:[o.jsx(I2,{size:16}),"Eliminar"]})]}):null]})}const zL=14;function el({children:e,lado:t=zL}){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 e1(){return o.jsx(el,{lado:12,children:o.jsx("path",{d:"M19 9l-7 7-7-7"})})}function TL(){return o.jsxs(el,{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 ML(){return o.jsx(el,{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 LL(){return o.jsx(el,{children:o.jsx("path",{d:"M13 10V3L4 14h7v7l9-11h-7z"})})}function IL(){return o.jsx(el,{lado:16,children:o.jsx("path",{d:"M5 10l7-7m0 0l7 7m-7-7v18"})})}function PL(){return o.jsx(el,{lado:16,children:o.jsx("path",{d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})}function RL(){return o.jsx(el,{children:o.jsx("path",{d:"M12 5v14M5 12h14"})})}function qL(){return o.jsxs(el,{children:[o.jsx("rect",{x:"5",y:"3",width:"10",height:"18",rx:"2"}),o.jsx("path",{d:"M9 18h2M18 9a4 4 0 0 1 0 6M20.5 6.5a8 8 0 0 1 0 11"})]})}const FL="_caja_h7izr_4",OL="_select_h7izr_15",BL="_aspecto_h7izr_28",UL="_flecha_h7izr_49",HL="_girando_h7izr_67 _girando_jnvvl_174",k0={caja:FL,select:OL,aspecto:BL,flecha:UL,girando:HL};function gs({className:e,children:t,cargando:n,...r}){return o.jsxs("span",{className:k0.caja,children:[o.jsx("select",{...r,...n===!0?{"aria-busy":"true"}:{},className:tt(e??k0.aspecto,k0.select),children:t}),o.jsx("span",{className:k0.flecha,"aria-hidden":"true",children:n===!0?o.jsx("span",{className:k0.girando}):o.jsx(e1,{})})]})}const G5="/imagen-del-proyecto",VL="/icono-del-proyecto";function GL(e){return`${VL}?id=${encodeURIComponent(e)}`}function WL(e,t){return e.split(`](${G5}?`).join(`](${t}${G5}?`)}function ym({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 q2({size:e=14}){return o.jsxs(ym,{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 ZL({fijado:e,size:t=14}){return o.jsxs(ym,{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 My({id:e,lado:t,respaldo:n=null,className:r}){const[a,i]=$.useState(void 0);return a===e?o.jsx(o.Fragment,{children:n}):o.jsx("img",{...r===void 0?{}:{className:r},src:GL(e),alt:"","aria-hidden":"true",width:t,height:t,draggable:!1,"data-icono-de-app":"",onError:()=>i(e)})}const QL={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"})})]})},XL=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 F2({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:QL[e]??XL})}function du(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 i=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return r(n,i)?`ayer a las ${a}`:`${new Intl.DateTimeFormat("es",{day:"numeric",month:"short",...n.getFullYear()===t.getFullYear()?{}:{year:"numeric"}}).format(n)} a las ${a}`}function YL(e){const t=new Date(e);if(!Number.isNaN(t.getTime()))return new Intl.DateTimeFormat("es",{dateStyle:"long",timeStyle:"medium"}).format(t)}const KL="_reseteoDeBoton_1wco0_16",JL="_filaConAccion_1wco0_28",eI="_filaAbierta_1wco0_44",tI="_sesionAbierta_1wco0_44",nI="_tituloActivo_1wco0_72",rI="_plegador_1wco0_85",aI="_glifoDeChevron_1wco0_102",oI="_glifoDeCarpeta_1wco0_106",sI="_iconoDeApp_1wco0_112",iI="_cuerpoDeFila_1wco0_118",lI="_entorno_1wco0_131",cI="_sinSesiones_1wco0_147",uI="_avisoOcultos_1wco0_157",dI="_textoDeAviso_1wco0_165",pI="_enlaceDeAviso_1wco0_174",mI="_historica_1wco0_195",hI="_rellenoDeSeccion_1wco0_254",fI="_accionesDeFila_1wco0_276",gI="_accionFija_1wco0_294",vI="_fijar_1wco0_305",bI="_compartido_1wco0_318",yI="_estadoLocal_1wco0_317",xI="_rotulo_1wco0_347",_I="_filaDeEntorno_1wco0_366",wI="_iconoDeEntorno_1wco0_381",jI="_marcaDeTarea_1wco0_394",CI="_fichaDeSesion_1wco0_395",kI="_selloDeFecha_1wco0_396",NI="_actividad_1wco0_435",SI="_separadorDePie_1wco0_464",$I="_version_1wco0_470",AI="_filaConRama_1wco0_485",EI="_ramaDeProyecto_1wco0_495",ct={reseteoDeBoton:KL,filaConAccion:JL,filaAbierta:eI,sesionAbierta:tI,tituloActivo:nI,plegador:rI,glifoDeChevron:aI,glifoDeCarpeta:oI,iconoDeApp:sI,cuerpoDeFila:iI,entorno:lI,sinSesiones:cI,avisoOcultos:uI,textoDeAviso:dI,enlaceDeAviso:pI,historica:mI,rellenoDeSeccion:hI,accionesDeFila:fI,accionFija:gI,fijar:vI,compartido:bI,estadoLocal:yI,rotulo:xI,filaDeEntorno:_I,iconoDeEntorno:wI,marcaDeTarea:jI,fichaDeSesion:CI,selloDeFecha:kI,actividad:NI,separadorDePie:SI,version:$I,filaConRama:AI,ramaDeProyecto:EI},DI=e=>e===void 0?void 0:du(e);function Ly(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 zI({sesion:e,abriendo:t}){if(t)return o.jsx("span",{className:ct.actividad,title:"Abriendo…",children:"abriendo…"});if(e.trabajando===!0)return o.jsx("span",{className:ct.actividad,title:"El agente está trabajando…",children:"trabajando…"});const n=DI(e.ultimoTurno);return n===void 0?null:o.jsx("span",{className:ct.fichaDeSesion,children:o.jsx("span",{className:ct.selloDeFecha,children:n})})}function W5({p:e,desplegado:t,alPlegar:n,fijado:r,proyectoActivo:a,proyectoEnResumen:i,sesionActiva:l,abriendo:u,apagado:d,abriendoAlgo:m,alFijar:f,alAbrirProyecto:h,alNuevaSesion:b,alAbrirSesion:y,alAccionDeSesion:g}){const _=M=>u!==void 0&&u.proyecto===M&&u.sesion===void 0,j=M=>u!==void 0&&u.sesion===M,C=e.id===(i??a),S=e.id===t?o.jsx(jz,{size:16}):o.jsx(Cz,{size:16}),A=i===void 0?l:void 0;return o.jsxs("div",{className:Yr.groupSection,children:[o.jsxs("div",{className:tt(Rr.projectRow,ct.filaConAccion,C&&ct.filaAbierta,e.rama!==void 0&&ct.filaConRama),...C?{"aria-current":"true"}:{},..._(e.id)?{"aria-busy":"true"}:{},children:[o.jsx("button",{type:"button",className:tt(ct.reseteoDeBoton,Rr.iconButton,ct.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(ZL,{fijado:r,size:14})}),o.jsxs("button",{type:"button",className:tt(ct.reseteoDeBoton,ct.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:tt(Rr.slot,Rr.folder,ct.glifoDeCarpeta),"aria-hidden":"true",children:e.icono===!0?o.jsx(My,{id:e.id,lado:16,className:ct.iconoDeApp,respaldo:S}):S}),o.jsx("span",{className:tt(Rr.slot,Rr.chevron,ct.glifoDeChevron),"aria-hidden":"true",children:o.jsx(fz,{size:14,className:tt(Rr.arrow,e.id===t&&Rr.arrowOpen)})})]}),o.jsxs("button",{type:"button",className:tt(ct.reseteoDeBoton,ct.cuerpoDeFila),disabled:d||m,onClick:()=>h(e.id),children:[o.jsxs("span",{className:Rr.projectText,children:[o.jsx("span",{className:tt(Rr.title,C&&ct.tituloActivo),children:e.nombre}),e.rama===void 0?null:o.jsx("span",{className:tt(Rr.meta,ct.ramaDeProyecto),title:`Rama de origen: ${e.rama}`,"aria-hidden":"true",children:e.rama})]}),_(e.id)?o.jsx("span",{className:ct.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(M=>M.trabajando===!0)?o.jsx("span",{className:ct.actividad,title:"El agente está trabajando en este proyecto…",children:"trabajando…"}):e.tareasEnCurso!==void 0&&e.tareasEnCurso>0?o.jsx("span",{className:ct.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:ct.compartido,title:"Compartido contigo","aria-hidden":"true",children:o.jsx(q2,{size:14})}):null,o.jsx("span",{className:ct.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(M2,{size:14}):o.jsx(hy,{size:14})})]}),o.jsx("span",{className:ct.accionFija,children:o.jsx("button",{type:"button",className:Rr.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(dz,{size:16})})})]}),e.id!==t?null:e.sesiones.length===0?o.jsx("p",{className:tt(Yr.empty,ct.sinSesiones),children:"Sin sesiones todavía."}):Ly(e.sesiones).map(M=>o.jsxs("div",{className:tt(Rr.sessionRow,ct.filaConAccion,M.id===A&&ct.sesionAbierta,M.historica&&ct.historica),...M.id===A?{"aria-current":"true"}:{},...j(M.id)?{"aria-busy":"true"}:{},children:[o.jsxs("button",{type:"button",className:tt(ct.reseteoDeBoton,ct.cuerpoDeFila),disabled:d||m||e.trabajando===!0&&M.trabajando!==!0,...e.trabajando===!0&&M.trabajando!==!0?{title:"este proyecto está trabajando en otra conversación: pulsa su nombre para verla"}:{},onClick:()=>y(e.id,M.id),children:[o.jsx("span",{className:Rr.slot,"aria-hidden":"true"}),o.jsx("span",{className:Rr.title,children:M.titulo!==""?M.titulo:M.deTarea?"Tarea de fondo":"Sin título"}),M.deTarea?o.jsx("span",{className:ct.marcaDeTarea,children:"Tarea"}):null,o.jsx(zI,{sesion:M,abriendo:j(M.id)})]}),d?null:o.jsx(DL,{titulo:M.titulo,className:ct.accionesDeFila,alRenombrar:()=>g(e.id,M.id,M.titulo,"renombrar"),alBorrar:()=>g(e.id,M.id,M.titulo,"borrar")})]},M.id))]})}const _m=4;function TI({entornos:e,entornoActivo:t,proyectos:n,visibles:r,fijados:a,proyectoActivo:i,proyectoEnResumen:l,sesionActiva:u,abriendo:d,alElegirEntorno:m,alAbrirSesion:f,alAbrirProyecto:h,alNuevaSesion:b,alAccionDeSesion:y,alFijar:g,alAbrirAjustes:_,alAbrirAjustesEnEntornos:j,conectado:C,version:S}){const A=C===!1,M=d!==void 0,L=d==null?void 0:d.entorno,z=L??t,P=n.filter(ee=>(a==null?void 0:a.includes(ee.id))===!0),H=n.filter(ee=>!P.includes(ee)),F=(r===void 0?n.slice(0,_m):n.filter(ee=>r.includes(ee.id))).filter(ee=>!P.includes(ee)),U=H.length-F.length,[Z,re]=$.useState(i);$.useEffect(()=>re(i),[i]);const le=ee=>({p:ee,desplegado:Z,alPlegar:()=>re(ee.id===Z?void 0:ee.id),proyectoActivo:i,proyectoEnResumen:l,sesionActiva:u,abriendo:d,apagado:A,abriendoAlgo:M,alFijar:g,alAbrirProyecto:h,alNuevaSesion:b,alAbrirSesion:f,alAccionDeSesion:y});return o.jsxs("nav",{className:Tp.root,children:[o.jsx("div",{className:Tp.regionArea,children:o.jsxs("div",{className:Yr.root,children:[o.jsxs("div",{className:Yr.sectionHeader,children:[o.jsx("span",{className:tt(Yr.sectionLabel,ct.rotulo),children:"Entorno"}),o.jsx("span",{className:ct.rellenoDeSeccion}),L===void 0?null:o.jsx("span",{className:ct.actividad,title:"Cambiando de entorno…",children:"cambiando…"})]}),e.length===0?o.jsx("p",{className:Yr.empty,children:"Sin entorno que enseñar aquí todavía."}):o.jsxs("div",{className:ct.filaDeEntorno,...L===void 0?{}:{"aria-busy":"true"},children:[o.jsx(F2,{entorno:z,size:20,className:ct.iconoDeEntorno}),o.jsx(gs,{className:ct.entorno,disabled:A||M,value:z,onChange:ee=>m(ee.target.value),children:e.map(ee=>o.jsx("option",{value:ee.id,children:ee.nombre},ee.id))})]}),o.jsx("div",{className:Yr.listArea,children:o.jsxs("div",{className:Yr.treeBody,children:[o.jsxs("div",{className:Yr.list,children:[P.length===0?null:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Yr.sectionHeader,children:[o.jsx("span",{className:tt(Yr.sectionLabel,ct.rotulo),children:"Proyectos fijados"}),o.jsx("span",{className:ct.rellenoDeSeccion})]}),P.map(ee=>o.jsx(W5,{...le(ee),fijado:!0},ee.id))]}),o.jsxs("div",{className:Yr.sectionHeader,children:[o.jsx("span",{className:tt(Yr.sectionLabel,ct.rotulo),children:"Proyectos"}),o.jsx("span",{className:ct.rellenoDeSeccion})]}),F.length===0?o.jsx("p",{className:Yr.empty,children:n.length===0?"Sin proyectos que enseñar aquí todavía.":P.length>0&&U===0?"Todos los elegidos están fijados arriba.":"Ninguno elegido para esta barra; elígelos en Ajustes."}):F.map(ee=>o.jsx(W5,{...le(ee),fijado:!1},ee.id)),U>0?o.jsx("div",{className:ct.avisoOcultos,children:o.jsxs("p",{className:ct.textoDeAviso,children:[U===1?"1 proyecto más sin enseñar":`${U} proyectos más sin enseñar`," · elígelos en"," ",o.jsx("button",{type:"button",className:ct.enlaceDeAviso,onClick:j??_,"aria-label":"Ajustes, pestaña Entornos",children:"Ajustes"})]})}):null]}),o.jsx("div",{className:Yr.fade,"aria-hidden":"true"})]})})]})}),o.jsxs("div",{className:Tp.footArea,children:[o.jsx("div",{className:ct.separadorDePie,"aria-hidden":"true"}),o.jsx("div",{className:Tp.settingsArea,children:o.jsx("div",{className:lf.triggerRow,children:o.jsxs("button",{type:"button",className:lf.trigger,onClick:_,children:[o.jsx(X0,{size:16}),o.jsx("span",{className:lf.triggerLabel,children:"Ajustes"})]})})}),S===void 0?null:o.jsx("p",{className:ct.version,children:S})]})]})}const MI="_capa_a0o87_6",LI="_velo_a0o87_12",II="_ventana_a0o87_24",PI="_titulo_a0o87_35",RI="_nota_a0o87_41",qI="_etiqueta_a0o87_48",FI="_campo_a0o87_55",OI="_acciones_a0o87_68",BI="_accion_a0o87_68 _secundario_1l1rx_39 _grande_1l1rx_26",UI="_principal_a0o87_89",HI="_fallo_a0o87_107",VI="_carga_a0o87_116",GI="_girando_a0o87_125 _girando_jnvvl_174",ge={capa:MI,velo:LI,ventana:II,titulo:PI,nota:RI,etiqueta:qI,campo:FI,acciones:OI,accion:BI,principal:UI,fallo:HI,carga:VI,girando:GI},WI="_aviso_1umxk_4",ZI="_negativa_1umxk_17",Iy={aviso:WI,negativa:ZI};function QI({titulo:e}){return o.jsx("p",{className:Iy.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 XI({titulo:e,conAdjuntos:t,alContinuarLaTarea:n,alSeguirAqui:r,alCancelar:a}){const[i,l]=$.useState(!1),[u,d]=$.useState(void 0);return o.jsx(Zn,{open:!0,onClose:a,title:"¿A dónde va este mensaje?",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:m=>{m.target===m.currentTarget&&!i&&a()},children:o.jsxs("div",{className:ge.ventana,children:[o.jsx("h2",{className:ge.titulo,children:"¿A dónde va este mensaje?"}),o.jsx("p",{className:ge.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:ge.nota,children:"Lleva adjuntos: solo puede seguir aquí, el feedback de una tarea es texto."}):null,u!==void 0?o.jsx("p",{className:Iy.negativa,role:"alert",children:`No se pudo: ${u}`}):null,o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,disabled:i,onClick:a,children:"Cancelar"}),o.jsx(Re,{variant:"outline",className:ge.accion,disabled:i,onClick:r,children:"Seguir aquí en el chat"}),o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal}`,disabled:i||t,onClick:()=>{l(!0),d(void 0),n().catch(()=>"el envío falló").then(m=>{l(!1),m!==void 0&&d(m)})},children:i?"Enviando…":"Enviar y continuar la tarea"})]})]})})})}const YI="_label_io14u_7",KI="_icon_io14u_34",Z5={label:YI,icon:KI},JI="_barraSuperior_co005_21",eP="_estado_co005_61",tP="_punto_co005_70",nP="_conectado_co005_76",rP="_desconectado_co005_83",aP="_plegar_co005_93",oP="_temaGrupo_co005_114",sP="_temaBoton_co005_128",iP="_ajustes_co005_152",lP="_marca_co005_173",cP="_separador_co005_184",uP="_marcaEnlace_co005_196",dP="_simbolo_co005_224",kr={barraSuperior:JI,estado:eP,punto:tP,conectado:nP,desconectado:rP,plegar:aP,temaGrupo:oP,temaBoton:sP,ajustes:iP,marca:lP,separador:cP,marcaEnlace:uP,simbolo:dP},pP=[{id:"sistema",etiqueta:"Como el sistema",Icono:Sz},{id:"claro",etiqueta:"Claro",Icono:kz},{id:"oscuro",etiqueta:"Oscuro",Icono:Nz}];function cf({titulo:e,proyecto:t,modo:n,conectado:r,barraContraida:a,alAlternarBarra:i,panelAbierto:l,alAlternarPanel:u,alAbrirAjustes:d,apariencia:m,alCambiarApariencia:f,alIrAlEscritorio:h}){return o.jsx("header",{className:tt(_n.header,kr.barraSuperior),children:o.jsxs("div",{className:_n.titleRow,children:[o.jsxs("div",{className:_n.titleCluster,children:[i===void 0?null:o.jsx("button",{type:"button",className:kr.plegar,onClick:i,"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:kr.marca,children:[o.jsx("img",{className:kr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}):o.jsxs("button",{type:"button",className:tt(kr.marca,kr.marcaEnlace),onClick:h,title:"Volver al escritorio",children:[o.jsx("img",{className:kr.simbolo,src:"/iconos/xonecode.png",alt:"",width:22,height:22}),"XOneCode"]}),o.jsx("span",{className:kr.separador,"aria-hidden":"true",children:"/"}),o.jsxs("nav",{className:_n.crumbs,"aria-label":"dónde estás",children:[t===void 0||t===e?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:_n.crumbSeg,children:o.jsx("button",{type:"button",className:_n.crumb,disabled:!0,children:t})}),o.jsx("span",{className:kr.separador,"aria-hidden":"true",children:"/"})]}),o.jsx("span",{className:_n.crumbSeg,children:o.jsx("button",{type:"button",className:tt(_n.crumb,_n.crumbCurrent),disabled:!0,children:e})})]}),o.jsx("div",{className:_n.headerActions,children:n===void 0?null:o.jsxs("span",{className:Z5.label,children:[o.jsx(hz,{className:Z5.icon,size:16}),n==="cloud"?"modo cloud":"modo offline"]})})]}),o.jsxs("div",{className:_n.headerUtilities,children:[m===void 0||f===void 0?null:o.jsx("div",{className:kr.temaGrupo,role:"group","aria-label":"apariencia",children:pP.map(({id:b,etiqueta:y,Icono:g})=>o.jsx("button",{type:"button",className:kr.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:kr.ajustes,onClick:u,"aria-expanded":l===!0,"aria-label":l===!0?"Ocultar el panel":"Mostrar el panel",title:l===!0?"Ocultar el panel":"Mostrar el panel",children:o.jsx(mP,{abierto:l===!0})}),d===void 0?null:o.jsx("button",{type:"button",className:kr.ajustes,onClick:d,"aria-label":"Ajustes",title:"Ajustes",children:o.jsx(X0,{size:16})}),o.jsxs("span",{className:tt(kr.estado,r?kr.conectado:kr.desconectado),children:[o.jsx("span",{className:kr.punto,"aria-hidden":"true"}),r?"conectado":"sin conexión"]})]})]})})}function mP({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 hP="_cabecera_14uq7_17",fP="_tira_14uq7_37",gP="_pestana_14uq7_51",vP="_cerrar_14uq7_70",Ql={cabecera:hP,tira:fP,pestana:gP,cerrar:vP};function bP({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a}){const i=[{id:"ejecutar",etiqueta:"Ejecutar"},{id:"turno",etiqueta:"Turno"},{id:"ficheros",etiqueta:"Ficheros"},{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:Ql.cabecera,children:[o.jsx("button",{type:"button",className:Ql.cerrar,onClick:n,"aria-label":"Cerrar el panel",title:"Cerrar el panel",children:o.jsx("span",{"aria-hidden":"true",children:"×"})}),o.jsx("div",{className:tt(_n.tabs,Ql.tira),role:"tablist",children:i.map(l=>o.jsx("button",{type:"button",role:"tab","aria-selected":e===l.id,className:tt(_n.tab,Ql.pestana,e===l.id&&_n.tabActive),onClick:()=>t(l.id),children:l.etiqueta},l.id))})]})}function O2(e){if(e.fichero!==void 0)return e.linea===void 0?e.fichero:`${e.fichero}:${e.linea}`}function Py(e){return e.severidad==="error"?"✗":e.severidad==="warning"?"△":"·"}function B2(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=O2(n);t.push(` ${Py(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 wm(e){return e>=1e3?`${(e/1e3).toFixed(1)} s`:`${e} ms`}const yP="_trazas_7bpvr_14",xP="_barra_7bpvr_25",_P="_buscador_7bpvr_34",wP="_cuenta_7bpvr_46",jP="_accion_7bpvr_51 _secundario_1l1rx_39",CP="_cuerpo_7bpvr_60",kP="_tabla_7bpvr_66",NP="_grupo_7bpvr_73",SP="_cabeceraDeGrupo_7bpvr_79",$P="_flecha_7bpvr_98",AP="_cuentaDeGrupo_7bpvr_103",EP="_fila_7bpvr_112",DP="_indice_7bpvr_150",zP="_etiquetaHueco_7bpvr_160",TP="_etiqueta_7bpvr_160",MP="_texto_7bpvr_246",LP="_tiempo_7bpvr_254",IP="_panel_7bpvr_263",PP="_cabeceraDePanel_7bpvr_273",RP="_situacion_7bpvr_281",qP="_cerrar_7bpvr_285",FP="_pestanasDePanel_7bpvr_301",OP="_pestanaDePanel_7bpvr_314",BP="_pestanaActiva_7bpvr_326",UP="_fallo_7bpvr_333",HP="_completo_7bpvr_343",VP="_tiempos_7bpvr_355",GP="_dato_7bpvr_359",WP="_cifra_7bpvr_364",ZP="_nota_7bpvr_370",QP="_vacio_7bpvr_371",kt={trazas:yP,barra:xP,buscador:_P,cuenta:wP,accion:jP,cuerpo:CP,tabla:kP,grupo:NP,cabeceraDeGrupo:SP,flecha:$P,cuentaDeGrupo:AP,fila:EP,indice:DP,etiquetaHueco:zP,etiqueta:TP,texto:MP,tiempo:LP,panel:IP,cabeceraDePanel:PP,situacion:RP,cerrar:qP,pestanasDePanel:FP,pestanaDePanel:OP,pestanaActiva:BP,fallo:UP,completo:HP,tiempos:VP,dato:GP,cifra:WP,nota:ZP,vacio:QP},Q5=200;function XP(e){const t=e.replace(/\s+/g," ").trim();return t.length>Q5?t.slice(0,Q5):t}function Ir(e,t,n,r={}){return{tipo:e,etiqueta:t,texto:XP(n),completo:n,...r}}function YP(e){switch(e.tipo){case"usuario":return[Ir("usuario","USUARIO",e.texto)];case"asistente":return[Ir("asistente","ASISTENTE",e.texto)];case"razonamiento":return[Ir("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?Ir("tool","TOOL",t):r.nombre===void 0?Ir("paso","PASO",t):Ir(r.error===void 0?"tool":"toolError",r.nombre,t,{nombre:r.nombre,...r.error===void 0?{}:{error:r.error}})});case"sistema":return[Ir("sistema","SISTEMA",e.texto)];case"sincronizacion":return e.lineas.map(t=>Ir("sistema",e.accion.toUpperCase(),t));case"artefacto":return[Ir("artefacto","ARTEFACTO",`${e.nombre} · ${e.bytes} B · ${e.ruta}`)];case"fase":return[Ir("fase",e.fase===void 0?"FASE":e.fase.toUpperCase(),e.texto,{ms:e.ms,...e.fase===void 0?{}:{fase:e.fase}})];case"fin":return[Ir("fin","FIN",e.modelo!==void 0?`fin del turno · ${e.modelo}`:"fin del turno",{ms:e.ms})];case"error":return[Ir("error","ERROR",e.texto)];case"consulta":return[Ir("sistema","CONSULTA",`${e.pregunta} · ${e.opciones.join(" · ")}`)];case"propuesta-de-tareas":return[Ir("sistema","PROPUESTA",`${e.motivo} · ${e.tareas.map(t=>t.titulo).join(" · ")}`)];case"propuesta-resuelta":return[Ir("sistema","PROPUESTA",e.encoladas===void 0?"descartada":`encoladas ${e.encoladas.length} tareas`)];case"verificacion":return B2(e).map(t=>Ir("paso","PASO",t));default:return e}}function KP(e){let t=0,n=0;return e.flatMap(r=>(r.tipo==="usuario"&&(t+=1),YP(r).map(a=>(n+=1,{...a,indice:n,turno:t}))))}function JP(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 X5(e){return e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}function eR({actos:e}){const[t,n]=$.useState(""),[r,a]=$.useState([]),[i,l]=$.useState(void 0),[u,d]=$.useState("resumen"),m=$.useMemo(()=>KP(e),[e]),f=$.useMemo(()=>{const y=X5(t.trim());return y===""?m:m.filter(g=>[g.completo,g.etiqueta,g.nombre??"",g.error??""].some(_=>X5(_).includes(y)))},[m,t]),h=$.useMemo(()=>JP(f),[f]),b=m.find(y=>y.indice===i);return m.length===0?o.jsx("p",{className:kt.vacio,children:"Todavía no hay trazas: esta sesión no ha hecho nada."}):o.jsxs("div",{className:kt.trazas,children:[o.jsxs("div",{className:kt.barra,role:"toolbar","aria-label":"Herramientas de las trazas",children:[o.jsx("input",{type:"search",className:kt.buscador,placeholder:"Buscar en las trazas…","aria-label":"Buscar en las trazas",value:t,onChange:y=>n(y.target.value)}),o.jsx("span",{className:kt.cuenta,children:f.length===m.length?`${m.length} filas`:`${f.length} de ${m.length} filas`}),o.jsx("button",{type:"button",className:kt.accion,onClick:()=>a(r.length>0?[]:h.map(y=>y.turno)),children:r.length>0?"Desplegar turnos":"Plegar turnos"})]}),o.jsxs("div",{className:kt.cuerpo,children:[o.jsx("div",{className:kt.tabla,children:f.length===0?o.jsxs("p",{className:kt.vacio,children:["Ninguna fila contiene «",t.trim(),"»."]}):h.map(y=>{const g=r.includes(y.turno);return o.jsxs("section",{className:kt.grupo,children:[o.jsxs("button",{type:"button",className:kt.cabeceraDeGrupo,"aria-expanded":!g,onClick:()=>a(g?r.filter(_=>_!==y.turno):[...r,y.turno]),children:[o.jsx("span",{className:kt.flecha,"aria-hidden":"true",children:g?"▸":"▾"}),o.jsx("span",{children:y.turno===0?"Antes del primer turno":`Turno ${y.turno}`}),o.jsxs("span",{className:kt.cuentaDeGrupo,children:[y.filas.length," ",y.filas.length===1?"fila":"filas",y.ms===void 0?"":` · ${wm(y.ms)}`]})]}),g?null:y.filas.map(_=>o.jsxs("button",{type:"button",className:kt.fila,"data-tipo":_.tipo,"data-elegida":_.indice===i?"":void 0,"aria-pressed":_.indice===i,onClick:()=>l(_.indice===i?void 0:_.indice),children:[o.jsxs("span",{className:kt.indice,children:["#",_.indice]}),o.jsx("span",{className:kt.etiquetaHueco,children:o.jsx("span",{className:kt.etiqueta,"data-tipo":_.tipo,children:_.etiqueta})}),o.jsx("span",{className:kt.texto,children:_.texto}),o.jsx("span",{className:kt.tiempo,children:_.ms===void 0?"":wm(_.ms)})]},_.indice))]},y.turno)})}),b===void 0?null:o.jsxs("aside",{className:kt.panel,"aria-label":"Detalle de la fila",children:[o.jsxs("header",{className:kt.cabeceraDePanel,children:[o.jsx("span",{className:kt.etiqueta,"data-tipo":b.tipo,children:b.etiqueta}),o.jsxs("span",{className:kt.situacion,children:["#",b.indice," ·"," ",b.turno===0?"antes del primer turno":`turno ${b.turno}`]}),o.jsx("button",{type:"button",className:kt.cerrar,"aria-label":"Cerrar el detalle",onClick:()=>l(void 0),children:"✕"})]}),o.jsxs("div",{className:kt.pestanasDePanel,role:"tablist","aria-label":"Detalle",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":u==="resumen",className:tt(kt.pestanaDePanel,u==="resumen"&&kt.pestanaActiva),onClick:()=>d("resumen"),children:"Resumen"}),o.jsx("button",{type:"button",role:"tab","aria-selected":u==="tiempos",className:tt(kt.pestanaDePanel,u==="tiempos"&&kt.pestanaActiva),onClick:()=>d("tiempos"),children:"Tiempos"})]}),u==="resumen"?b.error===void 0?o.jsx("pre",{className:kt.completo,children:b.completo}):o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:kt.fallo,role:"alert",children:[b.nombre," falló: ",b.error]}),o.jsx("pre",{className:kt.completo,children:b.completo})]}):o.jsx("div",{className:kt.tiempos,children:b.ms===void 0?o.jsx("p",{className:kt.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:kt.dato,children:[o.jsx("span",{className:kt.cifra,children:b.ms})," ms"]})})]})]})]})}function St(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 K0(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 Ry(e){const t=[];for(const[r,a]of Object.entries(e)){const i=a.cuenta==="modelo"?Math.max(0,a.entrada-a.cache):a.entrada;i===0&&a.cache===0&&a.salida===0||t.push({id:r,cuenta:a.cuenta,nueva:i,cache:a.cache,salida:a.salida,sinDesglose:r.startsWith(p_)})}const n=r=>r.nueva+r.cache+r.salida;return t.sort((r,a)=>Number(r.sinDesglose)-Number(a.sinDesglose)||n(a)-n(r))}function U2(e){let t=0;for(const n of e)n.tipo==="herramientas"&&n.lineas.forEach((r,a)=>{var l,u;const i=(u=(l=n.detalles)==null?void 0:l[a])==null?void 0:u.veces;t+=i!==void 0&&i>1?i:1});return t}function H2(e){if(e!==void 0)return e.rol==="orquestador"?"orquestador":e.nombre??"especialista"}function tR(e,t,n){const r=[];let a=n,i;return e.forEach((l,u)=>{var m,f;const d=H2((m=t==null?void 0:t[u])==null?void 0:m.origen);(i===void 0||d!==a)&&(i={...d===void 0||d===a?{}:{rotulo:d},lineas:[]},r.push(i),a=d),((f=t==null?void 0:t[u])==null?void 0:f.error)!==void 0&&(i.fallidas??(i.fallidas=[])).push(i.lineas.length),i.lineas.push(l),t!==void 0&&(i.detalles??(i.detalles=[])).push(t[u]??{})}),{trozos:r,ultimo:a}}function qy(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 Fy(e){const t=[];let n,r=[];const a=()=>{n!==void 0&&(n.fallidas=qy(r),n.pasos=U2(r))};return e.forEach((i,l)=>{if(i.tipo==="usuario"){a(),n={numero:t.length+1,desde:l,abierto:!0,pasos:0,fallidas:0,...i.cuando===void 0?{}:{empezo:i.cuando}},r=[],t.push(n);return}if(!(n===void 0||!n.abierto)){if(r.push(i),i.tipo==="asistente"&&i.cuando!==void 0&&(n.acabo=i.cuando),i.tipo==="verificacion"){const{tipo:u,...d}=i;n.veredicto=d}i.tipo==="fin"&&(n.abierto=!1,n.ms=i.ms,i.consumo!==void 0&&(n.consumo=i.consumo))}}),a(),t}const nR="_raiz_snc4e_6",rR="_vacio_snc4e_18",aR="_navegacion_snc4e_23",oR="_cual_snc4e_29",sR="_horas_snc4e_37",iR="_flecha_snc4e_41",lR="_cifras_snc4e_64",cR="_cifra_snc4e_64",uR="_fallos_snc4e_96",dR="_seccion_snc4e_102",pR="_titulo_snc4e_108",mR="_nota_snc4e_115",hR="_modelos_snc4e_121",fR="_modelo_snc4e_121",gR="_nombreDeModelo_snc4e_138",vR="_externo_snc4e_144",bR="_cantidad_snc4e_150",yR="_carril_snc4e_155",xR="_relleno_snc4e_164",_R="_rellenoContexto_snc4e_165",wR="_verificador_snc4e_183",jR="_punto_snc4e_191",CR="_cambios_snc4e_210",Lt={raiz:nR,vacio:rR,navegacion:aR,cual:oR,horas:sR,flecha:iR,cifras:lR,cifra:cR,fallos:uR,seccion:dR,titulo:pR,nota:mR,modelos:hR,modelo:fR,nombreDeModelo:gR,externo:vR,cantidad:bR,carril:yR,relleno:xR,rellenoContexto:_R,verificador:wR,punto:jR,cambios:CR};function kR({actos:e,topeDeContexto:t,children:n}){const r=Fy(e),[a,i]=$.useState(void 0);if(r.length===0)return o.jsxs("div",{className:Lt.raiz,children:[o.jsx("p",{className:Lt.vacio,children:"Todavía no hay ningún turno en esta conversación."}),n===void 0?null:o.jsx("div",{className:Lt.cambios,children:n})]});const l=a===void 0||a>=r.length?r.length-1:a,u=r[l],d=l===r.length-1;return o.jsxs("div",{className:Lt.raiz,children:[o.jsxs("div",{className:Lt.navegacion,children:[o.jsx("button",{type:"button",className:Lt.flecha,"aria-label":"Turno anterior",disabled:l===0,onClick:()=>i(l-1),children:"‹"}),o.jsxs("p",{className:Lt.cual,children:[`Turno ${u.numero} de ${r.length}`,Y5(u)===void 0?null:o.jsx("span",{className:Lt.horas,children:` · ${Y5(u)}`})]}),o.jsx("button",{type:"button",className:Lt.flecha,"aria-label":"Turno siguiente",disabled:d,onClick:()=>i(l+1>=r.length-1?void 0:l+1),children:"›"})]}),o.jsx(NR,{turno:u}),o.jsx(SR,{turno:u}),o.jsx($R,{turno:u,...d&&t!==void 0?{tope:t}:{}}),o.jsxs("p",{className:Lt.verificador,"data-estado":AR(u.veredicto),children:[o.jsx("span",{"aria-hidden":"true",className:Lt.punto}),ER(u)]}),n===void 0?null:o.jsx("div",{className:Lt.cambios,children:n})]})}function NR({turno:e}){const t=e.consumo===void 0?void 0:(()=>{const n=K0(e.consumo.modelo,e.consumo.externo);return n.entradaTotal+n.salida})();return o.jsxs("dl",{className:Lt.cifras,children:[o.jsxs("div",{className:Lt.cifra,children:[o.jsx("dt",{children:"Duración"}),o.jsx("dd",{children:e.ms===void 0?e.abierto?"en marcha":"—":`${(Math.round(e.ms/100)/10).toLocaleString("es")} s`})]}),o.jsxs("div",{className:Lt.cifra,children:[o.jsx("dt",{children:"Tokens"}),o.jsx("dd",{title:t===void 0?"no consta":String(t),children:t===void 0?"—":St(t)})]}),o.jsxs("div",{className:Lt.cifra,children:[o.jsx("dt",{children:"Pasos"}),o.jsxs("dd",{children:[e.pasos,e.fallidas===0?null:o.jsx("span",{className:Lt.fallos,children:` · ${e.fallidas} ${e.fallidas===1?"falló":"fallaron"}`})]})]})]})}function SR({turno:e}){const t=e.consumo;if(t===void 0)return null;const n=t.porModelo===void 0?[]:Ry(t.porModelo),r=K0(t.modelo,t.externo).cache;if(n.length===0&&r===0)return null;const a=l=>l.nueva+l.cache+l.salida,i=n.reduce((l,u)=>l+a(u),0);return o.jsxs("section",{className:Lt.seccion,"aria-label":"Tokens por modelo",children:[o.jsx("h3",{className:Lt.titulo,children:"Tokens por modelo"}),n.length===0?null:o.jsx("ul",{className:Lt.modelos,children:n.map(l=>o.jsxs("li",{className:Lt.modelo,children:[o.jsxs("span",{className:Lt.nombreDeModelo,children:[l.id,l.cuenta==="externo"&&!l.sinDesglose?o.jsx("span",{className:Lt.externo,children:"externo"}):null]}),o.jsx("span",{className:Lt.cantidad,title:String(a(l)),children:St(a(l))}),o.jsx("span",{"aria-hidden":"true",className:Lt.carril,children:o.jsx("span",{className:Lt.relleno,"data-cuenta":l.cuenta,style:{width:`${i===0?0:Math.max(2,Math.round(a(l)/i*100))}%`}})})]},l.id))}),r===0?null:o.jsx("p",{className:Lt.nota,children:`De ellos, ${St(r)} salieron de caché.`})]})}function $R({turno:e,tope:t}){var a;const n=(a=e.consumo)==null?void 0:a.ventana;if(n===void 0||n===0)return null;const r=t===void 0||t<=0?void 0:Math.min(100,Math.round(n/t*100));return o.jsxs("section",{className:Lt.seccion,"aria-label":"Contexto",children:[o.jsx("h3",{className:Lt.titulo,children:"Contexto"}),r===void 0?null:o.jsx("span",{"aria-hidden":"true",className:Lt.carril,children:o.jsx("span",{className:Lt.rellenoContexto,style:{width:`${Math.max(2,r)}%`}})}),o.jsx("p",{className:Lt.nota,children:r===void 0?`${St(n)} al cerrar el turno`:`${St(n)} de ${St(t)} · ${r} %`})]})}function Y5(e){if(e.empezo===void 0)return;const t=xm(e.empezo);if(t===void 0)return;const n=e.acabo===void 0?void 0:xm(e.acabo);if(n===void 0)return t;const r=i=>i.split(" a las ")[0],a=i=>i.split(" a las ")[1];return r(t)===r(n)&&a(n)!==void 0?`${t} – ${a(n)}`:`${t} – ${n}`}function AR(e){return e===void 0?"nada":e.verde?"verde":"rojo"}function ER(e){const t=e.veredicto;return t===void 0?e.abierto?"Verificador: todavía no ha corrido":"Verificador: no corrió en este turno":t.verde?t.avisos===0?"Verificador: en verde":`Verificador: en verde · ${t.avisos} ${t.avisos===1?"aviso":"avisos"}`:`Verificador: en rojo · ${t.errores} ${t.errores===1?"error":"errores"}`}function DR({pestana:e,alElegirPestana:t,alCerrar:n,hayArtefactos:r,hayPlanes:a,actos:i,topeDeContexto:l,ficheros:u,revision:d,colecciones:m,planes:f,artefactos:h,ejecutar:b}){return o.jsxs("section",{className:_n.body,"aria-label":"Panel",children:[o.jsx(bP,{pestana:e,alElegirPestana:t,alCerrar:n,...r===void 0?{}:{hayArtefactos:r},...a===void 0?{}:{hayPlanes:a}}),o.jsx("div",{className:_n.viewArea,children:e==="trazas"?o.jsx(eR,{actos:i}):e==="turno"?o.jsx(kR,{actos:i,...l===void 0?{}:{topeDeContexto:l},children:d}):e==="colecciones"?m:e==="planes"?f:e==="artefactos"?h:e==="ejecutar"?b:u})]})}const K5=120;function Oy(e){const n=(e.split(/[\\/]+/).at(-1)??"").replace(/[^A-Za-z0-9._-]/g,"_");if(!(n===""||n==="."||n===".."))return zR(n)}function zR(e){if(e.length<=K5)return e;const t=e.lastIndexOf("."),n=t>0&&e.length-t<=12?e.slice(t):"";return e.slice(0,K5-n.length)+n}function TR(){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 MR={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"},LR={"ollama-cloud":"ollama"};function Vg({proveedor:e,size:t=20,...n}){const r=MR[LR[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(TR,{}):o.jsx("path",{d:r})})}const IR="_envoltura_1u23z_5",PR="_conjunto_1u23z_34",RR="_pastilla_1u23z_52",qR="_rotulo_1u23z_70",FR="_menu_1u23z_104",OR="_grupo_1u23z_24",BR="_proveedor_1u23z_141",UR="_punto_1u23z_162",HR="_modelos_1u23z_125",VR="_titulo_1u23z_203",GR="_modelo_1u23z_125",WR="_espera_1u23z_238",ZR="_error_1u23z_239",QR="_filtro_1u23z_253",XR="_logo_1u23z_269",YR="_fuera_1u23z_284",KR="_vacio_1u23z_285",JR="_volverAMedir_1u23z_312",eq="_puntoDeDispositivo_1u23z_330",mt={envoltura:IR,conjunto:PR,pastilla:RR,rotulo:qR,menu:FR,grupo:OR,proveedor:BR,punto:UR,modelos:HR,titulo:VR,modelo:GR,espera:WR,error:ZR,filtro:QR,logo:XR,fuera:YR,vacio:KR,volverAMedir:JR,puntoDeDispositivo:eq},tq=8;function By({actual:e,proveedores:t,alPedirCatalogo:n,alElegir:r,alAbrirAjustes:a,titulo:i="Modelo de trabajo",enLinea:l=!1}){const[u,d]=$.useState(!1),m=$.useRef(null),f=$.useCallback(()=>d(!1),[]),[h,b]=$.useState(void 0),[y,g]=$.useState([]),[_,j]=$.useState("");Jm(u,m,f);const C=L=>{if(j(""),h===L){b(void 0);return}b(L);const z=t.find(P=>P.id===L);(z==null?void 0:z.modelos)===void 0&&(z==null?void 0:z.error)===void 0&&!y.includes(L)&&(g(P=>[...P,L]),n(L))},S=L=>e!==void 0&&e.startsWith(`${L}/`),A=t.filter(L=>L.credencial==="puesta"||L.modelos!==void 0||S(L.id)),M=t.length-A.length;return o.jsxs("div",{className:mt.envoltura,ref:m,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":u,"aria-haspopup":"menu",onClick:()=>d(L=>!L),children:[e===void 0?null:o.jsx(Vg,{proveedor:e.split("/")[0]??"",size:14,className:mt.logo}),e??"Elige modelo",o.jsx(e1,{})]}),u?o.jsxs("div",{className:mt.menu,"data-en-linea":l?"":void 0,role:"menu","aria-label":i,children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:i}),A.map(L=>{const z=e!==void 0&&e.startsWith(`${L.id}/`),P=L.modelos===void 0&&L.error===void 0&&y.includes(L.id),H=L.credencial!=="nativa"?L.credencial:L.error!==void 0?"sin-conexion":L.modelos!==void 0?"conecta":void 0;return o.jsxs("div",{className:mt.grupo,children:[o.jsxs("button",{type:"button",role:"menuitem",className:mt.proveedor,"aria-expanded":h===L.id,"data-actual":z?"":void 0,...z?{"aria-current":"true"}:{},onClick:()=>C(L.id),children:[H===void 0?null:o.jsx("span",{className:mt.punto,"data-credencial":H,"aria-hidden":"true",title:{puesta:"con credencial",falta:"sin credencial",conecta:"conectado","sin-conexion":"sin conexión"}[H]}),o.jsx(Vg,{proveedor:L.id,size:16,className:mt.logo}),o.jsx("span",{children:L.nombre})]}),h===L.id?o.jsx("div",{className:mt.modelos,children:L.error!==void 0?o.jsx("p",{className:mt.error,role:"alert",children:L.error}):L.modelos===void 0?o.jsx("p",{className:mt.espera,children:P?"consultando…":"sin consultar"}):L.modelos.length===0?o.jsx("p",{className:mt.espera,children:"no ofrece ningún modelo de conversación"}):o.jsxs(o.Fragment,{children:[L.modelos.length>tq?o.jsx("input",{type:"search",className:mt.filtro,value:_,onChange:R=>j(R.target.value),placeholder:"filtrar…","aria-label":`filtrar los modelos de ${L.nombre}`}):null,L.modelos.filter(R=>{const F=_.trim().toLowerCase();return F===""||R.id.toLowerCase().includes(F)||(R.nombre??"").toLowerCase().includes(F)}).map(R=>{const F=`${L.id}/${R.id}`;return o.jsx("button",{type:"button",role:"menuitemradio","aria-checked":F===e,className:mt.modelo,"data-actual":F===e?"":void 0,onClick:()=>{d(!1),r(F)},children:R.nombre??R.id},R.id)})]})}):null]},L.id)}),A.length===0?o.jsx("p",{className:mt.vacio,children:"Ninguno comprobado todavía: pon una clave, o levanta Ollama."}):null,M===0?null:a===void 0?o.jsxs("p",{className:mt.fuera,children:[M," ",M===1?"proveedor más":"proveedores más"," sin comprobar."]}):o.jsxs("button",{type:"button",className:mt.fuera,onClick:a,children:[M," ",M===1?"proveedor más":"proveedores más"," sin comprobar · configúralos en Ajustes"]})]}):null]})}function nq({niveles:e,actual:t,conectado:n=!0,nota:r,alElegir:a}){const[i,l]=$.useState(!1),u=$.useRef(null),d=$.useCallback(()=>l(!1),[]);if(Jm(i,u,d),e===void 0||e.length===0)return null;const m=f=>{l(!1),a(f)};return o.jsxs("div",{className:mt.envoltura,ref:u,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":i,"aria-haspopup":"menu",disabled:!n,title:"Cuánto razona el modelo antes de contestar",onClick:()=>l(f=>!f),children:[t===void 0?"esfuerzo":o.jsxs(o.Fragment,{children:[o.jsx("span",{className:mt.rotulo,children:"pensar:"}),t]}),o.jsx(e1,{})]}),i?o.jsxs("div",{className:mt.menu,role:"menu","aria-label":"esfuerzo de razonamiento",children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:"Esfuerzo de razonamiento"}),o.jsxs("div",{className:mt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:mt.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:mt.modelo,"data-actual":f===t?"":void 0,...f===t?{"aria-current":"true"}:{},onClick:()=>m(f),children:f},f))]}),o.jsx("p",{className:mt.espera,children:r??"Se guarda con la sesión. Sin fijar, decide el modelo."})]}):null]})}const J5={conectado:"conectado",arrancado:"arrancado",apagado:"apagado","sin-autorizar":"sin autorizar",offline:"offline","no-disponible":"no disponible"};function Xl(e){return e.estado==="conectado"&&e.clase!=="fisico"?J5.arrancado:J5[e.estado]}function Hi(e){return e.estado==="conectado"||e.estado==="arrancado"}function Uy(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})),i=u=>(Hi(u)?0:2)+(u.plataforma==="android"?0:1),l=[...n,...a].sort((u,d)=>i(u)-i(d));return{fisicos:t,virtuales:l}}function Hy({elegido:e,informe:t,conectado:n=!0,alElegir:r,alMedir:a,enUso:i,proyectoActual:l,titulo:u="Dispositivo de esta sesión",pie:d="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.",enLinea:m=!1}){const[f,h]=$.useState(!1),b=$.useRef(null),y=$.useCallback(()=>h(!1),[]);Jm(f,b,y);const{fisicos:g,virtuales:_}=t===void 0?{fisicos:[],virtuales:[]}:Uy(t),j=[...g,..._],C=U=>U.plataforma==="android"?0:1,S=j.filter(U=>Hi(U)).sort((U,Z)=>C(U)-C(Z)),A=g.filter(U=>!Hi(U)),M=_.filter(U=>!Hi(U)),L=t===void 0||j.some(U=>U.id===(e==null?void 0:e.id)),z=(i??[]).filter(U=>U.proyecto!==l),P=U=>{var Z;return(Z=z.find(re=>re.id===U))==null?void 0:Z.proyecto},H=e===void 0?void 0:P(e.id),R=U=>{h(!1),r(U)},F=(U,Z)=>Z.length===0?null:o.jsxs("div",{className:mt.grupo,children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:U}),Z.map(re=>o.jsxs("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":re.id===(e==null?void 0:e.id)?"":void 0,...re.id===(e==null?void 0:e.id)?{"aria-current":"true"}:{},disabled:re.soloDefinicion===!0,...re.soloDefinicion===!0?{title:"apagado — arráncalo para poder elegirlo"}:{},onClick:()=>R(re.id),children:[o.jsx("span",{className:mt.puntoDeDispositivo,"data-vivo":Hi(re)?"":void 0,"aria-hidden":"true"}),re.plataforma==="android"?`${re.nombre} · Android`:re.nombre," · ",Xl(re),P(re.id)===void 0?null:o.jsx("span",{className:mt.espera,children:`en uso en ${P(re.id)}`})]},re.id))]});return o.jsxs("div",{className:mt.envoltura,ref:b,children:[o.jsxs("button",{type:"button",className:mt.pastilla,"aria-expanded":f,"aria-haspopup":"menu",disabled:!n,title:e===void 0?"Elige el dispositivo de esta sesión":`${L?e.nombre:`${e.nombre} — no está en la última medida`}${H===void 0?"":` — también lo usa ${H}`}`,onClick:()=>h(U=>!U),children:[o.jsx(TL,{}),o.jsxs("span",{children:[e===void 0?"Sin dispositivo":e.nombre,e!==void 0&&!L?" ·":null,H===void 0?null:o.jsx("span",{role:"img","aria-label":`también lo usa ${H}`,children:" ⚠"})]}),o.jsx(e1,{})]}),f?o.jsxs("div",{className:mt.menu,role:"menu","aria-label":u,"data-en-linea":m?"":void 0,children:[o.jsx("div",{className:mt.titulo,role:"presentation",children:u}),o.jsxs("div",{className:mt.modelos,children:[o.jsx("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":e===void 0?"":void 0,onClick:()=>R(void 0),children:"Ninguno"}),e!==void 0&&!L?o.jsxs("button",{type:"button",role:"menuitem",className:mt.modelo,"data-actual":"",onClick:()=>R(e.id),children:[e.nombre," · no está en la última medida"]}):null,F("Disponibles ahora",S),F("Teléfonos y tablets",A),F("Simuladores y emuladores",M),t===void 0?o.jsx("p",{className:mt.espera,children:"Todavía no ha llegado ninguna medida de este equipo."}):j.length===0?o.jsx("p",{className:mt.espera,children:"No se ha encontrado ningún dispositivo. Los requisitos se instalan en Ajustes."}):null]}),a===void 0?null:o.jsxs("div",{className:mt.espera,children:[t===void 0?null:`Medido a las ${rq(t.medido)}. `,o.jsx("button",{type:"button",className:mt.volverAMedir,disabled:!n,onClick:()=>a(),children:"Volver a medir"})]}),o.jsx("p",{className:mt.espera,children:d})]}):null]})}function rq(e){const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}const aq="_pista_tczu2_13",oq="_mitad_tczu2_29",e6={pista:aq,mitad:oq};function Vy({actual:e,conectado:t=!0,rotulo:n="modo de escritura",alElegir:r}){const a=$.useRef(void 0);if(e===void 0)return null;const i=e,l=()=>a.current!==void 0&&a.current.desde===i?a.current.modo:i,u=[{modo:"supervisado",etiqueta:"Supervisado",que:"Cada escritura para y te enseña su diff antes de aplicarse",icono:ML},{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:LL}];return o.jsx("div",{className:e6.pista,role:"group","aria-label":n,children:u.map(({modo:d,etiqueta:m,que:f,icono:h})=>o.jsxs("button",{type:"button",className:e6.mitad,"aria-pressed":d===e,"data-puesto":d===e?"":void 0,disabled:!t,title:f,onClick:()=>{d!==l()&&(a.current={modo:d,desde:i},r(d))},children:[o.jsx(h,{}),o.jsx("span",{children:m})]},d))})}const sq="_capa_1iva6_24",iq="_velo_1iva6_18",lq="_pregunta_1iva6_62",cq="_envoltorio_1iva6_85",uq="_enunciado_1iva6_91",dq="_titulo_1iva6_100",pq="_fila_1iva6_108",mq="_plan_1iva6_39",hq="_decisiones_1iva6_160",fq="_cancelar_1iva6_168 _secundario_1l1rx_39 _grande_1l1rx_26",gq="_fallo_1iva6_217",vq="_accion_1iva6_4 _primario_1l1rx_67 _grande_1l1rx_26",bq="_herramientas_1iva6_257",yq="_cuenta_1iva6_263",xq="_enlace_1iva6_270",_q="_arbol_1iva6_289",wq="_clase_1iva6_301",jq="_girando_1iva6_332 _girando_xl444_17",Cq="_fin_1iva6_350",kq="_marcaDeFin_1iva6_361",Nq="_detalle_1iva6_379",et={capa:sq,velo:iq,pregunta:lq,envoltorio:cq,enunciado:uq,titulo:dq,fila:pq,plan:mq,decisiones:hq,cancelar:fq,fallo:gq,accion:vq,herramientas:bq,cuenta:yq,enlace:xq,arbol:_q,clase:wq,girando:jq,fin:Cq,marcaDeFin:kq,detalle:Nq},Sq="_tarjeta_1ib8n_6",$q="_cabecera_1ib8n_19",Aq="_titulo_1ib8n_25",Eq="_subtitulo_1ib8n_32",Dq="_tabla_1ib8n_38",zq="_modelo_1ib8n_72",Tq="_total_1ib8n_86",Mq="_marca_1ib8n_102",Lq="_nota_1ib8n_111",Iq="_acciones_1ib8n_117",Fo={tarjeta:Sq,cabecera:$q,titulo:Aq,subtitulo:Eq,tabla:Dq,modelo:zq,total:Tq,marca:Mq,nota:Lq,acciones:Iq};function Pq({porModelo:e,alCerrar:t}){const n=Ry(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}),i=n.some(u=>u.cuenta==="externo"),l=n.some(u=>u.sinDesglose);return o.jsx(Zn,{open:!0,onClose:t,title:"Tokens por modelo",headless:!0,className:et.capa,children:o.jsx("div",{className:et.velo,onClick:u=>{u.target===u.currentTarget&&t()},children:o.jsxs("div",{className:Fo.tarjeta,children:[o.jsxs("header",{className:Fo.cabecera,children:[o.jsx("p",{className:Fo.titulo,children:"Tokens por modelo"}),o.jsx("p",{className:Fo.subtitulo,children:"Lo que lleva gastado esta conversación, modelo a modelo."})]}),o.jsxs("table",{className:Fo.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:Fo.modelo,children:[u.id,u.cuenta==="externo"&&!u.sinDesglose?o.jsx("span",{className:Fo.marca,children:"externo"}):null]}),o.jsx("td",{title:String(u.nueva),children:St(u.nueva)}),o.jsx("td",{title:String(u.cache),children:St(u.cache)}),o.jsx("td",{title:String(u.salida),children:St(u.salida)})]},u.id))}),o.jsx("tfoot",{children:o.jsxs("tr",{className:Fo.total,children:[o.jsx("th",{scope:"row",children:"Total"}),o.jsx("td",{title:String(a.nueva),children:St(a.nueva)}),o.jsx("td",{title:String(a.cache),children:St(a.cache)}),o.jsx("td",{title:String(a.salida),children:St(a.salida)})]})})]}),l?o.jsx("p",{className:Fo.nota,children:"«Sin desglose» es lo gastado en turnos de antes de medir por modelo."}):null,i?o.jsx("p",{className:Fo.nota,children:"Un agente externo va contra su propia suscripción: se suman tokens, no coste."}):null,o.jsx("div",{className:Fo.acciones,children:o.jsx("button",{ref:r,type:"button",className:et.accion,onClick:t,children:"Cerrar"})})]})})})}const Rq="_contador_pgufs_21",qq="_separador_pgufs_37",Fq="_cifra_pgufs_43",Oq="_rotulo_pgufs_52",Bq="_boton_pgufs_70",Oo={contador:Rq,separador:qq,cifra:Fq,rotulo:Oq,boton:Bq};function Uq({consumo:e}){const[t,n]=$.useState(!1);if(e===void 0)return null;const{nueva:r,cache:a,salida:i,entradaTotal:l}=K0(e.modelo,e.externo);if(l===0&&i===0)return null;const u=e.externo.entrada>0||e.externo.salida>0,d=["Tokens de esta conversación",`· entrada total: ${l} — ${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:Oo.cifra,children:St(r)}),o.jsx("span",{className:Oo.rotulo,children:"nueva"}),o.jsx("span",{"aria-hidden":"true",className:Oo.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"⟳"}),o.jsx("span",{className:Oo.cifra,children:St(a)}),o.jsx("span",{className:Oo.rotulo,children:"caché"}),o.jsx("span",{"aria-hidden":"true",className:Oo.separador,children:"·"}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:Oo.cifra,children:St(i)}),o.jsx("span",{className:Oo.rotulo,children:"salida"})]}),f=e.porModelo;return f===void 0||Object.keys(f).length===0?o.jsx("span",{className:Oo.contador,title:d,children:m}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:`${Oo.contador} ${Oo.boton}`,title:`${d}
|
|
466
|
-
Pulsa para verlo por modelo.`,"aria-haspopup":"dialog",onClick:()=>n(!0),children:m}),t?o.jsx(Pq,{porModelo:f,alCerrar:()=>n(!1)}):null]})}const Hq="_envoltura_yc651_15",Vq="_compositor_yc651_42",Gq="_motor_yc651_97",Wq="_dispositivo_yc651_116",Zq="_entrada_yc651_152",Qq="_controles_yc651_226",Xq="_acciones_yc651_218",Yq="_gasto_yc651_266",Kq="_enviar_yc651_290",Jq="_parar_yc651_362",eF="_anexar_yc651_491 _secundario_1l1rx_39",tF="_fichas_yc651_512",nF="_ficha_yc651_512",rF="_nombreDeFicha_yc651_528",aF="_estadoDeFicha_yc651_537",oF="_quitarFicha_yc651_547",Nr={envoltura:Hq,compositor:Vq,motor:Gq,dispositivo:Wq,entrada:Zq,controles:Qq,acciones:Xq,gasto:Yq,enviar:Kq,parar:Jq,anexar:eF,fichas:tF,ficha:nF,nombreDeFicha:rF,estadoDeFicha:aF,quitarFicha:oF};function sF(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 i=2;for(;t.has(`${r}-${i}${a}`);)i+=1;return`${r}-${i}${a}`}function iF(e){var n;const t=(n=e.split("/")[1])==null?void 0:n.split("+")[0];return t===void 0||t===""?"bin":t}function lF({conectado:e,turnoEnVuelo:t=!1,hayPendiente:n=!1,consumo:r,oculto:a=!1,extraAbajo:i,alParar:l,modelos:u,alPedirCatalogo:d,alElegirModelo:m,alElegirEsfuerzo:f,alAbrirAjustes:h,dispositivo:b,dispositivos:y,modoDeEscritura:g,alElegirModoDeEscritura:_,alElegirDispositivo:j,dispositivosEnUso:C,proyectoActual:S,alMedirDispositivos:A,alSubirAdjunto:M,alEnviar:L,borrador:z}){var be,$e;const[P,H]=$.useState(""),R=$.useRef(null),F=$.useRef(null),[U,Z]=$.useState([]),re=$.useRef(0),[le,ee]=$.useState(!1),ke=M!==void 0&&e,_e=async pe=>{if(M===void 0)return;const Le=new Set(U.map(Ae=>Ae.nombre));for(const Ae of pe){const ut=re.current;re.current+=1;const yt=Oy(Ae.name);if(yt===void 0){Z(An=>[...An,{id:ut,nombre:Ae.name,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const Ct=sF(yt,Le);Le.add(Ct),Z(An=>[...An,{id:ut,nombre:Ct,estado:"subiendo"}]);const Qt=await M(Ae,Ct);Z(An=>An.map(cn=>cn.id===ut?Qt.ok?{...cn,estado:"listo",nombre:Qt.nombre??cn.nombre}:{...cn,estado:"falló",...Qt.motivo===void 0?{}:{motivo:Qt.motivo}}:cn))}},ie=pe=>Z(Le=>Le.filter(Ae=>Ae.id!==pe)),Ne=pe=>{ke&&(pe.preventDefault(),ee(!1),_e(Array.from(pe.dataTransfer.files)))},B=pe=>{var ut;if(!ke)return;const Le=Array.from(((ut=pe.clipboardData)==null?void 0:ut.files)??[]);if(Le.length===0)return;pe.preventDefault();const Ae=Le.map((yt,Ct)=>new File([yt],`pegado-${Ct+1}.${iF(yt.type)}`,{type:yt.type}));_e(Ae)};$.useEffect(()=>{var pe;z!==void 0&&(H(Le=>Le.trim()===""?z.texto:`${Le.replace(/\s+$/,"")}
|
|
467
|
-
${z.texto}`),(pe=R.current)==null||pe.focus())},[z==null?void 0:z.id]);const O=$.useRef(!1);$.useEffect(()=>{var Le;const pe=O.current&&!n;O.current=n,pe&&!a&&e&&((Le=R.current)==null||Le.focus())},[n,a,e]);const ne=U.some(pe=>pe.estado==="subiendo"),E=U.some(pe=>pe.estado==="falló"),ue=()=>{if(n||ne||E)return;const pe=P.trim(),Le=U.filter(Ae=>Ae.estado==="listo").map(Ae=>Ae.nombre);pe===""&&Le.length===0||(L(pe,Le),H(""),Z([]))},ae=pe=>{pe.key==="Enter"&&!pe.shiftKey&&(pe.preventDefault(),ue())};return o.jsx("div",{className:Nr.envoltura,hidden:a,children:o.jsxs("div",{className:Nr.compositor,"data-trabajando":t?"":void 0,"data-con-texto":P===""?void 0:"","data-arrastrando":le?"":void 0,onDragOver:pe=>{ke&&(pe.preventDefault(),ee(!0))},onDragLeave:()=>ee(!1),onDrop:Ne,children:[o.jsxs("div",{className:Nr.motor,children:[o.jsx("div",{className:Nr.gasto,children:o.jsx(Uq,{...r===void 0?{}:{consumo:r}})}),j===void 0?null:o.jsx("div",{className:Nr.dispositivo,children:o.jsx(Hy,{...b===void 0?{}:{elegido:b},...y===void 0?{}:{informe:y},conectado:e,alElegir:j,...A===void 0?{}:{alMedir:A},...C===void 0?{}:{enUso:C},...S===void 0?{}:{proyectoActual:S}})})]}),o.jsx("textarea",{ref:R,className:Nr.entrada,value:P,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:pe=>H(pe.target.value),onKeyDown:ae,onPaste:B}),U.length===0?null:o.jsx("ul",{className:Nr.fichas,children:U.map(pe=>o.jsxs("li",{className:Nr.ficha,"data-estado":pe.estado,children:[o.jsx("span",{className:Nr.nombreDeFicha,children:pe.nombre}),o.jsx("span",{className:Nr.estadoDeFicha,...pe.estado==="falló"?{title:pe.motivo??"no se pudo subir"}:{},children:pe.estado==="subiendo"?"subiendo…":pe.estado==="listo"?"listo":"falló"}),o.jsx("button",{type:"button",className:Nr.quitarFicha,"aria-label":`Quitar ${pe.nombre}`,onClick:()=>ie(pe.id),children:"Quitar"})]},pe.id))}),o.jsxs("div",{className:Nr.controles,children:[M===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Nr.anexar,disabled:!e,"aria-label":"Anexar ficheros",title:"Anexar ficheros (también puedes soltarlos o pegarlos)",onClick:()=>{var pe;return(pe=F.current)==null?void 0:pe.click()},children:o.jsx(RL,{})}),o.jsx("input",{ref:F,hidden:!0,type:"file",multiple:!0,onChange:pe=>{_e(Array.from(pe.target.files??[])),pe.target.value=""}})]}),_===void 0?null:o.jsx(Vy,{...g===void 0?{}:{actual:g},conectado:e,alElegir:_}),i,o.jsxs("div",{className:Nr.acciones,children:[o.jsxs("div",{className:mt.conjunto,children:[u!==void 0?o.jsx(By,{...u.actual===void 0?{}:{actual:u.actual},proveedores:u.proveedores,alPedirCatalogo:pe=>d==null?void 0:d(pe),alElegir:pe=>m==null?void 0:m(pe),...h===void 0?{}:{alAbrirAjustes:h}}):null,f===void 0?null:o.jsx(nq,{...(u==null?void 0:u.esfuerzo)===void 0?{}:{niveles:u.esfuerzo.niveles},...((be=u==null?void 0:u.esfuerzo)==null?void 0:be.actual)===void 0?{}:{actual:u.esfuerzo.actual},...(($e=u==null?void 0:u.esfuerzo)==null?void 0:$e.nota)===void 0?{}:{nota:u.esfuerzo.nota},conectado:e,alElegir:f})]}),t?o.jsx("button",{type:"button",className:`${Nr.enviar} ${Nr.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:Nr.enviar,disabled:!e||ne||E,"aria-label":"Enviar",...ne?{title:"espera a que termine de subir el adjunto"}:E?{title:"quita el adjunto que falló antes de enviar"}:{},onClick:ue,children:o.jsx(IL,{})})]})]})]})})}const uf=48,cF=1e3;function df(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function Gy(e,t={}){const n=$.useRef(null),r=$.useRef(!0),[a,i]=$.useState(!0),l=$.useRef(0);$.useEffect(()=>{const f=n.current;if(f!==null){if(r.current){f.scrollTop=f.scrollHeight,i(!0);return}i(df(f)<=uf)}},[e]);const u=t.vigilarTamano===!0;$.useEffect(()=>{const f=n.current;if(!u||f===null||typeof ResizeObserver>"u")return;const h=()=>{r.current||i(df(f)<=uf)},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=df(f)<=uf;if(l.current!==0){if(!h&&Date.now()<l.current)return;l.current=0}r.current=h,i(h)},[]),m=$.useCallback(()=>{const f=n.current;f!==null&&(r.current=!0,i(!0),typeof f.scrollTo=="function"?(l.current=Date.now()+cF,f.scrollTo({top:f.scrollHeight,behavior:"smooth"})):f.scrollTop=f.scrollHeight)},[]);return{nodo:n,alDesplazar:d,alFinal:a,bajar:m}}function uF(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 dF(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 Wy(e,t){const[n,r]=$.useState(void 0);return $.useEffect(()=>{if(!e){r(void 0);return}const a=Date.now();r(0);const i=setInterval(()=>r(Math.floor((Date.now()-a)/1e3)),1e3);return()=>clearInterval(i)},[e,t]),n}const pF="_boton_13o2m_10",mF={boton:pF};function pu({texto:e,etiqueta:t="Copiar"}){const[n,r]=$.useState("quieto"),a=$.useRef(void 0);$.useEffect(()=>()=>clearTimeout(a.current),[]);const i=async()=>{clearTimeout(a.current);try{await navigator.clipboard.writeText(e),r("copiado")}catch{r("fallo")}a.current=setTimeout(()=>r("quieto"),2e3)},l=n==="copiado"?"Copiado":n==="fallo"?"No se pudo copiar":t;return o.jsx("button",{type:"button",className:mF.boton,"data-estado":n,title:l,"aria-label":l,onClick:()=>void i(),children:n==="copiado"?o.jsx(M2,{size:14}):o.jsx(vz,{size:14})})}const hF="_coste_g2gtu_11",fF="_cifra_g2gtu_22",gF="_cache_g2gtu_28",N0={coste:hF,cifra:fF,cache:gF};function Zy(e){return e.modelo.entrada+e.modelo.salida+e.externo.entrada+e.externo.salida>0}function vF({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(!Zy(e))return null;const i=t==="sesion",l=e.externo.entrada>0||e.externo.salida>0,u=[i?`Gastado en esta sesión: ${n+r} tokens en total`:"Trabajo de este turno",`· modelo: ${e.modelo.entrada} entrada / ${e.modelo.salida} salida`,...l?[`· agentes externos: ${e.externo.entrada} entrada / ${e.externo.salida} salida`]:[],...a>0?[`· caché leída: ${a} (no va sumada a la entrada)`]:[],...l?["Las dos cuentas son de proveedores distintos: se suman TOKENS, no coste."]:[]].join(`
|
|
469
|
-
`);return o.jsxs("span",{className:N0.coste,title:u,"aria-label":i?`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:[i?o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"Σ"}),o.jsx("span",{className:N0.cifra,children:St(n+r)})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"↑"}),o.jsx("span",{className:N0.cifra,children:St(n)}),o.jsx("span",{"aria-hidden":"true",children:" "}),o.jsx("span",{"aria-hidden":"true",children:"↓"}),o.jsx("span",{className:N0.cifra,children:St(r)})]}),a>0&&!i&&o.jsxs(o.Fragment,{children:[o.jsx("span",{"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:N0.cache,children:[St(a)," caché"]})]})]})}function Qy({ms:e,consumo:t}){const n=e===void 0?null:`${Math.round(e/100)/10}s`,r=t===void 0?null:o.jsx(vF,{consumo:t});return n===null&&r===null?null:o.jsxs(o.Fragment,{children:[n,n!==null&&r!==null?" · ":null,r]})}const bF=14;function uo({children:e,lado:t=bF}){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 yF(){return o.jsxs(uo,{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 xF(){return o.jsxs(uo,{children:[o.jsx("path",{d:"m16 18 6-6-6-6"}),o.jsx("path",{d:"m8 6-6 6 6 6"})]})}function _F(){return o.jsxs(uo,{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 wF(){return o.jsxs(uo,{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 pf="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",mf="M14 2v5a1 1 0 0 0 1 1h5";function jF({forma:e}){switch(e){case"pagina":return o.jsxs(uo,{lado:18,children:[o.jsx("path",{d:pf}),o.jsx("path",{d:mf}),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(uo,{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(uo,{lado:18,children:[o.jsx("path",{d:pf}),o.jsx("path",{d:mf}),o.jsx("path",{d:"M10 9H8"}),o.jsx("path",{d:"M16 13H8"}),o.jsx("path",{d:"M16 17H8"})]});case"imagen":return o.jsxs(uo,{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(uo,{lado:18,children:[o.jsx("path",{d:pf}),o.jsx("path",{d:mf})]})}}function CF(){return o.jsxs(uo,{children:[o.jsx("path",{d:"M5 12h14"}),o.jsx("path",{d:"m12 5 7 7-7 7"})]})}function kF({lado:e=12}){return o.jsxs(uo,{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 NF(){return o.jsxs(uo,{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 SF=new Map([["xne","xml"],["xml","xml"],["js","javascript"],["css","css"],["ini","ini"],["json","json"],["md","markdown"],["html","html"],["svg","xml"]]);function jm(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");if(!(n<=0))return SF.get(t.slice(n+1).toLowerCase())}const $F="_imagen_1uv9z_5",AF="_nota_1uv9z_32",t6={imagen:$F,nota:AF};function Cm({mime:e,base64:t,alt:n,bytes:r}){return o.jsxs("div",{className:t6.imagen,children:[o.jsx("img",{src:`data:${e};base64,${t}`,alt:n}),o.jsxs("p",{className:t6.nota,children:[Uo(r)," KB"]})]})}function Uo(e){return Math.max(1,Math.round(e/1024))}function EF(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),i=Math.min(r.length,t+n),l=[];for(let u=a;u<=i;u++)l.push({numero:u,texto:r[u-1],marcada:u===t});return{desde:a,lineas:l}}const DF="_visor_1gka3_4",zF="_bloque_1gka3_13",TF="_extracto_1gka3_51",MF="_lineaDelExtracto_1gka3_62",LF="_numero_1gka3_70",IF="_aviso_1gka3_79",Xc={visor:DF,bloque:zF,extracto:TF,lineaDelExtracto:MF,numero:LF,aviso:IF};function Xy({texto:e,lenguaje:t,linea:n}){const r=$.useRef(null),a=n===void 0?void 0:EF(e,n);return $.useEffect(()=>{const i=r.current;if(i===null||n===void 0||a===void 0)return;let l=!1;const u=()=>{const f=i.querySelectorAll(".line")[n-1];for(const h of i.querySelectorAll(".line[data-marcada]"))h!==f&&delete h.dataset.marcada;f!==void 0&&(f.dataset.marcada="",!l&&typeof f.scrollIntoView=="function"&&(f.scrollIntoView({block:"center"}),l=!0))};if(u(),typeof MutationObserver>"u")return;const d=new MutationObserver(u);return d.observe(i,{childList:!0,subtree:!0}),()=>d.disconnect()},[e,n]),o.jsxs("div",{className:Xc.visor,ref:r,children:[n===void 0?null:a===void 0?o.jsx("p",{className:Xc.aviso,children:`El fichero ya no tiene línea ${n}: ha cambiado desde el hallazgo.`}):o.jsx("div",{className:Xc.extracto,"aria-label":`Línea ${n}`,children:a.lineas.map(i=>o.jsxs("div",{className:Xc.lineaDelExtracto,"data-marcada":i.marcada?"":void 0,children:[o.jsx("span",{className:Xc.numero,children:i.numero}),o.jsx("span",{children:i.texto})]},i.numero))}),o.jsx(by,{code:e,lang:t,copyLabel:"Copiar",copiedLabel:"Copiado",className:Xc.bloque})]})}const PF="_caja_1c0hw_10",RF="_artefactos_1c0hw_6",qF="_visor_1c0hw_24",FF="_lista_1c0hw_32",OF="_cabecera_1c0hw_58",BF="_nombre_1c0hw_73",UF="_mandos_1c0hw_79",HF="_caras_1c0hw_86",VF="_cara_1c0hw_86",GF="_descargar_1c0hw_120",WF="_marco_1c0hw_141",ZF="_iframe_1c0hw_154",QF="_markdown_1c0hw_164",XF="_aviso_1c0hw_171",YF="_nota_1c0hw_179",KF="_rotulo_1c0hw_186",JF="_fila_1c0hw_196",eO="_filaNombre_1c0hw_225",tO="_filaPeso_1c0hw_231",Wt={caja:PF,artefactos:RF,visor:qF,lista:FF,cabecera:OF,nombre:BF,mandos:UF,caras:HF,cara:VF,descargar:GF,marco:WF,iframe:ZF,markdown:QF,aviso:XF,nota:YF,rotulo:KF,fila:JF,filaNombre:eO,filaPeso:tO},n6="/artefactos/",Yy=e=>e.startsWith(n6)?e.slice(n6.length):e;function su(e,t=!1,n){return`/artefacto?n=${encodeURIComponent(Yy(e))}${t?"&descargar=1":""}${n===void 0?"":`&tema=${n}`}`}function nO(){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 rO({lista:e,contenidos:t,elegido:n,alElegir:r,alPedir:a,conectado:i}){var F;const[l,u]=$.useState("vista"),d=e.find(U=>U.ruta===n);$.useEffect(()=>{if(e.length!==0){if(n===void 0){r(e[e.length-1].ruta);return}e.some(U=>U.ruta===n)||r(void 0)}},[e,n,r]);const m=$.useRef(null),f=nO(),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,j=b!==void 0&&b.startsWith("image/"),C=b==="text/markdown",A=_||j||C||(b==="text/plain"||b==="application/json"||b==="text/csv"),M=n===void 0?void 0:t[n],L=A&&!(_&&l==="vista");$.useEffect(()=>{i===!1||n===void 0||!L||t[n]===void 0&&a(Yy(n))},[i,n,L,t,a]);const z=(M==null?void 0:M.mime)!==void 0&&M.base64!==void 0,P=z&&(M==null?void 0:M.mime)==="image/svg+xml"&&M.texto!==void 0,H=z&&!P,R=_||C&&(M==null?void 0:M.error)===void 0;return e.length===0?o.jsx("p",{className:Wt.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:Wt.caja,children:o.jsxs("div",{className:Wt.artefactos,children:[o.jsx("div",{className:Wt.visor,children:d===void 0?o.jsx("p",{className:Wt.aviso,children:"Elige un artefacto de la lista."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Wt.cabecera,children:[o.jsx("span",{className:Wt.nombre,children:d.nombre}),o.jsxs("div",{className:Wt.mandos,children:[R?o.jsx("div",{className:Wt.caras,role:"group","aria-label":"Cómo se enseña el artefacto",children:["vista","fuente"].map(U=>o.jsx("button",{type:"button",className:Wt.cara,"aria-pressed":l===U,"data-activa":l===U?"":void 0,onClick:()=>u(U),"aria-label":U==="vista"?"Vista":"Fuente",title:U==="vista"?"Ver el artefacto como se pinta":"Ver el texto del artefacto",children:U==="vista"?o.jsx(yF,{}):o.jsx(xF,{})},U))}):null,_&&l==="vista"&&h?o.jsx("button",{type:"button",className:Wt.descargar,"aria-label":"Pantalla completa",title:"Ver el artefacto a pantalla completa (Esc para salir)",onClick:()=>{var U,Z;return void((Z=(U=m.current)==null?void 0:U.requestFullscreen)==null?void 0:Z.call(U).catch(()=>{}))},children:o.jsx(_F,{})}):null,o.jsx("a",{className:Wt.descargar,href:su(d.ruta,!0),download:d.nombre,"aria-label":"Descargar",title:`Descargar ${d.nombre}`,children:o.jsx(wF,{})})]})]}),_&&l==="vista"?o.jsxs("div",{className:Wt.marco,ref:m,children:[o.jsx("iframe",{className:Wt.iframe,src:g?su(d.ruta,!1,f):su(d.ruta),title:d.nombre,sandbox:"allow-scripts"}),g?o.jsxs("p",{className:Wt.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:Wt.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?M===void 0?o.jsxs("p",{className:Wt.aviso,children:["Trayendo ",d.nombre,"…"]}):M.error!==void 0?o.jsxs("p",{className:Wt.aviso,children:["No se puede enseñar este artefacto: ",M.error,"."]}):H?o.jsx(Cm,{mime:M.mime,base64:M.base64,alt:d.nombre,bytes:M.bytes}):M.mime!==void 0&&M.base64===void 0&&M.binario?o.jsxs("p",{className:Wt.aviso,children:["Es una imagen de ",Uo(M.bytes)," KB: pesa más de lo que se trae por el cable. Descárgala para verla."]}):M.binario?o.jsxs("p",{className:Wt.aviso,children:["Son ",Uo(M.bytes)," KB de datos binarios. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[P?o.jsxs(o.Fragment,{children:[o.jsx(Cm,{mime:M.mime,base64:M.base64,alt:d.nombre,bytes:M.bytes}),o.jsx("p",{className:Wt.rotulo,children:"Código"})]}):null,M.recortado?o.jsxs("p",{className:Wt.nota,children:["Recortado a ",Uo(((F=M.texto)==null?void 0:F.length)??0)," KB de ",Uo(M.bytes)," KB: descárgalo para verlo entero."]}):null,C&&l==="vista"?o.jsx("div",{className:`${Wt.markdown} md-cuerpo`,children:o.jsx(rc,{text:ac(M.texto??""),codeLabels:oc})}):o.jsx(Xy,{texto:M.texto??"",...jm(d.nombre)===void 0?{}:{lenguaje:jm(d.nombre)}})]}):o.jsxs("p",{className:Wt.aviso,children:["No se sabe enseñar este artefacto aquí (",Uo(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:Wt.lista,"aria-label":"Artefactos de la sesión",children:[e.map(U=>o.jsxs("button",{type:"button",className:Wt.fila,"aria-current":U.ruta===n||void 0,"data-elegido":U.ruta===n?"":void 0,onClick:()=>r(U.ruta),children:[o.jsx("span",{className:Wt.filaNombre,children:U.nombre}),o.jsxs("span",{className:Wt.filaPeso,children:[Uo(U.bytes)," KB"]})]},U.ruta)),o.jsx("p",{className:Wt.nota,children:"Viven con esta sesión: no entran en git ni suben a CloudStudio, y se van si la borras."})]})]})})}function aO(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 oO(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(i=>typeof i=="string"&&i.trim()!==""):[];return a.length===0||typeof r.pregunta!="string"?void 0:{indice:n,pregunta:r.pregunta,opciones:a}}}function sO(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 r6(e,t,n){const r=sO(t,n);return e.endsWith(r)?e.slice(0,e.length-r.length).trimEnd():e}const iO="_tarjeta_1xjze_5",lO="_registro_1xjze_22",cO="_respuestaPropia_1xjze_43",uO="_cabecera_1xjze_48",dO="_marca_1xjze_59",pO="_enunciado_1xjze_71",mO="_opciones_1xjze_80",hO="_opcion_1xjze_80",fO="_radio_1xjze_110",gO="_otra_1xjze_116",vO="_campo_1xjze_122",bO="_decisiones_1xjze_137",yn={tarjeta:iO,registro:lO,respuestaPropia:cO,cabecera:uO,marca:dO,enunciado:pO,opciones:mO,opcion:hO,radio:fO,otra:gO,campo:vO,decisiones:bO};function yO({pregunta:e,opciones:t,alElegir:n,respondida:r}){const[a,i]=$.useState(void 0),[l,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 C=r===void 0?-1:t.indexOf(r.trim());return o.jsxs("section",{className:yn.tarjeta,"aria-label":`Pregunta del agente: ${e}`,children:[o.jsxs("p",{className:yn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:yn.marca,children:"?"}),r===void 0?"Pregunta del agente":"Pregunta del agente · contestada"]}),o.jsx("p",{className:yn.enunciado,children:e}),o.jsx("ul",{className:yn.registro,children:t.map((S,A)=>o.jsx("li",{"data-elegida":A===C?"":void 0,children:S},A))}),r!==void 0&&C===-1?o.jsx("p",{className:yn.respuestaPropia,children:`Contestaste: ${r}`}):null]})}const _=a==="otra"?l.trim():a===void 0?"":t[a]??"",j=()=>{b.current||_===""||(b.current=!0,m(!0),h(!1),Promise.resolve(n(_)).then(C=>{C===!1&&(b.current=!1,y.current&&m(!1))},()=>{b.current=!1,y.current&&(m(!1),h(!0))}))};return o.jsxs("section",{className:yn.tarjeta,"aria-label":e,children:[o.jsxs("p",{className:yn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:yn.marca,children:"?"}),"El agente necesita una respuesta"]}),o.jsx("p",{className:yn.enunciado,children:e}),o.jsxs("div",{role:"radiogroup","aria-label":e,className:yn.opciones,children:[t.map((C,S)=>o.jsxs("label",{className:yn.opcion,"data-elegida":a===S?"":void 0,children:[o.jsx("input",{type:"radio",name:g,className:yn.radio,checked:a===S,disabled:d,onChange:()=>i(S)}),o.jsx("span",{children:C})]},S)),o.jsxs("label",{className:`${yn.opcion} ${yn.otra}`,"data-elegida":a==="otra"?"":void 0,children:[o.jsx("input",{type:"radio",name:g,className:yn.radio,checked:a==="otra",disabled:d,onChange:()=>i("otra"),"aria-label":"Otra respuesta"}),o.jsx("textarea",{className:yn.campo,rows:2,placeholder:"O contesta con tus palabras…","aria-label":"Tu respuesta",value:l,disabled:d,onChange:C=>{u(C.target.value),i("otra")}})]})]}),o.jsx("div",{className:yn.decisiones,children:o.jsx(Re,{type:"button",className:et.accion,disabled:d||_==="",onClick:j,children:d?"Enviando…":"Responder"})}),f?o.jsx("p",{className:et.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 xO="_motivo_prhdl_3",_O="_tareas_prhdl_9",wO="_tarea_prhdl_9",jO="_titulo_prhdl_28",CO="_adjuntos_prhdl_34",kO="_etiqueta_prhdl_35",NO="_peticion_prhdl_41",SO="_plegable_prhdl_47",$O="_advertencia_prhdl_57",Ys={motivo:xO,tareas:_O,tarea:wO,titulo:jO,adjuntos:CO,etiqueta:kO,peticion:NO,plegable:SO,advertencia:$O};function AO({motivo:e,tareas:t,resuelta:n,alEncolar:r,alHacerEnChat:a,alDescartar:i}){const[l,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 j=n===void 0&&r!==void 0,C=M=>l[M]??t[M].peticion,S=M=>{g.current||(g.current=!0,m(!0),y(void 0),M().catch(()=>"el envío falló: vuelve a intentarlo cuando la conexión se recupere").then(L=>{g.current=!1,_.current&&(m(!1),L!==void 0&&y(L))}))},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:yn.tarjeta,"aria-label":"Propuesta de tareas de fondo",children:[o.jsxs("p",{className:yn.cabecera,children:[o.jsx("span",{"aria-hidden":"true",className:yn.marca,children:"⇢"}),A]}),o.jsx("p",{className:Ys.motivo,children:e}),o.jsx("ol",{className:Ys.tareas,children:t.map((M,L)=>o.jsxs("li",{className:Ys.tarea,children:[o.jsx("p",{className:Ys.titulo,children:`${L+1}. ${M.titulo}`}),M.adjuntos!==void 0&&M.adjuntos.length>0?o.jsx("p",{className:Ys.adjuntos,children:`Adjuntos: ${M.adjuntos.map(z=>z.replace(/^\/adjuntos\//,"")).join(", ")}`}):null,j?o.jsxs(o.Fragment,{children:[o.jsx("label",{className:Ys.etiqueta,htmlFor:`propuesta-${L}-encargo`,children:"Encargo"}),o.jsx("textarea",{id:`propuesta-${L}-encargo`,className:yn.campo,rows:6,value:C(L),disabled:d,onChange:z=>{const P=z.target.value;u(H=>({...H,[L]:P}))}})]}):o.jsxs("details",{className:Ys.plegable,onToggle:z=>{const P=z.currentTarget.open;h(H=>({...H,[L]:P}))},children:[o.jsx("summary",{children:"Ver el encargo"}),f[L]===!0?o.jsx("p",{className:Ys.peticion,children:M.peticion}):null]})]},L))}),j?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Ys.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:yn.decisiones,children:[o.jsx(Re,{type:"button",variant:"outline",className:et.cancelar,disabled:d||i===void 0,onClick:()=>i!==void 0&&S(i),children:"Descartar"}),a===void 0?null:o.jsx(Re,{type:"button",variant:"outline",className:et.cancelar,disabled:d,onClick:()=>S(a),children:"Hacerlo aquí en el chat"}),o.jsx(Re,{type:"button",variant:"primary",className:et.accion,disabled:d,onClick:()=>S(()=>r(t.map((M,L)=>C(L).trim()===""?t[L].peticion:C(L)))),children:d?"Un momento…":"Encolar en orden"})]})]}):null,b!==void 0?o.jsx("p",{className:et.fallo,role:"alert",children:`No se pudo: ${b}`}):null]})}const EO="_visor_1wkto_3",DO="_imagen_1wkto_19",zO="_pie_1wkto_30",TO="_nombre_1wkto_38",MO="_acciones_1wkto_49",LO="_enlace_1wkto_55",Yc={visor:EO,imagen:DO,pie:zO,nombre:TO,acciones:MO,enlace:LO};function IO({ruta:e,nombre:t,alCerrar:n,alAbrirEnArtefactos:r}){const a=$.useRef(null);return $.useEffect(()=>{var l;const i=document.activeElement;return(l=a.current)==null||l.focus(),()=>{var u;return(u=i==null?void 0:i.focus)==null?void 0:u.call(i)}},[]),o.jsx(Zn,{open:!0,onClose:n,title:t,headless:!0,className:et.capa,children:o.jsx("div",{className:et.velo,onClick:i=>{i.target===i.currentTarget&&n()},children:o.jsxs("figure",{className:Yc.visor,children:[o.jsx("img",{className:Yc.imagen,src:su(e),alt:t}),o.jsxs("figcaption",{className:Yc.pie,children:[o.jsx("span",{className:Yc.nombre,children:t}),o.jsxs("span",{className:Yc.acciones,children:[r===void 0?null:o.jsx(Re,{type:"button",variant:"outline",className:et.cancelar,onClick:r,children:"Abrir en Artefactos"}),o.jsx("a",{className:`${et.cancelar} ${Yc.enlace}`,href:su(e,!0),download:t,children:"Descargar"}),o.jsx("button",{ref:a,type:"button",className:et.accion,onClick:n,children:"Cerrar"})]})]})]})})})}const PO={read_file:"Leyó",ls:"Listó",write_file:"Escribió",edit_file:"Editó",glob:"Buscó",grep:"Buscó",regex_search:"Buscó",buscar_icono:"Buscó el icono",buscar_fuente:"Buscó la fuente",traer_fuente:"Trajo la fuente",comparar_capturas:"Comparó capturas",diferencia_de_capturas:"Midió el cambio",generar_fondo_svg:"Generó un fondo",validar_fichero_xone:"Validó",task:"Delegó en",execute:"Ejecutó",xone_navegacion:"Consultó el modelo",xone_atributos:"Consultó los atributos",describe_image:"Miró la imagen",xone_critica_visual:"Revisó la pantalla",marcar_criterios_del_plan:"Marcó criterios",incorporar_adjunto:"Incorporó",traer_pantalla_de_stitch:"Trajo de Stitch"};function RO(e){const t=e==null?void 0:e.nombre;if(t===void 0)return;const n=PO[t];if(n===void 0)return;const r=e;if(!(r.blanco===void 0&&r.veces===void 0))return{verbo:n,...r.blanco===void 0?{}:{blanco:r.blanco},...r.veces===void 0||r.veces<2?{}:{veces:r.veces},...r.blancos===void 0||r.blancos.length===0?{}:{blancos:r.blancos},...r.masBlancos===void 0||r.masBlancos<=0?{}:{masBlancos:r.masBlancos},...r.error===void 0?{}:{error:r.error},esNombre:t==="task",delegacion:t==="task"}}const qO="_root_t3u4o_5",FO="_scroll_t3u4o_5",OO="_column_t3u4o_6",BO="_flowItem_t3u4o_9",hr={root:qO,scroll:FO,column:OO,flowItem:BO},UO="_flujo_4jtpv_20",HO="_inicioDeTurno_4jtpv_26",VO="_globo_4jtpv_45",GO="_textoDeLaPersona_4jtpv_56",WO="_error_4jtpv_57",ZO="_usuario_4jtpv_66",QO="_delAgente_4jtpv_76",XO="_columnaDelAvatar_4jtpv_83",YO="_avatarDelAgente_4jtpv_91",KO="_avatarDeLaPersona_4jtpv_92",JO="_cuerpoDelAgente_4jtpv_117",eB="_cuerpoDeLaPersona_4jtpv_118",tB="_pensando_4jtpv_131",nB="_autor_4jtpv_137",rB="_nombreDelAutor_4jtpv_151",aB="_cifrasDelAutor_4jtpv_156",oB="_copiarDelAutor_4jtpv_161",sB="_adjuntosDelMensaje_4jtpv_175",iB="_adjuntoDelMensaje_4jtpv_191",lB="_asistente_4jtpv_205",cB="_textoTenue_4jtpv_239",uB="_trabajo_4jtpv_249",dB="_paso_4jtpv_260",pB="_pasoConVerbo_4jtpv_284",mB="_verbo_4jtpv_291",hB="_blanco_4jtpv_295",fB="_blancoNombre_4jtpv_301",gB="_errorDelPaso_4jtpv_305",vB="_resumenFallos_4jtpv_332",bB="_giro_4jtpv_338",yB="_trozoDeTrabajo_4jtpv_370",xB="_memoriaDelTurno_4jtpv_377",_B="_quienTrabaja_4jtpv_386",wB="_fase_4jtpv_394",jB="_resumen_4jtpv_332",CB="_cierre_4jtpv_416",kB="_detalleDePulso_4jtpv_443",NB="_pensadoPlegado_4jtpv_455",SB="_resumenPensado_4jtpv_460",$B="_avanceDelPensado_4jtpv_476",AB="_pensado_4jtpv_455",EB="_acciones_4jtpv_498",DB="_hora_4jtpv_507",zB="_relectura_4jtpv_523",TB="_trabajoAlAbrir_4jtpv_537",MB="_sistema_4jtpv_560",LB="_sinAprobacion_4jtpv_534",IB="_textoDelAviso_4jtpv_588",PB="_cerrarAviso_4jtpv_594",RB="_bienvenida_4jtpv_608",qB="_bienvenidaTitulo_4jtpv_619",FB="_artefactosDelTramo_4jtpv_637",OB="_capturas_4jtpv_661",BB="_captura_4jtpv_661",UB="_capturaSola_4jtpv_690",HB="_capturaAbrir_4jtpv_695",VB="_artefacto_4jtpv_637",GB="_artefactoCuerpo_4jtpv_727",WB="_artefactoIcono_4jtpv_737",ZB="_artefactoTexto_4jtpv_743",QB="_artefactoNombre_4jtpv_750",XB="_artefactoMeta_4jtpv_759",YB="_artefactoPeso_4jtpv_766",KB="_artefactoAbrir_4jtpv_773",JB="_artefactoIr_4jtpv_787",eU="_pasoActual_4jtpv_801",tU="_pensandoAhora_4jtpv_813",nU="_lineaEnVuelo_4jtpv_837",rU="_enVuelo_4jtpv_844",aU="_veredictoEnRojo_4jtpv_855",oU="_veredictoCabecera_4jtpv_870",sU="_hallazgos_4jtpv_875",iU="_hallazgo_4jtpv_875",lU="_hallazgoTexto_4jtpv_892",cU="_hallazgoDonde_4jtpv_899",uU="_hallazgoAcciones_4jtpv_904",dU="_hallazgoBoton_4jtpv_910 _secundario_1l1rx_39",pU="_veredictoNota_4jtpv_914",mU="_irAlFinal_4jtpv_923",hU="_irAlFinalCuenta_4jtpv_955",we={flujo:UO,inicioDeTurno:HO,globo:VO,textoDeLaPersona:GO,error:WO,usuario:ZO,delAgente:QO,columnaDelAvatar:XO,avatarDelAgente:YO,avatarDeLaPersona:KO,cuerpoDelAgente:JO,cuerpoDeLaPersona:eB,pensando:tB,autor:nB,nombreDelAutor:rB,cifrasDelAutor:aB,copiarDelAutor:oB,adjuntosDelMensaje:sB,adjuntoDelMensaje:iB,asistente:lB,textoTenue:cB,trabajo:uB,paso:dB,pasoConVerbo:pB,verbo:mB,blanco:hB,blancoNombre:fB,errorDelPaso:gB,resumenFallos:vB,giro:bB,trozoDeTrabajo:yB,memoriaDelTurno:xB,quienTrabaja:_B,fase:wB,resumen:jB,cierre:CB,detalleDePulso:kB,pensadoPlegado:NB,resumenPensado:SB,avanceDelPensado:$B,pensado:AB,acciones:EB,hora:DB,relectura:zB,trabajoAlAbrir:TB,sistema:MB,sinAprobacion:LB,textoDelAviso:IB,cerrarAviso:PB,bienvenida:RB,bienvenidaTitulo:qB,artefactosDelTramo:FB,capturas:OB,captura:BB,capturaSola:UB,capturaAbrir:HB,artefacto:VB,artefactoCuerpo:GB,artefactoIcono:WB,artefactoTexto:ZB,artefactoNombre:QB,artefactoMeta:XB,artefactoPeso:YB,artefactoAbrir:KB,artefactoIr:JB,pasoActual:eU,pensandoAhora:tU,lineaEnVuelo:nU,enVuelo:rU,veredictoEnRojo:aU,veredictoCabecera:oU,hallazgos:sU,hallazgo:iU,hallazgoTexto:lU,hallazgoDonde:cU,hallazgoAcciones:uU,hallazgoBoton:dU,veredictoNota:pU,irAlFinal:mU,irAlFinalCuenta:hU};function hf(e){return typeof e.pregunta=="string"&&Array.isArray(e.opciones)&&e.opciones.length>0&&e.opciones.every(t=>typeof t=="string"&&t.trim()!=="")}function a6(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")))}function fU(e){const t=[];return!e.abierto&&e.pasos>0&&t.push(`${e.pasos} ${e.pasos===1?"paso":"pasos"}`),e.ms!==void 0&&t.push(`${(Math.round(e.ms/100)/10).toLocaleString("es")} s`),o.jsxs(o.Fragment,{children:[o.jsx("span",{className:we.nombreDelAutor,children:"XOneCode"}),t.length===0?null:o.jsx("span",{className:we.cifrasDelAutor,children:` · ${t.join(" · ")}`})]})}function gU({paso:e}){const t=e.blancos??(e.blanco===void 0?[]:[e.blanco]);return o.jsxs("span",{className:we.pasoConVerbo,children:[o.jsx("span",{className:we.verbo,children:e.veces===void 0?e.verbo:`${e.verbo} ${e.veces} veces`}),t.length===0?null:o.jsxs(o.Fragment,{children:[e.veces===void 0?" ":" · ",t.map((n,r)=>o.jsxs($.Fragment,{children:[r===0?null:", ",o.jsx("span",{className:e.esNombre?we.blancoNombre:we.blanco,children:n})]},r)),e.masBlancos===void 0?null:` y ${e.masBlancos} más`]}),e.error===void 0?null:o.jsx("span",{className:we.errorDelPaso,children:`: ${e.error}`})]})}const vU=8,Gg="Pensando…";function bU({tramo:e,pasos:t,segundosEnVuelo:n,pasoActual:r,segundosDelPaso:a}){const{nodo:i,alDesplazar:l}=Gy(e.actos.length),u=qy(e.actos),d=t<=vU,[m,f]=$.useState(e.terminado&&d),[h,b]=$.useState(!1);return $.useEffect(()=>{!h&&e.terminado&&d&&f(!0)},[h,e.terminado,d]),o.jsxs("details",{className:`${hr.flowItem} ${we.pensando}`,open:m,onToggle:y=>{const g=y.currentTarget.open;g!==m&&(f(g),b(!0)),!(!g||i.current===null)&&(i.current.scrollTop=i.current.scrollHeight)},children:[o.jsx("summary",{className:we.resumen,children:e.terminado?o.jsxs(o.Fragment,{children:[t===0?"Trabajo del agente":`Trabajo del agente · ${t} ${t===1?"paso":"pasos"}`,u===0?null:o.jsx("span",{className:we.resumenFallos,children:` · ${u} ${u===1?"falló":"fallaron"}`}),e.ms===void 0&&e.consumo===void 0?null:o.jsxs(o.Fragment,{children:[" · ",o.jsx(Qy,{ms:e.ms,consumo:e.consumo})]})]}):o.jsxs("span",{className:we.lineaEnVuelo,children:[o.jsx("span",{"aria-hidden":"true",className:we.giro}),o.jsx("span",{className:we.enVuelo,children:n===void 0?"Trabajando…":`Trabajando… · ${n} s`}),r===void 0?null:o.jsxs("span",{className:we.pasoActual,children:[" · ",r===Gg?o.jsx("span",{className:we.pensandoAhora,children:Gg}):r,a===void 0?"":` · ${a} s`]})]})}),o.jsxs("div",{className:we.detalleDePulso,ref:i,onScroll:l,children:[e.memoria===void 0?null:o.jsx("p",{className:we.memoriaDelTurno,children:e.memoria.por.length===0?"Memoria del proyecto · pedida":`Memoria del proyecto · pedida por ${e.memoria.por.map(y=>H2(y)).join(", ")}`}),yU(e.actos).map(({acto:y,trozos:g},_)=>{var j;if(y.tipo==="razonamiento"){const C=(j=g==null?void 0:g[0])==null?void 0:j.rotulo;return o.jsxs($.Fragment,{children:[C===void 0?null:o.jsx("p",{className:we.quienTrabaja,children:C}),o.jsxs("details",{className:we.pensadoPlegado,children:[o.jsxs("summary",{className:we.resumenPensado,children:[o.jsx("span",{className:we.verbo,children:"Pensó"}),o.jsx("span",{className:we.avanceDelPensado,children:` · ${y.texto.trim().replace(/\s+/gu," ")}`})]}),o.jsx("p",{className:`${we.textoTenue} ${we.pensado}`,children:y.texto})]})]},_)}return y.tipo==="herramientas"?(g??[]).map((C,S)=>o.jsxs("div",{className:we.trozoDeTrabajo,children:[C.rotulo===void 0?null:o.jsx("p",{className:we.quienTrabaja,children:C.rotulo}),o.jsx("ul",{className:we.trabajo,children:C.lineas.map((A,M)=>{var z,P;const L=RO((z=C.detalles)==null?void 0:z[M]);return o.jsx("li",{className:`${we.textoTenue} ${we.paso}`,"data-fallo":(P=C.fallidas)!=null&&P.includes(M)?"":void 0,"data-delegacion":(L==null?void 0:L.delegacion)===!0?"":void 0,children:L===void 0?A:o.jsx(gU,{paso:L})},M)})})]},`${_}-${S}`)):y.tipo==="verificacion"?o.jsx("ul",{className:we.trabajo,children:B2(y).map((C,S)=>o.jsx("li",{className:we.textoTenue,children:C},S))},_):y.tipo==="fase"?o.jsxs("p",{className:`${we.textoTenue} ${we.fase}`,children:[y.texto," · ",Math.round(y.ms/100)/10,"s"]},_):null})]})]})}function yU(e){let t;return e.map(n=>{if(n.tipo==="razonamiento"&&n.origen!==void 0){const i=H2(n.origen),l=i===t?[]:[{...i===void 0?{}:{rotulo:i},lineas:[]}];return t=i,{acto:n,trozos:l}}if(n.tipo!=="herramientas")return{acto:n};const{trozos:r,ultimo:a}=tR(n.lineas,n.detalles,t);return t=a,{acto:n,trozos:r}})}function xU(e){const t=O2(e);return`Corrige ${e.code}${t===void 0?"":` en ${t}`}: ${e.mensaje}`}function _U({veredicto:e,alAbrirFichero:t,alPedirCorreccion:n}){return o.jsxs("section",{className:`${hr.flowItem} ${we.veredictoEnRojo}`,"aria-label":"Verificación en rojo",children:[o.jsx("p",{className:we.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:we.hallazgos,children:(e.hallazgos??[]).map((r,a)=>{const i=O2(r);return o.jsxs("li",{className:we.hallazgo,children:[o.jsxs("span",{className:we.hallazgoTexto,children:[`${Py(r)} `,i===void 0?null:o.jsx("code",{className:we.hallazgoDonde,children:i}),` ${r.code} — ${r.mensaje}`]}),r.fichero===void 0?null:o.jsxs("span",{className:we.hallazgoAcciones,children:[t===void 0?null:o.jsx("button",{type:"button",className:we.hallazgoBoton,onClick:()=>t(r.fichero,r.linea),children:"Abrir"}),n===void 0?null:o.jsx("button",{type:"button",className:we.hallazgoBoton,title:"Deja la petición escrita en el compositor; no se envía sola",onClick:()=>n(xU(r)),children:"Pedir corrección"})]})]},a)})}),e.preexistentes===void 0||e.preexistentes===0?null:o.jsx("p",{className:we.veredictoNota,children:`Y ${e.preexistentes} ${e.preexistentes===1?"hallazgo":"hallazgos"} más en ficheros que este turno no tocó.`})]})}const o6=e=>e.mime!==void 0&&e.mime.startsWith("image/");function wU({actos:e,alAbrir:t}){const[n,r]=$.useState(void 0),a=e.length===1;return o.jsxs("div",{className:we.capturas,children:[e.map((i,l)=>o.jsx("button",{type:"button",className:we.capturaAbrir,onClick:()=>r(i),"aria-label":`Ampliar ${i.nombre}`,title:`${i.nombre} · ${Math.max(1,Math.round(i.bytes/1024))} KB`,children:o.jsx("img",{className:`${we.captura} ${a?we.capturaSola:""}`,src:su(i.ruta),alt:i.nombre})},l)),n===void 0?null:o.jsx(IO,{ruta:n.ruta,nombre:n.nombre,alCerrar:()=>r(void 0),...t===void 0?{}:{alAbrirEnArtefactos:()=>{r(void 0),t(n.ruta)}}})]})}function jU({acto:e,sesion:t,alAbrir:n}){const r=t===void 0?e.ruta:`.xonecode/sesiones/${t}/artefactos/${e.ruta.slice(12)}`,a=aO(e.nombre),i=`${Math.max(1,Math.round(e.bytes/1024))} KB`,l=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:we.artefactoIcono,children:o.jsx(jF,{forma:a.forma})}),o.jsxs("span",{className:we.artefactoTexto,children:[o.jsx("span",{className:we.artefactoNombre,children:e.nombre}),o.jsxs("span",{className:we.artefactoMeta,children:[a.etiqueta," · ",o.jsx("span",{className:we.artefactoPeso,children:i})]})]})]});return o.jsxs("div",{className:we.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:we.artefactoCuerpo,children:l}):o.jsxs("button",{type:"button",className:`${we.artefactoCuerpo} ${we.artefactoAbrir}`,"aria-label":`Abrir ${e.nombre}`,onClick:()=>n(e.ruta),children:[l,o.jsxs("span",{"aria-hidden":"true",className:we.artefactoIr,children:["Abrir ",o.jsx(CF,{})]})]}),o.jsx(pu,{texto:r,etiqueta:"Copiar la ruta del artefacto"})]})}const CU=new Set(["razonamiento","herramientas","fase","artefacto","verificacion"]),s6={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}},kU=2e4;function NU(){const[e,t]=$.useState(!0);return $.useEffect(()=>{const n=setTimeout(()=>t(!1),kU);return()=>clearTimeout(n)},[]),e?o.jsxs("div",{role:"note",className:`${hr.flowItem} ${we.sinAprobacion}`,onClick:()=>t(!1),children:[o.jsxs("p",{className:we.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:we.cerrarAviso,"aria-label":"Cerrar el aviso",title:"Cerrar el aviso",children:"×"})]}):null}function SU({actos:e,turnoEnVuelo:t=!1,historica:n=!1,sinAprobacion:r=!1,trabajoAlAbrir:a,segundosEnVuelo:i,proyecto:l,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:f,alPedirCorreccion:h,alResponderConsulta:b,alEncolarPropuesta:y,alHacerPropuestaEnChat:g,alDescartarPropuesta:_}){const j=oO(e,t),C=new Map;for(const E of e)E.tipo!=="propuesta-resuelta"||typeof E.propuesta!="string"||C.set(E.propuesta,Array.isArray(E.encoladas)?{encoladas:E.encoladas}:E.enChat===!0?{enChat:!0}:{});const S=new Map,A=new Map;for(const[E,ue]of e.entries())if(!(ue.tipo!=="consulta"||!hf(ue))){for(let ae=E-1;ae>=0;ae--){const be=e[ae];if(be.tipo==="usuario")break;if(be.tipo==="asistente"){S.set(ae,{pregunta:ue.pregunta,opciones:ue.opciones});break}}for(let ae=E+1;ae<e.length;ae++){const be=e[ae];if(be.tipo==="usuario"){A.set(E,be.texto);break}}}const M=e.map(E=>E.tipo).lastIndexOf("asistente"),L=(()=>{for(let E=e.length-1;E>=0;E-=1){const ue=e[E];if(ue.tipo==="usuario"||ue.tipo==="asistente")return;if(ue.tipo==="razonamiento")return Gg;if(ue.tipo==="herramientas"&&ue.lineas.length>0)return ue.lineas[ue.lineas.length-1]}})(),z=Wy(t===!0&&L!==void 0,L),P=[];let H,R,F=[];const U=new Map;for(const[E,ue]of e.entries())ue.tipo==="artefacto"&&U.set(ue.ruta,E);for(const[E,ue]of e.entries())if(ue.tipo!=="sincronizacion"&&!(ue.tipo==="consulta"&&!hf(ue))&&ue.tipo!=="propuesta-resuelta"&&!(ue.tipo==="propuesta-de-tareas"&&!a6(ue))&&!(ue.tipo==="artefacto"&&U.get(ue.ruta)!==E)&&!(ue.tipo==="sistema"&&ue.clase==="permiso")){if(ue.tipo==="sistema"&&ue.clase!==void 0&&ue.clase in s6){const ae=ue.clase;(R===void 0||R.clase!==ae)&&(R={desde:E,clase:ae,actos:[]},P.push({tipo:"harness",tramo:R})),R.actos.push(ue);continue}if(R=void 0,CU.has(ue.tipo)){if(H===void 0){const ae=F[F.length-1];ae!==void 0&&(ae.terminado=!0),H={desde:E,actos:[],terminado:!1},P.push({tipo:"pulso",tramo:H}),F.push(H)}H.actos.push(ue);continue}if(ue.tipo==="usuario"){for(const ae of F)ae.terminado=!0;F=[]}if(H=void 0,ue.tipo==="fin"){const ae=F[F.length-1];ue.memoria!==void 0&&F[0]!==void 0&&(F[0].memoria=ue.memoria);for(let be=F.length-1;be>=0;be--){const $e=F[be],pe=[...$e.actos].reverse().find(Le=>Le.tipo==="verificacion");if(pe!==void 0){pe.tipo==="verificacion"&&!pe.verde&&($e.rojoFinal=pe);break}}for(const be of F)be.terminado=!0;F=[],ae!==void 0?(ae.ms=ue.ms,ue.consumo!==void 0&&(ae.consumo=ue.consumo)):ue.consumo!==void 0&&Zy(ue.consumo)&&P.push({tipo:"cierre",desde:E,ms:ue.ms,consumo:ue.consumo});continue}P.push({tipo:"acto",acto:ue,indice:E})}const Z=Fy(e),re=new Map(Z.map(E=>[E.desde,E]));let le,ee=!1;const ke=(E,ue,ae)=>{if(ue.tipo==="acto"&&ue.acto.tipo==="usuario")return le=re.get(ue.indice),ee=le!==void 0,ae;if(le===void 0||ae===null||ae===void 0||ae===!1)return ae;const be=ee;return ee=!1,o.jsxs("div",{className:we.delAgente,children:[o.jsx("span",{className:we.columnaDelAvatar,"aria-hidden":"true",children:be?o.jsx("img",{className:we.avatarDelAgente,src:"/iconos/xonecode.png",alt:"",width:28,height:28}):null}),o.jsxs("div",{className:we.cuerpoDelAgente,children:[be?o.jsx("p",{className:we.autor,children:fU(le)}):null,ae]})]},`agente-${E}`)},{nodo:_e,alDesplazar:ie,alFinal:Ne,bajar:B}=Gy(e,{vigilarTamano:!0}),O=uF(e,dF(e.length,Ne,d),(E,ue)=>{if(E.tipo==="error")return!0;if(E.tipo==="consulta")return hf(E);if(E.tipo==="propuesta-de-tareas")return a6(E);if(E.tipo!=="asistente")return!1;const ae=S.get(ue);return(ae===void 0?E.texto:r6(E.texto,ae.pregunta,ae.opciones))!==""}),ne=O===0?"Ir al final de la conversación":`Ir al final de la conversación · ${O} ${O===1?"mensaje nuevo":"mensajes nuevos"}`;return o.jsxs("div",{className:hr.root,children:[o.jsx("div",{className:hr.scroll,ref:_e,onScroll:ie,children:o.jsxs("div",{className:`${hr.column} ${we.flujo}`,children:[e.length===0&&!n?o.jsxs("section",{className:`${hr.flowItem} ${we.bienvenida}`,"aria-label":"sesión nueva",children:[o.jsx("h2",{className:we.bienvenidaTitulo,children:l===void 0?"Sesión nueva":`Sesión nueva en ${l}`}),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(NU,{}):null,a===void 0?null:o.jsxs("div",{role:"note",className:`${hr.flowItem} ${we.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(E=>o.jsx("li",{children:E},E))}),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:`${hr.flowItem} ${we.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,P.map((E,ue)=>ke(ue,E,(()=>{if(E.tipo==="cierre")return o.jsx("p",{className:`${hr.flowItem} ${we.pensando} ${we.cierre}`,children:o.jsx(Qy,{ms:E.ms,consumo:E.consumo})},`cierre-${E.desde}`);if(E.tipo==="harness"){const{tramo:$e}=E,{titulo:pe,uno:Le,varios:Ae,markdown:ut}=s6[$e.clase],yt=$e.actos.length;return o.jsxs("details",{className:`${hr.flowItem} ${we.pensando}`,children:[o.jsx("summary",{className:we.resumen,children:`${pe} · ${yt} ${yt===1?Le:Ae}`}),o.jsx("div",{className:we.detalleDePulso,children:$e.actos.map((Ct,Qt)=>ut?o.jsx("div",{role:"note",className:"md-cuerpo",children:o.jsx(rc,{text:ac(Ct.texto),codeLabels:oc})},Qt):o.jsx("p",{role:"note",className:we.sistema,children:Ct.texto},Qt))})]},`harness-${$e.desde}`)}if(E.tipo==="pulso"){const{tramo:$e}=E,pe=U2($e.actos),Le=$e.actos.filter(Qt=>Qt.tipo==="artefacto"),Ae=Le.filter(o6),ut=Le.filter(Qt=>!o6(Qt)),yt=o.jsx(bU,{tramo:$e,pasos:pe,...i===void 0?{}:{segundosEnVuelo:i},...L===void 0?{}:{pasoActual:L},...z===void 0?{}:{segundosDelPaso:z}},`pulso-${$e.desde}`),Ct=$e.rojoFinal===void 0?null:o.jsx(_U,{veredicto:$e.rojoFinal,...f===void 0?{}:{alAbrirFichero:f},...h===void 0?{}:{alPedirCorreccion:h}});return Le.length===0?Ct===null?yt:o.jsxs($.Fragment,{children:[yt,Ct]},`pulso-${$e.desde}`):o.jsxs($.Fragment,{children:[yt,Ct,o.jsxs("div",{className:`${hr.flowItem} ${we.artefactosDelTramo}`,children:[Ae.length===0?null:o.jsx(wU,{actos:Ae,alAbrir:m}),ut.map((Qt,An)=>o.jsx(jU,{acto:Qt,sesion:d,alAbrir:m},`${$e.desde}-${An}`))]})]},`pulso-${$e.desde}`)}const{acto:ae,indice:be}=E;if(ae.tipo==="usuario")return o.jsxs("div",{className:`${hr.flowItem} ${we.usuario} ${we.inicioDeTurno}`,children:[o.jsx("span",{className:we.columnaDelAvatar,"aria-hidden":"true",children:o.jsx("span",{className:we.avatarDeLaPersona,children:o.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("circle",{cx:"12",cy:"8",r:"4"}),o.jsx("path",{d:"M4 21a8 8 0 0 1 16 0"})]})})}),o.jsxs("div",{className:we.cuerpoDeLaPersona,children:[o.jsxs("p",{className:we.autor,children:[o.jsx("span",{className:we.nombreDelAutor,children:"Tú"}),ae.cuando===void 0||xm(ae.cuando)===void 0?null:o.jsxs("span",{className:we.cifrasDelAutor,children:[" · ",o.jsx(i6,{cuando:ae.cuando,clase:void 0})]}),ae.texto===""?null:o.jsx("span",{className:we.copiarDelAutor,children:o.jsx(pu,{texto:ae.texto,etiqueta:"Copiar el mensaje"})})]}),ae.texto===""?null:o.jsx("div",{className:we.textoDeLaPersona,children:ae.texto}),ae.adjuntos===void 0||ae.adjuntos.length===0?null:o.jsx("ul",{className:we.adjuntosDelMensaje,children:ae.adjuntos.map(($e,pe)=>o.jsx("li",{className:we.adjuntoDelMensaje,children:$e},`${be}-${pe}`))})]})]},be);if(ae.tipo==="propuesta-de-tareas"){const $e=C.get(ae.id),pe=ae.id;return o.jsx("div",{className:hr.flowItem,children:o.jsx(AO,{motivo:ae.motivo,tareas:ae.tareas,...$e===void 0?{}:{resuelta:$e},...$e===void 0&&y!==void 0?{alEncolar:Le=>y(pe,Le),..._===void 0?{}:{alDescartar:()=>_(pe)},...g===void 0?{}:{alHacerEnChat:()=>g(pe)}}:{}})},be)}if(ae.tipo==="consulta"){const $e=(j==null?void 0:j.indice)===be&&b!==void 0,pe=A.get(be);return o.jsx("div",{className:hr.flowItem,children:o.jsx(yO,{pregunta:ae.pregunta,opciones:ae.opciones,...$e?{alElegir:b}:{},...pe===void 0?{}:{respondida:pe}})},be)}if(ae.tipo==="asistente"){const $e=S.get(be),pe=$e===void 0?ae.texto:r6(ae.texto,$e.pregunta,$e.opciones);return pe===""?null:o.jsxs("div",{className:`${hr.flowItem} ${we.globo} ${we.asistente} md-cuerpo`,children:[o.jsx(rc,{text:ac(pe),streaming:t&&be===M,codeLabels:oc}),o.jsxs("div",{className:we.acciones,children:[o.jsx(i6,{cuando:ae.cuando,clase:we.hora}),o.jsx(pu,{texto:ae.texto,etiqueta:"Copiar la respuesta"})]})]},be)}return ae.tipo==="sistema"?o.jsx("p",{role:"note",className:`${hr.flowItem} ${we.sistema}`,children:ae.texto},be):ae.tipo==="error"?o.jsx("p",{className:`${hr.flowItem} ${we.globo} ${we.error}`,children:ae.texto},be):null})()))]})}),Ne?null:o.jsxs("button",{type:"button",className:we.irAlFinal,"aria-label":ne,title:ne,onClick:B,children:[o.jsx(PL,{}),O===0?null:o.jsx("span",{className:we.irAlFinalCuenta,"aria-hidden":"true",children:O>99?"99+":O})]})]})}function i6({cuando:e,clase:t}){if(e===void 0)return null;const n=xm(e);if(n===void 0)return null;const r=YL(e);return o.jsx("time",{className:t,dateTime:e,...r===void 0?{}:{title:r},children:n})}function $U({actos:e,turnoEnVuelo:t,historica:n,sinAprobacion:r,trabajoAlAbrir:a,segundosEnVuelo:i,proyecto:l,modelo:u,sesion:d,alAbrirArtefacto:m,alAbrirFichero:f,alPedirCorreccion:h,alResponderConsulta:b,alEncolarPropuesta:y,alHacerPropuestaEnChat:g,alDescartarPropuesta:_}){return o.jsx("div",{className:_n.body,children:o.jsx("div",{className:_n.viewArea,children:o.jsx(SU,{actos:e,turnoEnVuelo:t===!0,historica:n===!0,sinAprobacion:r===!0,...a===void 0?{}:{trabajoAlAbrir:a},...i===void 0?{}:{segundosEnVuelo:i},...l===void 0?{}:{proyecto:l},...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}})})})}var Kc={},ff,l6;function AU(){return l6||(l6=1,ff=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ff}var gf={},Ri={},c6;function lc(){if(c6)return Ri;c6=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ri.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Ri.getSymbolTotalCodewords=function(r){return t[r]},Ri.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},Ri.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},Ri.isKanjiModeEnabled=function(){return typeof e<"u"},Ri.toSJIS=function(r){return e(r)},Ri}var vf={},u6;function V2(){return u6||(u6=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(vf)),vf}var bf,d6;function EU(){if(d6)return bf;d6=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},bf=e,bf}var yf,p6;function DU(){if(p6)return yf;p6=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,a){const i=t*this.size+n;this.data[i]=r,a&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},yf=e,yf}var xf={},m6;function zU(){return m6||(m6=1,(function(e){const t=lc().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),l=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let d=1;d<a-1;d++)u[d]=u[d-1]-l;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),l=i.length;for(let u=0;u<l;u++)for(let d=0;d<l;d++)u===0&&d===0||u===0&&d===l-1||u===l-1&&d===0||a.push([i[u],i[d]]);return a}})(xf)),xf}var _f={},h6;function TU(){if(h6)return _f;h6=1;const e=lc().getSymbolSize,t=7;return _f.getPositions=function(r){const a=e(r);return[[0,0],[a-t,0],[0,a-t]]},_f}var wf={},f6;function MU(){return f6||(f6=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let l=0,u=0,d=0,m=null,f=null;for(let h=0;h<i;h++){u=d=0,m=f=null;for(let b=0;b<i;b++){let y=a.get(h,b);y===m?u++:(u>=5&&(l+=t.N1+(u-5)),m=y,u=1),y=a.get(b,h),y===f?d++:(d>=5&&(l+=t.N1+(d-5)),f=y,d=1)}u>=5&&(l+=t.N1+(u-5)),d>=5&&(l+=t.N1+(d-5))}return l},e.getPenaltyN2=function(a){const i=a.size;let l=0;for(let u=0;u<i-1;u++)for(let d=0;d<i-1;d++){const m=a.get(u,d)+a.get(u,d+1)+a.get(u+1,d)+a.get(u+1,d+1);(m===4||m===0)&&l++}return l*t.N2},e.getPenaltyN3=function(a){const i=a.size;let l=0,u=0,d=0;for(let m=0;m<i;m++){u=d=0;for(let f=0;f<i;f++)u=u<<1&2047|a.get(m,f),f>=10&&(u===1488||u===93)&&l++,d=d<<1&2047|a.get(f,m),f>=10&&(d===1488||d===93)&&l++}return l*t.N3},e.getPenaltyN4=function(a){let i=0;const l=a.data.length;for(let d=0;d<l;d++)i+=a.data[d];return Math.abs(Math.ceil(i*100/l/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const l=i.size;for(let u=0;u<l;u++)for(let d=0;d<l;d++)i.isReserved(d,u)||i.xor(d,u,n(a,d,u))},e.getBestMask=function(a,i){const l=Object.keys(e.Patterns).length;let u=0,d=1/0;for(let m=0;m<l;m++){i(m),e.applyMask(m,a);const f=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(m,a),f<d&&(d=f,u=m)}return u}})(wf)),wf}var Mp={},g6;function Ky(){if(g6)return Mp;g6=1;const e=V2(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Mp.getBlocksCount=function(a,i){switch(i){case e.L:return t[(a-1)*4+0];case e.M:return t[(a-1)*4+1];case e.Q:return t[(a-1)*4+2];case e.H:return t[(a-1)*4+3];default:return}},Mp.getTotalCodewordsCount=function(a,i){switch(i){case e.L:return n[(a-1)*4+0];case e.M:return n[(a-1)*4+1];case e.Q:return n[(a-1)*4+2];case e.H:return n[(a-1)*4+3];default:return}},Mp}var jf={},S0={},v6;function LU(){if(v6)return S0;v6=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let a=0;a<255;a++)e[a]=r,t[r]=a,r<<=1,r&256&&(r^=285);for(let a=255;a<512;a++)e[a]=e[a-255]})(),S0.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},S0.exp=function(r){return e[r]},S0.mul=function(r,a){return r===0||a===0?0:e[t[r]+t[a]]},S0}var b6;function IU(){return b6||(b6=1,(function(e){const t=LU();e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let l=0;l<r.length;l++)for(let u=0;u<a.length;u++)i[l+u]^=t.mul(r[l],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const l=i[0];for(let d=0;d<a.length;d++)i[d]^=t.mul(a[d],l);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(jf)),jf}var Cf,y6;function PU(){if(y6)return Cf;y6=1;const e=IU();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(r.length+this.degree);a.set(r);const i=e.mod(a,this.genPoly),l=this.degree-i.length;if(l>0){const u=new Uint8Array(this.degree);return u.set(i,l),u}return i},Cf=t,Cf}var kf={},Nf={},Sf={},x6;function Jy(){return x6||(x6=1,Sf.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Sf}var cs={},_6;function e9(){if(_6)return cs;_6=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
475
|
-
]))+`;cs.KANJI=new RegExp(n,"g"),cs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),cs.BYTE=new RegExp(r,"g"),cs.NUMERIC=new RegExp(e,"g"),cs.ALPHANUMERIC=new RegExp(t,"g");const a=new RegExp("^"+n+"$"),i=new RegExp("^"+e+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return cs.testKanji=function(d){return a.test(d)},cs.testNumeric=function(d){return i.test(d)},cs.testAlphanumeric=function(d){return l.test(d)},cs}var w6;function cc(){return w6||(w6=1,(function(e){const t=Jy(),n=e9();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,l){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?i.ccBits[0]:l<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(i,l){if(e.isValid(i))return i;try{return r(i)}catch{return l}}})(Nf)),Nf}var j6;function RU(){return j6||(j6=1,(function(e){const t=lc(),n=Ky(),r=V2(),a=cc(),i=Jy(),l=7973,u=t.getBCHDigit(l);function d(b,y,g){for(let _=1;_<=40;_++)if(y<=e.getCapacity(_,g,b))return _}function m(b,y){return a.getCharCountIndicator(b,y)+4}function f(b,y){let g=0;return b.forEach(function(_){const j=m(_.mode,y);g+=j+_.getBitsLength()}),g}function h(b,y){for(let g=1;g<=40;g++)if(f(b,g)<=e.getCapacity(g,y,a.MIXED))return g}e.from=function(y,g){return i.isValid(y)?parseInt(y,10):g},e.getCapacity=function(y,g,_){if(!i.isValid(y))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=a.BYTE);const j=t.getSymbolTotalCodewords(y),C=n.getTotalCodewordsCount(y,g),S=(j-C)*8;if(_===a.MIXED)return S;const A=S-m(_,y);switch(_){case a.NUMERIC:return Math.floor(A/10*3);case a.ALPHANUMERIC:return Math.floor(A/11*2);case a.KANJI:return Math.floor(A/13);case a.BYTE:default:return Math.floor(A/8)}},e.getBestVersionForData=function(y,g){let _;const j=r.from(g,r.M);if(Array.isArray(y)){if(y.length>1)return h(y,j);if(y.length===0)return 1;_=y[0]}else _=y;return d(_.mode,_.getLength(),j)},e.getEncodedBits=function(y){if(!i.isValid(y)||y<7)throw new Error("Invalid QR Code version");let g=y<<12;for(;t.getBCHDigit(g)-u>=0;)g^=l<<t.getBCHDigit(g)-u;return y<<12|g}})(kf)),kf}var $f={},C6;function qU(){if(C6)return $f;C6=1;const e=lc(),t=1335,n=21522,r=e.getBCHDigit(t);return $f.getEncodedBits=function(i,l){const u=i.bit<<3|l;let d=u<<10;for(;e.getBCHDigit(d)-r>=0;)d^=t<<e.getBCHDigit(d)-r;return(u<<10|d)^n},$f}var Af={},Ef,k6;function FU(){if(k6)return Ef;k6=1;const e=cc();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let a,i,l;for(a=0;a+3<=this.data.length;a+=3)i=this.data.substr(a,3),l=parseInt(i,10),r.put(l,10);const u=this.data.length-a;u>0&&(i=this.data.substr(a),l=parseInt(i,10),r.put(l,u*3+1))},Ef=t,Ef}var Df,N6;function OU(){if(N6)return Df;N6=1;const e=cc(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(a){let i;for(i=0;i+2<=this.data.length;i+=2){let l=t.indexOf(this.data[i])*45;l+=t.indexOf(this.data[i+1]),a.put(l,11)}this.data.length%2&&a.put(t.indexOf(this.data[i]),6)},Df=n,Df}var zf,S6;function BU(){if(S6)return zf;S6=1;const e=cc();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,a=this.data.length;r<a;r++)n.put(this.data[r],8)},zf=t,zf}var Tf,$6;function UU(){if($6)return Tf;$6=1;const e=cc(),t=lc();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(a){return a*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let a;for(a=0;a<this.data.length;a++){let i=t.toSJIS(this.data[a]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
|
|
476
|
-
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),r.put(i,13)}},Tf=n,Tf}var Mf={exports:{}},A6;function HU(){return A6||(A6=1,(function(e){var t={single_source_shortest_paths:function(n,r,a){var i={},l={};l[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var d,m,f,h,b,y,g,_,j;!u.empty();){d=u.pop(),m=d.value,h=d.cost,b=n[m]||{};for(f in b)b.hasOwnProperty(f)&&(y=b[f],g=h+y,_=l[f],j=typeof l[f]>"u",(j||_>g)&&(l[f]=g,u.push(f,g),i[f]=m))}if(typeof a<"u"&&typeof l[a]>"u"){var C=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(C)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),n[i],i=n[i];return a.reverse(),a},find_path:function(n,r,a){var i=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},i;n=n||{};for(i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Mf)),Mf.exports}var E6;function VU(){return E6||(E6=1,(function(e){const t=cc(),n=FU(),r=OU(),a=BU(),i=UU(),l=e9(),u=lc(),d=HU();function m(C){return unescape(encodeURIComponent(C)).length}function f(C,S,A){const M=[];let L;for(;(L=C.exec(A))!==null;)M.push({data:L[0],index:L.index,mode:S,length:L[0].length});return M}function h(C){const S=f(l.NUMERIC,t.NUMERIC,C),A=f(l.ALPHANUMERIC,t.ALPHANUMERIC,C);let M,L;return u.isKanjiModeEnabled()?(M=f(l.BYTE,t.BYTE,C),L=f(l.KANJI,t.KANJI,C)):(M=f(l.BYTE_KANJI,t.BYTE,C),L=[]),S.concat(A,M,L).sort(function(P,H){return P.index-H.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function b(C,S){switch(S){case t.NUMERIC:return n.getBitsLength(C);case t.ALPHANUMERIC:return r.getBitsLength(C);case t.KANJI:return i.getBitsLength(C);case t.BYTE:return a.getBitsLength(C)}}function y(C){return C.reduce(function(S,A){const M=S.length-1>=0?S[S.length-1]:null;return M&&M.mode===A.mode?(S[S.length-1].data+=A.data,S):(S.push(A),S)},[])}function g(C){const S=[];for(let A=0;A<C.length;A++){const M=C[A];switch(M.mode){case t.NUMERIC:S.push([M,{data:M.data,mode:t.ALPHANUMERIC,length:M.length},{data:M.data,mode:t.BYTE,length:M.length}]);break;case t.ALPHANUMERIC:S.push([M,{data:M.data,mode:t.BYTE,length:M.length}]);break;case t.KANJI:S.push([M,{data:M.data,mode:t.BYTE,length:m(M.data)}]);break;case t.BYTE:S.push([{data:M.data,mode:t.BYTE,length:m(M.data)}])}}return S}function _(C,S){const A={},M={start:{}};let L=["start"];for(let z=0;z<C.length;z++){const P=C[z],H=[];for(let R=0;R<P.length;R++){const F=P[R],U=""+z+R;H.push(U),A[U]={node:F,lastCount:0},M[U]={};for(let Z=0;Z<L.length;Z++){const re=L[Z];A[re]&&A[re].node.mode===F.mode?(M[re][U]=b(A[re].lastCount+F.length,F.mode)-b(A[re].lastCount,F.mode),A[re].lastCount+=F.length):(A[re]&&(A[re].lastCount=F.length),M[re][U]=b(F.length,F.mode)+4+t.getCharCountIndicator(F.mode,S))}}L=H}for(let z=0;z<L.length;z++)M[L[z]].end=0;return{map:M,table:A}}function j(C,S){let A;const M=t.getBestModeForData(C);if(A=t.from(S,M),A!==t.BYTE&&A.bit<M.bit)throw new Error('"'+C+'" cannot be encoded with mode '+t.toString(A)+`.
|
|
477
|
-
Suggested mode is: `+t.toString(M));switch(A===t.KANJI&&!u.isKanjiModeEnabled()&&(A=t.BYTE),A){case t.NUMERIC:return new n(C);case t.ALPHANUMERIC:return new r(C);case t.KANJI:return new i(C);case t.BYTE:return new a(C)}}e.fromArray=function(S){return S.reduce(function(A,M){return typeof M=="string"?A.push(j(M,null)):M.data&&A.push(j(M.data,M.mode)),A},[])},e.fromString=function(S,A){const M=h(S,u.isKanjiModeEnabled()),L=g(M),z=_(L,A),P=d.find_path(z.map,"start","end"),H=[];for(let R=1;R<P.length-1;R++)H.push(z.table[P[R]].node);return e.fromArray(y(H))},e.rawSplit=function(S){return e.fromArray(h(S,u.isKanjiModeEnabled()))}})(Af)),Af}var D6;function GU(){if(D6)return gf;D6=1;const e=lc(),t=V2(),n=EU(),r=DU(),a=zU(),i=TU(),l=MU(),u=Ky(),d=PU(),m=RU(),f=qU(),h=cc(),b=VU();function y(z,P){const H=z.size,R=i.getPositions(P);for(let F=0;F<R.length;F++){const U=R[F][0],Z=R[F][1];for(let re=-1;re<=7;re++)if(!(U+re<=-1||H<=U+re))for(let le=-1;le<=7;le++)Z+le<=-1||H<=Z+le||(re>=0&&re<=6&&(le===0||le===6)||le>=0&&le<=6&&(re===0||re===6)||re>=2&&re<=4&&le>=2&&le<=4?z.set(U+re,Z+le,!0,!0):z.set(U+re,Z+le,!1,!0))}}function g(z){const P=z.size;for(let H=8;H<P-8;H++){const R=H%2===0;z.set(H,6,R,!0),z.set(6,H,R,!0)}}function _(z,P){const H=a.getPositions(P);for(let R=0;R<H.length;R++){const F=H[R][0],U=H[R][1];for(let Z=-2;Z<=2;Z++)for(let re=-2;re<=2;re++)Z===-2||Z===2||re===-2||re===2||Z===0&&re===0?z.set(F+Z,U+re,!0,!0):z.set(F+Z,U+re,!1,!0)}}function j(z,P){const H=z.size,R=m.getEncodedBits(P);let F,U,Z;for(let re=0;re<18;re++)F=Math.floor(re/3),U=re%3+H-8-3,Z=(R>>re&1)===1,z.set(F,U,Z,!0),z.set(U,F,Z,!0)}function C(z,P,H){const R=z.size,F=f.getEncodedBits(P,H);let U,Z;for(U=0;U<15;U++)Z=(F>>U&1)===1,U<6?z.set(U,8,Z,!0):U<8?z.set(U+1,8,Z,!0):z.set(R-15+U,8,Z,!0),U<8?z.set(8,R-U-1,Z,!0):U<9?z.set(8,15-U-1+1,Z,!0):z.set(8,15-U-1,Z,!0);z.set(R-8,8,1,!0)}function S(z,P){const H=z.size;let R=-1,F=H-1,U=7,Z=0;for(let re=H-1;re>0;re-=2)for(re===6&&re--;;){for(let le=0;le<2;le++)if(!z.isReserved(F,re-le)){let ee=!1;Z<P.length&&(ee=(P[Z]>>>U&1)===1),z.set(F,re-le,ee),U--,U===-1&&(Z++,U=7)}if(F+=R,F<0||H<=F){F-=R,R=-R;break}}}function A(z,P,H){const R=new n;H.forEach(function(le){R.put(le.mode.bit,4),R.put(le.getLength(),h.getCharCountIndicator(le.mode,z)),le.write(R)});const F=e.getSymbolTotalCodewords(z),U=u.getTotalCodewordsCount(z,P),Z=(F-U)*8;for(R.getLengthInBits()+4<=Z&&R.put(0,4);R.getLengthInBits()%8!==0;)R.putBit(0);const re=(Z-R.getLengthInBits())/8;for(let le=0;le<re;le++)R.put(le%2?17:236,8);return M(R,z,P)}function M(z,P,H){const R=e.getSymbolTotalCodewords(P),F=u.getTotalCodewordsCount(P,H),U=R-F,Z=u.getBlocksCount(P,H),re=R%Z,le=Z-re,ee=Math.floor(R/Z),ke=Math.floor(U/Z),_e=ke+1,ie=ee-ke,Ne=new d(ie);let B=0;const O=new Array(Z),ne=new Array(Z);let E=0;const ue=new Uint8Array(z.buffer);for(let Le=0;Le<Z;Le++){const Ae=Le<le?ke:_e;O[Le]=ue.slice(B,B+Ae),ne[Le]=Ne.encode(O[Le]),B+=Ae,E=Math.max(E,Ae)}const ae=new Uint8Array(R);let be=0,$e,pe;for($e=0;$e<E;$e++)for(pe=0;pe<Z;pe++)$e<O[pe].length&&(ae[be++]=O[pe][$e]);for($e=0;$e<ie;$e++)for(pe=0;pe<Z;pe++)ae[be++]=ne[pe][$e];return ae}function L(z,P,H,R){let F;if(Array.isArray(z))F=b.fromArray(z);else if(typeof z=="string"){let ee=P;if(!ee){const ke=b.rawSplit(z);ee=m.getBestVersionForData(ke,H)}F=b.fromString(z,ee||40)}else throw new Error("Invalid data");const U=m.getBestVersionForData(F,H);if(!U)throw new Error("The amount of data is too big to be stored in a QR Code");if(!P)P=U;else if(P<U)throw new Error(`
|
|
478
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
479
|
-
Minimum version required to store current data is: `+U+`.
|
|
480
|
-
`);const Z=A(P,H,F),re=e.getSymbolSize(P),le=new r(re);return y(le,P),g(le),_(le,P),C(le,H,0),P>=7&&j(le,P),S(le,Z),isNaN(R)&&(R=l.getBestMask(le,C.bind(null,le,H))),l.applyMask(R,le),C(le,H,R),{modules:le,version:P,errorCorrectionLevel:H,maskPattern:R,segments:F}}return gf.create=function(P,H){if(typeof P>"u"||P==="")throw new Error("No input text");let R=t.M,F,U;return typeof H<"u"&&(R=t.from(H.errorCorrectionLevel,t.M),F=m.from(H.version),U=l.from(H.maskPattern),H.toSJISFunc&&e.setToSJISFunction(H.toSJISFunc)),L(P,F,R,U)},gf}var Lf={},If={},z6;function t9(){return z6||(z6=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,i=r.width&&r.width>=21?r.width:void 0,l=r.scale||4;return{width:i,scale:i?4:l,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const i=e.getScale(r,a);return Math.floor((r+a.margin*2)*i)},e.qrToImageData=function(r,a,i){const l=a.modules.size,u=a.modules.data,d=e.getScale(l,i),m=Math.floor((l+i.margin*2)*d),f=i.margin*d,h=[i.color.light,i.color.dark];for(let b=0;b<m;b++)for(let y=0;y<m;y++){let g=(b*m+y)*4,_=i.color.light;if(b>=f&&y>=f&&b<m-f&&y<m-f){const j=Math.floor((b-f)/d),C=Math.floor((y-f)/d);_=h[u[j*l+C]?1:0]}r[g++]=_.r,r[g++]=_.g,r[g++]=_.b,r[g]=_.a}}})(If)),If}var T6;function WU(){return T6||(T6=1,(function(e){const t=t9();function n(a,i,l){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=l,i.width=l,i.style.height=l+"px",i.style.width=l+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,l,u){let d=u,m=l;typeof d>"u"&&(!l||!l.getContext)&&(d=l,l=void 0),l||(m=r()),d=t.getOptions(d);const f=t.getImageWidth(i.modules.size,d),h=m.getContext("2d"),b=h.createImageData(f,f);return t.qrToImageData(b.data,i,d),n(h,m,f),h.putImageData(b,0,0),m},e.renderToDataURL=function(i,l,u){let d=u;typeof d>"u"&&(!l||!l.getContext)&&(d=l,l=void 0),d||(d={});const m=e.render(i,l,d),f=d.type||"image/png",h=d.rendererOpts||{};return m.toDataURL(f,h.quality)}})(Lf)),Lf}var Pf={},M6;function ZU(){if(M6)return Pf;M6=1;const e=t9();function t(a,i){const l=a.a/255,u=i+'="'+a.hex+'"';return l<1?u+" "+i+'-opacity="'+l.toFixed(2).slice(1)+'"':u}function n(a,i,l){let u=a+i;return typeof l<"u"&&(u+=" "+l),u}function r(a,i,l){let u="",d=0,m=!1,f=0;for(let h=0;h<a.length;h++){const b=Math.floor(h%i),y=Math.floor(h/i);!b&&!m&&(m=!0),a[h]?(f++,h>0&&b>0&&a[h-1]||(u+=m?n("M",b+l,.5+y+l):n("m",d,0),d=0,m=!1),b+1<i&&a[h+1]||(u+=n("h",f),f=0)):d++}return u}return Pf.render=function(i,l,u){const d=e.getOptions(l),m=i.modules.size,f=i.modules.data,h=m+d.margin*2,b=d.color.light.a?"<path "+t(d.color.light,"fill")+' d="M0 0h'+h+"v"+h+'H0z"/>':"",y="<path "+t(d.color.dark,"stroke")+' d="'+r(f,m,d.margin)+'"/>',g='viewBox="0 0 '+h+" "+h+'"',j='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+g+' shape-rendering="crispEdges">'+b+y+`</svg>
|
|
481
|
-
`;return typeof u=="function"&&u(null,j),j},Pf}var L6;function QU(){if(L6)return Kc;L6=1;const e=AU(),t=GU(),n=WU(),r=ZU();function a(i,l,u,d,m){const f=[].slice.call(arguments,1),h=f.length,b=typeof f[h-1]=="function";if(!b&&!e())throw new Error("Callback required as last argument");if(b){if(h<2)throw new Error("Too few arguments provided");h===2?(m=u,u=l,l=d=void 0):h===3&&(l.getContext&&typeof m>"u"?(m=d,d=void 0):(m=d,d=u,u=l,l=void 0))}else{if(h<1)throw new Error("Too few arguments provided");return h===1?(u=l,l=d=void 0):h===2&&!l.getContext&&(d=u,u=l,l=void 0),new Promise(function(y,g){try{const _=t.create(u,d);y(i(_,l,d))}catch(_){g(_)}})}try{const y=t.create(u,d);m(null,i(y,l,d))}catch(y){m(y)}}return Kc.create=t.create,Kc.toCanvas=a.bind(null,n.render),Kc.toDataURL=a.bind(null,n.renderToDataURL),Kc.toString=a.bind(null,function(i,l,u){return r.render(i,u)}),Kc}var XU=QU();const YU=xx(XU),KU="_boton_155oc_1 _secundario_1l1rx_39",JU="_secundario_155oc_19 _secundario_1l1rx_39",eH="_primario_155oc_22 _primario_1l1rx_67",tH="_pista_155oc_26 _pista_tczu2_13",nH="_mitad_155oc_30 _mitad_tczu2_29",rH="_peligro_155oc_33 _peligro_1l1rx_18",aH="_ventana_155oc_37",oH="_qr_155oc_40",sH="_enlace_155oc_47",iH="_url_155oc_57",lH="_estado_155oc_66",cH="_aviso_155oc_72",uH="_error_155oc_76",Un={boton:KU,secundario:JU,primario:eH,pista:tH,mitad:nH,peligro:rH,ventana:aH,qr:oH,enlace:sH,url:iH,estado:lH,aviso:cH,error:uH},dH=[{via:"ngrok",etiqueta:"Túnel local (ngrok)",que:"La sesión sale por un túnel de ngrok de esta máquina: necesita ngrok instalado y su authtoken"},{via:"servidor",etiqueta:"Servidor de XOne",que:"La sesión pasa por un servidor del relé publicado: necesita uno configurado en settings.json como remoto.servidor"}];function I6(e){if((e.via??"ngrok")==="ngrok"){if(e.ngrok===void 0)return"ngrok todavía no se ha medido en esta máquina.";if(!e.ngrok.instalado)return"ngrok no está instalado en esta máquina.";if(!e.ngrok.cuenta)return"A ngrok le falta el authtoken de tu cuenta."}}function pH(e){return e.estado==="activa"?`Sesión remota: activa (${e.moviles} aparato${e.moviles===1?"":"s"})`:e.estado==="abriendo"?"Sesión remota: abriendo…":e.estado==="reconectando"?"Sesión remota: reconectando…":e.estado==="error"?"Sesión remota: error":"Sesión remota"}function mH({remoto:e,enviar:t,abierto:n=!1,alAbrirAjustes:r}){const[a,i]=$.useState(n),[l,u]=$.useState(void 0),d=$.useRef(null),m=e!==void 0&&"url"in e?e.url:void 0,f=e==null?void 0:e.estado,h=$.useRef(f);if($.useEffect(()=>{const y=h.current;h.current=f,(f===void 0||f==="apagada"&&y!=="apagada"&&y!==void 0)&&i(!1)},[f]),$.useEffect(()=>{let y=!0;if(m===void 0){u(void 0);return}return YU.toString(m,{type:"svg",margin:1}).then(g=>{y&&u(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(g)}`)}).catch(()=>{y&&u(void 0)}),()=>{y=!1}},[m]),e===void 0||e.habilitado===!1&&e.estado==="apagada")return null;const b=()=>{var y;i(!1),(y=d.current)==null||y.focus()};return o.jsxs(o.Fragment,{children:[o.jsx("button",{ref:d,type:"button",className:Un.boton,"aria-label":"Sesión remota",title:pH(e),"data-estado":e.estado,onClick:()=>i(!0),children:o.jsx(qL,{})}),a?o.jsx(Zn,{open:!0,onClose:b,title:"Sesión remota",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:y=>{y.target===y.currentTarget&&b()},children:o.jsxs("div",{className:`${ge.ventana} ${Un.ventana}`,children:[o.jsx("h2",{className:ge.titulo,children:"Sesión remota"}),e.estado==="abriendo"?o.jsx("p",{className:ge.nota,children:"Abriendo la sesión remota…"}):null,e.estado==="reconectando"&&e.url===void 0?o.jsx("p",{className:ge.nota,children:"No se puede llegar al puente; se sigue intentando…"}):null,e.estado==="apagada"?o.jsx("p",{className:ge.nota,children:"La sesión remota está apagada."}):null,e.estado==="error"?o.jsx("p",{className:Un.error,children:e.motivo}):null,e.estado==="apagada"||e.estado==="error"?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Un.pista,role:"group","aria-label":"vía de la sesión remota",children:dH.map(({via:y,etiqueta:g,que:_})=>{const j=(e.via??"ngrok")===y;return o.jsx("button",{type:"button",className:Un.mitad,"aria-pressed":j,"data-puesto":j?"":void 0,title:_,onClick:()=>{j||t({clase:"remoto",accion:"via",via:y})},children:g},y)})}),I6(e)!==void 0?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Un.aviso,children:[I6(e)," Prepáralo en Ajustes antes de encender la sesión por este túnel."]}),r!==void 0?o.jsx("div",{className:ge.acciones,children:o.jsx("button",{type:"button",className:Un.secundario,onClick:()=>{b(),r()},children:"Abrir Ajustes"})}):null]}):o.jsx("div",{className:ge.acciones,children:o.jsx("button",{type:"button",className:Un.primario,onClick:()=>void t({clase:"remoto",accion:"encender"}),children:"Encender"})})]}):null,e.estado==="abriendo"||e.estado==="reconectando"&&e.url===void 0?o.jsx("div",{className:ge.acciones,children:o.jsx("button",{type:"button",className:Un.peligro,onClick:()=>void t({clase:"remoto",accion:"apagar"}),children:"Apagar"})}):null,(e.estado==="activa"||e.estado==="reconectando")&&e.url!==void 0?o.jsxs(o.Fragment,{children:[l!==void 0?o.jsx("img",{className:Un.qr,src:l,alt:"Código QR de la sesión remota"}):null,o.jsxs("div",{className:Un.enlace,children:[o.jsx("p",{className:Un.url,children:e.url}),o.jsx(pu,{texto:e.url,etiqueta:"Copiar enlace"})]}),o.jsxs("p",{className:Un.estado,children:[e.moviles," aparato",e.moviles===1?"":"s"," conectado",e.moviles===1?"":"s"]}),e.estado==="reconectando"?o.jsx("p",{className:Un.estado,children:"Reconectando…"}):null,o.jsx("p",{className:Un.aviso,children:(e.via??"ngrok")==="ngrok"?"Sale por un túnel de ngrok de esta máquina.":"Sale por el servidor de XOne."}),(e.via??"ngrok")==="ngrok"?o.jsx("p",{className:Un.aviso,children:"La primera vez, el móvil enseña un aviso de ngrok: pulsa «Visit Site» para continuar."}):null,o.jsx("p",{className:Un.aviso,children:"Quien tenga este enlace controla esta sesión hasta que lo revoques o la apagues."}),o.jsxs("div",{className:ge.acciones,children:[o.jsx("button",{type:"button",className:Un.secundario,onClick:()=>void t({clase:"remoto",accion:"revocar"}),children:"Revocar enlace"}),o.jsx("button",{type:"button",className:Un.peligro,onClick:()=>void t({clase:"remoto",accion:"apagar"}),children:"Apagar"})]})]}):null,o.jsx("div",{className:ge.acciones,children:o.jsx("button",{type:"button",className:Un.secundario,onClick:b,autoFocus:!0,children:"Cerrar"})})]})})}):null]})}const hH="_barra_65uy2_4",fH="_pieza_65uy2_16",gH="_separador_65uy2_20",us={barra:hH,pieza:fH,separador:gH};function vH(e,t){if(e===void 0||e<=0)return"";const n=t!==void 0?` (${Math.round(e/t*100)}%)`:"",r=t!==void 0?`/${St(t)}`:"";return`ctx ${St(e)}${r}${n}`}function bH({turnos:e,pasos:t,ms:n,contexto:r,tope:a,segundosEnVuelo:i}){const l=vH(r,a);return o.jsxs("footer",{className:us.barra,children:[o.jsxs("span",{className:us.pieza,children:[e," turno",e===1?"":"s"]}),o.jsx("span",{className:us.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:us.pieza,children:[t," paso",t===1?"":"s"]}),i!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:us.separador,"aria-hidden":"true",children:"·"}),o.jsxs("span",{className:us.pieza,children:["trabajando · ",i," s"]})]}):n!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:us.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:us.pieza,children:wm(n)})]}):null,l!==""&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:us.separador,"aria-hidden":"true",children:"·"}),o.jsx("span",{className:us.pieza,children:l})]})]})}const yH="_avisoDeConexion_i8cof_17",xH={avisoDeConexion:yH};function $0({conectado:e}){return o.jsx("div",{className:xH.avisoDeConexion,children:o.jsx(Tz,{reconnecting:!e,label:"sin conexión con XOneCode — reintentando…"})})}function G2(e){const t=[];for(const n of e){const r=n.split("/");let a=t,i="";r.forEach((l,u)=>{i=i===""?l:`${i}/${l}`;const d=u===r.length-1;let m=a.find(f=>f.nombre===l&&f.hijos!==void 0==!d);m===void 0&&(m=d?{nombre:l,ruta:i}:{nombre:l,ruta:i,hijos:[]},a.push(m)),d||(a=m.hijos)})}return t}function t1(e){return e.hijos===void 0?[e.ruta]:e.hijos.flatMap(t1)}function n9(e,t){const n=t1(e),r=n.filter(a=>t.has(a)).length;return r===0?"ninguna":r===n.length?"todas":"algunas"}function P6(e,t){const n=new Set(t),r=n9(e,t)!=="todas";for(const a of t1(e))r?n.add(a):n.delete(a);return n}function J0(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 R6(e){if(!(e===void 0||e.error!==void 0||J0(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 Wg(e){const t=(e.match(/\r\n/g)??[]).length,n=(e.match(/\n/g)??[]).length-t;return t>n?`\r
|
|
482
|
-
`:`
|
|
483
|
-
`}function q6(e){return e.replace(/\r\n?/g,`
|
|
484
|
-
`)}function _H(e,t){return t===`
|
|
485
|
-
`?e:e.replace(/\n/g,`\r
|
|
486
|
-
`)}const wH=1e6;function jH(e){return new TextEncoder().encode(JSON.stringify(e)).length<=wH}const CH=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 r9(e){const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");return n<=0?void 0:t.slice(n+1).toLowerCase()}function a9(e){const t=r9(e);return(t===void 0?void 0:CH.get(t))??"otro"}const kH=new Map([["xne","XML de XOne"],["xml","XML"],["svg","XML"],["js","JavaScript"],["css","CSS"],["md","Markdown"],["json","JSON"],["ini","INI"],["html","HTML"]]);function NH(e){if(e==="")return 0;const t=(e.match(/\n/g)??[]).length;return e.endsWith(`
|
|
487
|
-
`)?t:t+1}function Rf(e,t,n){if(t===void 0||t.error!==void 0)return[];if(t.texto===void 0)return[];const r=r9(e),a=[(r===void 0?void 0:kH.get(r))??"Texto"];if(!t.recortado){const l=NH(t.texto);a.push(`${l} ${l===1?"línea":"líneas"}`)}t.codificacion!==void 0&&a.push(t.codificacion==="utf-8"?"UTF-8":"Latin-1");const i=t.texto.includes(`
|
|
488
|
-
`)?n??Wg(t.texto):void 0;return i!==void 0&&a.push(i===`\r
|
|
489
|
-
`?"CRLF":"LF"),a}const SH="_icono_y2rpu_6",$H="_xne_y2rpu_11",AH="_js_y2rpu_15",EH="_css_y2rpu_1",DH="_xml_y2rpu_23",zH="_config_y2rpu_26",TH="_otro_y2rpu_27",MH="_imagen_y2rpu_31",LH="_bd_y2rpu_35",IH="_markdown_y2rpu_39",PH="_fuente_y2rpu_40",RH="_carpeta_y2rpu_44",Lp={icono:SH,xne:$H,js:AH,css:EH,xml:DH,config:zH,otro:TH,imagen:MH,bd:LH,markdown:IH,fuente:PH,carpeta:RH};function km({ruta:e,carpeta:t=!1,abierta:n=!1,tamano:r=16}){if(t)return o.jsx(ym,{lado:r,className:`${Lp.icono} ${Lp.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=a9(e);return o.jsxs(ym,{lado:r,className:`${Lp.icono} ${Lp[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"}),qH[a]]})}const qH={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},FH="_nivel_18ce8_5",OH="_hoja_18ce8_14",BH="_carpeta_18ce8_15",UH="_nombre_18ce8_48",HH="_flecha_18ce8_63",VH="_insignia_18ce8_72",GH="_guia_18ce8_81",WH="_fila_18ce8_104",ZH="_casilla_18ce8_117",QH="_alFinal_18ce8_132",XH="_cuenta_18ce8_137",ga={nivel:FH,hoja:OH,carpeta:BH,nombre:UH,flecha:HH,insignia:VH,guia:GH,fila:WH,casilla:ZH,alFinal:QH,cuenta:XH};function YH(e){return`arbol-grupo-${e.replace(/[^A-Za-z0-9_-]/g,"_")}`}const Zg=e=>8+e*14;function qf(e){return Array.from({length:e},(t,n)=>o.jsx("span",{className:ga.guia,style:{left:Zg(n)+5},"data-guia":"","aria-hidden":"true"},n))}function W2({nodos:e,elegida:t,alElegir:n,filtro:r="",insignia:a,abiertas:i="primer-nivel",seleccion:l,variante:u="plano"}){const d=u==="explorador",[m,f]=$.useState(new Set),h=r.trim().toLowerCase(),b=$.useId(),y=z=>`${b}${YH(z)}`,g=z=>z.hijos===void 0?z.ruta.toLowerCase().includes(h):z.hijos.some(g),_=(z,P)=>{if(h!=="")return!0;const H=i==="todas"||i==="primer-nivel"&&P===0;return m.has(z.ruta)?!H:H},j=z=>f(P=>{const H=new Set(P);return H.has(z)?H.delete(z):H.add(z),H}),C=z=>{if(l===void 0)return null;const P=n9(z,l.marcadas);return o.jsx("input",{type:"checkbox",className:ga.casilla,"aria-label":`Subir ${z.ruta}`,checked:P==="todas",disabled:l.bloqueada===!0,ref:H=>{H!==null&&(H.indeterminate=P==="algunas")},onChange:()=>l.alCambiar(P6(z,l.marcadas))})},S=(z,P,H)=>l===void 0?H:o.jsxs("div",{className:ga.fila,style:{paddingLeft:Zg(P)},children:[qf(P),C(z),H]}),A=z=>l===void 0?Zg(z):4,M=z=>{if(!d||l===void 0)return null;const P=t1(z),H=P.filter(R=>l.marcadas.has(R)).length;return o.jsxs("span",{className:ga.cuenta,"aria-hidden":"true",children:[H,"/",P.length]})},L=(z,P,H)=>o.jsx("ul",{id:H,className:ga.nivel,role:P===0?"tree":"group","data-explorador":d?"":void 0,children:z.filter(g).map(R=>R.hijos===void 0?o.jsx("li",{role:"none",children:S(R,P,o.jsxs("button",{type:"button",role:"treeitem",className:ga.hoja,style:{paddingLeft:A(P)},"aria-level":P+1,"data-fichero":a9(R.ruta),...R.ruta===t?{"aria-current":"true"}:{},"data-elegida":R.ruta===t?"":void 0,onClick:()=>l===void 0?n(R.ruta):l.bloqueada===!0?void 0:l.alCambiar(P6(R,l.marcadas)),children:[l===void 0?qf(P):null,o.jsx("span",{className:ga.flecha,"aria-hidden":"true"}),o.jsx(km,{ruta:R.ruta}),a===void 0||d?null:o.jsx("span",{className:ga.insignia,children:a(R.ruta)}),o.jsx("span",{className:ga.nombre,children:R.nombre}),a===void 0||!d?null:o.jsx("span",{className:`${ga.insignia} ${ga.alFinal}`,children:a(R.ruta)})]}))},R.ruta):o.jsxs("li",{role:"none",children:[S(R,P,o.jsxs("button",{type:"button",role:"treeitem",className:ga.carpeta,style:{paddingLeft:A(P)},"aria-expanded":_(R,P),"aria-level":P+1,"aria-label":R.nombre,"aria-owns":_(R,P)?y(R.ruta):void 0,onClick:()=>j(R.ruta),children:[l===void 0?qf(P):null,o.jsx("span",{className:ga.flecha,"aria-hidden":"true",children:_(R,P)?"▾":"▸"}),o.jsx(km,{ruta:R.ruta,carpeta:!0,abierta:_(R,P)}),o.jsx("span",{className:ga.nombre,children:R.nombre}),M(R)]})),_(R,P)?L(R.hijos,P+1,y(R.ruta)):null]},R.ruta))});return L(e,0)}const o9="s",s9="n",ed=()=>{};function Gl({texto:e,oculta:t=!1,alResponder:n,anidado:r=!1,decision:a,progreso:i,alCerrar:l}){const[u,d]=$.useState(""),[m,f]=$.useState(!1),[h,b]=$.useState(!1),y=$.useRef(!0);$.useEffect(()=>(y.current=!0,()=>{y.current=!1}),[]);const g=(C,S)=>{m||(f(!0),b(!1),Promise.resolve(S===void 0?n(C):n(C,S)).catch(()=>{y.current&&(f(!1),b(!0))}))},_=h?o.jsx("p",{className:et.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(KH,{texto:e,decision:a,enviando:m,fallo:_,alResponder:g,...i===void 0?{}:{progreso:i},...l===void 0?{}:{alCerrar:l}});if(a!==void 0&&(i==null?void 0:i.fase)==="terminada")return o.jsx(i9,{texto:e,progreso:i,alCerrar:l??ed});if(a!==void 0){const C=(i==null?void 0:i.fase)==="trabajando";return o.jsx(Zn,{open:!0,onClose:ed,title:e,headless:!0,className:et.capa,children:o.jsx("div",{className:et.velo,children:o.jsxs("div",{className:et.pregunta,children:[o.jsx("p",{className:et.titulo,children:e}),o.jsx("pre",{className:et.plan,children:a.lineas.map((S,A)=>o.jsxs($.Fragment,{children:[A>0?`
|
|
490
|
-
`:null,o.jsx("span",{"data-cambio":S.cambio,children:S.texto})]},A))}),o.jsxs("div",{className:et.decisiones,children:[o.jsxs(Re,{type:"button",variant:"primary",className:et.accion,disabled:m||C,"aria-busy":C,onClick:()=>g(o9),children:[C?o.jsx("span",{className:et.girando,"aria-hidden":"true"}):null,C?i.operacion==="bajar"?"Actualizando…":"Subiendo…":"Aceptar"]}),o.jsx(Re,{type:"button",variant:"outline",className:et.cancelar,disabled:m||C,onClick:()=>g(s9),children:"Cancelar"})]}),_]})})})}const j=t?"pregunta-secreto":"pregunta-respuesta";return o.jsxs("form",{className:et.pregunta,"data-anidado":r?"":void 0,onSubmit:C=>{C.preventDefault(),g(u)},children:[o.jsx("label",{className:et.enunciado,htmlFor:j,children:e}),o.jsxs("div",{className:et.fila,children:[o.jsx(qa,{id:j,className:et.envoltorio,autoFocus:!0,type:t?"password":"text",autoComplete:t?"off":void 0,value:u,onChange:C=>d(C.target.value)}),o.jsx(Re,{type:"submit",variant:r?"outline":"primary",className:et.accion,disabled:m,children:"Aceptar"})]}),_]})}function KH({texto:e,decision:t,enviando:n,fallo:r,alResponder:a,progreso:i,alCerrar:l}){const u=(i==null?void 0:i.fase)==="trabajando",d=$.useMemo(()=>t.lineas.flatMap(j=>j.ruta===void 0?[]:[{ruta:j.ruta,cambio:j.cambio??"modificado"}]),[t]),m=$.useMemo(()=>G2(d.map(j=>j.ruta)),[d]),f=$.useMemo(()=>new Map(d.map(j=>[j.ruta,j.cambio])),[d]),[h,b]=$.useState(()=>new Set(d.map(j=>j.ruta))),y=d.length,g=d.filter(j=>h.has(j.ruta)).length,_=n||u;return(i==null?void 0:i.fase)==="terminada"?o.jsx(i9,{texto:e,progreso:i,alCerrar:l??ed}):o.jsx(Zn,{open:!0,onClose:ed,title:e,headless:!0,className:et.capa,children:o.jsx("div",{className:et.velo,children:o.jsxs("div",{className:et.pregunta,"data-seleccionable":"",children:[o.jsx("p",{className:et.titulo,children:e}),o.jsxs("div",{className:et.herramientas,children:[o.jsxs("span",{className:et.cuenta,"aria-live":"polite",children:[g," de ",y," ",y===1?"fichero":"ficheros"]}),o.jsx("button",{type:"button",className:et.enlace,disabled:_||g===y,onClick:()=>b(new Set(d.map(j=>j.ruta))),children:"Seleccionar todo"}),o.jsx("button",{type:"button",className:et.enlace,disabled:_||g===0,onClick:()=>b(new Set),children:"Deseleccionar todo"})]}),o.jsx("div",{className:et.arbol,children:o.jsx(W2,{nodos:m,alElegir:()=>{},abiertas:"todas",variante:"explorador",seleccion:{marcadas:h,alCambiar:b,bloqueada:_},insignia:j=>{const C=f.get(j)??"modificado";return o.jsx("span",{className:et.clase,"data-clase":C,"aria-label":C,children:C==="nuevo"?"A":C==="borrado"?"D":"M"})}})}),o.jsxs("div",{className:et.decisiones,children:[o.jsxs(Re,{type:"button",variant:"primary",className:et.accion,disabled:_||g===0,"aria-busy":u,onClick:()=>a(o9,d.filter(j=>h.has(j.ruta)).map(j=>j.ruta)),children:[u?o.jsx("span",{className:et.girando,"aria-hidden":"true"}):null,u?"Subiendo…":"Aceptar"]}),o.jsx(Re,{type:"button",variant:"outline",className:et.cancelar,disabled:_,onClick:()=>a(s9),children:"Cancelar"})]}),r]})})})}function i9({texto:e,progreso:t,alCerrar:n}){const{resultado:r,bajados:a,error:i,operacion:l}=t,u=l==="subir",d=i===void 0&&(u?r!==void 0&&r.fallidos===0&&r.subidos>0:a!==void 0);let m,f;i!==void 0?(m=u?"No se ha podido subir":"No se ha podido actualizar el repo local",f=i):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&&i===void 0?(r==null?void 0:r.avisos)??[]:[];return o.jsx(Zn,{open:!0,onClose:ed,title:e,headless:!0,className:et.capa,children:o.jsx("div",{className:et.velo,children:o.jsxs("div",{className:et.pregunta,"data-seleccionable":"",children:[o.jsxs("div",{className:et.fin,"data-bien":d?"":void 0,role:"status",children:[o.jsx("span",{className:et.marcaDeFin,"aria-hidden":"true",children:d?"✓":"!"}),o.jsx("p",{className:et.titulo,children:m}),o.jsx("p",{className:et.detalle,children:f}),b.map(y=>o.jsxs("p",{className:et.detalle,"data-aviso":"",children:["Aviso: ",y,"."]},y))]}),h.length===0?null:o.jsx("pre",{className:et.plan,children:h.join(`
|
|
491
|
-
`)}),o.jsx("div",{className:et.decisiones,children:o.jsx(Re,{type:"button",variant:"primary",className:et.accion,autoFocus:!0,onClick:n,children:"Aceptar"})})]})})})}const JH="_capa_3yt5j_11",eV="_velo_3yt5j_9",tV="_tarjeta_3yt5j_25",nV="_cabecera_3yt5j_66",rV="_iconoDeCabecera_3yt5j_74",aV="_titulo_3yt5j_86",oV="_subtitulo_3yt5j_94",sV="_cuerpo_3yt5j_17",iV="_lista_3yt5j_116",lV="_ficha_3yt5j_130",cV="_claseDeFicha_3yt5j_154",uV="_nombreDeFicha_3yt5j_166",dV="_cuenta_3yt5j_176",pV="_mas_3yt5j_184",mV="_menos_3yt5j_188",hV="_pendiente_3yt5j_192",fV="_cabeceraDelDiff_3yt5j_199",gV="_descripcion_3yt5j_208",vV="_ruta_3yt5j_212",bV="_diff_3yt5j_33",yV="_linea_3yt5j_229",xV="_textoDeLinea_3yt5j_223",_V="_signo_3yt5j_244",wV="_plegado_3yt5j_261",jV="_anadido_3yt5j_296",CV="_quitado_3yt5j_305",kV="_cambio_3yt5j_315",NV="_igual_3yt5j_330",SV="_fallo_3yt5j_291",$V="_acciones_3yt5j_342",AV="_rechazar_3yt5j_354 _peligro_1l1rx_18 _grande_1l1rx_26",EV="_aprobar_3yt5j_358 _primario_1l1rx_67 _grande_1l1rx_26",Bt={capa:JH,velo:eV,tarjeta:tV,cabecera:nV,iconoDeCabecera:rV,titulo:aV,subtitulo:oV,cuerpo:sV,lista:iV,ficha:lV,claseDeFicha:cV,nombreDeFicha:uV,cuenta:dV,mas:pV,menos:mV,pendiente:hV,cabeceraDelDiff:fV,descripcion:gV,ruta:vV,diff:bV,linea:yV,textoDeLinea:xV,signo:_V,plegado:wV,anadido:jV,quitado:CV,cambio:kV,igual:NV,fallo:SV,acciones:$V,rechazar:AV,aprobar:EV},DV=3,zV=3,F6=e=>e.tipo==="igual";function TV(e,t=DV){const n=[];let r=[];const a=()=>{r.length>0&&n.push({clase:"lineas",lineas:r}),r=[]};let i=0;for(;i<e.length;){const l=e[i];if(!F6(l)){r.push(l),i+=1;continue}let u=i;for(;u<e.length&&F6(e[u]);)u+=1;const d=e.slice(i,u),m=u<e.length,h=i>0?Math.min(t,d.length):0,b=m?Math.min(t,d.length-h):0,y=d.length-h-b;y<zV?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))),i=u}return a(),n}const Ip=/[\p{L}\p{N}_-]/u,MV=.5;function LV(e,t){const n=Math.min(e.length,t.length);let r=0;for(;r<n&&e[r]===t[r];)r++;let a=0;for(;a<n-r&&e[e.length-1-a]===t[t.length-1-a];)a++;for(;r>0&&Ip.test(e[r-1])&&Ip.test(e[r]??" ");)r--;for(;a>0&&Ip.test(e[e.length-a])&&Ip.test(e[e.length-a-1]??" ");)a--;const i=l=>[{texto:l.slice(0,r),cambia:!1},{texto:l.slice(r,l.length-a),cambia:!0},{texto:l.slice(l.length-a),cambia:!1}].filter(u=>u.texto!=="");return{antes:i(e),despues:i(t)}}function l9(e){const t=new Map;let n=0;for(;n<e.length;){if(e[n].tipo!=="quitado"){n++;continue}const r=n;for(;n<e.length&&e[n].tipo==="quitado";)n++;const a=n;for(;n<e.length&&e[n].tipo==="anadido";)n++;const i=Math.min(a-r,n-a);for(let l=0;l<i;l++){const u=e[r+l].texto,d=e[a+l].texto,{antes:m,despues:f}=LV(u,d);m.filter(b=>!b.cambia).reduce((b,y)=>b+y.texto.length,0)<MV*Math.max(u.length,d.length)||(t.set(r+l,m),t.set(a+l,f))}}return t}const IV="approve",Pp="reject",PV={igual:!0,anadido:!0,quitado:!0};function RV(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.descripcion=="string"}function qV(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(PV,t.tipo)}const FV={anadido:"+",quitado:"-",igual:" "};function O6({linea:e,trozos:t}){return o.jsxs("div",{className:tt(Bt.linea,Bt[e.tipo]),children:[o.jsx("span",{className:Bt.signo,"aria-hidden":"true",children:FV[e.tipo]}),o.jsx("span",{className:Bt.textoDeLinea,children:t===void 0?e.texto:t.map((n,r)=>n.cambia?o.jsx("mark",{className:Bt.cambio,children:n.texto},r):o.jsx($.Fragment,{children:n.texto},r))})]})}function OV({lineas:e}){const t=$.useMemo(()=>TV(e),[e]),[n,r]=$.useState([]);return o.jsx(o.Fragment,{children:t.map((a,i)=>{if(a.clase==="lineas"){const l=l9(a.lineas);return a.lineas.map((u,d)=>{const m=l.get(d);return o.jsx(O6,{linea:u,...m===void 0?{}:{trozos:m}},`${i}-${d}`)})}return n.includes(i)?a.lineas.map((l,u)=>o.jsx(O6,{linea:l},`${i}-${u}`)):o.jsx("button",{type:"button",className:Bt.plegado,onClick:()=>r(l=>[...l,i]),children:a.lineas.length===1?"… 1 línea sin cambios":`… ${a.lineas.length} líneas sin cambios`},i)})})}function BV(e,t,n){const r=(n??[]).filter(qV),a=r.filter(u=>u.tipo==="anadido").length,i=r.filter(u=>u.tipo==="quitado").length,l=typeof t=="string"&&t!=="";return{id:e.id,origen:typeof e.origen=="string"?e.origen:"",descripcion:e.descripcion,...l?{ruta:t}:{},etiqueta:l?t:e.descripcion,lineas:r,mas:a,menos:i,clase:a>0&&i===0&&!r.some(u=>u.tipo==="igual")?"nuevo":"modificado"}}function UV(e){const t=new Set(e.map(a=>a.origen).filter(a=>a!=="")),n=t.size===1?[...t][0]:"El agente",r=e.length>0&&e.every(a=>a.clase==="nuevo")?"crear":"modificar";return e.length===1?`${n} quiere ${r} ${e[0].ruta??"un fichero"}`:`${n} quiere ${r} ${e.length} ficheros`}function B6({mas:e,menos:t}){return e===0&&t===0?null:o.jsxs("span",{className:Bt.cuenta,children:[e===0?null:o.jsx("span",{className:Bt.mas,children:`+${e}`}),t===0?null:o.jsx("span",{className:Bt.menos,children:`−${t}`})]})}function HV({pendientes:e,ficheros:t,diffs:n,alDecidir:r}){const a=$.useMemo(()=>e.filter(RV),[e]),i=$.useMemo(()=>a.map(j=>BV(j,t[j.id],n[j.id])),[a,t,n]),[l,u]=$.useState(void 0),d=i.find(j=>j.id===l)??i[0],m=$.useRef(!1),f=$.useRef(!0),h=$.useRef(null),[b,y]=$.useState(!1),g=$.useCallback(j=>{if(m.current)return;m.current=!0,y(!1);const C=r(Object.fromEntries(a.map(S=>[S.id,j])));Promise.resolve(C).catch(()=>{m.current=!1,f.current&&y(!0)})},[r,a]),_=$.useRef(g);return _.current=g,$.useEffect(()=>{const j=h.current;return f.current=!0,()=>{(j==null?void 0:j.isConnected)!==!0&&(f.current=!1,_.current(Pp))}},[]),o.jsx(Zn,{open:!0,onClose:()=>g(Pp),title:"Aprobación de escrituras",headless:!0,className:Bt.capa,children:o.jsx("div",{className:Bt.velo,onClick:j=>{j.target===j.currentTarget&&g(Pp)},children:o.jsxs("div",{className:Bt.tarjeta,ref:h,children:[o.jsxs("header",{className:Bt.cabecera,children:[o.jsx("span",{className:Bt.iconoDeCabecera,"aria-hidden":"true",children:o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"})})}),o.jsxs("div",{children:[o.jsx("h2",{className:Bt.titulo,children:UV(i)}),o.jsx("p",{className:Bt.subtitulo,children:"Nada se escribe hasta que lo apruebes."})]})]}),o.jsxs("div",{className:Bt.cuerpo,children:[i.length<=1?null:o.jsx("ul",{className:Bt.lista,"aria-label":"Ficheros",children:i.map(j=>o.jsx("li",{children:o.jsxs("button",{type:"button",className:Bt.ficha,"aria-pressed":j.id===(d==null?void 0:d.id),onClick:()=>u(j.id),children:[o.jsx("span",{className:Bt.claseDeFicha,"data-clase":j.clase,title:j.clase==="nuevo"?"nuevo":"modificado",children:j.clase==="nuevo"?"A":"M"}),o.jsx("span",{className:Bt.nombreDeFicha,children:j.etiqueta}),o.jsx(B6,{mas:j.mas,menos:j.menos})]})},j.id))}),d===void 0?null:o.jsxs("section",{className:Bt.pendiente,"aria-label":`Cambios en ${d.etiqueta}`,children:[o.jsxs("p",{className:Bt.cabeceraDelDiff,children:[d.ruta===void 0?o.jsx("span",{className:Bt.descripcion,children:d.descripcion}):o.jsx("span",{className:Bt.ruta,children:d.ruta}),o.jsx(B6,{mas:d.mas,menos:d.menos})]}),o.jsx("div",{className:Bt.diff,children:o.jsx(OV,{lineas:d.lineas})})]},d.id)]}),b?o.jsx("p",{className:Bt.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:Bt.acciones,children:[o.jsx("button",{type:"button",className:Bt.rechazar,onClick:()=>g(Pp),children:"Rechazar"}),o.jsx("button",{type:"button",className:Bt.aprobar,onClick:()=>g(IV),children:i.length===1?"Aprobar":`Aprobar los ${i.length} ficheros`})]})]})})})}const VV="_selector_w6qhg_14",GV="_opcion_w6qhg_29",WV="_titulo_w6qhg_53",ZV="_opciones_w6qhg_58",QV="_etiqueta_w6qhg_101",XV="_detalle_w6qhg_105",YV="_acciones_w6qhg_111",KV="_cancelar_w6qhg_32",JV="_fallo_w6qhg_136",eG="_aviso_w6qhg_142",ds={selector:VV,opcion:GV,titulo:WV,opciones:ZV,etiqueta:QV,detalle:XV,acciones:YV,cancelar:KV,fallo:JV,aviso:eG};function U6({titulo:e,opciones:t,aviso:n,alElegir:r,anidado:a=!1}){const[i,l]=$.useState(!1),[u,d]=$.useState(!1),m=$.useRef(!0),f=$.useRef(()=>{});$.useEffect(()=>(m.current=!0,()=>{m.current=!1}),[]);const h=b=>{i||(l(!0),d(!1),Promise.resolve(r(b)).catch(()=>{m.current&&(l(!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:ds.selector,"data-anidado":a?"":void 0,role:"group","aria-label":e,children:[o.jsx("p",{className:ds.titulo,children:e}),n!==void 0&&n!==""?o.jsx("p",{className:ds.aviso,role:"alert",children:n}):null,o.jsx("ul",{className:ds.opciones,children:t.map(b=>o.jsx("li",{children:o.jsxs(Re,{variant:"outline",className:ds.opcion,disabled:i,onClick:()=>h(b.id),children:[o.jsx("span",{className:ds.etiqueta,children:b.etiqueta}),b.detalle!==void 0&&b.detalle!==""?o.jsx("span",{className:ds.detalle,children:b.detalle}):null]})},b.id))}),o.jsx("div",{className:ds.acciones,children:o.jsx(Re,{variant:"outline",className:ds.cancelar,disabled:i,onClick:()=>h(void 0),children:"Cancelar"})}),u?o.jsx("p",{className:ds.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 tG="_wizard_ava2x_10",nG="_etiqueta_ava2x_16",rG="_envoltorio_ava2x_24",aG="_campo_ava2x_28",oG="_nota_ava2x_41",sG="_aviso_ava2x_48",iG="_estado_ava2x_53",lG="_acciones_ava2x_58",cG="_accion_ava2x_3 _primario_1l1rx_67 _grande_1l1rx_26",Sr={wizard:tG,etiqueta:nG,envoltorio:rG,campo:aG,nota:oG,aviso:sG,estado:iG,acciones:lG,accion:cG},uG=new Set(["127.0.0.1","localhost","::1","[::1]"]),Z2="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 Nm(e){let t;try{t=new URL(e)}catch{return!1}return t.username!==""||t.password!==""?!1:t.protocol==="https:"?!0:t.protocol==="http:"&&uG.has(t.hostname)}function dG({pasos:e,proveedores:t,entornos:n,rutaDeCredencial:r,aviso:a,alGuardarCredencial:i,alRegistrarEntorno:l}){var P,H;const[u,d]=$.useState(0),[m,f]=$.useState(((P=t[0])==null?void 0:P.id)??""),[h,b]=$.useState(""),[y,g]=$.useState(!1),[_,j]=$.useState(((H=n[0])==null?void 0:H.url)??""),[C,S]=$.useState(void 0),A=e[u];if(A===void 0)return null;const M=a===void 0?null:o.jsx("p",{className:Sr.aviso,role:"alert",children:a}),L=()=>d(R=>R+1),z=u+1<e.length;if(A==="cuenta"){const R=F=>{F.preventDefault(),i(m,h),b(""),g(!0)};return o.jsxs("form",{className:Sr.wizard,onSubmit:R,children:[o.jsx("label",{className:Sr.etiqueta,htmlFor:"wizard-proveedor",children:"Proveedor"}),o.jsx("select",{id:"wizard-proveedor",className:Sr.campo,value:m,onChange:F=>f(F.target.value),children:t.map(F=>o.jsx("option",{value:F.id,children:F.nombre},F.id))}),o.jsx("label",{className:Sr.etiqueta,htmlFor:"wizard-clave",children:"Clave de API"}),o.jsx(qa,{id:"wizard-clave",className:Sr.envoltorio,type:"password",autoComplete:"off",value:h,onChange:F=>b(F.target.value)}),o.jsx("p",{className:Sr.nota,children:"La clave no se guarda en el navegador: viaja a XOneCode y se escribe en el fichero de credenciales, con permisos 0600."}),M,y?o.jsx("p",{className:Sr.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:Sr.acciones,children:[y?null:o.jsx(Re,{type:"submit",variant:"primary",className:Sr.accion,children:"Guardar"}),y&&z?o.jsx(Re,{type:"button",variant:"primary",className:Sr.accion,onClick:L,children:"Continuar"}):null]})]})}if(A==="entorno"){const R=F=>{if(F.preventDefault(),!Nm(_)){S(Z2);return}S(void 0),l({id:"",nombre:"",url:_})};return o.jsxs("form",{className:Sr.wizard,onSubmit:R,children:[o.jsx("label",{className:Sr.etiqueta,htmlFor:"wizard-url",children:"URL del MCP"}),o.jsx(qa,{id:"wizard-url",className:Sr.envoltorio,value:_,placeholder:"https://mcp.ejemplo.com/mcp",onChange:F=>j(F.target.value)}),C!==void 0?o.jsx("p",{className:Sr.aviso,role:"alert",children:C}):null,M,o.jsx("div",{className:Sr.acciones,children:o.jsx(Re,{type:"submit",variant:"primary",className:Sr.accion,children:"Registrar"})})]})}return null}const pG="_splash_xvqmu_13",mG={splash:pG};function hG(){return o.jsx("div",{className:mG.splash})}const fG="_marca_pm4iz_10",gG="_fila_pm4iz_22",vG="_placa_pm4iz_33",bG="_simbolo_pm4iz_45",yG="_trazoCian_pm4iz_50",xG="_trazoCielo_pm4iz_54",_G="_puntoNaranja_pm4iz_58",wG="_textoDeMarca_pm4iz_62",jG="_xone_pm4iz_68",CG="_code_pm4iz_72",kG="_eslogan_pm4iz_76",NG="_grande_pm4iz_91",ao={marca:fG,fila:gG,placa:vG,simbolo:bG,trazoCian:yG,trazoCielo:xG,puntoNaranja:_G,textoDeMarca:wG,xone:jG,code:CG,eslogan:kG,grande:NG};function H6({grande:e}){return o.jsxs("div",{className:`${ao.marca}${e===!0?` ${ao.grande}`:""}`,children:[o.jsxs("div",{className:ao.fila,children:[o.jsx("div",{className:ao.placa,children:o.jsxs("svg",{className:ao.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:ao.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:ao.trazoCielo,strokeWidth:"8",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:"50",cy:"49",r:"6",className:ao.puntoNaranja})]})}),o.jsxs("span",{className:ao.textoDeMarca,children:[o.jsx("span",{className:ao.xone,children:"XOne"}),o.jsx("span",{className:ao.code,children:"Code"})]})]}),o.jsx("p",{className:ao.eslogan,children:"Entorno de desarrollo con IA para aplicaciones nativas y en la nube"})]})}const SG="_envoltura_5qajg_14",$G="_contenido_5qajg_3",Ff={envoltura:SG,contenido:$G};function AG({children:e,centrada:t}){return o.jsxs("div",{className:Ff.envoltura,children:[o.jsx(hG,{}),t===!0?o.jsxs("div",{className:Ff.contenido,children:[o.jsx(H6,{grande:!0}),e]}):o.jsxs(o.Fragment,{children:[o.jsx(H6,{}),o.jsx("div",{className:Ff.contenido,children:e})]})]})}const EG="_bienvenida_1pv9l_7",DG="_saludo_1pv9l_13",zG="_texto_1pv9l_19",Of={bienvenida:EG,saludo:DG,texto:zG};function TG({nombre:e}){return o.jsxs("div",{className:Of.bienvenida,children:[o.jsx("p",{className:Of.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:Of.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 MG="_pasos_1284o_5",LG="_paso_1284o_5",IG="_marcador_1284o_44",PG="_etiqueta_1284o_77",RG="_volver_1284o_100",Ol={pasos:MG,paso:LG,marcador:IG,etiqueta:PG,volver:RG};function qG({pasos:e,alVolver:t}){return o.jsx("ol",{className:Ol.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:Ol.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:Ol.volver,onClick:()=>t(n.id),title:`Volver a ${n.etiqueta.toLowerCase()}`,children:[o.jsx("span",{className:Ol.marcador,"data-estado":n.estado,"aria-hidden":"true",children:"✓"}),o.jsx("span",{className:Ol.etiqueta,"data-estado":n.estado,children:n.etiqueta})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Ol.marcador,"data-estado":n.estado,"aria-hidden":"true",children:n.estado==="hecho"?"✓":null}),o.jsx("span",{className:Ol.etiqueta,"data-estado":n.estado,children:n.etiqueta})]})},n.id)})})}const FG="_tarjeta_1sdjm_7",OG={tarjeta:FG};function BG({nombre:e,pasos:t,alVolverAPaso:n,children:r}){return o.jsxs("div",{className:OG.tarjeta,children:[o.jsx(TG,{nombre:e}),o.jsx(qG,{pasos:t,...n===void 0?{}:{alVolver:n}}),r]})}const UG="_fase_1vb0v_5",HG="_punto_1vb0v_22",V6={fase:UG,punto:HG};function VG({texto:e}){return o.jsxs("p",{className:V6.fase,role:"status","aria-live":"polite",children:[o.jsx("span",{className:V6.punto,"aria-hidden":"true"}),e]})}const GG="_escritorio_2bfx7_7",WG="_contenido_2bfx7_15",ZG="_portada_2bfx7_20",QG="_saludo_2bfx7_24",XG="_subtitulo_2bfx7_32",YG="_entorno_2bfx7_41",KG="_entornoNombre_2bfx7_55",JG="_punto_2bfx7_64",eW="_empezar_2bfx7_78 _primario_1l1rx_67",tW="_empezarTarea_2bfx7_79 _secundario_1l1rx_39",nW="_entornoUrl_2bfx7_93",rW="_vacio_2bfx7_99",aW="_enlace_2bfx7_104",oW="_rejilla_2bfx7_116",sW="_tarjeta_2bfx7_125",iW="_cabeceraDeTarjeta_2bfx7_158",lW="_resto_2bfx7_173",cW="_nombreDeProyecto_2bfx7_184",uW="_compartido_2bfx7_204",dW="_marca_2bfx7_212",pW="_accionesDeTarjeta_2bfx7_244",mW="_pie_2bfx7_266",hW="_modelo_2bfx7_272",fW="_iconoDeEntorno_2bfx7_279",on={escritorio:GG,contenido:WG,portada:ZG,saludo:QG,subtitulo:XG,entorno:YG,entornoNombre:KG,punto:JG,empezar:eW,empezarTarea:tW,entornoUrl:nW,vacio:rW,enlace:aW,rejilla:oW,tarjeta:sW,cabeceraDeTarjeta:iW,resto:lW,nombreDeProyecto:cW,compartido:uW,marca:dW,accionesDeTarjeta:pW,pie:mW,modelo:hW,iconoDeEntorno:fW},gW="_envoltura_2m29n_4",vW="_boton_2m29n_24 _secundario_1l1rx_39",bW="_exito_2m29n_41",yW="_resultado_2m29n_54",xW="_hora_2m29n_67",_W="_desfase_2m29n_75",Ho={envoltura:gW,boton:vW,exito:bW,resultado:yW,hora:xW,desfase:_W};function Qg({dispositivo:e,conectado:t,medidoDeLaFoto:n,alVerificar:r}){var f;const[a,i]=$.useState(!1),l=(f=e.verificado)==null?void 0:f.medido;$.useEffect(()=>i(!1),[l]),$.useEffect(()=>{t||i(!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:Ho.envoltura,children:[u===void 0?null:o.jsxs("span",{className:Ho.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:Ho.hora,children:G6(u.medido)}),m?o.jsxs("span",{className:Ho.desfase,children:["la lista es de las ",G6(n)]}):null]}),r===void 0||e.soloDefinicion===!0?null:o.jsx("button",{type:"button",className:tt(Ho.boton,Ho.exito),disabled:!t||a,title:`Habla con ${e.nombre} y espera respuesta`,onClick:()=>{i(!0),r(e.id)},children:a?"Verificando…":"Verificar"})]})}function G6(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const wW="_giro_zx45q_4",jW="_icono_zx45q_23",CW="_girando_zx45q_29",F0={giro:wW,icono:jW,girando:CW};function Yi({className:e}){return o.jsx("span",{className:e===void 0?F0.giro:`${F0.giro} ${e}`,"aria-hidden":"true"})}const kW="_equipo_tqt2p_8",NW="_cabecera_tqt2p_16",SW="_titulo_tqt2p_22",$W="_sistema_tqt2p_30",AW="_actualizar_tqt2p_38 _secundario_1l1rx_39",EW="_bloques_tqt2p_43",DW="_bloque_tqt2p_43",zW="_plataforma_tqt2p_54",TW="_resumen_tqt2p_61",MW="_cuenta_tqt2p_62",LW="_nota_tqt2p_63",IW="_fallo_tqt2p_69",PW="_filas_tqt2p_75",RW="_fila_tqt2p_75",qW="_punto_tqt2p_90",FW="_nombre_tqt2p_111",OW="_etiqueta_tqt2p_121",BW="_detalle_tqt2p_128",tr={equipo:kW,cabecera:NW,titulo:SW,sistema:$W,actualizar:AW,bloques:EW,bloque:DW,plataforma:zW,resumen:TW,cuenta:MW,nota:LW,fallo:IW,filas:PW,fila:RW,punto:qW,nombre:FW,etiqueta:OW,detalle:BW},c9="Vuelve a mirar qué dispositivos y simuladores hay en este equipo";function UW({informe:e,conectado:t,alActualizar:n,alVerificar:r}){const[a,i]=$.useState(!1),l=e==null?void 0:e.medido;$.useEffect(()=>i(!1),[l]),$.useEffect(()=>{t||i(!1)},[t]);const u=e===void 0?void 0:GW(e),d=e===void 0?void 0:WW(e);return o.jsxs("section",{className:tr.equipo,"aria-label":"tu equipo",children:[o.jsxs("div",{className:tr.cabecera,children:[o.jsx("h2",{className:tr.titulo,children:"Tu equipo"}),e===void 0?null:o.jsx("span",{className:tr.sistema,children:HW[e.sistema]}),n===void 0?null:o.jsxs("button",{type:"button",className:tr.actualizar,title:c9,disabled:!t||a||e===void 0,"aria-busy":a,onClick:()=>{i(!0),n()},children:[a?o.jsx(Yi,{}):null,a?"Refrescando…":"Refrescar"]})]}),e===void 0?o.jsx("p",{className:tr.nota,children:"Consultando qué dispositivos y simuladores hay en este equipo…"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:tr.bloques,children:[o.jsx(W6,{titulo:"Android",...u,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}}),o.jsx(W6,{titulo:"iOS",...d,conectado:t,medido:e.medido,...r===void 0?{}:{alVerificar:r}})]}),o.jsxs("p",{className:tr.nota,children:["Medido a las ",ZW(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 HW={mac:"macOS",windows:"Windows",linux:"Linux",otro:"sistema desconocido"},VW={emulador:"emulador",simulador:"simulador",fisico:"dispositivo"};function W6({titulo:e,resumen:t,filas:n,cuentas:r,fallos:a,conectado:i,medido:l,alVerificar:u}){return o.jsxs("div",{className:tr.bloque,children:[o.jsx("h3",{className:tr.plataforma,children:e}),t===void 0?null:o.jsx("p",{className:tr.resumen,children:t}),n.length===0?null:o.jsx("ul",{className:tr.filas,children:n.map(d=>o.jsxs("li",{className:tr.fila,"data-estado":d.estado,children:[o.jsx("span",{className:tr.punto,"aria-hidden":"true"}),o.jsx("span",{className:tr.nombre,children:d.nombre}),o.jsxs("span",{className:tr.etiqueta,children:[VW[d.clase]," · ",Xl(d)]}),d.detalle===void 0?null:o.jsx("span",{className:tr.detalle,children:d.detalle}),o.jsx(Qg,{dispositivo:d,conectado:i,medidoDeLaFoto:l,...u===void 0?{}:{alVerificar:u}})]},d.id))}),r.map(d=>o.jsx("p",{className:tr.cuenta,children:d},d)),a.map(d=>o.jsx("p",{className:tr.fallo,children:d},d))]})}function u9(e){return{filas:e.filter(t=>t.estado!=="apagado"),apagados:e.filter(t=>t.estado==="apagado")}}function Sm(e,t){return e.herramientas.find(n=>n.nombre===t)}function Xg(e,t,n){return`${e} ${e===1?t:n}`}function GW(e){const t=Sm(e,"adb"),n=Sm(e,"emulator"),{filas:r}=u9(e.dispositivos.filter(l=>l.plataforma==="android")),a=[],i=[];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:i};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:i};for(const l of[t,n])(l==null?void 0:l.estado)==="fallo"&&i.push(`${l.nombre} falló: ${l.detalle??"sin motivo"}`),(l==null?void 0:l.estado)==="no-encontrada"&&a.push(`${l.nombre} no está instalado.`),(l==null?void 0:l.estado)==="desactivada"&&a.push(`${l.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.":`${Xg(e.avds.length,"AVD definido","AVD definidos")}: ${e.avds.join(", ")}.`),{filas:r,cuentas:a,fallos:i}}function WW(e){const t=Sm(e,"xcrun"),n=Sm(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:i,apagados:l}=u9(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=i.filter(d=>d.clase==="simulador").length;l.length>0?r.push(u===0?`${Xg(l.length,"simulador disponible","simuladores disponibles")}, ninguno arrancado.`:`${Xg(l.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"&&!i.some(u=>u.clase==="fisico")&&r.push("Ningún iPhone o iPad conectado."),{filas:i,cuentas:r,fallos:a}}function ZW(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function d9(e){return e.sesion!==void 0&&e.estado!=="en-proceso"}const QW="_acciones_ok0yz_12",XW="_avisoConexion_ok0yz_22",YW="_boton_ok0yz_29",KW="_destructiva_ok0yz_54",JW="_feedback_ok0yz_62",eZ="_etiquetaFeedback_ok0yz_69",tZ="_campoFeedback_ok0yz_74",nZ="_botonFeedback_ok0yz_89",rZ="_pista_ok0yz_110",Kr={acciones:QW,avisoConexion:XW,boton:YW,destructiva:KW,feedback:JW,etiquetaFeedback:eZ,campoFeedback:tZ,botonFeedback:nZ,pista:rZ};function Q2({tarea:e,conectado:t,alReintentar:n,alDescartar:r,alTerminar:a,alEnviarFeedback:i,alContinuar:l,alArrancarAhora:u,puedeArrancar:d,esperaPorTuConsola:m}){const[f,h]=$.useState(!1),[b,y]=$.useState(void 0),[g,_]=$.useState(!1),j=Z=>{g||(_(!0),y(void 0),Z(e.id).catch(()=>"el envío falló").then(re=>{_(!1),re!==void 0&&y(re)}))},C=t===!1,S=f_[e.estado],A=e.estado==="requiere-atencion",M=A&&S.includes("nuevo")&&n!==void 0,L=A&&S.includes("terminada")&&a!==void 0,z=A&&S.includes("nuevo")&&i!==void 0,P=A&&S.includes("nuevo")&&i===void 0,H=r!==void 0,R=A&&S.includes("nuevo")&&l!==void 0,F=e.estado==="nuevo"&&d===!0&&u!==void 0,U=e.estado==="nuevo"&&d===!0&&m===!0;return!M&&!L&&!z&&!P&&!H&&!R&&!F?null:o.jsxs("div",{className:Kr.acciones,role:"group","aria-label":"Acciones de la tarea",children:[C?o.jsx("p",{className:Kr.avisoConexion,children:"Sin conexión: no se puede mandar nada hasta reconectar."}):null,U?o.jsx("p",{className:Kr.pista,children:"Esperando: no arranca mientras tengas abierta la consola de este proyecto."}):null,F?o.jsx("button",{type:"button",className:Kr.boton,disabled:C||g,title:"Cierra tu conversación en este proyecto (queda guardada) y arranca la tarea",onClick:()=>j(u),children:"Arrancar ahora"}):null,R?o.jsx("button",{type:"button",className:Kr.boton,disabled:C||g,onClick:()=>j(l),children:"Continuar"}):null,M?o.jsx("button",{type:"button",className:Kr.boton,disabled:C,onClick:()=>n(e.id),children:"Reintentar"}):null,L?o.jsx("button",{type:"button",className:Kr.boton,disabled:C,onClick:()=>a(e.id),children:"Dar por bueno"}):null,H?o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Kr.boton,disabled:C,onClick:()=>h(!0),children:"Descartar"}),f?o.jsx(aZ,{tarea:e,onCancelar:()=>h(!1),onConfirmar:()=>{r(e.id),h(!1)}}):null]}):null,z?o.jsx(oZ,{id:e.id,apagado:C,alEnviar:i}):P?o.jsx("p",{className:Kr.pista,children:"Se resuelve editando la tarea para añadir tu feedback: sigue desde ahí."}):null,b!==void 0?o.jsx("p",{className:Kr.pista,role:"alert",children:`No se pudo: ${b}`}):null]})}function aZ({tarea:e,onCancelar:t,onConfirmar:n}){return o.jsx(Zn,{open:!0,onClose:t,title:"Descartar tarea",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:ge.ventana,children:[o.jsx("h2",{className:ge.titulo,children:"Descartar tarea"}),o.jsxs("p",{className:ge.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:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:t,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal} ${Kr.destructiva}`,onClick:n,children:"Sí, descartar"})]})]})})})}function oZ({id:e,apagado:t,alEnviar:n}){const[r,a]=$.useState(""),i=r.trim();return o.jsxs("form",{className:Kr.feedback,onSubmit:l=>{l.preventDefault(),!(i===""||t)&&(n(e,i),a(""))},children:[o.jsx("label",{className:Kr.etiquetaFeedback,htmlFor:`feedback-${e}`,children:"Tu feedback"}),o.jsx("textarea",{id:`feedback-${e}`,className:Kr.campoFeedback,rows:2,value:r,disabled:t,onChange:l=>a(l.target.value),placeholder:"Se manda al agente en el mismo hilo…"}),o.jsx("button",{type:"submit",className:Kr.botonFeedback,disabled:i===""||t,children:"Enviar y continuar"})]})}const sZ="_entrega_168bg_5",iZ="_frase_168bg_12",lZ="_detalle_168bg_21",cZ="_salvedad_168bg_30",uZ="_hallazgos_168bg_39",Ks={entrega:sZ,frase:iZ,detalle:lZ,salvedad:cZ,hallazgos:uZ};function n1({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)??[],i=t!==void 0&&e.motivo!==void 0&&e.motivo.includes(t.resumen);return o.jsxs("div",{className:Ks.entrega,children:[n?r?o.jsx("p",{className:Ks.frase,"data-via":"persona",children:"La dio por buena una persona, sin verificador y sin juez."}):t===void 0?o.jsx("p",{className:Ks.frase,"data-via":"sin-constancia",children:"No consta ningún veredicto de esta entrega."}):t.veredicto==="verde"?o.jsxs("p",{className:Ks.frase,"data-via":"juez",children:["El juez de QA la aprobó: ",t.resumen]}):o.jsxs("p",{className:Ks.frase,"data-via":"raro",children:["Terminada, pero el juez de QA había dicho «",t.veredicto,"»: ",t.resumen]}):i?null:o.jsxs("p",{className:Ks.frase,"data-via":"juez-pendiente",children:["El juez de QA dijo «",t.veredicto,"»: ",t.resumen]}),n&&r&&t!==void 0?o.jsxs("p",{className:Ks.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:Ks.salvedad,children:["Se entregó con una condición menos: ",t.salvedad]}),a.length===0?null:o.jsx("ul",{className:Ks.hallazgos,children:a.map(l=>o.jsx("li",{children:l},l))})]})}const dZ="_envoltura_xtc5o_7",pZ="_boton_xtc5o_16",mZ="_panel_xtc5o_33",hZ="_nota_xtc5o_42",fZ="_motivo_xtc5o_49",gZ="_ficheros_xtc5o_55",vZ="_listaDeFicheros_xtc5o_65",bZ="_transcript_xtc5o_80",yZ="_usuario_xtc5o_91",xZ="_asistente_xtc5o_92",_Z="_pulso_xtc5o_107",wZ="_sistema_xtc5o_108",jZ="_razonamiento_xtc5o_121",CZ="_razonamientoTexto_xtc5o_130",kZ="_error_xtc5o_136",NZ="_artefacto_xtc5o_143",SZ="_vacio_xtc5o_149",xn={envoltura:dZ,boton:pZ,panel:mZ,nota:hZ,motivo:fZ,ficheros:gZ,listaDeFicheros:vZ,transcript:bZ,usuario:yZ,asistente:xZ,pulso:_Z,sistema:wZ,razonamiento:jZ,razonamientoTexto:CZ,error:kZ,artefacto:NZ,vacio:SZ};function X2({tarea:e,corriendoAqui:t,conectado:n,mirando:r,mirada:a,alMirar:i,alDejarDeMirar:l}){const u=r===e.id,d=i!==void 0&&l!==void 0&&e.estado==="en-proceso"&&t===!0&&n!==!1;return!u&&!d?null:o.jsxs("div",{className:xn.envoltura,children:[o.jsx("button",{type:"button",className:xn.boton,"aria-expanded":u,onClick:()=>u?l(e.id):i(e.id),children:u?"Dejar de ver lo que hace":"Ver lo que hace"}),u?o.jsx($Z,{tarea:e,corriendoAqui:t,mirada:a}):null]})}function $Z({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:xn.panel,"aria-label":`Lo que hace: ${e.titulo}`,children:[o.jsxs("p",{className:xn.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:xn.motivo,children:e.motivo}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:xn.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:xn.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:xn.listaDeFicheros,children:e.autorizadas.map(i=>o.jsx("li",{children:o.jsx("code",{children:i})},i))})]}),o.jsx(n1,{tarea:e}),r.length===0?o.jsx("p",{className:xn.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:xn.transcript,children:r.map((i,l)=>o.jsx("li",{children:o.jsx(AZ,{acto:i})},l))})]})}function AZ({acto:e}){switch(e.tipo){case"usuario":return o.jsx("p",{className:xn.usuario,children:e.texto});case"asistente":return o.jsx("p",{className:xn.asistente,children:e.texto});case"razonamiento":return o.jsxs("details",{className:xn.razonamiento,children:[o.jsx("summary",{children:"Razonamiento"}),o.jsx("p",{className:xn.razonamientoTexto,children:e.texto})]});case"herramientas":return o.jsx("p",{className:xn.pulso,children:e.lineas.join(`
|
|
492
|
-
`)});case"fase":return o.jsx("p",{className:xn.pulso,children:e.texto});case"sistema":return o.jsx("p",{className:xn.sistema,children:e.texto});case"sincronizacion":return o.jsx("p",{className:xn.sistema,children:e.lineas.join(`
|
|
493
|
-
`)});case"error":return o.jsx("p",{className:xn.error,children:e.texto});case"artefacto":return o.jsxs("p",{className:xn.artefacto,children:["Artefacto: ",e.nombre," (",e.bytes," B)"]});case"fin":return null;case"consulta":return o.jsx("p",{className:xn.sistema,children:`Opciones: ${e.opciones.join(" · ")}`});case"propuesta-de-tareas":return o.jsx("p",{className:xn.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:xn.pulso,children:B2(e).join(`
|
|
494
|
-
`)});default:return e}}const EZ="_aviso_qbdl5_5",DZ={aviso:EZ};function p9({corriendoAqui:e,ejecutaOtroProceso:t,donde:n}){return e?null:o.jsx("p",{className:DZ.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 zZ="_kanban_1i05m_6",TZ="_titulo_1i05m_17",MZ="_vacio_1i05m_24",LZ="_columnas_1i05m_30",IZ="_columna_1i05m_30",PZ="_encabezado_1i05m_47",RZ="_cuenta_1i05m_60",qZ="_tarjetas_1i05m_65",FZ="_tarjeta_1i05m_65",OZ="_proyecto_1i05m_95",BZ="_tituloDeTarea_1i05m_100",UZ="_tituloBoton_1i05m_109",HZ="_cuando_1i05m_126",VZ="_bloqueada_1i05m_134",GZ="_motivo_1i05m_139",WZ="_ficheros_1i05m_149",ZZ="_listaDeFicheros_1i05m_159",QZ="_enlaceRevision_1i05m_171",sn={kanban:zZ,titulo:TZ,vacio:MZ,columnas:LZ,columna:IZ,encabezado:PZ,cuenta:RZ,tarjetas:qZ,tarjeta:FZ,proyecto:OZ,tituloDeTarea:BZ,tituloBoton:UZ,cuando:HZ,bloqueada:VZ,motivo:GZ,ficheros:WZ,listaDeFicheros:ZZ,enlaceRevision:QZ},XZ=[{estado:"nuevo",etiqueta:"Nuevo"},{estado:"en-proceso",etiqueta:"En proceso"},{estado:"requiere-atencion",etiqueta:"Esperando feedback"},{estado:"terminada",etiqueta:"Terminada"}];function m9(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 YZ({cola:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l,alMirar:u,alDejarDeMirar:d,mirando:m,mirada:f,proyectoActivo:h,conectado:b}){return e.lista.length===0?o.jsxs("section",{className:sn.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:sn.titulo,children:"Tareas"}),o.jsx("p",{className:sn.vacio,children:"Ninguna tarea todavía. Se crean desde un proyecto, y se ejecutan solas."})]}):o.jsxs("section",{className:sn.kanban,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:sn.titulo,children:"Tareas"}),o.jsx(p9,{corriendoAqui:e.corriendoAqui,...e.ejecutaOtroProceso===void 0?{}:{ejecutaOtroProceso:e.ejecutaOtroProceso},donde:"este kanban"}),o.jsx("div",{className:sn.columnas,children:XZ.map(y=>{const g=e.lista.filter(_=>_.estado===y.estado);return o.jsxs("div",{className:sn.columna,children:[o.jsxs("h3",{className:sn.encabezado,children:[y.etiqueta," ",o.jsx("span",{className:sn.cuenta,children:g.length})]}),o.jsx("ul",{className:sn.tarjetas,children:g.map(_=>y.estado==="requiere-atencion"?o.jsx(JZ,{tarea:_,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l,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(KZ,{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 KZ({tarea:e,alAbrirSesion:t,alDescartar:n,conectado:r,corriendoAqui:a,alMirar:i,alDejarDeMirar:l,mirando:u,mirada:d,bloqueadaPorProyectoAbierto:m}){return o.jsx("li",{children:o.jsxs("div",{className:sn.tarjeta,children:[o.jsx("span",{className:sn.proyecto,children:e.proyectoNombre}),d9(e)&&t!==void 0?o.jsx("button",{type:"button",className:sn.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:sn.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:sn.cuando,children:m9(e)}),u===e.id?null:o.jsx(n1,{tarea:e}),m===!0?o.jsx("span",{className:sn.bloqueada,children:"Esperando a que se cierre el proyecto: mientras alguien lo tenga abierto, gana la persona."}):null,o.jsx(X2,{tarea:e,conectado:r,corriendoAqui:a,...i===void 0?{}:{alMirar:i},...l===void 0?{}:{alDejarDeMirar:l},...u===void 0?{}:{mirando:u},...d===void 0?{}:{mirada:d}}),o.jsx(Q2,{tarea:e,conectado:r,alDescartar:n})]})})}function JZ({tarea:e,alAbrirSesion:t,alAbrirRevision:n,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l,conectado:u,corriendoAqui:d,alMirar:m,alDejarDeMirar:f,mirando:h,mirada:b}){return o.jsx("li",{children:o.jsxs("div",{className:sn.tarjeta,"data-atencion":"",children:[o.jsx("span",{className:sn.proyecto,children:e.proyectoNombre}),d9(e)&&t!==void 0?o.jsx("button",{type:"button",className:sn.tituloBoton,onClick:()=>t(e.proyecto,e.sesion),children:e.titulo}):o.jsx("span",{className:sn.tituloDeTarea,children:e.titulo}),o.jsx("span",{className:sn.cuando,children:m9(e)}),h===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:sn.motivo,children:e.motivo}),o.jsx(n1,{tarea:e}),e.autorizadas===void 0?null:e.autorizadas.length===0?o.jsx("p",{className:sn.ficheros,children:"No autorizó ninguna escritura sin aprobación."}):o.jsxs("div",{className:sn.ficheros,children:[o.jsxs("p",{children:["Autorizó escribir sin aprobación (",e.autorizadas.length,"):"]}),o.jsx("ul",{className:sn.listaDeFicheros,children:e.autorizadas.map(y=>o.jsx("li",{children:o.jsx("code",{children:y})},y))})]})]}),o.jsx(Q2,{tarea:e,conectado:u,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l}),o.jsx(X2,{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:sn.enlaceRevision,onClick:()=>n(e.proyecto,e.sesion),children:"Ver qué cambió, en Revisión"}):null]})})}function eQ({nombre:e,entorno:t,proyectos:n,modelo:r,alNuevaSesion:a,alAbrirAjustes:i,conectado:l,visibles:u,fijados:d,dispositivos:m,alActualizarDispositivos:f,alVerificarDispositivo:h,alNuevaTarea:b,tareas:y,alAbrirSesionDeTarea:g,alAbrirRevisionDeTarea:_,alReintentarTarea:j,alDescartarTarea:C,alTerminarTarea:S,alEnviarFeedback:A,alMirarTarea:M,alDejarDeMirarTarea:L,mirandoTarea:z,mirada:P,proyectoActivo:H}){const R=l===!1,F=n.filter(le=>(d==null?void 0:d.includes(le.id))===!0),U=u===void 0?n.slice(0,_m):n.filter(le=>u.includes(le.id)),Z=[...F,...U.filter(le=>!F.includes(le))],re=n.filter(le=>!Z.includes(le));return o.jsx("div",{className:on.escritorio,children:o.jsxs("div",{className:on.contenido,children:[o.jsxs("header",{className:on.portada,children:[o.jsx("h1",{className:on.saludo,children:e===void 0?"Hola":`Hola, ${e}`}),o.jsx("p",{className:on.subtitulo,children:"Elige un proyecto para empezar a trabajar, o sigue una conversación de antes."}),t===void 0?null:o.jsxs("p",{className:on.entorno,children:[o.jsx(F2,{entorno:t.id,size:20,className:on.iconoDeEntorno}),o.jsx("span",{className:on.punto,"data-sin-conexion":R?"":void 0,"aria-hidden":"true"}),o.jsx("span",{className:on.entornoNombre,children:t.nombre}),o.jsx("span",{className:on.entornoUrl,children:t.url})]})]}),n.length===0?o.jsxs("p",{className:on.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:on.enlace,onClick:i,children:"Abrir Ajustes"})]}):o.jsxs(o.Fragment,{children:[o.jsx("section",{"aria-label":"proyectos elegidos",children:o.jsx("ul",{className:on.rejilla,children:Z.map(le=>o.jsxs("li",{className:on.tarjeta,"data-local":le.local===!0?"":void 0,children:[o.jsxs("div",{className:on.cabeceraDeTarjeta,children:[o.jsx("h2",{className:on.nombreDeProyecto,children:le.nombre}),le.compartido===!0?o.jsx("span",{className:on.compartido,role:"img","aria-label":"compartido contigo",title:"Compartido contigo",children:o.jsx(q2,{size:16})}):null,o.jsx("span",{className:on.marca,"data-local":le.local===!0?"":void 0,children:le.local===!0?"en tu equipo":"sin descargar"})]}),o.jsxs("div",{className:on.accionesDeTarjeta,children:[o.jsx("button",{type:"button",className:on.empezar,disabled:R,onClick:()=>a(le.id),children:"Nueva sesión"}),b===void 0?null:o.jsx("button",{type:"button",className:on.empezarTarea,disabled:R,onClick:()=>b(le.id),children:"Nueva tarea"})]})]},le.id))})}),re.length===0?null:o.jsxs("p",{className:on.resto,children:[re.length===1?"Otro proyecto del entorno":`Otros ${re.length} proyectos del entorno`," sin enseñar"," ",o.jsx("button",{type:"button",className:on.enlace,onClick:i,children:"Elígelos en Ajustes"})]})]}),y===void 0?o.jsx("p",{className:on.vacio,children:"Todavía no ha llegado la cola de tareas en background."}):o.jsx(YZ,{cola:y,...g===void 0?{}:{alAbrirSesion:g},..._===void 0?{}:{alAbrirRevision:_},...j===void 0?{}:{alReintentar:j},...C===void 0?{}:{alDescartar:C},...S===void 0?{}:{alTerminar:S},...A===void 0?{}:{alEnviarFeedback:A},...M===void 0?{}:{alMirar:M},...L===void 0?{}:{alDejarDeMirar:L},...z===void 0?{}:{mirando:z},...P===void 0?{}:{mirada:P},...H===void 0?{}:{proyectoActivo:H},conectado:l}),o.jsx(UW,{...m===void 0?{}:{informe:m},conectado:!R,...f===void 0?{}:{alActualizar:f},...h===void 0?{}:{alVerificar:h}}),r===void 0?null:o.jsxs("p",{className:on.pie,children:["Trabajará con ",o.jsx("span",{className:on.modelo,children:r}),". Se cambia en Ajustes o desde la pastilla del compositor."]})]})})}function tQ({proyecto:e,local:t,ramas:n,aviso:r,descargando:a,alEmpezar:i,alCerrar:l}){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(Zn,{open:!0,onClose:()=>{},title:"Nueva sesión",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,children:o.jsxs("div",{className:ge.ventana,...f||h?{"aria-busy":"true"}:{},children:[o.jsxs("h2",{className:ge.titulo,children:["Nueva sesión en ",e.nombre]}),t?o.jsx("p",{className:ge.nota,children:"La copia local ya está en tu equipo: se abre y ya."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:ge.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:ge.etiqueta,htmlFor:"nueva-sesion-rama",children:"Rama de origen"}),o.jsx(gs,{id:"nueva-sesion-rama",className:ge.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:ge.carga,role:"status",children:[o.jsx("span",{className:ge.girando,"aria-hidden":"true"}),"Descargando proyecto…"]}):r!==void 0?o.jsxs("p",{className:ge.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:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:l,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal}`,disabled:f||!t&&m===void 0,onClick:()=>i(t?void 0:m),children:"Empezar"})]})]})})})}const nQ=3e4;function uc(e,t,n=nQ){const[r,a]=$.useState(!1),i=$.useRef(e);$.useEffect(()=>{i.current!==e&&(i.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 l=$.useCallback(()=>a(!0),[]);return{esperando:r,empezar:l}}const rQ="_capa_15nix_8",aQ="_velo_15nix_14",oQ="_ventana_15nix_29",sQ="_titulo_15nix_50",iQ="_autorizacion_15nix_62",lQ="_nota_15nix_73",cQ="_etiqueta_15nix_80",uQ="_filaDeEncargo_15nix_87",dQ="_campo_15nix_95",pQ="_adjuntos_15nix_115",mQ="_adjunto_15nix_115",hQ="_nombreDeAdjunto_15nix_130",fQ="_peso_15nix_139",gQ="_estado_15nix_140",vQ="_acciones_15nix_151",bQ="_accion_15nix_151 _secundario_1l1rx_39 _grande_1l1rx_26",yQ="_principal_15nix_169",xQ="_fallo_15nix_186",Mt={capa:rQ,velo:aQ,ventana:oQ,titulo:sQ,autorizacion:iQ,nota:lQ,etiqueta:cQ,filaDeEncargo:uQ,campo:dQ,adjuntos:pQ,adjunto:mQ,nombreDeAdjunto:hQ,peso:fQ,estado:gQ,acciones:vQ,accion:bQ,principal:yQ,fallo:xQ},_Q=()=>{},wQ=18e4;function jQ({proyecto:e,local:t,alAbrirProyecto:n,puedeAugmentar:r=!0,encargoPropuesto:a,alAugmentar:i,alSubirAdjunto:l,alEncolar:u,alCerrar:d}){const[m,f]=$.useState(""),[h,b]=$.useState(void 0),y=$.useRef(null),[g,_]=$.useState([]),j=h??(a==null?void 0:a.encargo)??"",C=uc(a,!0,wQ),S=g.some(z=>z.estado==="subiendo"),A=g.some(z=>z.estado==="falló"),M=m.trim()!==""&&!S&&!A,L=async z=>{const P=new Set(g.map(H=>H.nombre));for(const H of Array.from(z??[])){const R=Oy(H.name);if(R===void 0){_(Z=>[...Z,{nombre:H.name,bytes:H.size,estado:"falló",motivo:"no se puede usar ese nombre aquí"}]);continue}const F=P.has(R);if(P.add(R),_(Z=>[...Z,F?{nombre:R,bytes:H.size,estado:"falló",motivo:"ya hay un adjunto con ese nombre"}:{nombre:R,bytes:H.size,estado:"subiendo"}]),F)continue;const U=await l(H,R);_(Z=>Z.map(re=>re.nombre===R&&re.estado==="subiendo"?{...re,estado:U.ok?"listo":"falló",...U.ok||U.motivo===void 0?{}:{motivo:U.motivo}}:re))}};return o.jsx(Zn,{open:!0,onClose:_Q,title:"Nueva tarea",headless:!0,className:Mt.capa,children:o.jsx("div",{className:Mt.velo,children:o.jsxs("div",{className:Mt.ventana,children:[o.jsxs("h2",{className:Mt.titulo,children:["Nueva tarea en ",e.nombre]}),t?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Mt.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:Mt.nota,children:"Ábrelo una vez para traértelo —desde ahí se descarga— y luego vuelve a esta ventana."}),o.jsxs("div",{className:Mt.acciones,children:[o.jsx(Re,{variant:"outline",className:Mt.accion,onClick:d,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${Mt.accion} ${Mt.principal}`,onClick:n,children:"Abrir el proyecto"})]})]}),t?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Mt.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:Mt.etiqueta,htmlFor:"nueva-tarea-peticion",children:"Qué hay que hacer"}),o.jsx("textarea",{id:"nueva-tarea-peticion",className:Mt.campo,rows:3,value:m,onChange:z=>f(z.target.value),placeholder:"Que la lista de clientes se pueda buscar por NIF"}),o.jsxs("div",{className:Mt.filaDeEncargo,children:[o.jsx("label",{className:Mt.etiqueta,htmlFor:"nueva-tarea-encargo",children:"Encargo (lo que se le manda al agente)"}),r?o.jsxs(Re,{variant:"outline",className:Mt.accion,disabled:m.trim()===""||C.esperando,"aria-busy":C.esperando,onClick:()=>{C.empezar(),i(m)},children:[C.esperando?o.jsx(Yi,{}):null,"Preparar el encargo"]}):null]}),r?null:o.jsx("p",{className:Mt.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:Mt.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:Mt.campo,rows:8,value:j,onChange:z=>b(z.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:Mt.filaDeEncargo,children:[o.jsx("span",{className:Mt.etiqueta,children:"Adjuntar ficheros"}),o.jsx(Re,{variant:"outline",className:Mt.accion,onClick:()=>{var z;return(z=y.current)==null?void 0:z.click()},children:"Elegir ficheros…"})]}),o.jsx("input",{ref:y,hidden:!0,type:"file",multiple:!0,onChange:z=>{L(z.target.files),z.target.value=""}}),o.jsxs("p",{className:Mt.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:Mt.adjuntos,children:g.map((z,P)=>o.jsxs("li",{className:Mt.adjunto,"data-estado":z.estado,children:[o.jsx("span",{className:Mt.nombreDeAdjunto,children:z.nombre}),o.jsx("span",{className:Mt.peso,children:CQ(z.bytes)}),o.jsx("span",{className:Mt.estado,children:z.estado==="subiendo"?"subiendo…":z.estado==="listo"?"listo":z.motivo??"no se pudo subir"})]},`${z.nombre}-${P}`))}),o.jsxs("div",{className:Mt.acciones,children:[o.jsx(Re,{variant:"outline",className:Mt.accion,onClick:d,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${Mt.accion} ${Mt.principal}`,disabled:!M,onClick:()=>{M&&u({peticion:m.trim(),encargo:j.trim()===""?m.trim():j})},children:"Encolar"})]})]}):null]})})})}function CQ(e){return e<1e3?`${e} B`:e<1e6?`${Math.round(e/1e3)} KB`:`${(e/1e6).toFixed(1)} MB`}const kQ="_destructiva_bd4l4_13",r1={destructiva:kQ};function NQ({pendiente:e,esLaAbierta:t,alConfirmar:n,alCerrar:r}){const[a,i]=$.useState(e.titulo),l=e.accion==="borrar",u=l||a.trim()!=="";return o.jsx(Zn,{open:!0,onClose:r,title:l?"Eliminar sesión":"Renombrar sesión",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:d=>{d.target===d.currentTarget&&r()},children:o.jsxs("div",{className:ge.ventana,children:[o.jsx("h2",{className:ge.titulo,children:l?"Eliminar sesión":"Renombrar sesión"}),l?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ge.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:ge.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:ge.etiqueta,htmlFor:"accion-sesion-titulo",children:"Nombre"}),o.jsx("input",{id:"accion-sesion-titulo",className:ge.campo,value:a,autoFocus:!0,onChange:d=>i(d.target.value),onKeyDown:d=>{d.key==="Enter"&&u&&n(a)}})]}),o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:r,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:tt(ge.accion,ge.principal,l&&r1.destructiva),disabled:!u,onClick:()=>n(l?void 0:a),children:l?"Eliminar":"Guardar"})]})]})})})}const SQ="_capa_1byta_9",$Q="_velo_1byta_18",AQ="_ventana_1byta_40",EQ="_navegacion_1byta_52",DQ="_marcaDeAjustes_1byta_66",zQ="_placa_1byta_78",TQ="_titulo_1byta_90",MQ="_alcance_1byta_99",LQ="_seccion_1byta_108",IQ="_iconoDeSeccion_1byta_127",PQ="_panel_1byta_143",RQ="_encabezado_1byta_149",qQ="_nota_1byta_155",FQ="_vacio_1byta_156",OQ="_filas_1byta_162",BQ="_fila_1byta_162",UQ="_cabeceraDeFila_1byta_188",HQ="_nombre_1byta_194",VQ="_textoDeProyecto_1byta_201",GQ="_fechaDeProyecto_1byta_209",WQ="_logo_1byta_219",ZQ="_identidad_1byta_226",QQ="_idDeProveedor_1byta_237",XQ="_estadoDeClave_1byta_248",YQ="_url_1byta_235",KQ="_detalle_1byta_255",JQ="_punto_1byta_287",eX="_accion_1byta_311 _secundario_1l1rx_39",tX="_principal_1byta_320 _primario_1l1rx_67",nX="_peligro_1byta_327 _peligro_1l1rx_18",rX="_destructiva_1byta_325",aX="_confirmacion_1byta_346",oX="_formulario_1byta_355",sX="_etiqueta_1byta_362",iX="_campo_1byta_373",lX="_aviso_1byta_382",cX="_cerrar_1byta_392",uX="_subencabezado_1byta_409",dX="_elegirModelo_1byta_420",pX="_casilla_1byta_200",mX="_botones_1byta_438",hX="_enlace_1byta_449",fX="_comando_1byta_495",gX="_subsubencabezado_1byta_511",vX="_iconoDeAjuste_1byta_523",bX="_campoConBoton_1byta_552",yX="_listaLarga_1byta_571",xX="_casillaEnLinea_1byta_579",_X="_filaBuscarEn_1byta_595",wX="_separador_1byta_611",jX="_subencabezadoPegado_1byta_608",CX="_medidoAlPie_1byta_625",kX="_filaDeConcurrencia_1byta_632",NX="_filaDeWorkspace_1byta_661",SX="_etiquetaDeWorkspace_1byta_671",$X="_accionesDeWorkspace_1byta_677",AX="_pistaEnLinea_1byta_708",EX="_pestanas_1byta_728",DX="_pestana_1byta_542",zX="_cuenta_1byta_208",TX="_panelDePestana_1byta_795",MX="_cabeceraDeProyectos_1byta_813",LX="_recargar_1byta_821",IX="_columnasDeProyectos_1byta_843",PX="_columnaDeProyectos_1byta_850",RX="_encabezadoDeColumna_1byta_859",qX="_buscadorDeProyectos_1byta_881",FX="_lupa_1byta_886",OX="_filtroDeProyectos_1byta_895",BX="_filaDeNombre_1byta_910",UX="_etiquetaDeNombre_1byta_920",HX="_campoDeNombreConBoton_1byta_924",VX="_filaDeUrl_1byta_959",GX="_anchoEntero_1byta_972",WX="_quitar_1byta_982 _peligro_1l1rx_18",ZX="_quitarLleno_1byta_994",QX="_confirmarQuitar_1byta_1012",XX="_tituloDeAviso_1byta_1030",YX="_textoDeAviso_1byta_1035",KX="_casillaDeAviso_1byta_1047",JX="_escribirNombre_1byta_1048",eY="_tablaDeAvd_1byta_1076",tY="_filaDeAvd_1byta_1084",nY="_identidadDeAvd_1byta_1091",rY="_detalleDeAvd_1byta_1099",aY="_celdaDeAccion_1byta_1106",oY="_enMarcha_1byta_1142",sY="_girando_1byta_1151",iY="_sinGuardar_1byta_1177",lY="_listaDeMudanza_1byta_1194",Y={capa:SQ,velo:$Q,ventana:AQ,navegacion:EQ,marcaDeAjustes:DQ,placa:zQ,titulo:TQ,alcance:MQ,seccion:LQ,iconoDeSeccion:IQ,panel:PQ,encabezado:RQ,nota:qQ,vacio:FQ,filas:OQ,fila:BQ,cabeceraDeFila:UQ,nombre:HQ,textoDeProyecto:VQ,fechaDeProyecto:GQ,logo:WQ,identidad:ZQ,idDeProveedor:QQ,estadoDeClave:XQ,url:YQ,detalle:KQ,punto:JQ,accion:eX,principal:tX,peligro:nX,destructiva:rX,confirmacion:aX,formulario:oX,etiqueta:sX,campo:iX,aviso:lX,cerrar:cX,subencabezado:uX,elegirModelo:dX,casilla:pX,botones:mX,enlace:hX,comando:fX,subsubencabezado:gX,iconoDeAjuste:vX,campoConBoton:bX,listaLarga:yX,casillaEnLinea:xX,filaBuscarEn:_X,separador:wX,subencabezadoPegado:jX,medidoAlPie:CX,filaDeConcurrencia:kX,filaDeWorkspace:NX,etiquetaDeWorkspace:SX,accionesDeWorkspace:$X,pistaEnLinea:AX,pestanas:EX,pestana:DX,cuenta:zX,panelDePestana:TX,cabeceraDeProyectos:MX,recargar:LX,columnasDeProyectos:IX,columnaDeProyectos:PX,encabezadoDeColumna:RX,buscadorDeProyectos:qX,lupa:FX,filtroDeProyectos:OX,filaDeNombre:BX,etiquetaDeNombre:UX,campoDeNombreConBoton:HX,filaDeUrl:VX,anchoEntero:GX,quitar:WX,quitarLleno:ZX,confirmarQuitar:QX,tituloDeAviso:XX,textoDeAviso:YX,casillaDeAviso:KX,escribirNombre:JX,tablaDeAvd:eY,filaDeAvd:tY,identidadDeAvd:nY,detalleDeAvd:rY,celdaDeAccion:aY,enMarcha:oY,girando:sY,sinGuardar:iY,listaDeMudanza:lY};function cY({actual:e,informe:t,activo:n,alElegir:r,alMedir:a}){return o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:Y.subencabezado,children:"Aparato por omisión"}),o.jsx("div",{className:Y.filaDeWorkspace,children:o.jsx(Hy,{...e===void 0?{}:{elegido:e},...t===void 0?{}:{informe:t},...a===void 0?{}:{alMedir:a},conectado:n,alElegir:r,titulo:"Aparato de las conversaciones nuevas",pie:"Se guarda para todas las conversaciones nuevas y las tareas. Sin ninguno, el agente prefiere un emulador.",enLinea:!0})}),o.jsx("p",{className:Y.nota,children:"El aparato con el que empieza cada conversación nueva y cada tarea, en cualquier proyecto. En cada conversación se puede cambiar en la pastilla del chat. Si no está conectado al empezar, la conversación lo sigue teniendo elegido y lo dice al ejecutar, en vez de pasarse a otro."})]})}const Z6=["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"],h9=[{id:"azul-noche",nombre:"XOneCode",modo:"oscuro",semillas:{fondo:"#0a1520",capa1:"#0f1d2b",capa2:"#142536",capa3:"#1b3045",texto:"#eef5fa",texto2:"#bfd0de",texto3:"#93abc0",borde:"#2a4a68",acento:"#4cc6f2",sobreAcento:"#03202e",peligro:"#f87171",exito:"#4ade80",aviso:"#fbbf24",negocio:"#c4b5fd",sombra:"#050b11",cambio:"#60a5fa",palabraClave:"#f9a8d4",cadena:"#86efac",funcion:"#7dd3fc",comentario:"#8fa6ba",constante:"#fdba74",parametro:"#fca5a5",puntuacion:"#bfd0de",enlace:"#4cc6f2",expresionDeCadena:"#86efac"}},{id:"grafito",nombre:"Grafito",modo:"oscuro",semillas:{fondo:"#0e1013",capa1:"#15181c",capa2:"#1b1f24",capa3:"#232830",texto:"#f1f4f7",texto2:"#c6cdd5",texto3:"#9ba6b2",borde:"#363e47",acento:"#38bdf8",sobreAcento:"#04202f",peligro:"#f87171",exito:"#4ade80",aviso:"#fbbf24",negocio:"#c4b5fd",sombra:"#000000",cambio:"#60a5fa",palabraClave:"#f9a8d4",cadena:"#86efac",funcion:"#7dd3fc",comentario:"#8b98a5",constante:"#fdba74",parametro:"#fca5a5",puntuacion:"#c6cdd5",enlace:"#38bdf8",expresionDeCadena:"#86efac"}},{id:"pizarra",nombre:"Pizarra",modo:"oscuro",semillas:{fondo:"#1c2430",capa1:"#222b38",capa2:"#283342",capa3:"#303d4f",texto:"#f3f6fa",texto2:"#cbd5e1",texto3:"#a3b1c2",borde:"#46566c",acento:"#5eead4",sobreAcento:"#05261f",peligro:"#fca5a5",exito:"#4ade80",aviso:"#fdba74",negocio:"#d8b4fe",sombra:"#0b0f15",cambio:"#60a5fa",palabraClave:"#fbcfe8",cadena:"#a7f3d0",funcion:"#7dd3fc",comentario:"#9fb0c3",constante:"#fed7aa",parametro:"#d8b4fe",puntuacion:"#cbd5e1",enlace:"#5eead4",expresionDeCadena:"#a7f3d0"}},{id:"tinta-calida",nombre:"Tinta cálida",modo:"oscuro",semillas:{fondo:"#15120e",capa1:"#1c1813",capa2:"#231e18",capa3:"#2d2720",texto:"#f5efe6",texto2:"#d8cdbd",texto3:"#b0a28e",borde:"#4a3f33",acento:"#fbbf24",sobreAcento:"#231700",peligro:"#fca5a5",exito:"#86efac",aviso:"#fdba74",negocio:"#f9a8d4",sombra:"#000000",cambio:"#60a5fa",palabraClave:"#f9a8d4",cadena:"#bef264",funcion:"#fdba74",comentario:"#a8998a",constante:"#fca5a5",parametro:"#fde68a",puntuacion:"#d8cdbd",enlace:"#fbbf24",expresionDeCadena:"#bef264"}},{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:"dracula",nombre:"Dracula",modo:"oscuro",semillas:{fondo:"#282a36",capa1:"#21222c",capa2:"#343746",capa3:"#44475a",texto:"#f8f8f2",texto2:"#d4d6e4",texto3:"#9aa3cc",borde:"#44475a",acento:"#bd93f9",sobreAcento:"#21222c",peligro:"#ff5555",exito:"#50fa7b",aviso:"#ffb86c",negocio:"#ff79c6",sombra:"#191a21",cambio:"#8be9fd",palabraClave:"#ff79c6",cadena:"#f1fa8c",funcion:"#50fa7b",comentario:"#8592c4",constante:"#bd93f9",parametro:"#ffb86c",puntuacion:"#f8f8f2",enlace:"#8be9fd",expresionDeCadena:"#f1fa8c"}},{id:"synthwave-84",nombre:"SynthWave '84",modo:"oscuro",semillas:{fondo:"#262335",capa1:"#1e1a2e",capa2:"#2f2a47",capa3:"#3b3358",texto:"#ffffff",texto2:"#d7d2ee",texto3:"#a39dc9",borde:"#3f3660",acento:"#ff7edb",sobreAcento:"#2a0a24",peligro:"#fe4450",exito:"#72f1b8",aviso:"#ff8b39",negocio:"#fede5d",sombra:"#171520",cambio:"#36f9f6",palabraClave:"#fede5d",cadena:"#ff8b39",funcion:"#36f9f6",comentario:"#848bbd",constante:"#f97e72",parametro:"#fede5d",puntuacion:"#d7d2ee",enlace:"#36f9f6",expresionDeCadena:"#72f1b8"}},{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:"#424a53",texto3:"#59636e",borde:"#d0d7de",acento:"#0969da",sobreAcento:"#ffffff",peligro:"#cf222e",exito:"#1a7f37",aviso:"#bc4c00",negocio:"#8250df",sombra:"#1f2328",cambio:"#0969da",palabraClave:"#cf222e",cadena:"#0a3069",funcion:"#8250df",comentario:"#59636e",constante:"#0550ae",parametro:"#0550ae",puntuacion:"#424a53",enlace:"#0969da",expresionDeCadena:"#0a3069"}},{id:"ayu-claro",nombre:"Ayu Light",modo:"claro",semillas:{fondo:"#fcfcfc",capa1:"#f3f4f5",capa2:"#ffffff",capa3:"#e9eaec",texto:"#5c6166",texto2:"#646a70",texto3:"#737980",borde:"#e1e3e6",acento:"#fa8d3e",sobreAcento:"#2b1700",peligro:"#d9363e",exito:"#4f7d00",aviso:"#c45f12",negocio:"#8a5cc0",sombra:"#3d424d",cambio:"#399ee6",palabraClave:"#d9731f",cadena:"#5f8500",funcion:"#a86a0c",comentario:"#81868d",constante:"#8a5cc0",parametro:"#a86a0c",puntuacion:"#5c6166",enlace:"#2f8fb0",expresionDeCadena:"#5f8500"}},{id:"solarized-claro",nombre:"Solarized Light",modo:"claro",semillas:{fondo:"#fdf6e3",capa1:"#eee8d5",capa2:"#fffbf0",capa3:"#e4ddc6",texto:"#073642",texto2:"#4d6168",texto3:"#5b6f77",borde:"#ddd6bf",acento:"#1f74b0",sobreAcento:"#ffffff",peligro:"#c62a27",exito:"#5f6e00",aviso:"#b5420f",negocio:"#6c71c4",sombra:"#073642",cambio:"#1f74b0",palabraClave:"#687a00",cadena:"#1f8a83",funcion:"#1f74b0",comentario:"#7c8c8c",constante:"#c42b78",parametro:"#8a6800",puntuacion:"#4d6168",enlace:"#1f74b0",expresionDeCadena:"#1f8a83"}},{id:"catppuccin-latte",nombre:"Catppuccin Latte",modo:"claro",semillas:{fondo:"#eff1f5",capa1:"#e6e9ef",capa2:"#f5f6f9",capa3:"#dce0e8",texto:"#4c4f69",texto2:"#5c5f77",texto3:"#6c6f85",borde:"#ccd0da",acento:"#8839ef",sobreAcento:"#ffffff",peligro:"#d20f39",exito:"#2f8020",aviso:"#c94f08",negocio:"#8839ef",sombra:"#4c4f69",cambio:"#1e66f5",palabraClave:"#8839ef",cadena:"#2f8020",funcion:"#1e66f5",comentario:"#6c6f85",constante:"#c94f08",parametro:"#a66408",puntuacion:"#5c5f77",enlace:"#1e66f5",expresionDeCadena:"#2f8020"}},{id:"quiet-light",nombre:"Quiet Light",modo:"claro",semillas:{fondo:"#f5f5f5",capa1:"#f2f2f2",capa2:"#ffffff",capa3:"#e4e6f1",texto:"#333333",texto2:"#4a4a4a",texto3:"#6a6a6a",borde:"#dcdcdc",acento:"#705697",sobreAcento:"#ffffff",peligro:"#aa3731",exito:"#3f7f22",aviso:"#9c5d27",negocio:"#705697",sombra:"#333333",cambio:"#4b69c6",palabraClave:"#4b69c6",cadena:"#448c27",funcion:"#aa3731",comentario:"#7f7f7f",constante:"#9c5d27",parametro:"#66788a",puntuacion:"#4a4a4a",enlace:"#4b69c6",expresionDeCadena:"#448c27"}},{id:"winter-is-coming-claro",nombre:"Winter is Coming",modo:"claro",semillas:{fondo:"#ffffff",capa1:"#f3f6f9",capa2:"#ffffff",capa3:"#e6edf4",texto:"#0e2a4d",texto2:"#2b4a6e",texto3:"#52708f",borde:"#d5dfe9",acento:"#1769c2",sobreAcento:"#ffffff",peligro:"#c62f3a",exito:"#2e7a3d",aviso:"#b5561a",negocio:"#7a3e9d",sombra:"#0e2a4d",cambio:"#1769c2",palabraClave:"#087a9a",cadena:"#9a3a7c",funcion:"#1769c2",comentario:"#6a8499",constante:"#174781",parametro:"#2f6bb8",puntuacion:"#2b4a6e",enlace:"#1769c2",expresionDeCadena:"#9a3a7c"}}];function f9(e){return h9.filter(t=>t.modo===e)}function g9(e,t){return h9.find(n=>n.id===e&&n.modo===t)??f9(t)[0]}const uY="_fila_1dzlz_5",dY="_rotulo_1dzlz_11",pY="_opciones_1dzlz_17",mY="_opcion_1dzlz_17",hY="_muestra_1dzlz_44",fY="_linea_1dzlz_56",gY="_pastilla_1dzlz_63",vY="_nombre_1dzlz_70",bY="_nota_1dzlz_75",Js={fila:uY,rotulo:dY,opciones:pY,opcion:mY,muestra:hY,linea:fY,pastilla:gY,nombre:vY,nota:bY};function yY({modo:e,elegido:t,enVigor:n,rotulo:r,alElegir:a}){return o.jsxs("div",{className:Js.fila,children:[o.jsx("span",{className:Js.rotulo,children:r}),o.jsx("div",{role:"group","aria-label":r,className:Js.opciones,children:f9(e).map(i=>{const l=i.semillas,u=l!==void 0?{fondo:l.fondo,texto:l.texto2,acento:l.acento}:i.muestra,d=u===void 0?void 0:{"--muestra-fondo":u.fondo,"--muestra-texto":u.texto,"--muestra-acento":u.acento},m=i.id===t;return o.jsxs("button",{type:"button","aria-label":i.nombre,"aria-pressed":m,className:Js.opcion,onClick:()=>{m||a(i.id)},children:[o.jsxs("span",{"data-muestra":!0,className:Js.muestra,style:d,children:[o.jsx("span",{className:Js.linea}),o.jsx("span",{className:Js.pastilla})]}),o.jsx("span",{className:Js.nombre,children:i.nombre})]},i.id)})}),n?null:o.jsxs("p",{className:Js.nota,children:["Elegirlo pone la consola en ",e,"."]})]})}function xY({avd:e,conectado:t,alArrancar:n,resultado:r}){const[a,i]=$.useState(!1);return $.useEffect(()=>{r!==void 0&&r.avd===e&&i(!1)},[r,e]),o.jsxs("span",{className:Ho.envoltura,children:[r===void 0||a?null:o.jsxs("span",{className:Ho.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:Ho.boton,disabled:t!==!0||a,title:`Arranca ${e} y espera a que el aparato aparezca`,onClick:()=>{i(!0),n(e)},children:a?"Arrancando…":"Arrancar"})]})}const _Y="_envoltura_mq7nr_5",wY="_celdaDePuerto_mq7nr_9",jY="_celdaDeCasilla_mq7nr_10",CY="_campo_mq7nr_20",kY="_campoDePuerto_mq7nr_28 _campoDeNombreConBoton_1byta_924",NY="_puerto_mq7nr_33",SY="_motivo_mq7nr_39",Bl={envoltura:_Y,celdaDePuerto:wY,celdaDeCasilla:jY,campo:CY,campoDePuerto:kY,puerto:NY,motivo:SY};function $Y({avd:e,ajuste:t,conPuerto:n,conectado:r,ajustes:a,alCambiar:i}){const[l,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=l.trim()===""?Number.NaN:Number(l);if(Number.isInteger(b)&&b===(t==null?void 0:t.puerto)){m(void 0);return}const y=c_(b,e,a);m(y),!(y!==void 0||f.current===b)&&(f.current=b,i({puerto:b}))};return o.jsxs("span",{className:Bl.envoltura,children:[o.jsx("span",{className:Bl.celdaDePuerto,children:n?o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:Bl.campoDePuerto,children:["Puerto",o.jsx("input",{type:"number",inputMode:"numeric",className:Bl.puerto,"aria-invalid":d===void 0?void 0:!0,value:l,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:Bl.motivo,role:"alert",children:d})]}):null}),o.jsx("span",{className:Bl.celdaDeCasilla,children:o.jsxs("label",{className:Bl.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=>i({sinVentana:b.target.checked})}),"Sin ventana"]})})]})}const AY="_envoltura_6fxfv_1",EY="_titulo_6fxfv_9 _subsubencabezado_1byta_511",DY="_fila_6fxfv_14 _campoDeNombreConBoton_1byta_924",zY="_campo_6fxfv_19",TY="_boton_6fxfv_28 _boton_2m29n_24 _secundario_1l1rx_39",MY="_motivo_6fxfv_32",LY="_estado_6fxfv_37",IY="_log_6fxfv_52",ps={envoltura:AY,titulo:EY,fila:DY,campo:zY,boton:TY,motivo:MY,estado:LY,log:IY},Q6={corriendo:"En curso",ok:"Creado",fallo:"Falló",cancelada:"Cancelado",colgada:"Sin respuesta"},PY="El emulador nuevo sale de este: la imagen del sistema, el modelo de teléfono, la RAM y el disco.";function RY(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}
|
|
495
|
-
|
|
496
|
-
Ahora no se puede: ${e} está encendido y, mientras corre, sus discos están bloqueados. Páralo para clonarlo.`:n}function qY({avds:e,conectado:t,alCrear:n,progreso:r,enMarcha:a=[]}){const[i,l]=$.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",j=$.useRef(void 0);$.useEffect(()=>{if(h===void 0){_&&l("");return}const M=d_(h,e);l(L=>!_&&L!==""&&L!==j.current?L:(j.current=M,M))},[h,_]);const C=(g==null?void 0:g.estado)==="corriendo",S=zb(i.trim(),e),A=i.trim()===""?void 0:S;return o.jsxs("div",{className:ps.envoltura,children:[o.jsx("h4",{className:ps.titulo,children:"Nuevo emulador"}),h===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:ps.campo,title:PY,children:[o.jsx("span",{children:"Copia de:"}),o.jsx(gs,{value:h,"aria-label":"Emulador del que copiar",disabled:t!==!0||C,onChange:M=>d(M.target.value),children:e.map(M=>o.jsx("option",{value:M,children:M},M))})]}),o.jsxs("label",{className:ps.campo,title:RY(h,b),children:[o.jsx("input",{type:"checkbox",checked:y,disabled:t!==!0||C||b,onChange:M=>f(M.target.checked)}),o.jsx("span",{children:"Copiar también lo instalado (framework y apps)"}),b?o.jsxs("span",{className:ps.motivo,children:[h," está encendido: pulsa «Parar» en su fila para poder clonarlo"]}):null]})]}),o.jsxs("div",{className:ps.fila,children:[o.jsx("input",{type:"text",value:i,placeholder:"Nombre del emulador","aria-label":"Nombre del emulador nuevo","aria-invalid":A===void 0?void 0:!0,disabled:t!==!0||C,onChange:M=>l(M.target.value)}),o.jsx("button",{type:"button",className:ps.boton,disabled:t!==!0||C||S!==void 0,title:"Crea un emulador de Android nuevo",onClick:()=>h===void 0?n(i.trim()):n(i.trim(),{base:h,conDatos:y}),children:C?"Creando…":"Crear emulador"})]}),A===void 0?null:o.jsx("span",{className:ps.motivo,children:A}),g===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ps.estado,"data-estado":g.estado,children:[g.titulo===""?Q6[g.estado]:`${g.titulo} · ${Q6[g.estado]}`,g.motivo===void 0?null:`: ${g.motivo}`]}),g.lineas.length===0?null:o.jsx("pre",{className:ps.log,children:g.lineas.slice(-5).join(`
|
|
497
|
-
`)})]})]})}const FY="_log_fjsyo_2 _log_6fxfv_52",OY={log:FY},BY=1e4;function UY({avd:e,alConfirmar:t,alCerrar:n,progreso:r}){const[a,i]=$.useState(""),[l,u]=$.useState(!1),[d,m]=$.useState(!1),f=$.useRef(r),h=l&&r!==f.current?r:void 0,b=l&&(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(!l||h!==void 0)return;const j=setTimeout(()=>{u(!1),m(!0)},BY);return()=>clearTimeout(j)},[l,h]);const _=()=>{f.current=r,m(!1),u(!0),t()};return o.jsx(Zn,{open:!0,onClose:()=>y?void 0:n(),title:"Eliminar emulador",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:j=>{j.target===j.currentTarget&&!y&&n()},children:o.jsxs("div",{className:ge.ventana,role:"alertdialog","aria-label":`Eliminar el emulador ${e}`,children:[o.jsx("h2",{className:ge.titulo,children:"Eliminar emulador"}),o.jsxs("p",{className:ge.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:ge.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:ge.etiqueta,htmlFor:"eliminar-emulador-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"eliminar-emulador-nombre",className:ge.campo,value:a,autoFocus:!0,autoComplete:"off",spellCheck:!1,disabled:b,onChange:j=>i(j.target.value),onKeyDown:j=>{j.key==="Enter"&&g&&!b&&_()}}),d?o.jsx("p",{className:ge.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:ge.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:OY.log,children:h.lineas.slice(-5).join(`
|
|
498
|
-
`)}),o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,disabled:y,onClick:n,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:tt(ge.accion,ge.principal,r1.destructiva),disabled:!g||b,onClick:_,children:b?"Eliminando…":"Eliminar"})]})]})})})}const HY=1500;function Y2(e,t){const n=$.useRef(t);n.current=t;const r=t!==void 0;$.useEffect(()=>{if(!e||!r)return;let a=0;const i=()=>{var u;if(document.visibilityState!=="visible")return;const l=Date.now();l-a<HY||(a=l,(u=n.current)==null||u.call(n))};return i(),window.addEventListener("focus",i),document.addEventListener("visibilitychange",i),()=>{window.removeEventListener("focus",i),document.removeEventListener("visibilitychange",i)}},[e,r])}const VY="_nota_e0xu9_10",GY="_vacio_e0xu9_11",WY="_pista_e0xu9_12",ZY="_problemas_e0xu9_38",QY="_filas_e0xu9_48",XY="_fila_e0xu9_48",YY="_cabeceraDeFila_e0xu9_64",KY="_nombre_e0xu9_70",JY="_relleno_e0xu9_75",eK="_motor_e0xu9_82",tK="_origen_e0xu9_83",nK="_lectura_e0xu9_84",rK="_ejecucion_e0xu9_85",aK="_descripcion_e0xu9_123 _instrucciones_e0xu9_267",oK="_confirmar_e0xu9_132",sK="_accion_e0xu9_151 _secundario_1l1rx_39",iK="_icono_e0xu9_168",lK="_iconoDestructivo_e0xu9_190",cK="_destructiva_e0xu9_198",uK="_formulario_e0xu9_205",dK="_campo_e0xu9_215",pK="_rotulo_e0xu9_251",mK="_casilla_e0xu9_257",hK="_instrucciones_e0xu9_267",fK="_botones_e0xu9_294",gK="_aviso_e0xu9_304",vK="_principal_e0xu9_323 _primario_1l1rx_67",bK="_restaurar_e0xu9_353",yK="_accionDeFila_e0xu9_370",xK="_pestanas_e0xu9_395",_K="_pestana_e0xu9_395",wK="_cuenta_e0xu9_429",jK="_panelDePestana_e0xu9_440",CK="_nuevo_e0xu9_457",kK="_listaDeSkills_e0xu9_469",NK="_casillaDeSkill_e0xu9_485",SK="_textoDeSkill_e0xu9_519",$K="_nombreDeSkill_e0xu9_527",AK="_costeDeSkill_e0xu9_533",EK="_descripcionDeSkill_e0xu9_549",DK="_skillHuerfana_e0xu9_568",Ie={nota:VY,vacio:GY,pista:WY,problemas:ZY,filas:QY,fila:XY,cabeceraDeFila:YY,nombre:KY,relleno:JY,motor:eK,origen:tK,lectura:nK,ejecucion:rK,descripcion:aK,confirmar:oK,accion:sK,icono:iK,iconoDestructivo:lK,destructiva:cK,formulario:uK,campo:dK,rotulo:pK,casilla:mK,instrucciones:hK,botones:fK,aviso:gK,principal:vK,restaurar:bK,accionDeFila:yK,pestanas:xK,pestana:_K,cuenta:wK,panelDePestana:jK,nuevo:CK,listaDeSkills:kK,casillaDeSkill:NK,textoDeSkill:SK,nombreDeSkill:$K,costeDeSkill:AK,descripcionDeSkill:EK,skillHuerfana:DK};function Yg(e){return e==="modelo"||e==="claude-code"}const zK=[{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"}],TK="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.",MK={"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 LK(){return{nombre:"",descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}const IK={modelo:"El del papel que le toque","claude-code":"El que use Claude Code",codex:"El que use Codex",opencode:"El que use OpenCode"},PK={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 X6({alPulsar:e}){return o.jsx(Re,{variant:"outline",className:tt(Ie.principal,Ie.nuevo),onClick:e,children:"Nuevo subagente"})}const v9=/^[a-z0-9]+(-[a-z0-9]+)*$/;function RK(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(!v9.test(e))return"solo vale minúsculas, dígitos y guiones sencillos (ni espacios, ni acentos, ni guion al principio o al final)"}}function qK(e){const t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t!==""&&v9.test(t)?t:void 0}const Y6=[{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."}],K6=e=>e==="claude-code"||e==="codex"||e==="opencode";function FK({agentes:e,problemas:t,hayProyecto:n,proveedores:r,modelosDeMotor:a,alPedirModelosDeMotor:i,alPedirCatalogo:l,catalogoDeSkills:u,alGuardar:d,alBorrar:m,alRestaurar:f}){var O,ne;const[h,b]=$.useState(void 0),[y,g]=$.useState(!1),[_,j]=$.useState("global"),[C,S]=$.useState(void 0),[A,M]=$.useState("serie"),[L,z]=$.useState(void 0),P=(r??[]).filter(E=>E.credencial==="puesta"||E.modelos!==void 0),H=E=>{var ue;return E.motor==="modelo"?P.some(ae=>(ae.modelos??[]).some(be=>`${ae.id}/${be.id}`===E.modelo)):(((ue=a==null?void 0:a[E.motor])==null?void 0:ue.modelos)??[]).some(ae=>ae.id===E.modelo)},R=h==null?void 0:h.motor;$.useEffect(()=>{R===void 0||!K6(R)||(a==null?void 0:a[R])===void 0&&(i==null||i(R))},[R,a,i]);const F=P.filter(E=>E.modelos===void 0&&E.error===void 0),U=(()=>{var $e,pe,Le;const E=h==null?void 0:h.modelo;if(E===void 0||(h==null?void 0:h.motor)!=="modelo")return[];const ue=E.indexOf("/");if(ue<=0)return[];const ae=E.slice(0,ue),be=E.slice(ue+1);return((Le=(pe=($e=(r??[]).find(Ae=>Ae.id===ae))==null?void 0:$e.modelos)==null?void 0:pe.find(Ae=>Ae.id===be))==null?void 0:Le.esfuerzos)??[]})(),Z=F.map(E=>E.id).join(",");$.useEffect(()=>{if(!(R!=="modelo"||Z===""))for(const E of Z.split(","))l==null||l(E)},[R,Z,l]);const re={serie:(e??[]).filter(E=>E.semilla!==void 0),propios:(e??[]).filter(E=>E.semilla===void 0)},le=h!==void 0&&h.nombre.trim()!==""&&h.nombre!==L&&(e??[]).some(E=>E.nombre===h.nombre.trim()),ee=h===void 0?void 0:RK(h.nombre),ke=h===void 0?void 0:qK(h.nombre),_e=h===void 0?void 0:le?`Ya hay un subagente que se llama «${h.nombre.trim()}». Elige otro nombre, o borra ese primero.`:ee===void 0?void 0:`El nombre ${ee}.${ke===void 0?"":` Prueba con «${ke}».`}`,ie=()=>{S(void 0),z(void 0),b(LK()),g(!0),j(n?"proyecto":"global")},Ne=()=>{b(void 0),g(!1)},B=()=>{if(h===void 0)return;const E=L!==void 0&&L!==h.nombre?L:void 0;d(h,_,E),Ne()};return e===void 0?o.jsx("p",{className:Ie.nota,children:"Consultando los subagentes…"}):o.jsxs(o.Fragment,{children:[h!==void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Ie.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:Ie.problemas,role:"alert",children:t.map(E=>o.jsx("li",{children:E},E))}):null,e.length===0?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Ie.vacio,children:"No hay ningún subagente. Sin ninguno, el orquestador no tiene en quién delegar."}),o.jsx(X6,{alPulsar:ie})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Ie.pestanas,role:"tablist","aria-label":"Subagentes por origen",children:Y6.map(E=>o.jsxs("button",{type:"button",role:"tab",className:Ie.pestana,"aria-selected":E.clave===A,"data-actual":E.clave===A?"":void 0,onClick:()=>{M(E.clave),S(void 0)},children:[E.titulo,re[E.clave].length>0?o.jsx("span",{className:Ie.cuenta,children:re[E.clave].length}):null]},E.clave))}),o.jsxs("div",{role:"tabpanel",className:Ie.panelDePestana,children:[A==="propios"?o.jsx(X6,{alPulsar:ie}):null,re[A].length===0?o.jsx("p",{className:Ie.vacio,children:Y6.find(E=>E.clave===A).vacio}):o.jsx("ul",{className:Ie.filas,children:re[A].map(E=>o.jsx(OK,{agente:E,abierta:C,alAbrir:S,alEditar:()=>{S(void 0),j(E.origen==="proyecto"?"proyecto":"global"),z(E.nombre),b({...E}),g(!1)},alBorrar:()=>m(E.nombre,E.origen==="proyecto"?"proyecto":"global"),alRestaurar:()=>f(E.nombre)},E.nombre))})]})]})]}),h===void 0?null:o.jsxs("div",{className:Ie.formulario,children:[o.jsxs("label",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Nombre",h.semilla===void 0?null:o.jsx("span",{className:Ie.pista,children:" — no se cambia: lo trae XOneCode"})]}),o.jsx(qa,{value:h.nombre,disabled:!y&&h.semilla!==void 0,onChange:E=>b({...h,nombre:E.target.value})})]}),o.jsxs("label",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Cuándo usarlo ",o.jsx("span",{className:Ie.pista,children:"— lo lee el orquestador para elegirlo"})]}),o.jsx("textarea",{className:Ie.descripcion,rows:4,value:h.descripcion,onChange:E=>b({...h,descripcion:E.target.value})})]}),o.jsxs("label",{className:Ie.campo,children:[o.jsx("span",{className:Ie.rotulo,children:"Motor"}),o.jsx(gs,{value:h.motor,onChange:E=>b({...h,motor:E.target.value,modelo:void 0}),children:zK.map(E=>o.jsxs("option",{value:E.id,children:[E.etiqueta," — ",E.detalle]},E.id))})]}),o.jsxs("label",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Modelo ",o.jsx("span",{className:Ie.pista,children:PK[h.motor]??""})]}),o.jsxs(gs,{value:h.modelo??"",onChange:E=>b({...h,...E.target.value===""?{modelo:void 0}:{modelo:E.target.value}}),children:[o.jsx("option",{value:"",children:IK[h.motor]??"El que le toque"}),h.motor==="modelo"?P.filter(E=>(E.modelos??[]).length>0).map(E=>o.jsx("optgroup",{label:E.nombre,children:(E.modelos??[]).map(ue=>o.jsx("option",{value:`${E.id}/${ue.id}`,children:ue.nombre??ue.id},`${E.id}/${ue.id}`))},E.id)):(((O=a==null?void 0:a[h.motor])==null?void 0:O.modelos)??[]).map(E=>o.jsx("option",{value:E.id,children:E.nombre},E.id)),h.modelo!==void 0&&!H(h)?o.jsxs("option",{value:h.modelo,children:[h.modelo," — el que ya tenía"]}):null]}),h.motor==="modelo"&&F.length>0?o.jsxs("p",{className:Ie.pista,children:["Consultando los modelos de ",F.map(E=>E.nombre).join(", "),"…"]}):null,K6(h.motor)&&((ne=a==null?void 0:a[h.motor])==null?void 0:ne.error)!==void 0?o.jsx("p",{className:Ie.aviso,role:"alert",children:a[h.motor].error}):null]}),h.motor==="modelo"&&U.length>0?o.jsxs("label",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Esfuerzo"," ",o.jsx("span",{className:Ie.pista,children:"— cuánto razona antes de contestar"})]}),o.jsxs(gs,{value:h.esfuerzo??"",onChange:E=>b({...h,...E.target.value===""?{esfuerzo:void 0}:{esfuerzo:E.target.value}}),children:[o.jsx("option",{value:"",children:"Sin fijar — decide el modelo"}),U.map(E=>o.jsx("option",{value:E,children:E},E))]})]}):null,o.jsxs("label",{className:Ie.casilla,children:[o.jsx("input",{type:"checkbox",checked:h.soloLectura,onChange:E=>b({...h,soloLectura:E.target.checked})}),o.jsxs("span",{children:["Solo lectura ",o.jsx("span",{className:Ie.pista,children:"— si escribe, sus cambios pasan por tu aprobación"})]})]}),Yg(h.motor)?o.jsxs("label",{className:Ie.casilla,children:[o.jsx("input",{type:"checkbox",checked:h.ejecucion===!0,onChange:E=>b(E.target.checked?{...h,ejecucion:!0}:(({ejecucion:ue,...ae})=>ae)(h))}),o.jsxs("span",{children:["Ejecuta comandos"," ",o.jsx("span",{className:Ie.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:Ie.aviso,children:[TK," ",MK[h.motor]??"",h.ejecucion===!0&&!Yg(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(BK,{elegidas:h.skills,...u===void 0?{}:{catalogo:u},alCambiar:E=>b({...h,skills:E})}),o.jsxs("label",{className:Ie.campo,children:[o.jsx("span",{className:Ie.rotulo,children:"Instrucciones"}),o.jsx("textarea",{className:Ie.instrucciones,rows:8,value:h.instrucciones,onChange:E=>b({...h,instrucciones:E.target.value})})]}),n?o.jsxs("label",{className:Ie.campo,children:[o.jsx("span",{className:Ie.rotulo,children:"Dónde se guarda"}),o.jsxs(gs,{value:_,onChange:E=>j(E.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:Ie.pista,children:"Se guarda como global: no hay ningún proyecto abierto."}),_e===void 0?null:o.jsx("p",{className:Ie.aviso,children:_e}),o.jsxs("div",{className:Ie.botones,children:[o.jsx(Re,{variant:"outline",className:Ie.accion,onClick:Ne,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:Ie.principal,disabled:_e!==void 0||h.nombre.trim()===""||h.descripcion.trim()==="",onClick:B,children:"Guardar"})]})]})]})}function OK({agente:e,abierta:t,alAbrir:n,alEditar:r,alBorrar:a,alRestaurar:i}){const l=e,u=(t==null?void 0:t.nombre)===l.nombre?t.que:void 0,d=m=>n(u===m?void 0:{nombre:l.nombre,que:m});return o.jsxs("li",{className:Ie.fila,children:[o.jsxs("div",{className:Ie.cabeceraDeFila,children:[o.jsx("span",{className:Ie.nombre,children:l.nombre}),o.jsx("span",{className:Ie.motor,children:l.motor}),l.origen===void 0?null:o.jsx("span",{className:Ie.origen,children:l.origen}),l.soloLectura?o.jsx("span",{className:Ie.lectura,children:"solo lectura"}):null,l.ejecucion===!0&&Yg(l.motor)?o.jsx("span",{className:Ie.ejecucion,title:"Puede ejecutar comandos en esta máquina",children:"ejecuta"}):null,o.jsx("span",{className:Ie.relleno}),o.jsx("button",{type:"button",className:Ie.icono,"aria-label":`Editar ${l.nombre}`,title:"Editar",onClick:()=>{n(void 0),r()},children:o.jsx(L2,{size:18})}),l.semilla===void 0?o.jsx("button",{type:"button",className:tt(Ie.icono,Ie.iconoDestructivo),"aria-label":`Eliminar ${l.nombre}`,title:"Eliminar",onClick:()=>d("borrar"),children:o.jsx(I2,{size:18})}):null]}),o.jsx("p",{className:Ie.descripcion,children:l.descripcion}),l.semilla==="modificada"&&u!=="restaurar"?o.jsxs("p",{className:Ie.restaurar,children:["Lo has editado, así que las mejoras que publiquemos en él ya no te llegan."," ",o.jsx(Re,{variant:"outline",className:Ie.accionDeFila,onClick:()=>d("restaurar"),children:"Restaurar el de serie"})]}):null,u==="borrar"?o.jsxs("p",{className:Ie.confirmar,children:["Se borra el fichero de «",l.nombre,"». No hay papelera."," ",o.jsx(Re,{variant:"outline",className:Ie.destructiva,onClick:()=>{a(),n(void 0)},children:"Eliminar"})]}):null,u==="restaurar"?o.jsxs("p",{className:Ie.confirmar,children:["Se pisa tu versión de «",l.nombre,"» con la de XOneCode. Lo que hayas escrito no vuelve."," ",o.jsx(Re,{variant:"outline",className:Ie.destructiva,onClick:()=>{i(),n(void 0)},children:"Restaurar"})]}):null]})}function BK({elegidas:e,catalogo:t,alCambiar:n}){if(t===void 0)return o.jsxs("label",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Skills ",o.jsx("span",{className:Ie.pista,children:"— separadas por comas"})]}),o.jsx(qa,{value:e.join(", "),onChange:l=>n(l.target.value.split(",").map(u=>u.trim()).filter(u=>u!==""))})]});const r=new Set(t.map(l=>l.nombre)),a=e.filter(l=>!r.has(l)),i=(l,u)=>{n(u?[...e,l]:e.filter(d=>d!==l))};return o.jsxs("div",{className:Ie.campo,children:[o.jsxs("span",{className:Ie.rotulo,children:["Skills ",o.jsx("span",{className:Ie.pista,children:"— las que se le cargan bajo demanda"})]}),t.length===0&&a.length===0?o.jsx("p",{className:Ie.pista,children:"No hay ninguna skill. Se escriben en la sección Skills."}):o.jsxs("ul",{className:Ie.listaDeSkills,children:[t.map(l=>o.jsx("li",{children:o.jsxs("label",{className:Ie.casillaDeSkill,children:[o.jsx("input",{type:"checkbox",checked:e.includes(l.nombre),onChange:u=>i(l.nombre,u.target.checked)}),o.jsxs("span",{className:Ie.textoDeSkill,children:[o.jsx("span",{className:Ie.nombreDeSkill,children:l.nombre}),o.jsxs("span",{className:Ie.costeDeSkill,children:[St(l.tokens)," tok"]}),o.jsx("span",{className:Ie.descripcionDeSkill,title:l.descripcion,children:l.descripcion})]})]})},l.nombre)),a.map(l=>o.jsx("li",{children:o.jsxs("label",{className:tt(Ie.casillaDeSkill,Ie.skillHuerfana),children:[o.jsx("input",{type:"checkbox",checked:!0,onChange:()=>i(l,!1)}),o.jsxs("span",{className:Ie.textoDeSkill,children:[o.jsx("span",{className:Ie.nombreDeSkill,children:l}),o.jsx("span",{className:Ie.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."})]})]})},l))]})]})}const UK="_nota_1gwiq_17",HK="_vacio_1gwiq_18",VK="_pista_1gwiq_19",GK="_problemas_1gwiq_45",WK="_filas_1gwiq_55",ZK="_fila_1gwiq_55",QK="_cabeceraDeFila_1gwiq_71",XK="_nombre_1gwiq_77",YK="_relleno_1gwiq_82",KK="_origen_1gwiq_90",JK="_descripcion_1gwiq_119",eJ="_confirmar_1gwiq_128",tJ="_accion_1gwiq_147 _secundario_1l1rx_39",nJ="_icono_1gwiq_164",rJ="_iconoDestructivo_1gwiq_186",aJ="_destructiva_1gwiq_194",oJ="_formulario_1gwiq_201",sJ="_campo_1gwiq_211",iJ="_rotulo_1gwiq_247",lJ="_instrucciones_1gwiq_263",cJ="_botones_1gwiq_277",uJ="_principal_1gwiq_304 _primario_1l1rx_67",dJ="_accionDeFila_1gwiq_351",pJ="_pestanas_1gwiq_376",mJ="_pestana_1gwiq_376",hJ="_cuenta_1gwiq_410",fJ="_panelDePestana_1gwiq_421",gJ="_nuevo_1gwiq_438",vJ="_tokens_1gwiq_451",bJ="_anexos_1gwiq_464",yJ="_listaDeAnexos_1gwiq_471",xJ="_cuerpo_1gwiq_482",_J="_texto_1gwiq_494",wJ="_piePropio_1gwiq_508",jJ="_rotuloDeBloque_1gwiq_521",CJ="_frontmatter_1gwiq_537",kJ="_acciones_1gwiq_555",NJ="_elector_1gwiq_564",Ke={nota:UK,vacio:HK,pista:VK,problemas:GK,filas:WK,fila:ZK,cabeceraDeFila:QK,nombre:XK,relleno:YK,origen:KK,descripcion:JK,confirmar:eJ,accion:tJ,icono:nJ,iconoDestructivo:rJ,destructiva:aJ,formulario:oJ,campo:sJ,rotulo:iJ,instrucciones:lJ,botones:cJ,principal:uJ,accionDeFila:dJ,pestanas:pJ,pestana:mJ,cuenta:hJ,panelDePestana:fJ,nuevo:gJ,tokens:vJ,anexos:bJ,listaDeAnexos:yJ,cuerpo:xJ,texto:_J,piePropio:wJ,rotuloDeBloque:jJ,frontmatter:CJ,acciones:kJ,elector:NJ},J6=[{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."}],Bf=6,SJ={serie:"XOneCode",global:"global",proyecto:"proyecto"};function $J({skills:e,problemas:t,cuerpos:n,hayProyecto:r,alPedirCuerpo:a,alGuardar:i,alBorrar:l,alInstalar:u}){const[d,m]=$.useState("serie"),[f,h]=$.useState(void 0),[b,y]=$.useState("global"),[g,_]=$.useState(void 0),[j,C]=$.useState(void 0),[S,A]=$.useState({trabajando:!1}),M=$.useRef(null);if(e===void 0)return o.jsx("p",{className:Ke.nota,children:"Consultando las skills…"});const L={serie:e.filter(U=>U.origen==="serie"),propias:e.filter(U=>U.origen!=="serie")},z=U=>{if(g===U.nombre){_(void 0);return}_(U.nombre),U.cuerpo===void 0&&!(n!==void 0&&U.nombre in n)&&a(U.nombre)},P=r?"proyecto":"global",H=()=>{h({nombre:"",descripcion:"",cuerpo:""}),y(P),C(void 0)},R=U=>{h({nombre:U.nombre,descripcion:U.descripcion,cuerpo:U.cuerpo??"",...U.frontmatter===void 0?{}:{frontmatter:U.frontmatter},renombrandoDe:U.nombre}),y(U.origen==="proyecto"?"proyecto":"global"),C(void 0)},F=(U,Z)=>{h({nombre:"",descripcion:U.descripcion,cuerpo:Z,...U.frontmatter===void 0?{}:{frontmatter:U.frontmatter}}),y(r?"proyecto":"global"),_(void 0)};if(f!==void 0){const U=f.nombre.trim()===""||f.descripcion.trim()==="";return o.jsxs("div",{className:Ke.formulario,children:[o.jsxs("label",{className:Ke.campo,children:[o.jsxs("span",{className:Ke.rotulo,children:["Nombre ",o.jsx("span",{className:Ke.pista,children:"— es la carpeta: minúsculas, dígitos y guiones"})]}),o.jsx(qa,{value:f.nombre,onChange:Z=>h({...f,nombre:Z.target.value})})]}),o.jsxs("label",{className:Ke.campo,children:[o.jsxs("span",{className:Ke.rotulo,children:["Descripción ",o.jsx("span",{className:Ke.pista,children:"— cuándo cargarla; la lee el modelo"})]}),o.jsx(qa,{value:f.descripcion,onChange:Z=>h({...f,descripcion:Z.target.value})})]}),o.jsxs("label",{className:Ke.campo,children:[o.jsxs("span",{className:Ke.rotulo,children:["Instrucciones ",o.jsx("span",{className:Ke.pista,children:"— el cuerpo del SKILL.md"})]}),o.jsx("textarea",{className:Ke.instrucciones,rows:14,value:f.cuerpo,onChange:Z=>h({...f,cuerpo:Z.target.value})})]}),r?o.jsxs("label",{className:Ke.campo,children:[o.jsx("span",{className:Ke.rotulo,children:"Dónde se guarda"}),o.jsxs(gs,{value:b,onChange:Z=>y(Z.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:Ke.botones,children:[o.jsx(Re,{className:Ke.accion,variant:"outline",onClick:()=>h(void 0),children:"Cancelar"}),o.jsx(Re,{className:Ke.principal,disabled:U,onClick:()=>{i({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:Ke.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:Ke.problemas,role:"alert",children:t.map(U=>o.jsx("li",{children:U},U))}):null,o.jsx("div",{className:Ke.pestanas,role:"tablist","aria-label":"Skills por origen",children:J6.map(U=>o.jsxs("button",{type:"button",role:"tab",className:Ke.pestana,"aria-selected":U.clave===d,"data-actual":U.clave===d?"":void 0,onClick:()=>{m(U.clave),_(void 0),C(void 0)},children:[U.titulo,L[U.clave].length>0?o.jsx("span",{className:Ke.cuenta,children:L[U.clave].length}):null]},U.clave))}),o.jsxs("div",{role:"tabpanel",className:Ke.panelDePestana,children:[d==="propias"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Ke.acciones,children:[o.jsx(Re,{className:tt(Ke.principal,Ke.nuevo),variant:"outline",onClick:H,children:"Nueva skill"}),u===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx(Re,{className:tt(Ke.accion,Ke.nuevo),variant:"outline",disabled:S.trabajando,onClick:()=>{var U;return(U=M.current)==null?void 0:U.click()},children:S.trabajando?"Instalando…":"Instalar un .zip"}),o.jsx("input",{ref:M,type:"file",accept:".zip,application/zip",className:Ke.elector,onChange:U=>{var re;const Z=(re=U.target.files)==null?void 0:re[0];U.target.value="",Z!==void 0&&(A({trabajando:!0}),u(Z.name,P,Z).then(le=>A({trabajando:!1,...le.ok?{}:{error:le.motivo??"no se pudo instalar"}})))}})]})]}),S.error!==void 0?o.jsx("p",{className:Ke.problemas,role:"alert",children:S.error}):null]}):null,L[d].length===0?o.jsx("p",{className:Ke.vacio,children:J6.find(U=>U.clave===d).vacio}):o.jsx("ul",{className:Ke.filas,children:L[d].map(U=>o.jsx(AJ,{skill:U,abierta:g===U.nombre,cuerpoPedido:n!==void 0&&U.nombre in n?n[U.nombre]:void 0,sePidio:n!==void 0&&U.nombre in n,borrando:j===U.nombre,alAbrir:()=>z(U),alEditar:()=>R(U),alCopiar:Z=>F(U,Z),alArmarBorrado:()=>C(j===U.nombre?void 0:U.nombre),alBorrar:()=>{l(U,U.origen==="proyecto"?"proyecto":"global"),C(void 0)}},U.nombre))})]})]})}function AJ({skill:e,abierta:t,cuerpoPedido:n,sePidio:r,borrando:a,alAbrir:i,alEditar:l,alCopiar:u,alArmarBorrado:d,alBorrar:m}){const f=e.origen==="serie",h=e.cuerpo??n;return o.jsxs("li",{className:Ke.fila,children:[o.jsxs("div",{className:Ke.cabeceraDeFila,children:[o.jsx("span",{className:Ke.nombre,children:e.nombre}),o.jsx("span",{className:Ke.origen,children:SJ[e.origen]}),o.jsxs("span",{className:Ke.tokens,title:`${e.tokens} tokens si el modelo la carga`,children:[St(e.tokens)," tok"]}),o.jsx("span",{className:Ke.relleno}),o.jsx("button",{type:"button",className:Ke.accionDeFila,"aria-expanded":t,onClick:i,children:t?"Ocultar":"Ver"}),f?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Ke.icono,"aria-label":`Editar ${e.nombre}`,onClick:l,children:o.jsx(L2,{})}),o.jsx("button",{type:"button",className:tt(Ke.icono,Ke.iconoDestructivo),"aria-label":`Eliminar ${e.nombre}`,title:"Eliminar",onClick:d,children:o.jsx(I2,{})})]})]}),t?o.jsxs("div",{className:Ke.cuerpo,children:[e.frontmatter!==void 0&&e.frontmatter.trim()!==""?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Ke.rotuloDeBloque,children:"Frontmatter"}),o.jsx("pre",{className:Ke.frontmatter,children:e.frontmatter.trimEnd()})]}):o.jsx("p",{className:Ke.descripcion,children:e.descripcion}),e.ficheros.length>0?o.jsxs("p",{className:Ke.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:Ke.listaDeAnexos,children:e.ficheros.slice(0,Bf).join(", ")}),e.ficheros.length>Bf?` y ${e.ficheros.length-Bf} 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:Ke.rotuloDeBloque,children:"Instrucciones"}),o.jsx("pre",{className:Ke.texto,children:h}),f?o.jsxs("div",{className:Ke.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:Ke.accionDeFila,onClick:()=>u(h),children:"Copiar a las tuyas"})]}):null]}):r?o.jsx("p",{className:Ke.vacio,children:"No se pudo leer el SKILL.md de esta skill."}):o.jsx("p",{className:Ke.vacio,children:"Leyendo…"})]}):null,a?o.jsxs("div",{className:Ke.confirmar,children:[o.jsx("span",{children:"Se borra la carpeta entera, anexos incluidos. No hay papelera."}),o.jsx(Re,{className:tt(Ke.accion,Ke.destructiva),onClick:m,children:"Eliminar"})]}):null]})}const EJ={deepwiki:"/iconos/conectores/deepwiki.png",jira:"/iconos/conectores/jira.png"},DJ={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 a1({id:e,nombre:t,size:n=20,className:r}){const a=EJ[e];if(a!==void 0)return o.jsx("img",{className:r,src:a,alt:"",width:n,height:n});const i=DJ[e],l=t.trim().charAt(0).toUpperCase()||"?";return o.jsx("svg",{viewBox:i===void 0?"0 0 20 20":"0 0 18 18",width:n,height:n,fill:"none","aria-hidden":"true",focusable:"false",className:r,children:i===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:l})]}):o.jsx("path",{d:i,fill:"currentColor"})})}const zJ="_nota_ciziz_13",TJ="_vacio_ciziz_14",MJ="_problemas_ciziz_22",LJ="_estado_ciziz_36",IJ="_grupo_ciziz_49",PJ="_filas_ciziz_58",RJ="_fila_ciziz_58",qJ="_cabeceraDeFila_ciziz_74",FJ="_icono_ciziz_84",OJ="_nombre_ciziz_89",BJ="_autenticacion_ciziz_94",UJ="_relleno_ciziz_107",HJ="_pastilla_ciziz_118",VJ="_sinProbar_ciziz_127",GJ="_conectado_ciziz_132",WJ="_esperando_ciziz_137",ZJ="_faltaAutorizar_ciziz_138",QJ="_noResponde_ciziz_143",XJ="_motivo_ciziz_151",YJ="_descripcion_ciziz_158",KJ="_accionDeFila_ciziz_167",JJ="_exito_ciziz_190",eee="_cuerpo_ciziz_200",tee="_tools_ciziz_207",nee="_tool_ciziz_207",ree="_nombreDeTool_ciziz_223",aee="_soloLectura_ciziz_232",oee="_descripcionDeTool_ciziz_244",see="_formulario_ciziz_253",iee="_etiqueta_ciziz_254",lee="_campo_ciziz_274",cee="_aviso_ciziz_254",uee="_accion_ciziz_167 _secundario_1l1rx_39",dee="_principal_ciziz_186 _primario_1l1rx_67",pee="_botones_ciziz_254",Qe={nota:zJ,vacio:TJ,problemas:MJ,estado:LJ,grupo:IJ,filas:PJ,fila:RJ,cabeceraDeFila:qJ,icono:FJ,nombre:OJ,autenticacion:BJ,relleno:UJ,pastilla:HJ,sinProbar:VJ,conectado:GJ,esperando:WJ,faltaAutorizar:ZJ,noResponde:QJ,motivo:XJ,descripcion:YJ,accionDeFila:KJ,exito:JJ,cuerpo:eee,tools:tee,tool:nee,nombreDeTool:ree,soloLectura:aee,descripcionDeTool:oee,formulario:see,etiqueta:iee,campo:lee,aviso:cee,accion:uee,principal:dee,botones:pee},b9={ninguna:"Sin autenticación","api-key":"Clave de API",oauth:"OAuth"},mee=["ninguna","api-key","oauth"];function hee({catalogo:e,conectores:t,desconocidos:n,ilegible:r,error:a,alAccion:i,alCrear:l,secreto:u,alResponderSecreto:d}){const[m,f]=$.useState(void 0),[h,b]=$.useState(!1),[y,g]=$.useState(!1),[_,j]=$.useState(void 0);$.useEffect(()=>{_!==void 0&&t.length>_&&(b(!1),j(void 0))},[_,t.length]);const C=new Map(e.map(L=>[L.id,L])),S=new Set(t.map(L=>L.id)),A=e.filter(L=>!S.has(L.id)),M=L=>{L==="api-key"&&g(!0)};return o.jsxs(o.Fragment,{children:[n.length>0?o.jsxs("p",{className:Qe.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:Qe.estado,role:"status",children:a}):null,r===!0?o.jsxs("p",{className:Qe.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:Qe.grupo,children:["Configurados · ",t.length]}),t.length===0?o.jsx("p",{className:Qe.vacio,children:"Ninguno todavía: añade uno de los disponibles."}):o.jsx("ul",{className:Qe.filas,children:t.map(L=>o.jsx(gee,{conector:L,entrada:C.get(L.id),abierta:m===L.id,alAbrir:()=>f(z=>z===L.id?void 0:L.id),alAccion:z=>{var P;z==="autorizar"&&M((P=C.get(L.id))==null?void 0:P.autenticacion),i(z,L.id)}},L.id))})]}),y&&u!==void 0?o.jsx("div",{ref:y9,children:o.jsx(Gl,{texto:u,oculta:!0,anidado:!0,alResponder:async L=>{await d(L),g(!1)}})}):null,o.jsxs("section",{children:[o.jsxs("h3",{className:Qe.grupo,children:["Disponibles · ",A.length]}),h?o.jsx(vee,{alCerrar:()=>{b(!1),j(void 0)},alCrear:L=>{j(t.length),M(L.autenticacion),l(L)}}):o.jsxs(o.Fragment,{children:[A.length===0?o.jsx("p",{className:Qe.vacio,children:"Ya has añadido todo el catálogo."}):o.jsx("ul",{className:Qe.filas,children:A.map(L=>o.jsxs("li",{className:Qe.fila,children:[o.jsxs("div",{className:Qe.cabeceraDeFila,children:[o.jsx(a1,{id:L.id,nombre:L.nombre,className:Qe.icono}),o.jsx("span",{className:Qe.nombre,children:L.nombre}),o.jsx("span",{className:Qe.autenticacion,children:b9[L.autenticacion]}),o.jsx("span",{className:Qe.relleno}),o.jsx("button",{type:"button",className:Qe.accionDeFila,onClick:()=>{i("anadir",L.id),L.autenticacion!=="ninguna"&&(M(L.autenticacion),i("autorizar",L.id))},children:"Añadir"})]}),o.jsx("p",{className:Qe.descripcion,children:L.descripcion})]},L.id))}),o.jsx("div",{className:Qe.botones,children:o.jsx(Re,{variant:"outline",className:Qe.accion,onClick:()=>b(!0),children:"Añadir servidor"})})]})]}),o.jsx("p",{className:Qe.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:Qe.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 fee(e){return e.prueba!==void 0&&e.prueba.ok?{texto:`Conectado · ${e.prueba.tools.length} tools`,clase:Qe.conectado}:e.autorizando===!0?{texto:"Esperando al navegador…",clase:Qe.esperando}:e.estado==="falta-autorizar"?{texto:"Falta autorizar",clase:Qe.faltaAutorizar}:e.prueba!==void 0&&!e.prueba.ok?{texto:"No responde",clase:Qe.noResponde,motivo:e.prueba.motivo}:{texto:"Sin probar",clase:Qe.sinProbar}}function gee({conector:e,entrada:t,abierta:n,alAbrir:r,alAccion:a}){const i=(t==null?void 0:t.nombre)??e.id,l=fee(e),u=(t==null?void 0:t.autenticacion)!=="ninguna";return o.jsxs("li",{className:Qe.fila,children:[o.jsxs("div",{className:Qe.cabeceraDeFila,children:[o.jsx(a1,{id:e.id,nombre:i,className:Qe.icono}),o.jsx("span",{className:Qe.nombre,children:i}),o.jsx("span",{className:tt(Qe.pastilla,l.clase),...l.motivo===void 0?{}:{title:l.motivo},children:l.texto}),o.jsx("span",{className:Qe.relleno}),o.jsx("button",{type:"button",className:Qe.accionDeFila,"aria-expanded":n,onClick:r,children:n?"Ocultar":"Ver"}),u&&e.estado!=="autorizado"?o.jsx("button",{type:"button",className:Qe.accionDeFila,onClick:()=>a("autorizar"),children:e.autorizando===!0?"Volver a abrir":"Conectar"}):null,o.jsx("button",{type:"button",className:tt(Qe.accionDeFila,Qe.exito),onClick:()=>a("probar"),children:"Probar"}),u&&e.estado==="autorizado"?o.jsx("button",{type:"button",className:Qe.accionDeFila,onClick:()=>a("desconectar"),children:"Desconectar"}):null,o.jsx("button",{type:"button",className:Qe.accionDeFila,onClick:()=>a("quitar"),children:"Quitar"})]}),t!==void 0?o.jsx("p",{className:Qe.descripcion,children:t.descripcion}):null,l.motivo!==void 0?o.jsx("p",{className:Qe.motivo,children:l.motivo}):null,n?o.jsx("div",{className:Qe.cuerpo,children:e.prueba!==void 0&&e.prueba.ok?e.prueba.tools.length===0?o.jsx("p",{className:Qe.vacio,children:"no expone ninguna tool"}):o.jsx("ul",{className:Qe.tools,children:e.prueba.tools.map(d=>o.jsxs("li",{className:Qe.tool,children:[o.jsx("span",{className:Qe.nombreDeTool,children:d.nombre}),d.soloLectura===!0?o.jsx("span",{className:Qe.soloLectura,children:"solo lectura"}):null,d.descripcion!==void 0?o.jsx("p",{className:Qe.descripcionDeTool,children:d.descripcion}):null]},d.nombre))}):o.jsx("p",{className:Qe.vacio,children:"Pruébalo para ver qué tools ofrece."})}):null]})}function y9(e){e!==null&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}function vee({alCerrar:e,alCrear:t}){const[n,r]=$.useState(""),[a,i]=$.useState(""),[l,u]=$.useState(""),[d,m]=$.useState("ninguna"),[f,h]=$.useState(void 0),b=n.trim()===""||a.trim()===""||l.trim()==="",y=g=>{if(g.preventDefault(),!b){if(!Nm(l.trim())){h(Z2);return}h(void 0),t({nombre:n.trim(),descripcion:a.trim(),url:l.trim(),autenticacion:d})}};return o.jsxs("form",{className:Qe.formulario,ref:y9,onSubmit:y,children:[o.jsx("p",{className:Qe.nota,children:"Apunta a un endpoint MCP remoto: después se comporta como cualquier otro conector."}),o.jsx("label",{className:Qe.etiqueta,htmlFor:"conector-nombre",children:"Nombre"}),o.jsx(qa,{id:"conector-nombre",className:Qe.campo,value:n,placeholder:"Mi servidor MCP",onChange:g=>r(g.target.value)}),o.jsx("label",{className:Qe.etiqueta,htmlFor:"conector-descripcion",children:"Descripción"}),o.jsx(qa,{id:"conector-descripcion",className:Qe.campo,value:a,placeholder:"Qué ofrece: es lo que se lee en la lista",onChange:g=>i(g.target.value)}),o.jsx("label",{className:Qe.etiqueta,htmlFor:"conector-url",children:"URL"}),o.jsx(qa,{id:"conector-url",className:Qe.campo,value:l,placeholder:"https://mcp.ejemplo.com/mcp",onChange:g=>{u(g.target.value),h(void 0)}}),o.jsx("label",{className:Qe.etiqueta,htmlFor:"conector-autenticacion",children:"Autenticación"}),o.jsx(gs,{id:"conector-autenticacion",value:d,onChange:g=>{const _=g.target.value;Tb(_)&&m(_)},children:mee.map(g=>o.jsx("option",{value:g,children:b9[g]},g))}),o.jsx("p",{className:Qe.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:Qe.aviso,role:"alert",children:f}):null,o.jsxs("div",{className:Qe.botones,children:[o.jsx(Re,{variant:"outline",className:Qe.accion,onClick:e,children:"Cancelar"}),o.jsx(Re,{type:"submit",variant:"primary",className:Qe.principal,disabled:b,children:"Añadir"})]})]})}const bee="_envoltura_rqr4r_2",yee="_titulo_rqr4r_8 _subsubencabezado_1byta_511",xee="_nota_rqr4r_12",_ee="_listo_rqr4r_18",wee="_motivo_rqr4r_24",jee="_boton_rqr4r_30 _secundario_1l1rx_39",Cee="_fila_rqr4r_36 _campoDeNombreConBoton_1byta_924",kee="_pasos_rqr4r_41",oo={envoltura:bee,titulo:yee,nota:xee,listo:_ee,motivo:wee,boton:jee,fila:Cee,pasos:kee},eb="https://dashboard.ngrok.com/get-started/your-authtoken";function Nee({ngrok:e,conectado:t=!0,alEnviar:n}){const[r,a]=$.useState(e.dominio??""),[i,l]=$.useState(""),u=()=>{const m=i.trim();m!==""&&(n({clase:"remoto",accion:"authtoken",authtoken:m}),l(""))},d=m=>o.jsxs("form",{className:oo.fila,onSubmit:f=>{f.preventDefault(),u()},children:[o.jsx("input",{type:"password",value:i,placeholder:m,"aria-label":"Authtoken de ngrok",autoComplete:"off",spellCheck:!1,disabled:!t,onChange:f=>l(f.target.value)}),o.jsx("button",{type:"submit",className:oo.boton,disabled:!t||i.trim()==="",children:"Guardar authtoken"})]});return $.useEffect(()=>a(e.dominio??""),[e.dominio]),o.jsxs("div",{className:oo.envoltura,children:[o.jsx("h3",{className:oo.titulo,children:"Túnel local (ngrok)"}),e.instalado?e.cuenta?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:oo.listo,children:["ngrok listo",e.dominio===void 0?"":` · dominio ${e.dominio}`]}),o.jsxs("div",{className:oo.fila,children:[o.jsx("input",{type:"text",value:r,placeholder:"Dominio fijo (opcional)","aria-label":"Dominio fijo de ngrok",disabled:!t,onChange:m=>a(m.target.value)}),o.jsx("button",{type:"button",className:oo.boton,disabled:!t||r.trim()===(e.dominio??""),title:"Vacío = quitar el dominio y usar uno aleatorio en cada encendido",onClick:()=>n({clase:"remoto",accion:"dominio",dominio:r.trim()}),children:"Guardar"})]}),d("Cambiar authtoken"),o.jsxs("p",{className:oo.nota,children:["El authtoken está en"," ",o.jsx("a",{href:eb,target:"_blank",rel:"noopener noreferrer",children:"Your Authtoken"}),", en el panel de tu cuenta de ngrok."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:oo.nota,children:"ngrok viene con xonecode; falta el authtoken de tu cuenta. Cómo conseguirlo:"}),o.jsxs("ol",{className:oo.pasos,children:[o.jsxs("li",{children:["Crea una cuenta gratuita en"," ",o.jsx("a",{href:"https://dashboard.ngrok.com/signup",target:"_blank",rel:"noopener noreferrer",children:"ngrok.com"})," ","(o entra con la tuya)."]}),o.jsxs("li",{children:["Abre"," ",o.jsx("a",{href:eb,target:"_blank",rel:"noopener noreferrer",children:"Your Authtoken"})," ","en el panel de ngrok y pulsa «Copy»."]}),o.jsx("li",{children:"Pégalo aquí y pulsa «Guardar authtoken». Se guarda solo en esta máquina."})]}),d("Pega aquí tu authtoken")]}):o.jsx("p",{className:oo.nota,children:"El componente de ngrok que trae xonecode no carga en esta máquina: reinstala xonecode."}),e.motivo===void 0?null:o.jsx("p",{className:oo.motivo,children:e.motivo})]})}const See="_receta_jnvvl_3",$ee="_titulo_jnvvl_11",Aee="_descripcion_jnvvl_18",Eee="_hecha_jnvvl_19",Dee="_despues_jnvvl_20",zee="_aparte_jnvvl_36",Tee="_aparteTitulo_jnvvl_42",Mee="_pasos_jnvvl_49",Lee="_paso_jnvvl_49",Iee="_numero_jnvvl_65",Pee="_cuerpo_jnvvl_75",Ree="_pasoTitulo_jnvvl_80",qee="_marca_jnvvl_95",Fee="_nota_jnvvl_112",Oee="_bloque_jnvvl_122",Bee="_comandos_jnvvl_127",Uee="_trabajo_jnvvl_148",Hee="_estado_jnvvl_155",Vee="_girando_jnvvl_174",Gee="_log_jnvvl_197",Wee="_ejecutar_jnvvl_214 _secundario_1l1rx_39",Zee="_cancelar_jnvvl_215 _secundario_1l1rx_39",Qee="_acepta_jnvvl_233",Ot={receta:See,titulo:$ee,descripcion:Aee,hecha:Eee,despues:Dee,aparte:zee,aparteTitulo:Tee,pasos:Mee,paso:Lee,numero:Iee,cuerpo:Pee,pasoTitulo:Ree,marca:qee,nota:Fee,bloque:Oee,comandos:Bee,trabajo:Uee,estado:Hee,girando:Vee,log:Gee,ejecutar:Wee,cancelar:Zee,acepta:Qee};function Xee({receta:e,instalacion:t,alEjecutar:n,alCancelar:r}){const a=l=>t!==void 0&&t.receta===e.id&&t.paso===l?t:void 0,i=l=>l.hecho?l.repetir:void 0;return o.jsxs("section",{className:Ot.receta,"aria-label":e.titulo,children:[o.jsx("h4",{className:Ot.titulo,children:e.titulo}),e.completa?o.jsx("p",{className:Ot.hecha,children:"Ya está: esta máquina lo tiene todo."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Ot.descripcion,children:e.descripcion}),o.jsx("ol",{className:Ot.pasos,children:e.pasos.map((l,u)=>o.jsxs("li",{className:Ot.paso,"data-hecho":l.hecho?"":void 0,children:[o.jsx("span",{className:Ot.numero,"aria-hidden":!0,children:u+1}),o.jsxs("div",{className:Ot.cuerpo,children:[o.jsxs("p",{className:Ot.pasoTitulo,children:[o.jsx("span",{className:Ot.marca,"data-hecho":l.hecho?"":void 0,"aria-label":l.hecho?"hecho":"pendiente",role:"img"}),l.titulo]}),l.nota===void 0?null:o.jsx("p",{className:Ot.nota,children:l.nota}),o.jsxs("div",{className:Ot.bloque,children:[o.jsx("pre",{className:Ot.comandos,children:l.comandos.join(`
|
|
499
|
-
`)}),o.jsx(pu,{texto:l.comandos.join(`
|
|
500
|
-
`),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:Ot.trabajo,children:[o.jsxs("p",{className:Ot.estado,children:[o.jsx("span",{className:Ot.girando,"aria-hidden":!0}),d.titulo," · ",Kee(d.ms),r===void 0?null:o.jsx("button",{type:"button",className:Ot.cancelar,onClick:r,children:"Cancelar"})]}),d.lineas.length===0?null:o.jsx("pre",{className:Ot.log,children:d.lineas.join(`
|
|
501
|
-
`)})]}):o.jsxs("div",{className:Ot.trabajo,children:[d===void 0?null:o.jsxs("p",{className:Ot.estado,"data-estado":d.estado,children:[d.estado==="ok"&&!l.hecho?"Terminó sin error, pero la medida sigue sin encontrarlo":Yee[d.estado],d.motivo===void 0?null:`: ${d.motivo}`]}),l.ejecutable?n===void 0||l.hecho&&i(l)===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Ot.ejecutar,disabled:(t==null?void 0:t.estado)==="corriendo",onClick:()=>n(u+1),children:((f=i(l))==null?void 0:f.etiqueta)??"Ejecutar este paso"}),i(l)===void 0?null:o.jsxs("span",{className:Ot.acepta,children:[i(l).porQue,"."]}),l.acepta===void 0?null:o.jsxs("span",{className:Ot.acepta,children:["Al pulsar aceptas ",l.acepta,"."]})]}):l.porQueNo===void 0?null:o.jsx("p",{className:Ot.nota,children:/^hace falta|^hazlo/i.test(l.porQueNo)?`No se puede lanzar todavía: ${l.porQueNo}.`:`No se lanza desde aquí: ${l.porQueNo}.`})]})})()]})]},l.titulo))})]}),e.aparte===void 0?null:o.jsxs("div",{className:Ot.aparte,children:[o.jsx("p",{className:Ot.aparteTitulo,children:e.aparte.titulo}),e.aparte.nota===void 0?null:o.jsx("p",{className:Ot.nota,children:e.aparte.nota}),o.jsxs("div",{className:Ot.bloque,children:[o.jsx("pre",{className:Ot.comandos,children:e.aparte.comandos.join(`
|
|
502
|
-
`)}),o.jsx(pu,{texto:e.aparte.comandos.join(`
|
|
503
|
-
`),etiqueta:`Copiar «${e.aparte.titulo}»`})]})]}),o.jsx("p",{className:Ot.despues,children:e.despues})]})}const Yee={corriendo:"En marcha",ok:"Hecho",fallo:"No salió bien",cancelada:"Cancelado por ti",colgada:"Se quedó sin decir nada y se paró"};function Kee(e){const t=Math.floor(e/1e3);return t<60?`${t} s`:`${Math.floor(t/60)} min ${t%60} s`}const Kg={"claude-code":"Claude Code",codex:"Codex",opencode:"OpenCode"},Jee={"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."}]},ete="_encabezado_as3e7_4 _encabezado_1byta_149",tte="_nota_as3e7_8 _nota_1byta_155",nte="_vacio_as3e7_12 _vacio_1byta_156",rte="_pestanas_as3e7_16 _pestanas_1byta_728",ate="_pestana_as3e7_16 _pestana_1byta_542",ote="_boton_as3e7_24 _secundario_1l1rx_39",ste="_primario_as3e7_28 _primario_1l1rx_67",ite="_exito_as3e7_33",lte="_punto_as3e7_45",cte="_tarjeta_as3e7_58",ute="_datos_as3e7_69",dte="_detalle_as3e7_90",pte="_modelo_as3e7_95",mte="_aviso_as3e7_120",hte="_pruebas_as3e7_126",fte="_hora_as3e7_141",gte="_resultadoDeLogin_as3e7_147",vte="_login_as3e7_157",bte="_filaDeCodigo_as3e7_169",yte="_acciones_as3e7_187",xte="_plegable_as3e7_199",_te="_guia_as3e7_210",wte="_comando_as3e7_220",$t={encabezado:ete,nota:tte,vacio:nte,pestanas:rte,pestana:ate,boton:ote,primario:ste,exito:ite,punto:lte,tarjeta:cte,datos:ute,detalle:dte,modelo:pte,aviso:mte,pruebas:hte,hora:fte,resultadoDeLogin:gte,login:vte,filaDeCodigo:bte,acciones:yte,plegable:xte,guia:_te,comando:wte},jte=["claude-code","codex","opencode"],tb={unico:void 0,"sin-ejecucion":"Subagentes sin ejecución","con-ejecucion":"Subagentes con ejecución"};function Cte({motores:e,conectado:t,agentes:n,alAccion:r,modelosDeMotor:a,alPedirModelosDeMotor:i}){var _;const[l,u]=$.useState("claude-code");Y2(r!==void 0,r===void 0?void 0:()=>r({accion:"medir"}));const d=(_=e==null?void 0:e[0])==null?void 0:_.medido,m=uc(d,t),f=e==null?void 0:e.find(j=>j.motor===l),[h,b]=$.useState(void 0),y=h??(f==null?void 0:f.conSesion)!==!0,g=(n??[]).filter(j=>j.motor===l).map(j=>j.nombre);return o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:$t.encabezado,children:"Motores locales"}),o.jsx("p",{className:$t.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:$t.pestanas,role:"tablist","aria-label":"Motores",children:jte.map(j=>{const C=e==null?void 0:e.find(A=>A.motor===j),S=(C==null?void 0:C.instalado)==="ok"&&C.conSesion!==!1;return o.jsxs("button",{type:"button",role:"tab",className:$t.pestana,"aria-selected":j===l,"data-actual":j===l?"":void 0,onClick:()=>{u(j),b(void 0)},children:[Kg[j],C===void 0?null:o.jsx("span",{className:$t.punto,"data-listo":S?"":void 0,"aria-hidden":"true"})]},j)})}),o.jsxs("div",{role:"tabpanel","aria-label":Kg[l],children:[f===void 0?o.jsx("p",{className:$t.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(kte,{estado:f,conectado:t,...r===void 0?{}:{alAccion:r},...(a==null?void 0:a[f.motor])===void 0?{}:{modelos:a[f.motor]},...i===void 0?{}:{alPedirModelos:i}}),g.length===0?null:o.jsxs("p",{className:$t.nota,children:["Lo usan: ",g.join(", "),"."]}),r===void 0?null:o.jsx("div",{className:$t.acciones,children:o.jsx("button",{type:"button",className:$t.boton,disabled:!t||m.esperando,onClick:()=>{m.empezar(),r({accion:"medir"})},children:m.esperando?"Comprobando…":"Volver a comprobar"})}),o.jsxs("button",{type:"button",className:$t.plegable,"aria-expanded":y,onClick:()=>b(!y),children:[y?"▾":"▸"," Paso a paso para hacerlo a mano"]}),y?o.jsx("ol",{className:$t.guia,children:Jee[l].map(j=>o.jsxs("li",{children:[j.texto,j.comando===void 0?null:o.jsx("code",{className:$t.comando,children:j.comando})]},j.texto))}):null]})]})}function kte({estado:e,conectado:t,alAccion:n,modelos:r,alPedirModelos:a}){var b,y;const i=e.motor,[l,u]=$.useState(""),d=uc(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:$t.tarjeta,children:[o.jsxs("dl",{className:$t.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:$t.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:$t.detalle,children:[" — ",e.detalle]})]})]})]}),e.admiteModelo===!0&&e.instalado==="ok"?o.jsx(Nte,{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:$t.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:$t.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?"✓":"✕"})," ",tb[g.camino]===void 0?null:o.jsxs("strong",{children:[tb[g.camino],": "]}),g.detalle,o.jsxs("span",{className:$t.hora,children:[" ",(g.ms/1e3).toLocaleString("es",{maximumFractionDigits:1})," s · ",Ste(g.medido)]})]},g.camino))}),f===void 0||f.fase==="esperando"?null:o.jsx("p",{className:$t.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:$t.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:$t.filaDeCodigo,onSubmit:g=>{g.preventDefault(),l.trim()!==""&&(n({accion:"codigo",motor:i,codigo:l}),u(""))},children:[o.jsx("input",{type:"text",value:l,"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:$t.boton,disabled:!t||l.trim()==="",children:"Enviar código"})]}),o.jsxs("div",{className:$t.acciones,children:[o.jsx("button",{type:"button",className:$t.boton,disabled:!t,onClick:()=>n({accion:"navegador",motor:i}),children:"Volver a abrir el navegador"}),o.jsx("button",{type:"button",className:$t.boton,disabled:!t,onClick:()=>n({accion:"cancelar",motor:i}),children:"Cancelar"})]})]}):null,n===void 0||h?null:o.jsxs("div",{className:$t.acciones,children:[e.admiteLogin===!0&&e.conSesion!==!0?o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:$t.primario,disabled:!t,title:"Abre el navegador para entrar con tu cuenta de Claude (Pro, Max, Team…)",onClick:()=>n({accion:"login",motor:i,modo:"claudeai"}),children:"Iniciar sesión"}),o.jsx("button",{type:"button",className:$t.boton,disabled:!t,title:"Entrar con una cuenta de la Consola de Anthropic: se paga por uso",onClick:()=>n({accion:"login",motor:i,modo:"console"}),children:"Con la Consola de Anthropic"})]}):null,e.admiteConsola===!0&&e.conSesion!==!0?o.jsx("button",{type:"button",className:$t.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:i}),children:"Abrir consola de inicio de sesión"}):null,e.instalado!=="ok"?null:o.jsx("button",{type:"button",className:tt($t.boton,$t.exito),disabled:!t||m,title:"Le manda un mensaje de verdad y espera su respuesta",onClick:()=>{d.empezar(),n({accion:"probar",motor:i})},children:m?"Probando…":"Probar"})]})]})}function Nte({estado:e,conectado:t,modelos:n,alAccion:r,alPedirModelos:a}){const i=e.motor,l=n===void 0;$.useEffect(()=>{l&&t&&(a==null||a(i))},[l,t,a,i]);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:$t.modelo,children:[o.jsxs("label",{children:[o.jsx("span",{children:"Modelo"}),o.jsxs("select",{value:e.modelo??"","aria-label":`Modelo de ${Kg[i]}`,disabled:!t||r===void 0||l,onChange:m=>{const f=m.target.value;r==null||r(f===""?{accion:"modelo",motor:i}:{accion:"modelo",motor:i,modelo:f})},children:[o.jsx("option",{value:"",children:l?"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:$t.detalle,children:["No se pudo leer la lista: ",n.error]}),o.jsxs("p",{className:$t.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 Ste(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString("es",{hour:"2-digit",minute:"2-digit"})}function nb(e){if(e===void 0)return;if("progreso"in e){const{fase:r,proyecto:a,indice:i,total:l}=e.progreso,u=a===void 0?"":` «${a}»${i!==void 0&&l!==void 0?` (${i} de ${l})`:""}`;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 $te(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 Ate(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>rb)return`no puede pasar de ${rb} caracteres, que es lo que cabe en su pestaña`}const rb=60,Ete=()=>{},Dte=[{id:"general",etiqueta:"General",Icono:X0},{id:"modelos",etiqueta:"Modelos",Icono:Az},{id:"motores",etiqueta:"Motores locales",Icono:wz},{id:"entornos",etiqueta:"Entornos",Icono:$z},{id:"agentes",etiqueta:"Subagentes",Icono:_z},{id:"skills",etiqueta:"Skills",Icono:Ez},{id:"conectores",etiqueta:"Conectores",Icono:bz},{id:"remoto",etiqueta:"Sesión remota",Icono:yz},{id:"dispositivos",etiqueta:"Dispositivos",Icono:xz}],zte=[{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"]}],ab=[{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+)"}],ob={adb:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",emulator:"C:\\Users\\tú\\AppData\\Local\\Android\\Sdk\\emulator\\emulator.exe"},Tte={mac:{adb:"~/Library/Android/sdk/platform-tools/adb",emulator:"~/Library/Android/sdk/emulator/emulator"},windows:ob,linux:{adb:"~/Android/Sdk/platform-tools/adb",emulator:"~/Android/Sdk/emulator/emulator"},otro:ob},Mte=e=>Tte[e??"windows"],Lte=["android","ios"],A0={android:"Android",ios:"iOS"},sb="los simuladores y dispositivos iOS solo se detectan en macOS";function Ite(e,t){const n=(r,a)=>((r==null?void 0:r.trim())??"")===((a==null?void 0:a.trim())??"");return Mb.every(r=>Wp(e,r)===Wp(t,r))&&n(e.rutaAdb,t.rutaAdb)&&n(e.rutaEmulator,t.rutaEmulator)}function Pte(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const ib={ok:"disponible","no-encontrada":"no está instalada",fallo:"falló","no-aplica":"no aplica en este sistema",desactivada:"no se ha mirado"};function Rte({proveedores:e=[],entornos:t=[],proyectos:n=[],proyectosPorEntorno:r={},alPedirProyectosDeEntorno:a,alQuitarEntorno:i,alRenombrarEntorno:l,avisoDelAlta:u,entornoActivo:d,seccionInicial:m,secreto:f,dispositivos:h,ajustesDeDispositivos:b,alCambiarDispositivos:y,alActualizarDispositivos:g,alAbrirCarpetaDeHerramienta:_,alInstalarHerramienta:j,alVerificarDispositivo:C,alArrancarEmulador:S,arranqueDeEmulador:A,alAjustarAvd:M,alPararEmulador:L,alCrearEmulador:z,alEliminarEmulador:P,modelosDeMotor:H,alPedirModelosDeMotor:R,motoresLocales:F,alMotorLocal:U,alPedirCatalogo:Z,modeloPorDefecto:re,alElegirModelo:le,instalacion:ee,alEjecutarPaso:ke,alCancelarPaso:_e,conectado:ie=!0,agentes:Ne,hayProyecto:B,alGuardarAgente:O,alBorrarAgente:ne,alRestaurarAgente:E,skills:ue,cuerposDeSkill:ae,alPedirCuerpoDeSkill:be,alGuardarSkill:$e,alBorrarSkill:pe,alInstalarSkill:Le,conectores:Ae,remoto:ut,alRemoto:yt,alAccionDeConector:Ct,alCrearDeConector:Qt,alPedirClave:An,alBorrarClave:cn,alRegistrarEntorno:ya,alAltaDeProveedor:In,alBajaDeProveedor:gr,resultadoDeProveedor:qt,alElegirProyectos:$r,alResponderSecreto:xa,tareas:or,alCambiarConcurrencia:Qn,workspace:ra,alCambiarWorkspace:me,alPlanearWorkspace:Se,mudanzaDeWorkspace:qe,depuracionActiva:ot,alCambiarDepuracion:gt,modoPorDefecto:Ht,temas:Br,modoEnVigor:sr,alCambiarTema:Ur,alCambiarModoPorDefecto:vr,dispositivoPorDefecto:an,alCambiarDispositivoPorDefecto:Pn,alElegirCarpeta:En,carpetaElegida:Rn,alCerrar:Hr}){var Aa,No,Ts;const[Ft,fo]=$.useState(()=>m??"general"),[Dn,tl]=$.useState(void 0),[ui,_a]=$.useState(void 0),Ar=ui??b??{},Zo=ui!==void 0&&!Ite(ui,b??{}),[Qo,wa]=$.useState(void 0),Xo=()=>{if(Ft==="dispositivos"&&Zo)return"Dispositivos";if(Ft==="general"&&_s)return"la carpeta donde se bajan los proyectos"},Yo=X=>{Jo!=="en-curso"&&(Xo()!==void 0&&X!==Ft?wa(()=>()=>fo(X)):fo(X))},aa=()=>{Jo!=="en-curso"&&(Xo()!==void 0?wa(()=>Hr):Hr())},[Ua,ja]=$.useState(void 0),Jt=Ua??ra??"",oa=$te(Jt),_s=Ua!==void 0&&Ua.trim()!==(ra??""),[Ha,dc]=$.useState(()=>(Rn==null?void 0:Rn.n)??0),[ir,go]=$.useState(!1);Rn!==void 0&&Rn.n!==Ha&&(dc(Rn.n),go(!1),Rn.ruta!==void 0&&ja(Rn.ruta));const[ws,nl]=$.useState(!1),[pc,vo]=$.useState(void 0),[qn,Ko]=$.useState(void 0),rl=qe!==void 0&&"progreso"in qe,Jo=qn===void 0?rl?"en-curso":void 0:qn.negativa!==void 0?"final":qn.aplicada===void 0?"confirmar":qe!==qn.aplicada.antes&&qe!==void 0&&"resultado"in qe?"final":"en-curso",zt=ws||rl||qn!==void 0,al=async X=>{const Ue=await(me==null?void 0:me(X));if(typeof Ue=="string"){vo(Ue);return}ja(void 0)},sa=async X=>{if(vo(void 0),Se===void 0){await al(X);return}nl(!0);const Ue=await Se(X).catch(()=>{});nl(!1),Ue===void 0?vo("no se pudo preguntar al servidor qué se movería: no se ha cambiado nada"):Ue.motivo!==void 0?vo(Ue.motivo):Ue.proyectos.length===0?await al(X):Ko({ruta:X,plan:Ue})},di=async()=>{if(qn===void 0)return;Ko({...qn,aplicada:{antes:qe}});const X=await(me==null?void 0:me(qn.ruta));typeof X=="string"?Ko(Ue=>Ue===void 0?Ue:{...Ue,negativa:X}):ja(void 0)},[bo,ol]=$.useState(()=>qe),mc=Jo===void 0&&qe!==void 0&&qe!==bo&&"resultado"in qe&&qe.resultado.estado==="rechazado"?qe.resultado.motivo:void 0,Ca=pc??mc,Vr=()=>{vo(void 0),ol(qe)},js=()=>{Ko(void 0),ol(qe)},[un,es]=$.useState(void 0),[ia,Cs]=$.useState(!1),[Va,Ga]=$.useState(!1),[yo,ka]=$.useState(""),[pi,xo]=$.useState(""),Na=X=>{X!==null&&typeof X.scrollIntoView=="function"&&X.scrollIntoView({block:"nearest",behavior:"smooth"})},[sl,Er]=$.useState(void 0),[_o,wo]=$.useState(""),[il,wt]=$.useState(()=>{var X;return d??((X=t[0])==null?void 0:X.id)}),At=((Aa=t.find(X=>X.id===il))==null?void 0:Aa.id)??d??((No=t[0])==null?void 0:No.id),jo=X=>{if(X===void 0)return{};const Ue=r[X];return Ue!==void 0?Ue:X===d&&n.length>0?{proyectos:n}:{}},[mi,ks]=$.useState({}),[Wa,Ns]=$.useState({}),[Gr,Za]=$.useState({}),la=X=>{var On;if(X===void 0)return[];const Ue=mi[X];if(Ue!==void 0)return Ue;const xt=(On=t.find(Et=>Et.id===X))==null?void 0:On.proyectos;return xt!==void 0?xt:(jo(X).proyectos??[]).slice(0,_m).map(Et=>Et.id)},{proyectos:Dr,error:Fn}=jo(At);$.useEffect(()=>{Ft!=="entornos"||ia||At===void 0||a===void 0||Dr!==void 0||Fn!==void 0||a(At)},[Ft,ia,At,Dr,Fn]),$.useEffect(()=>{At!==void 0&&Ns(X=>X[At]===!0?{...X,[At]:!1}:X)},[Dr,Fn]),Y2(Ft==="dispositivos",g);const Qa=uc(h==null?void 0:h.medido,ie),[Sa,br]=$.useState(void 0),[ts,Ss]=$.useState(void 0),$s=X=>{if(X.preventDefault(),!Nm(_o)){br(Z2);return}br(void 0),Ss({entornos:t.length,...u===void 0?{}:{aviso:u}}),ya(_o),wo("")};$.useEffect(()=>{ts===void 0||t.length<=ts.entornos||(Ss(void 0),Cs(!1))},[ts,t.length]);const hc=ts!==void 0&&u!==void 0&&u!==ts.aviso?u:void 0,Co=Va?qt==null?void 0:qt.motivo:void 0;$.useEffect(()=>{!Va||(qt==null?void 0:qt.hecho)!==!0||(Ga(!1),ka(""),xo(""))},[Va,qt]);const As=X=>{X.preventDefault(),Nm(pi)&&(In==null||In(yo,pi))},Es=e.filter(X=>X.personalizado!==!0),yr=e.filter(X=>X.personalizado===!0),$a=X=>o.jsxs("li",{className:Y.fila,"data-columna":"",children:[o.jsxs("div",{className:Y.cabeceraDeFila,children:[o.jsx(Vg,{proveedor:X.id,size:22,className:Y.logo}),o.jsxs("span",{className:Y.identidad,children:[o.jsx("span",{className:Y.nombre,children:X.nombre}),o.jsx("span",{className:Y.idDeProveedor,title:X.baseUrl===void 0?X.id:`${X.id} · ${X.baseUrl}`,children:X.baseUrl===void 0?X.id:`${X.id} · ${X.baseUrl}`})]}),o.jsxs("span",{className:Y.estadoDeClave,children:[X.credencial==="nativa"?null:o.jsx("span",{className:Y.punto,"data-credencial":X.credencial,"aria-label":X.credencial==="puesta"?"con credencial":"sin credencial"}),o.jsx("span",{className:Y.detalle,children:X.credencial==="nativa"?"local, no necesita clave":X.credencial==="puesta"?X.enFichero===!0?"clave guardada":"clave de una variable de entorno":"sin clave"})]}),X.credencial==="nativa"?null:o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>{Er(void 0),es(X.id),An(X.id)},children:X.credencial==="puesta"?"Cambiar clave":"Añadir clave"}),X.enFichero===!0?o.jsx(Re,{variant:"outline",className:Y.peligro,onClick:()=>{es(void 0),Er(X.id)},children:"Eliminar"}):null,X.personalizado===!0&&gr!==void 0?o.jsx(Re,{variant:"outline",className:Y.accion,disabled:!ie,onClick:()=>{es(void 0),Er(`baja:${X.id}`)},children:"Dar de baja"}):null]}),sl===`baja:${X.id}`?o.jsxs("p",{className:Y.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Dar de baja «",X.nombre,"»? Se borra también su clave del fichero de credenciales."]}),o.jsxs(Re,{variant:"outline",className:Y.accion,onClick:()=>{Er(void 0),gr==null||gr(X.id.replace(/^custom:/,""))},children:["Dar de baja «",X.nombre,"»"]}),o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>Er(void 0),children:"Cancelar"})]}):null,un===X.id&&f!==void 0?o.jsx("div",{ref:Na,children:o.jsx(Gl,{texto:f,oculta:!0,anidado:!0,alResponder:async Ue=>{await xa(Ue),es(void 0)}})}):null,sl===X.id?o.jsxs("p",{className:Y.confirmacion,role:"alert",children:[o.jsxs("span",{children:["¿Borrar la clave de ",X.id," del fichero de credenciales?"]}),o.jsxs(Re,{variant:"outline",className:Y.accion,onClick:()=>{Er(void 0),cn(X.id)},children:["Borrar la de ",X.id]}),o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>Er(void 0),children:"Cancelar"})]}):null]},X.id),[lr,ko]=$.useState("android"),[Ds,fc]=$.useState(new Set),ns=X=>fc(Ue=>{const xt=new Set(Ue);return xt.has(X)?xt.delete(X):xt.add(X),xt}),hi=X=>X==="adb"?"rutaAdb":"rutaEmulator",Xa=X=>((h==null?void 0:h.herramientas)??[]).filter(Ue=>Ue.plataforma===X),ll=X=>Xa(X).filter(Ue=>Ue.estado==="no-encontrada"||Ue.estado==="fallo").length,zs=h===void 0?[]:ab.filter(X=>!h.herramientas.some(Ue=>Ue.nombre===X.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(Zn,{open:!0,onClose:Ete,title:"Ajustes",headless:!0,className:Y.capa,children:o.jsx("div",{className:Y.velo,children:o.jsxs("div",{className:Y.ventana,children:[o.jsxs("nav",{className:Y.navegacion,"aria-label":"Secciones de ajustes",children:[o.jsxs("div",{className:Y.marcaDeAjustes,children:[o.jsx("span",{className:Y.placa,"aria-hidden":"true",children:o.jsx(X0,{size:16})}),o.jsxs("span",{children:[o.jsx("span",{className:Y.titulo,children:"Ajustes"}),o.jsx("span",{className:Y.alcance,children:"Configuración global"})]})]}),Dte.filter(X=>(X.id!=="conectores"||Ae!==void 0)&&(X.id!=="remoto"||ut!==void 0)).map(X=>o.jsxs("button",{type:"button",className:Y.seccion,"data-actual":X.id===Ft?"":void 0,"aria-current":X.id===Ft?"page":void 0,onClick:()=>Yo(X.id),children:[o.jsx(X.Icono,{size:16,className:Y.iconoDeSeccion}),X.etiqueta]},X.id))]}),o.jsxs("div",{className:Y.panel,children:[Ft==="motores"?o.jsx(Cte,{...F===void 0?{}:{motores:F},conectado:ie,...Ne===void 0?{}:{agentes:Ne.lista},...U===void 0?{}:{alAccion:U},...H===void 0?{}:{modelosDeMotor:H},...R===void 0?{}:{alPedirModelosDeMotor:R}}):null,Ft==="dispositivos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Dispositivos"}),o.jsx("p",{className:Y.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:Y.pestanas,role:"tablist","aria-label":"Plataformas",children:Lte.map(X=>{const Ue=ll(X),xt=X==="ios"&&(h==null?void 0:h.sistema)!==void 0&&h.sistema!=="mac";return o.jsxs("button",{type:"button",role:"tab",className:Y.pestana,"aria-selected":X===lr,"aria-disabled":xt?!0:void 0,disabled:xt,title:xt?sb:void 0,"aria-label":xt?`${A0[X]}, ${sb}`:Ue===0?A0[X]:`${A0[X]}, ${Ue} por instalar`,"data-actual":X===lr?"":void 0,onClick:xt?void 0:()=>ko(X),children:[A0[X],Ue===0?null:o.jsx("span",{className:Y.cuenta,"aria-hidden":!0,children:Ue})]},X)})}),o.jsxs("div",{role:"tabpanel",className:Y.panelDePestana,"aria-label":A0[lr],children:[o.jsx("h3",{className:Y.subencabezado,children:"Requisitos"}),h===void 0?o.jsx("p",{className:Y.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):Xa(lr).length===0?o.jsx("p",{className:Y.vacio,children:"La medida de este equipo no nombra ninguna herramienta de esta plataforma."}):o.jsx("ul",{className:Y.filas,children:Xa(lr).map(X=>{const Ue=ab.find(Et=>Et.nombre===X.nombre),xt=X.nombre==="adb"||X.nombre==="emulator"?X.nombre:void 0,On=xt!==void 0&&Ds.has(xt);return o.jsxs($.Fragment,{children:[o.jsxs("li",{className:Y.fila,children:[o.jsx("span",{className:Y.punto,"data-herramienta":X.estado,"aria-label":ib[X.estado]}),o.jsx("span",{className:Y.nombre,children:(Ue==null?void 0:Ue.etiqueta)??X.nombre}),o.jsxs("span",{className:Y.detalle,children:[ib[X.estado],Ue===void 0?"":` · ${Ue.para}`,X.detalle===void 0||X.estado==="ok"?null:` · ${X.detalle}`]}),X.instalar===void 0?null:X.instalar.automatico?o.jsx(Re,{variant:"outline",className:Y.accion,disabled:!ie||j===void 0,title:X.instalar.comando,onClick:()=>j==null?void 0:j(X.nombre),children:"Instalar"}):o.jsx("code",{className:Y.comando,title:"cópialo en un terminal",children:X.instalar.comando}),xt===void 0?null:o.jsx("button",{type:"button",className:Y.iconoDeAjuste,"aria-label":`Ajustes de ruta de ${(Ue==null?void 0:Ue.etiqueta)??X.nombre}`,"aria-expanded":On,onClick:()=>ns(xt),children:o.jsx(X0,{size:16})})]}),xt===void 0||!On?null:o.jsxs("li",{className:Y.fila,"data-columna":!0,children:[o.jsxs("label",{className:Y.filaDeWorkspace,children:[o.jsx("span",{className:Y.etiquetaDeWorkspace,children:"Ruta actual"}),o.jsxs("div",{className:Y.campoConBoton,children:[o.jsx("input",{type:"text",value:X.ruta??"",disabled:!0,placeholder:"no encontrada","aria-label":`Ruta actual de ${(Ue==null?void 0:Ue.etiqueta)??X.nombre}`}),X.ruta===void 0||_===void 0?null:o.jsx("button",{type:"button",className:Y.accion,title:"Abre esa carpeta en el explorador del sistema donde corre la consola",disabled:!ie,onClick:()=>_(xt),children:"Abrir carpeta"})]})]}),y===void 0?null:o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:Y.filaDeWorkspace,children:[o.jsx("span",{className:Y.etiquetaDeWorkspace,children:"Ruta personalizada"}),o.jsx("input",{type:"text",value:Ar[hi(xt)]??"",spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":`Ruta personalizada de ${(Ue==null?void 0:Ue.etiqueta)??X.nombre}`,placeholder:Mte(h==null?void 0:h.sistema)[xt],disabled:!ie,onChange:Et=>_a({...Ar,[hi(xt)]:Et.target.value})})]}),o.jsx("p",{className:Y.nota,children:"Vacío = se busca en el PATH y en el SDK, como hasta ahora."}),o.jsx("div",{className:Y.accionesDeWorkspace,children:o.jsx("button",{type:"button",className:Y.accion,disabled:!ie||!Zo,onClick:()=>{y(Ar),_a(void 0)},children:"Guardar"})})]})]},`${X.nombre}-ajustes`)]},X.nombre)})}),((h==null?void 0:h.recetas)??[]).filter(X=>X.plataforma===lr).map(X=>o.jsx(Xee,{receta:X,...ee===void 0?{}:{instalacion:ee},...ie&&ke!==void 0?{alEjecutar:Ue=>ke(X.id,Ue)}:{},...ie&&_e!==void 0?{alCancelar:()=>_e(X.id)}:{}},X.id)),y===void 0?null:o.jsxs("div",{className:Y.filaBuscarEn,children:[o.jsx("span",{children:"Buscar en:"}),zte.filter(X=>X.plataforma===lr).map(X=>o.jsxs("label",{className:Y.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:Wp(Ar,X.id),disabled:!ie,onChange:()=>_a({...Ar,[X.id]:!Wp(Ar,X.id)})}),X.etiqueta]},X.id))]}),o.jsx("hr",{className:Y.separador}),o.jsx("h3",{className:`${Y.subencabezado} ${Y.subencabezadoPegado}`,children:"Dispositivos y emuladores"}),h===void 0?o.jsx("p",{className:Y.vacio,children:"Todavía no ha llegado ninguna medida de este equipo."}):(()=>{const{fisicos:X,virtuales:Ue}=Uy(h),xt=st=>st.filter(Vt=>Vt.plataforma===lr),On=xt(X),Et=xt(Ue),jn=h.dispositivos.flatMap(st=>st.avd!==void 0&&st.estado!=="apagado"&&st.estado!=="no-disponible"?[st.avd]:[]);return o.jsxs(o.Fragment,{children:[o.jsx("h4",{className:Y.subsubencabezado,children:"Teléfonos y tablets"}),On.length===0?o.jsx("p",{className:Y.vacio,children:"Ninguno conectado."}):o.jsx("ul",{className:Y.filas,children:On.map(st=>o.jsxs("li",{className:Y.fila,children:[o.jsx("span",{className:Y.punto,"data-herramienta":Hi(st)?"ok":"otro","aria-label":Xl(st)}),o.jsx("span",{className:Y.nombre,children:st.nombre}),o.jsxs("span",{className:Y.detalle,children:[Xl(st),st.detalle===void 0?"":` · ${st.detalle}`]}),o.jsx(Qg,{dispositivo:st,conectado:ie,medidoDeLaFoto:h.medido,...C===void 0?{}:{alVerificar:C}})]},st.id))}),o.jsx("h4",{className:Y.subsubencabezado,children:"Simuladores y emuladores"}),Et.length===0?o.jsx("p",{className:Y.vacio,children:"Ninguno disponible."}):o.jsx("ul",{className:`${Y.filas} ${Y.listaLarga} ${Y.tablaDeAvd}`,children:Et.map(st=>{var Xn,cr,ur;const Vt=st.soloDefinicion===!0?st.nombre:st.clase==="emulador"?st.avd:void 0,dt=st.soloDefinicion!==!0&&st.clase==="emulador"&&(st.estado==="conectado"||st.estado==="arrancado");return o.jsxs("li",{className:`${Y.fila} ${Y.filaDeAvd}`,children:[o.jsx("span",{className:Y.punto,"data-herramienta":Hi(st)?"ok":"otro","aria-label":Xl(st)}),o.jsxs("span",{className:Y.identidadDeAvd,children:[o.jsx("span",{className:Y.nombre,children:st.nombre}),o.jsx("span",{className:Y.detalleDeAvd,children:Xl(st)}),Vt===void 0||((cr=(Xn=b==null?void 0:b.avds)==null?void 0:Xn[Vt])==null?void 0:cr.copiaDe)===void 0?null:o.jsxs("span",{className:Y.detalleDeAvd,children:[b.avds[Vt].clon===!0?"clon de":"copia de"," ",b.avds[Vt].copiaDe]})]}),Vt===void 0||M===void 0?o.jsxs(o.Fragment,{children:[o.jsx("span",{}),o.jsx("span",{})]}):o.jsx($Y,{avd:Vt,ajuste:(ur=b==null?void 0:b.avds)==null?void 0:ur[Vt],conPuerto:h.avds.length>=2,conectado:ie,...b===void 0?{}:{ajustes:b},alCambiar:xr=>M(Vt,xr)}),o.jsx("span",{className:Y.celdaDeAccion,children:st.soloDefinicion===!0&&S!==void 0?o.jsx(xY,{avd:st.nombre,conectado:ie,alArrancar:S,...(A==null?void 0:A.avd)===st.nombre?{resultado:A}:{}}):dt&&Vt!==void 0&&L!==void 0?o.jsx("span",{className:Ho.envoltura,children:o.jsx("button",{type:"button",className:Ho.boton,disabled:ie!==!0,title:`Para ${Vt}`,onClick:()=>L(st.id),children:"Parar"})}):null}),o.jsx("span",{className:Y.celdaDeAccion,children:o.jsx(Qg,{dispositivo:st,conectado:ie,medidoDeLaFoto:h.medido,...C===void 0?{}:{alVerificar:C}})}),o.jsx("span",{className:Y.celdaDeAccion,children:Vt===void 0||P===void 0?null:(()=>{const xr=u_(Vt,h.avds,jn);return o.jsx("button",{type:"button",className:Y.peligro,disabled:ie!==!0||xr!==void 0,title:xr===void 0?`Elimina el emulador ${Vt}`:xr,"aria-label":xr===void 0?`Eliminar ${Vt}`:`Eliminar ${Vt} (no se puede: ${xr})`,onClick:()=>tl(Vt),children:"Eliminar"})})()})]},st.id)})}),lr==="android"&&z!==void 0?o.jsx(qY,{avds:h.avds,conectado:ie,alCrear:z,enMarcha:h.dispositivos.flatMap(st=>st.avd!==void 0&&st.estado!=="apagado"&&st.estado!=="no-disponible"?[st.avd]:[]),...(ee==null?void 0:ee.receta)==="crear-avd"?{progreso:ee}:{}}):null,Dn!==void 0&&P!==void 0?o.jsx(UY,{avd:Dn,alConfirmar:()=>P(Dn),alCerrar:()=>tl(void 0),...(ee==null?void 0:ee.receta)==="borrar-avd"?{progreso:ee}:{}}):null]})})()]}),o.jsxs("p",{className:`${Y.nota} ${Y.medidoAlPie}`,children:[h===void 0?"Todavía no ha llegado ninguna medida de este equipo.":`Medido a las ${Pte(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:Y.enlace,title:c9,disabled:!ie||Qa.esperando,"aria-busy":Qa.esperando,onClick:()=>{Qa.empezar(),g()},children:[Qa.esperando?o.jsx(Yi,{}):null,"Refrescar"]})]}),zs.length===0?null:o.jsxs("p",{className:Y.nota,children:["La medida no nombra ",zs.map(X=>X.etiqueta).join(", "),": no se puede decir si"," ",zs.length===1?"está":"están","."]}),o.jsx("p",{className:Y.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,Ft==="general"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"General"}),o.jsx("p",{className:Y.nota,children:"Lo que vale para toda la máquina y no para un proyecto. Se guarda con el equipo, como los dispositivos."}),ra===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:Y.subencabezado,children:"Dónde se bajan los proyectos"}),o.jsxs("p",{className:Y.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:Y.filaDeWorkspace,children:[o.jsx("span",{className:Y.etiquetaDeWorkspace,children:"Carpeta"}),o.jsx("input",{type:"text",value:Jt,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off","aria-label":"Carpeta donde se bajan los proyectos",title:Jt,"aria-invalid":oa===void 0?void 0:!0,disabled:!ie||me===void 0||zt,onChange:X=>{ja(X.target.value),vo(void 0)}})]}),_s&&!zt&&oa===void 0?o.jsx("p",{className:Y.sinGuardar,role:"status",children:"Sin guardar: la carpeta no cambia hasta que pulses «Guardar»."}):null,o.jsxs("div",{className:Y.accionesDeWorkspace,children:[En===void 0?null:o.jsx("button",{type:"button",className:Y.accion,title:"Abre el selector de carpetas del sistema, en la máquina donde corre la consola",disabled:!ie||ir||zt,onClick:()=>{go(!0),En()},children:ir?"Abriendo…":"Examinar…"}),o.jsx("button",{type:"button",className:Y.accion,disabled:!ie||me===void 0||!_s||oa!==void 0||zt,onClick:()=>void sa(Jt.trim()),children:ws?"Comprobando…":"Guardar"})]}),ir||ws?o.jsxs("p",{className:Y.enMarcha,role:"status",children:[o.jsx("span",{className:Y.girando,"aria-hidden":"true"}),ir?"Esperando la carpeta que elijas en la ventana del sistema…":"Comprobando qué se movería a la carpeta nueva…"]}):null,oa===void 0?null:o.jsx("p",{className:Y.nota,role:"alert",children:oa}),o.jsx("p",{className:Y.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."})]}),ot===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:Y.subencabezado,children:"Depurar"}),o.jsxs("label",{className:Y.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:ot,disabled:!ie||gt===void 0,onChange:()=>gt==null?void 0:gt(!ot)}),"Dejar rastro de cuelgues y coste sin tener que pedirlo a mano"]}),o.jsxs("p",{className:Y.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."]})]}),Br===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:Y.subencabezado,children:"Temas"}),o.jsx("p",{className:Y.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(X=>o.jsx(yY,{modo:X,elegido:Br[X],enVigor:sr===void 0||sr===X,rotulo:X==="claro"?"Tema claro":"Tema oscuro",alElegir:Ue=>Ur==null?void 0:Ur(X,Ue)},X))]}),Ht===void 0?null:o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:Y.subencabezado,children:"Conversaciones nuevas"}),o.jsx(Vy,{actual:Ht,conectado:ie&&vr!==void 0,rotulo:"modo de escritura de las conversaciones nuevas",alElegir:X=>vr==null?void 0:vr(X)}),o.jsx("p",{className:Y.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."})]}),an===void 0?null:o.jsx(cY,{...an.elegido===void 0?{}:{actual:an.elegido},...h===void 0?{}:{informe:h},...g===void 0?{}:{alMedir:g},activo:ie&&Pn!==void 0,alElegir:X=>Pn==null?void 0:Pn(X)}),o.jsx("h3",{className:Y.subencabezado,children:"Tareas"}),o.jsx("p",{className:Y.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:Y.filaDeConcurrencia,children:["Tareas a la vez",o.jsx("input",{type:"number",min:0,max:8,value:(or==null?void 0:or.concurrencia)??2,disabled:!ie||Qn===void 0,onChange:X=>Qn==null?void 0:Qn(Math.max(0,Math.min(8,Math.trunc(Number(X.target.value)))))}),o.jsx("span",{className:Y.pistaEnLinea,children:"— las del mismo proyecto van siempre en serie"})]}),((or==null?void 0:or.concurrencia)??2)===0?o.jsx("p",{className:Y.nota,role:"alert",children:"Con 0 la cola queda PAUSADA: nada nuevo arranca."}):null]}):null,Ft==="modelos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Modelo por defecto"}),o.jsx("p",{className:Y.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."}),le===void 0||Z===void 0?o.jsx("p",{className:Y.vacio,children:"Esta ejecución no puede fijar el modelo por defecto."}):o.jsx("div",{className:Y.elegirModelo,children:o.jsx(By,{...re===void 0?{}:{actual:re},proveedores:e,alPedirCatalogo:Z,alElegir:le,titulo:"Modelo por defecto",enLinea:!0})}),o.jsx("h3",{className:Y.subencabezado,children:"Proveedores"}),o.jsx("p",{className:Y.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:Y.vacio,children:"Todavía no ha llegado el estado de modelos."}):Va?o.jsxs("form",{className:Y.formulario,ref:Na,onSubmit:As,children:[o.jsx("label",{className:Y.etiqueta,htmlFor:"ajustes-proveedor-nombre",children:"Nombre"}),o.jsx(qa,{id:"ajustes-proveedor-nombre",className:Y.campo,value:yo,placeholder:"Mi LM Studio",onChange:X=>ka(X.target.value)}),o.jsx("label",{className:Y.etiqueta,htmlFor:"ajustes-proveedor-url",children:"URL base compatible con OpenAI"}),o.jsx(qa,{id:"ajustes-proveedor-url",className:Y.campo,value:pi,placeholder:"http://localhost:1234/v1",onChange:X=>xo(X.target.value)}),o.jsxs("p",{className:Y.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."]}),Co!==void 0?o.jsx("p",{className:Y.aviso,role:"alert",children:Co}):null,o.jsxs("div",{className:Y.botones,children:[o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>{Ga(!1),ka(""),xo("")},children:"Cancelar"}),o.jsx(Re,{type:"submit",variant:"primary",className:Y.principal,children:"Añadir"})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("ul",{className:Y.filas,children:Es.map($a)}),o.jsx("h3",{className:Y.subencabezado,children:"Personalizados"}),o.jsx("p",{className:Y.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."}),In===void 0?o.jsx("p",{className:Y.vacio,children:"Esta ejecución no puede dar de alta proveedores."}):o.jsx(Re,{variant:"outline",className:Y.accion,disabled:!ie,onClick:()=>Ga(!0),children:"Añadir un proveedor"}),yr.length===0?o.jsx("p",{className:Y.vacio,children:"No hay ninguno todavía."}):o.jsx("ul",{className:Y.filas,children:yr.map($a)})]})]}):null,Ft==="entornos"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Entornos de CloudStudio"}),o.jsx("p",{className:Y.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."}),ia?null:o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>Cs(!0),children:"Registrar un entorno"}),ia?o.jsxs("form",{className:Y.formulario,ref:Na,onSubmit:$s,children:[o.jsx("label",{className:Y.etiqueta,htmlFor:"ajustes-url",children:"URL del MCP"}),o.jsx(qa,{id:"ajustes-url",className:Y.campo,value:_o,placeholder:"https://mcp.ejemplo.com/mcp",onChange:X=>wo(X.target.value)}),Sa!==void 0?o.jsx("p",{className:Y.aviso,role:"alert",children:Sa}):null,hc===void 0?null:o.jsx("p",{className:Y.aviso,role:"alert",children:hc}),o.jsxs("div",{className:Y.botones,children:[o.jsx(Re,{variant:"outline",className:Y.accion,onClick:()=>{Cs(!1),Ss(void 0),wo("")},children:"Cancelar"}),o.jsx(Re,{type:"submit",variant:"primary",className:Y.principal,children:"Registrar"})]})]}):null,ia?null:t.length===0?o.jsx("p",{className:Y.vacio,children:"No hay ninguno registrado todavía."}):o.jsx("div",{className:Y.pestanas,role:"tablist","aria-label":"Entornos registrados",children:t.map(X=>o.jsxs("button",{type:"button",role:"tab",className:Y.pestana,"aria-selected":X.id===At,"data-actual":X.id===At?"":void 0,onClick:()=>wt(X.id),children:[o.jsx(F2,{entorno:X.id,size:18,className:Y.logo}),X.nombre]},X.id))}),!ia&&At!==void 0?o.jsxs("div",{role:"tabpanel",className:Y.panelDePestana,children:[l===void 0?null:o.jsx(Bte,{entorno:t.find(X=>X.id===At),nombresDeOtros:t.filter(X=>X.id!==At).map(X=>X.nombre),conectado:ie,alRenombrar:l},At),o.jsxs("div",{className:Y.filaDeUrl,children:[o.jsx("p",{className:Y.url,children:(Ts=t.find(X=>X.id===At))==null?void 0:Ts.url}),i===void 0?null:o.jsx(Ute,{entorno:t.find(X=>X.id===At),conectado:ie,alQuitar:i},At)]}),o.jsxs("div",{className:Y.cabeceraDeProyectos,children:[o.jsx("h3",{className:Y.subencabezado,children:"Proyectos en la barra"}),a===void 0?null:o.jsxs("button",{type:"button",className:Y.recargar,title:"Vuelve a preguntar a CloudStudio por los proyectos propios y compartidos de este entorno",disabled:!ie||Wa[At]===!0,"aria-busy":Wa[At]===!0,onClick:()=>{Ns(X=>({...X,[At]:!0})),a(At)},children:[Wa[At]===!0?o.jsx(Yi,{}):null,Wa[At]===!0?"Refrescando…":"Refrescar"]})]}),(()=>{const{proyectos:X,error:Ue}=jo(At);if(Ue!==void 0)return o.jsxs("p",{className:Y.aviso,role:"alert",children:["No se pudieron consultar sus proyectos: ",Ue]});if(X===void 0)return o.jsx("p",{className:Y.nota,children:"Consultando sus proyectos…"});if(X.length===0)return o.jsx("p",{className:Y.vacio,children:"Este entorno no devolvió ningún proyecto."});const xt=la(At),On=dt=>[...dt].sort((Xn,cr)=>(cr.ultimoAcceso??"").localeCompare(Xn.ultimoAcceso??"")),Et=Gr[At]??{},jn=(dt,Xn)=>{const cr=(Xn??"").trim().toLowerCase();return cr===""?dt:dt.filter(ur=>ur.nombre.toLowerCase().includes(cr))},st=[{id:"propios",titulo:"Propios",suyos:X.filter(dt=>dt.compartido===!1),aguja:Et.propios},{id:"compartidos",titulo:"Compartidos contigo",suyos:X.filter(dt=>dt.compartido===!0),aguja:Et.compartidos},{id:"sinAtribuir",titulo:"Sin decir de quién son",suyos:X.filter(dt=>dt.compartido===void 0),aguja:void 0}].map(dt=>({...dt,suyos:On(dt.suyos)})).filter(dt=>dt.suyos.length>0).map(dt=>({...dt,filtrados:jn(dt.suyos,dt.aguja)})),Vt=dt=>{const Xn=dt.ultimoAcceso===void 0?void 0:du(dt.ultimoAcceso);return o.jsx("li",{className:Y.fila,children:o.jsxs("label",{className:Y.casilla,children:[o.jsx("input",{type:"checkbox",checked:xt.includes(dt.id),onChange:cr=>{const ur=cr.target.checked?[...xt,dt.id]:xt.filter(xr=>xr!==dt.id);ks(xr=>({...xr,[At]:ur})),$r(At,ur)}}),o.jsxs("span",{className:Y.textoDeProyecto,children:[o.jsx("span",{className:Y.nombre,children:dt.nombre}),Xn===void 0?null:o.jsx("span",{className:Y.fechaDeProyecto,children:Xn})]})]})},dt.id)};return o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:Y.nota,children:["Sin elegir ninguno se enseñan los ",_m," primeros. Lo que marques aquí manda sobre ese tope."]}),o.jsx("div",{className:Y.columnasDeProyectos,children:st.map(dt=>o.jsxs("section",{className:Y.columnaDeProyectos,children:[o.jsxs("h4",{className:Y.encabezadoDeColumna,children:[dt.titulo," ",o.jsx("span",{className:Y.cuenta,children:dt.filtrados.length})]}),dt.id==="sinAtribuir"?null:o.jsxs("span",{className:Y.buscadorDeProyectos,children:[o.jsx(pz,{className:Y.lupa,size:14}),o.jsx("input",{type:"search",className:Y.filtroDeProyectos,value:dt.aguja??"",onChange:Xn=>{const cr=Xn.target.value;Za(ur=>({...ur,[At]:{...ur[At],...dt.id==="propios"?{propios:cr}:{compartidos:cr}}}))},placeholder:"filtrar por nombre…","aria-label":`filtrar ${dt.titulo.toLowerCase()}`})]}),dt.filtrados.length===0?o.jsxs("p",{className:Y.vacio,children:["Ninguno coincide con «",dt.aguja,"»."]}):o.jsx("ul",{className:Y.filas,children:dt.filtrados.map(Vt)})]},dt.id))})]})})()]}):null]}):null,Ft==="agentes"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Subagentes"}),o.jsx(FK,{...Ne===void 0?{}:{agentes:Ne.lista,problemas:Ne.problemas},hayProyecto:B,...e===void 0?{}:{proveedores:e},...H===void 0?{}:{modelosDeMotor:H},...R===void 0?{}:{alPedirModelosDeMotor:R},...Z===void 0?{}:{alPedirCatalogo:Z},...ue===void 0?{}:{catalogoDeSkills:ue.lista},alGuardar:O,alBorrar:ne,alRestaurar:E})]}):null,Ft==="skills"?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Skills"}),o.jsx($J,{...ue===void 0?{}:{skills:ue.lista,problemas:ue.problemas},...ae===void 0?{}:{cuerpos:ae},hayProyecto:B,alPedirCuerpo:be,alGuardar:$e,alBorrar:pe,...Le===void 0?{}:{alInstalar:Le}})]}):null,Ft==="remoto"&&ut!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Sesión remota"}),o.jsxs("label",{className:Y.casillaEnLinea,children:[o.jsx("input",{type:"checkbox",checked:ut.habilitado!==!1,disabled:!ie||yt===void 0||ut.porEntorno===!0,onChange:()=>yt==null?void 0:yt({clase:"remoto",accion:"habilitar",valor:ut.habilitado===!1})}),"Activar la sesión remota (experimental)"]}),o.jsxs("p",{className:Y.nota,children:["Usa esta consola desde el móvil: el botón «Sesión remota» del chat da una dirección y su QR. Quien tenga esa dirección controla la consola, aprobaciones incluidas, hasta que la revoques o la apagues; lo que se ve sale cifrado de punta a punta. Desactivarla apaga la que esté encendida.",ut.porEntorno===!0?" Ahora la mantiene activa XONECODE_REMOTO=1 en este arranque.":""]}),ut.habilitado===!1?null:ut.ngrok===void 0?o.jsx("p",{children:"El servidor todavía no ha medido ngrok en esta máquina."}):o.jsx(Nee,{ngrok:ut.ngrok,conectado:ie,alEnviar:X=>yt==null?void 0:yt(X)})]}):null,Ft==="conectores"&&Ae!==void 0?o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:Y.encabezado,children:"Conectores"}),o.jsx(hee,{catalogo:Ae.catalogo,conectores:Ae.conectores,desconocidos:Ae.desconocidos,...Ae.ilegible===void 0?{}:{ilegible:Ae.ilegible},...Ae.error===void 0?{}:{error:Ae.error},...f===void 0?{}:{secreto:f},alAccion:Ct,alCrear:Qt,alResponderSecreto:xa})]}):null]}),o.jsx("button",{type:"button",className:Y.cerrar,"aria-label":"Cerrar ajustes",onClick:aa,children:"✕"})]})})}),Jo===void 0?null:o.jsx(qte,{fase:Jo,...qn===void 0?{}:{ruta:qn.ruta,plan:qn.plan},...(qn==null?void 0:qn.negativa)===void 0?{}:{negativa:qn.negativa},...qe===void 0?{}:{mudanza:qe},onAceptar:()=>void di(),onCancelar:()=>Ko(void 0),onCerrar:js}),Ca===void 0?null:o.jsx(Fte,{titulo:"No se puede cambiar la carpeta",texto:Ca,onCerrar:Vr}),Qo===void 0?null:o.jsx(Ote,{donde:Xo()??"esta sección",onCancelar:()=>wa(void 0),onConfirmar:()=>{_a(void 0),ja(void 0),Qo(),wa(void 0)}})]})}function qte({fase:e,ruta:t,plan:n,negativa:r,mudanza:a,onAceptar:i,onCancelar:l,onCerrar:u}){const d=e==="confirmar"?l: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(Zn,{open:!0,onClose:d,title:f,headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:b=>{b.target===b.currentTarget&&d()},children:o.jsxs("div",{className:ge.ventana,"aria-busy":e==="en-curso",children:[o.jsx("h2",{className:ge.titulo,children:f}),e==="confirmar"&&n!==void 0?o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:ge.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:Y.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:Y.enMarcha,role:"status",children:[o.jsx("span",{className:Y.girando,"aria-hidden":"true"}),nb(a!==void 0&&"progreso"in a?a:{progreso:{fase:"comprobar"}})]}),o.jsx("p",{className:ge.nota,children:"Cuando termine verás aquí cómo acabó. No cierres la consola mientras tanto."})]}):null,e==="final"?o.jsx("p",{className:ge.nota,role:"status",children:m!==void 0?`${m.charAt(0).toUpperCase()}${m.slice(1)}.`:nb(a)}):null,o.jsxs("div",{className:ge.acciones,children:[e==="confirmar"?o.jsxs(o.Fragment,{children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:l,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal}`,onClick:i,children:"Mover y cambiar"})]}):null,e==="final"?o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal}`,onClick:u,children:"Cerrar"}):null]})]})})})}function Fte({titulo:e,texto:t,onCerrar:n}){return o.jsx(Zn,{open:!0,onClose:n,title:e,headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:ge.ventana,role:"alertdialog","aria-label":e,children:[o.jsx("h2",{className:ge.titulo,children:e}),o.jsxs("p",{className:ge.nota,children:[t.charAt(0).toUpperCase()+t.slice(1),"."]}),o.jsx("div",{className:ge.acciones,children:o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal}`,onClick:n,children:"Entendido"})})]})})})}function Ote({donde:e,onCancelar:t,onConfirmar:n}){return o.jsx(Zn,{open:!0,onClose:t,title:"Cambios sin guardar",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:ge.ventana,children:[o.jsx("h2",{className:ge.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:ge.nota,children:["Hay cambios sin guardar en ",e,". Si continúas, se pierden."]}),o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:t,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:`${ge.accion} ${ge.principal} ${Y.destructiva}`,onClick:n,children:"Descartar y continuar"})]})]})})})}function Bte({entorno:e,nombresDeOtros:t,conectado:n,alRenombrar:r}){const[a,i]=$.useState(void 0),[l,u]=$.useState(!1),[d,m]=$.useState(void 0),f=a??e.nombre,h=f.trim(),b=Ate(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:Y.filaDeNombre,children:[o.jsx("span",{className:Y.etiquetaDeNombre,children:"Nombre"}),o.jsxs("div",{className:Y.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||l,onChange:j=>{i(j.target.value),m(void 0)},onKeyDown:j=>{j.key!=="Enter"||l||!y||b!==void 0||_()}}),o.jsx("button",{type:"button",className:Y.accion,disabled:!n||l||!y||b!==void 0,onClick:()=>void _(),children:l?"Guardando…":"Guardar"})]})]}),b===void 0?null:o.jsx("p",{className:Y.nota,role:"alert",children:b}),g?o.jsx("p",{className:Y.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:Y.nota,role:"alert",children:["No se ha cambiado: ",d]})]});async function _(){u(!0);const j=await r(e.id,h);u(!1),m(j),j===void 0&&i(void 0)}}function Ute({entorno:e,conectado:t,alQuitar:n}){const[r,a]=$.useState(!1),[i,l]=$.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:Y.confirmarQuitar,role:"alertdialog","aria-label":`Quitar ${e.nombre}`,children:[o.jsxs("p",{className:Y.tituloDeAviso,children:[o.jsx("span",{"aria-hidden":"true",children:"⚠"})," Atención: vas a quitar ",o.jsx("strong",{children:e.nombre})]}),o.jsxs("p",{className:Y.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:Y.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:Y.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:Y.quitarLleno,disabled:i||!y,onClick:async()=>{l(!0);const _=await n(e.id,{borrarCopias:m});l(!1),a(!1),d(_)},children:i?"Quitando…":"Quitar"}),o.jsx("button",{type:"button",className:Y.recargar,disabled:i,onClick:()=>a(!1),children:"Cancelar"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:Y.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:`${Y.aviso} ${Y.anchoEntero}`,children:["No se ha quitado: ",u]})]})}const lb=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/;function Hte(e){const t=e.split(`
|
|
504
|
-
`);t.at(-1)===""&&t.pop();const n=t.findIndex(l=>lb.test(l));if(n===-1)return t.map(l=>({tipo:"contexto",texto:l}));let r=0,a=0;const i=[];for(const l of t.slice(n)){const u=lb.exec(l);u!==null?(r=Number(u[1]),a=Number(u[2]),i.push({tipo:"tramo",texto:l})):l.startsWith("\\")?i.push({tipo:"nota",texto:l.slice(2)}):l.startsWith("+")?i.push({tipo:"mas",nuevo:a++,texto:l.slice(1)}):l.startsWith("-")?i.push({tipo:"menos",viejo:r++,texto:l.slice(1)}):i.push({tipo:"contexto",viejo:r++,nuevo:a++,texto:l.slice(1)})}return i}const Vte="_aviso_1ui0z_5",Gte="_recargar_1ui0z_15 _secundario_1l1rx_39",Wte="_clase_1ui0z_21",Zte="_ruta_1ui0z_53",Qte="_carpeta_1ui0z_64",Xte="_hoja_1ui0z_71",Yte="_cuenta_1ui0z_75",Kte="_binario_1ui0z_76",Jte="_mas_1ui0z_86",ene="_menos_1ui0z_90",tne="_tab_1ui0z_98",nne="_banda_1ui0z_108",rne="_seccion_1ui0z_118",ane="_tituloDeSeccion_1ui0z_122",one="_tituloDeCambios_1ui0z_133",sne="_revision_1ui0z_97",ine="_pila_1ui0z_154",lne="_indice_1ui0z_160",cne="_cabecera_1ui0z_176",une="_alcance_1ui0z_186",dne="_total_1ui0z_191",pne="_binarios_1ui0z_197",mne="_bloque_1ui0z_201",hne="_filaDeBloque_1ui0z_209",fne="_cabeceraDeBloque_1ui0z_220",gne="_editar_1ui0z_241 _secundario_1l1rx_39",vne="_parche_1ui0z_249",bne="_linea_1ui0z_255",yne="_numero_1ui0z_266",xne="_texto_1ui0z_274",_ne="_cambio_1ui0z_281",wne="_nota_1ui0z_322",jne="_pendiente_1ui0z_335",Cne="_modelo_1ui0z_348",kne="_modeloTitulo_1ui0z_357",Nne="_modeloColeccion_1ui0z_363",Sne="_modeloNombre_1ui0z_367",$ne="_modeloEstado_1ui0z_375",Ane="_modeloLineas_1ui0z_384",Ene="_modeloNota_1ui0z_409",Ze={aviso:Vte,recargar:Gte,clase:Wte,ruta:Zte,carpeta:Qte,hoja:Xte,cuenta:Yte,binario:Kte,mas:Jte,menos:ene,tab:tne,banda:nne,seccion:rne,tituloDeSeccion:ane,tituloDeCambios:one,revision:sne,pila:ine,indice:lne,cabecera:cne,alcance:une,total:dne,binarios:pne,bloque:mne,filaDeBloque:hne,cabeceraDeBloque:fne,editar:gne,parche:vne,linea:bne,numero:yne,texto:xne,cambio:_ne,nota:wne,pendiente:jne,modelo:Cne,modeloTitulo:kne,modeloColeccion:Nne,modeloNombre:Sne,modeloEstado:$ne,modeloLineas:Ane,modeloNota:Ene};function cb({via:e,mezclados:t,ficheros:n,parches:r,modelosDelCambio:a,desplegados:i,alDesplegar:l,alPlegar:u,alRecargar:d,historica:m,conectado:f,cloudstudio:h,alEditar:b,rutasDelProyecto:y,registro:g,modo:_="sesion",error:j}){const C=_==="pendientes",S=!C&&n.some(H=>H.pendiente!==void 0),A=n,M=S?A.filter(H=>H.pendiente===!0):A;$.useEffect(()=>{f===!1||e!==void 0||d()},[e,f,d]);const L=uc(n,f),z=$.useRef(new Map);let P;if(C&&j!==void 0?P=o.jsx("p",{className:Ze.aviso,children:`No se puede enseñar lo pendiente de subir: ${j}.`}):e===void 0?P=o.jsx("p",{className:Ze.aviso,children:C?"Consultando lo pendiente de subir…":"Consultando los ficheros de la sesión…"}):C&&M.length===0?P=o.jsx("p",{className:Ze.aviso,children:"No hay nada pendiente de subir: la copia está igual que la rama en CloudStudio."}):C?P=void 0:e==="sin-empezar"?P=o.jsx("p",{className:Ze.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?P=o.jsx("p",{className:Ze.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"?P=o.jsx("p",{className:Ze.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&&M.length===0?P=o.jsx("p",{className:Ze.aviso,children:"Todo lo que ha tocado esta sesión ya está subido a CloudStudio: no queda nada suyo pendiente de subir."}):M.length===0&&(P=o.jsx("p",{className:Ze.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."})),P===void 0&&e!==void 0){const H=M.filter(ee=>ee.mas!==void 0||ee.menos!==void 0),R=M.length-H.length,F=H.reduce((ee,ke)=>ee+(ke.mas??0),0),U=H.reduce((ee,ke)=>ee+(ke.menos??0),0),Z=new Map(M.map(ee=>[ee.ruta,ee.clase])),re=new Set([...n.map(ee=>ee.ruta),...y??[]]),le=ee=>{l(ee),typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{var ke,_e;return(_e=(ke=z.current.get(ee))==null?void 0:ke.scrollIntoView)==null?void 0:_e.call(ke,{block:"start"})})};P=o.jsxs("div",{className:Ze.revision,children:[o.jsxs("div",{className:Ze.pila,children:[o.jsxs("div",{className:Ze.cabecera,children:[o.jsx("span",{className:Ze.alcance,children:C?"Pendiente":e==="git"?"Sesión":"Desde que abriste"}),o.jsxs("span",{className:Ze.total,children:[H.length>0?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:Ze.mas,children:["+",F]})," ",o.jsxs("span",{className:Ze.menos,children:["−",U]})]}):null,R>0?o.jsxs("span",{className:Ze.binarios,children:[H.length>0?" y ":"",R," ",R===1?"binario":"binarios"]}):null]}),C?o.jsxs("button",{type:"button",className:Ze.recargar,title:C?"Vuelve a medir qué falta por subir a CloudStudio":"Vuelve a mirar qué ficheros ha tocado esta sesión",disabled:L.esperando||f===!1,"aria-busy":L.esperando,onClick:()=>{L.empezar(),d()},children:[L.esperando?o.jsx(Yi,{}):null,"Refrescar"]}):null]}),!C&&e==="desde-apertura"?o.jsx("p",{className:Ze.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,!C&&t!==void 0&&t>0?o.jsx("p",{className:Ze.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,M.map(ee=>{const ke=i.has(ee.ruta),_e=ke?r[ee.ruta]:void 0;return o.jsxs("section",{className:Ze.bloque,"data-bloque":ee.ruta,ref:ie=>{ie===null?z.current.delete(ee.ruta):z.current.set(ee.ruta,ie)},children:[o.jsxs("div",{className:Ze.filaDeBloque,children:[o.jsxs("button",{type:"button",className:Ze.cabeceraDeBloque,"aria-expanded":ke,onClick:()=>ke?u(ee.ruta):l(ee.ruta),children:[o.jsx("span",{className:Ze.clase,"data-clase":ee.clase,"aria-label":ee.clase,children:ee.clase==="nuevo"?"A":ee.clase==="borrado"?"D":"M"}),o.jsx(km,{ruta:ee.ruta}),o.jsxs("span",{className:Ze.ruta,children:[ub(ee.ruta)===""?null:o.jsx("span",{className:Ze.carpeta,children:ub(ee.ruta)}),o.jsx("span",{className:Ze.hoja,children:Tne(ee.ruta)})]}),ee.sinCommitear===!0?o.jsx("span",{className:Ze.pendiente,title:C?"Git aún no lo sigue: commitéalo para poder subirlo":void 0,children:"sin commitear"}):null,ee.mas===void 0&&ee.menos===void 0?o.jsx("span",{className:Ze.binario,children:"binario"}):o.jsxs("span",{className:Ze.cuenta,children:[o.jsxs("span",{className:Ze.mas,children:["+",ee.mas??0]})," ",o.jsxs("span",{className:Ze.menos,children:["−",ee.menos??0]})]})]}),b!==void 0&&zne(ee,re)?o.jsxs("button",{type:"button",className:Ze.editar,"aria-label":`Editar ${ee.ruta}`,disabled:f===!1,onClick:()=>b(ee.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]}),ke&&a!==void 0&&ee.ruta.toLowerCase().endsWith(".xne")?o.jsx(Dne,{ruta:ee.ruta,estado:a[ee.ruta]}):null,ke?_e===void 0?o.jsxs("p",{className:Ze.aviso,children:["Trayendo el diff de ",ee.ruta,"…"]}):_e.negado!==void 0?o.jsx("p",{className:Ze.aviso,children:`Este fichero no se enseña: ${_e.negado}.`}):_e.texto===""?o.jsx("p",{className:Ze.aviso,children:"Sin diff que enseñar para este fichero."}):o.jsx(Mne,{texto:_e.texto,recortado:_e.recortado}):null]},ee.ruta)})]}),o.jsx("aside",{className:Ze.indice,"aria-label":"Ficheros cambiados",children:o.jsx(W2,{nodos:G2(M.map(ee=>ee.ruta)),variante:"explorador",alElegir:le,insignia:ee=>{const ke=Z.get(ee)??"modificado";return o.jsx("span",{className:Ze.clase,"data-clase":ke,"aria-label":ke,children:ke==="nuevo"?"A":ke==="borrado"?"D":"M"})}})})]})}return o.jsxs("div",{className:Ze.tab,children:[h===void 0&&g===void 0?null:o.jsxs("div",{className:Ze.banda,children:[h===void 0?null:o.jsxs("section",{className:Ze.seccion,"aria-label":"Sincronización con CloudStudio",children:[o.jsx("h2",{className:Ze.tituloDeSeccion,children:"Sincronización con CloudStudio"}),h]}),g===void 0?null:o.jsxs("section",{className:Ze.seccion,"aria-label":"Últimas subidas",children:[o.jsx("h2",{className:Ze.tituloDeSeccion,children:C?"Últimas subidas de la conversación abierta":"Últimas subidas"}),g]})]}),o.jsx("h2",{className:`${Ze.tituloDeSeccion} ${Ze.tituloDeCambios}`,children:C?"Pendiente de subir a CloudStudio":S?"Cambios de esta sesión pendientes de subir":"Cambios de esta sesión"}),P]})}function Dne({ruta:e,estado:t}){return t===void 0?o.jsxs("p",{className:Ze.aviso,children:["Comparando el modelo de ",e,"…"]}):t.cambios===void 0?o.jsxs("p",{className:Ze.aviso,children:["No se pudo comparar el modelo: ",t.error??"sin motivo","."]}):t.cambios.length===0?o.jsx("p",{className:Ze.aviso,children:"Sin cambios en el modelo (campos, tipos, referencias, eventos): lo que cambió está en el diff de abajo."}):o.jsxs("div",{className:Ze.modelo,"aria-label":`Cambios en el modelo de ${e}`,children:[o.jsx("p",{className:Ze.modeloTitulo,children:"Cambios en el modelo"}),t.cambios.map(n=>o.jsxs("div",{className:Ze.modeloColeccion,children:[o.jsxs("p",{className:Ze.modeloNombre,children:[n.nombre,n.estado==="modificada"?null:o.jsx("span",{className:Ze.modeloEstado,children:n.estado})]}),o.jsxs("ul",{className:Ze.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(i=>o.jsxs("li",{"data-cambio":i.cambio,children:[i.cambio==="nuevo"?"+ ":"− ",r," ",o.jsx("code",{children:i.nombre})]},`${r}:${i.nombre}`)))]})]},n.nombre)),o.jsx("p",{className:Ze.modeloNota,children:"Del campo solo consta el tipo: tamaño y demás atributos, en el diff de abajo."})]})}function zne(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 ub(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t+1)}function Tne(e){const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function Mne({texto:e,recortado:t}){const n=$.useMemo(()=>Hte(e),[e]),r=$.useMemo(()=>l9(n.map(a=>({tipo:a.tipo==="mas"?"anadido":a.tipo==="menos"?"quitado":"igual",texto:a.texto}))),[n]);return o.jsxs("div",{className:Ze.parche,children:[n.map((a,i)=>o.jsxs("div",{className:Ze.linea,"data-tipo":a.tipo,children:[o.jsx("span",{className:Ze.numero,"data-viejo":"",children:a.viejo??""}),o.jsx("span",{className:Ze.numero,"data-nuevo":"",children:a.nuevo??""}),o.jsx("span",{className:Ze.texto,children:a.texto===""?" ":(r.get(i)??[{texto:a.texto,cambia:!1}]).map((l,u)=>l.cambia?o.jsx("mark",{className:Ze.cambio,children:l.texto},u):o.jsx($.Fragment,{children:l.texto},u))})]},i)),t?o.jsx("p",{className:Ze.aviso,children:"El diff es demasiado grande y se ha cortado: míralo en tu editor."}):null]})}const Lne="_caja_100ky_13",Ine="_ficheros_100ky_5",Pne="_visor_100ky_27",Rne="_arbol_100ky_9",qne="_filtro_100ky_61",Fne="_cabecera_100ky_75",One="_titulo_100ky_95",Bne="_textos_100ky_104",Une="_ruta_100ky_114",Hne="_carpetaDeRuta_100ky_125",Vne="_separador_100ky_126",Gne="_nombreDeRuta_100ky_130",Wne="_metadatos_100ky_135",Zne="_caras_100ky_142",Qne="_cara_100ky_142",Xne="_markdown_100ky_176",Yne="_aviso_100ky_183",Kne="_nota_100ky_191",Jne="_rotulo_100ky_200",ere="_acciones_100ky_209",tre="_motivoSinEditar_100ky_221",nre="_recargarAlGuardar_100ky_227",rre="_recarga_100ky_227",are="_accion_100ky_209 _secundario_1l1rx_39",ore="_accionPrincipal_100ky_251 _primario_1l1rx_67",sre="_sinGuardar_100ky_256",ire="_banda_100ky_269",lre="_fallo_100ky_283",cre="_marcaDelArbol_100ky_290",Ye={caja:Lne,ficheros:Ine,visor:Pne,arbol:Rne,filtro:qne,cabecera:Fne,titulo:One,textos:Bne,ruta:Une,carpetaDeRuta:Hne,separador:Vne,nombreDeRuta:Gne,metadatos:Wne,caras:Zne,cara:Qne,markdown:Xne,aviso:Yne,nota:Kne,rotulo:Jne,acciones:ere,motivoSinEditar:tre,recargarAlGuardar:nre,recarga:rre,accion:are,accionPrincipal:ore,sinGuardar:sre,banda:ire,fallo:lre,marcaDelArbol:cre},db=$.lazy(()=>pn(()=>import("./EditorDeFichero-Bgy1gslC.js"),__vite__mapDeps([12,13]),import.meta.url));function ure({arbol:e,contenidos:t,elegido:n,alElegir:r,alRecargar:a,conectado:i,linea:l,edicion:u,cambiados:d,alPedirCambios:m,aparato:f,ultimaRecarga:h}){var H,R;$.useEffect(()=>{i===!1||e!==void 0||a()},[e,i,a]),$.useEffect(()=>{i===!1||d!==void 0||m==null||m()},[d,i,m]);const b=((H=u==null?void 0:u.actual)==null?void 0:H.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(""),[_,j]=$.useState("vista");if(b!==void 0&&u!==void 0){const F=jm(b.ruta);return o.jsx("div",{className:Ye.caja,children:o.jsx("div",{className:Ye.ficheros,children:o.jsxs("div",{className:Ye.visor,"data-editando":"",children:[o.jsxs("div",{className:Ye.cabecera,children:[o.jsx(mb,{ruta:b.ruta,sinGuardar:!0,metadatos:Rf(b.ruta,pb(b.ruta,b.original),b.finDeLinea)}),o.jsx("div",{className:Ye.acciones,children:o.jsx("button",{type:"button",className:Ye.accionPrincipal,disabled:!0,children:"Guardar"})})]}),o.jsxs("div",{className:Ye.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:Ye.accion,onClick:u.descartar,children:"Descartar"})]}),o.jsx($.Suspense,{fallback:o.jsx("p",{className:Ye.aviso,children:"Cargando el editor…"}),children:o.jsx(db,{texto:u.textoVivo(),...F===void 0?{}:{lenguaje:F},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:Ye.aviso,children:"Consultando el árbol del proyecto…"});if(e.error!==void 0)return o.jsxs("p",{className:Ye.aviso,children:["No se ha podido listar el proyecto: ",e.error]});const C=n===void 0?void 0:t[n],S=n===void 0?void 0:jm(n),A=(C==null?void 0:C.mime)!==void 0&&C.base64!==void 0,M=A&&(C==null?void 0:C.mime)==="image/svg+xml"&&C.texto!==void 0,L=(C==null?void 0:C.error)===void 0&&(C==null?void 0:C.texto)!==void 0&&S==="markdown",z=A&&!M,P=(u==null?void 0:u.actual)!==void 0&&u.actual.ruta===n?u.actual:void 0;return o.jsx("div",{className:Ye.caja,children:o.jsxs("div",{className:Ye.ficheros,children:[o.jsx("div",{className:Ye.visor,"data-editando":P!==void 0?"":void 0,children:n===void 0?o.jsx("p",{className:Ye.aviso,children:"Elige un fichero del árbol."}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Ye.cabecera,children:[o.jsx(mb,{ruta:n,sinGuardar:(P==null?void 0:P.sucio)===!0,metadatos:P===void 0?Rf(n,C):Rf(n,C??pb(n,P.original),P.finDeLinea)}),P!==void 0&&u!==void 0?o.jsxs("div",{className:Ye.acciones,children:[(f==null?void 0:f.disponible)===!0?o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:Ye.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:Ye.accion,disabled:P.sucio||P.guardando,title:P.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(P.ruta),children:"Probar"})]}):null,o.jsx("button",{type:"button",className:Ye.accionPrincipal,disabled:!P.sucio||P.guardando||P.proyectoCambiado===!0,onClick:u.guardar,children:P.guardando?"Guardando…":"Guardar"}),o.jsx("button",{type:"button",className:Ye.accion,onClick:u.cerrar,children:"Cerrar"})]}):o.jsxs("div",{className:Ye.acciones,children:[L?o.jsx("div",{className:Ye.caras,role:"group","aria-label":"Cómo se enseña el fichero",children:["vista","fuente"].map(F=>o.jsx("button",{type:"button",className:Ye.cara,"aria-pressed":_===F,"data-activa":_===F?"":void 0,onClick:()=>j(F),children:F==="vista"?"Vista":"Fuente"},F))}):null,u!==void 0&&J0(C)?o.jsx("button",{type:"button",className:Ye.accion,onClick:()=>u.abrir(C),children:"Editar"}):u!==void 0&&R6(C)!==void 0?o.jsx("span",{className:Ye.motivoSinEditar,children:R6(C)}):null]})]}),P!==void 0&&u!==void 0?o.jsxs(o.Fragment,{children:[P.proyectoCambiado===!0?o.jsxs("div",{className:Ye.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:Ye.accion,onClick:u.descartar,children:"Descartar"})]}):null,P.versionNueva!==void 0?o.jsxs("div",{className:Ye.banda,role:"alert",children:[o.jsx("span",{children:"El fichero ha cambiado en el disco mientras lo editabas."}),o.jsx("button",{type:"button",className:Ye.accion,onClick:u.recargar,children:"Recargar (pierdes los tuyos)"}),o.jsx("button",{type:"button",className:Ye.accion,onClick:u.seguirConLosMios,children:"Seguir con los míos"})]}):null,P.sobrescribe===!0?o.jsx("p",{className:Ye.banda,role:"status",children:"Seguir con los míos: al guardar, tu versión sustituirá a la del disco"}):null,P.error!==void 0?o.jsxs("p",{className:Ye.fallo,role:"alert",children:["No se ha guardado: ",P.error]}):null,(f==null?void 0:f.disponible)===!0&&h!==void 0&&h.ruta===P.ruta?o.jsxs("p",{className:Ye.recarga,role:"status",children:[o.jsx("span",{children:h.texto}),h.estado==="relanzar"?o.jsx("button",{type:"button",className:Ye.accion,onClick:()=>f.relanzar(P.ruta),children:"Relanzar la app"}):null]}):null,o.jsx($.Suspense,{fallback:o.jsx("p",{className:Ye.aviso,children:"Cargando el editor…"}),children:o.jsx(db,{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},`${P.ruta}:${P.generacion}`)})]}):C===void 0?o.jsxs("p",{className:Ye.aviso,children:["Trayendo ",n,"…"]}):C.error!==void 0?o.jsxs("p",{className:Ye.aviso,children:["No se puede enseñar este fichero: ",C.error,"."]}):z?o.jsx(Cm,{mime:C.mime,base64:C.base64,alt:n,bytes:C.bytes}):C.mime!==void 0&&C.base64===void 0&&C.binario?o.jsxs("p",{className:Ye.aviso,children:["Es una imagen de ",Uo(C.bytes)," KB: pesa más de lo que se trae por el cable, así que no se enseña. Ábrela en tu editor."]}):C.binario?o.jsxs("p",{className:Ye.aviso,children:["Es un fichero binario, ",Uo(C.bytes)," KB. No se enseña su contenido."]}):o.jsxs(o.Fragment,{children:[M?o.jsxs(o.Fragment,{children:[o.jsx(Cm,{mime:C.mime,base64:C.base64,alt:n,bytes:C.bytes}),o.jsx("p",{className:Ye.rotulo,children:"Código"})]}):null,C.recortado?o.jsxs("p",{className:Ye.nota,children:["Recortado a ",Uo(((R=C.texto)==null?void 0:R.length)??0)," KB de ",Uo(C.bytes)," KB: míralo entero en tu editor."]}):null,C.codificacion==="latin1"?o.jsx("p",{className:Ye.nota,children:"Leído como latin1: el fichero no es UTF-8."}):null,S==="markdown"&&_==="vista"?o.jsx("div",{className:`${Ye.markdown} md-cuerpo`,children:o.jsx(rc,{text:ac(C.vista===void 0?C.texto??"":WL(C.vista,window.location.origin)),codeLabels:oc})}):o.jsx(Xy,{texto:C.texto??"",...S===void 0?{}:{lenguaje:S},...l===void 0?{}:{linea:l}})]})]})}),o.jsxs("aside",{className:Ye.arbol,"aria-label":"Ficheros del proyecto",children:[o.jsx("input",{type:"search",className:Ye.filtro,placeholder:"Filtrar ficheros…",value:y,onChange:F=>g(F.target.value),"aria-label":"Filtrar ficheros"}),e.recortado?o.jsxs("p",{className:Ye.nota,children:["El árbol está recortado a ",e.rutas.length," entradas."]}):null,o.jsx(W2,{nodos:G2(e.rutas),...n===void 0?{}:{elegida:n},alElegir:r,filtro:y,abiertas:"ninguna",...d===void 0&&(P==null?void 0:P.sucio)!==!0?{}:{insignia:F=>F===(P==null?void 0:P.ruta)&&P.sucio?o.jsx("span",{className:Ye.marcaDelArbol,"aria-label":"Sin guardar en el editor",children:"●"}):(d==null?void 0:d.has(F))===!0?o.jsx("span",{className:Ye.marcaDelArbol,"data-marca":"cambiada","aria-label":"Cambiado en la sesión",children:"M"}):null}})]})]})})}function pb(e,t){return{ruta:e,texto:t,recortado:!1,binario:!1,bytes:0}}function mb({ruta:e,sinGuardar:t,metadatos:n}){const r=e.lastIndexOf("/");return o.jsxs("div",{className:Ye.titulo,"data-cabecera-del-fichero":"",children:[o.jsx(km,{ruta:e,tamano:24}),o.jsxs("div",{className:Ye.textos,children:[o.jsxs("span",{className:Ye.ruta,children:[r===-1?null:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Ye.carpetaDeRuta,"data-parte":"carpeta",children:e.slice(0,r)}),o.jsx("span",{className:Ye.separador,children:"/"})]}),o.jsx("span",{className:Ye.nombreDeRuta,"data-parte":"nombre",children:e.slice(r+1)}),t?o.jsx("span",{className:Ye.sinGuardar,"aria-label":"Hay cambios sin guardar",title:"Hay cambios sin guardar",children:"●"}):null]}),n.length===0?null:o.jsx("span",{className:Ye.metadatos,"data-metadatos":"",children:n.join(" · ")})]})]})}function dre({ruta:e,alDescartar:t,alSeguir:n}){return o.jsx(Zn,{open:!0,onClose:n,title:"Cambios sin guardar",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:r=>{r.target===r.currentTarget&&n()},children:o.jsxs("div",{className:ge.ventana,role:"alertdialog","aria-label":"Cambios sin guardar",children:[o.jsx("h2",{className:ge.titulo,children:"Cambios sin guardar"}),o.jsxs("p",{className:ge.nota,children:["«",e,"» tiene cambios que no has guardado. Si sigues, se pierden."]}),o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,onClick:n,autoFocus:!0,children:"Seguir editando"}),o.jsx(Re,{variant:"primary",className:tt(ge.accion,ge.principal,r1.destructiva),onClick:t,children:"Descartar cambios"})]})]})})})}const x9="xonecode.recargarAlGuardar";function pre(){try{return window.localStorage.getItem(x9)==="1"}catch{return!1}}function mre({enviar:e,plataforma:t}){const[n,r]=$.useState(pre),a=t==="android",i=$.useCallback(()=>{r(d=>{const m=!d;try{window.localStorage.setItem(x9,m?"1":"0")}catch{}return m})},[]),l=$.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:i,probar:l,relanzar:u}}let hb=0;function hre(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(hb+=1,`${Date.now().toString(36)}-${hb}-${Math.random().toString(36).slice(2)}`)}const fre="el fichero es demasiado grande para guardarlo desde aquí",gre="no hay ningún proyecto abierto",vre="se cortó la conexión antes de saber si se guardó: al volver, recarga el fichero para comprobarlo";function Uf(e){const{error:t,versionNueva:n,sobrescribe:r,...a}=e;return a}function bre({enviar:e,proyecto:t,contenidos:n,bases:r,ultimoGuardado:a,conectado:i,recargarAlGuardar:l=!1}){const[u,d]=$.useState(void 0),m=$.useRef(void 0),[f,h]=$.useState("sesion"),b=$.useRef(u),y=$.useRef(l);y.current=l;const g=$.useRef(""),_=$.useRef(void 0),j=$.useRef(void 0),C=$.useRef((a==null?void 0:a.secuencia)??0),S=$.useCallback(O=>{b.current=O,d(O)},[]),A=$.useCallback((O,ne)=>{e({clase:"baseDeFichero",ruta:O,base:ne})},[e]),M=$.useCallback(O=>{var E;if(!J0(O))return;const ne=q6(O.texto);g.current=ne,S({ruta:O.ruta,proyecto:t,original:ne,huella:O.huella,finDeLinea:Wg(O.texto),sucio:!1,guardando:!1,generacion:(((E=b.current)==null?void 0:E.generacion)??0)+1}),A(O.ruta,f)},[t,f,A,S]),L=$.useCallback(()=>{g.current="",_.current=void 0,S(void 0)},[S]),z=$.useCallback(O=>{g.current=O;const ne=b.current;if(ne===void 0)return;const E=O!==ne.original;E!==ne.sucio&&S({...ne,sucio:E})},[S]),P=$.useCallback((O,ne)=>{const E=b.current;E===void 0||E.ruta!==O||!E.guardando||(S({...E,guardando:!1,error:ne}),E.proyectoCambiado!==!0&&e({clase:"fichero",ruta:O}).catch(()=>{}))},[S,e]),H=$.useCallback(()=>{const O=b.current;if(O===void 0||O.guardando||!O.sucio||O.proyectoCambiado===!0)return;if(O.proyecto===void 0){S({...O,error:gre});return}const ne=hre(),E={clase:"guardarFichero",ruta:O.ruta,texto:_H(g.current,O.finDeLinea),huella:O.huella,id:ne,proyecto:O.proyecto,...y.current?{recargar:!0}:{}};if(!jH(E)){S({...O,error:fre});return}_.current=g.current,j.current=ne;const{error:ue,...ae}=O;S({...ae,guardando:!0}),e(E).then(be=>{(be==null?void 0:be.ok)===!1&&P(O.ruta,"el servidor no aceptó el guardado")},()=>P(O.ruta,"no se pudo hablar con el servidor: no se ha guardado"))},[e,S,P]);$.useEffect(()=>{if(a===void 0||a.secuencia===C.current)return;C.current=a.secuencia;const O=b.current;if(O===void 0||O.ruta!==a.ruta)return;const ne=O.guardando&&a.id===j.current;if(O.proyectoCambiado===!0&&!ne)return;if(!ne){e({clase:"fichero",ruta:O.ruta});return}if(a.huella===void 0){S({...O,guardando:!1,error:a.error??"no se ha guardado"}),O.proyectoCambiado!==!0&&e({clase:"fichero",ruta:O.ruta});return}const E=_.current??g.current;_.current=void 0,S({...Uf(O),original:E,huella:a.huella,guardando:!1,sucio:g.current!==E}),O.proyectoCambiado!==!0&&(e({clase:"fichero",ruta:O.ruta}),e({clase:"revision"}),A(O.ruta,f))},[a,e,S,A,f]);const R=u===void 0||n==null?void 0:n[u.ruta];$.useEffect(()=>{var E;const O=b.current;if(O===void 0||O.guardando||O.proyectoCambiado===!0||!J0(R)||R.ruta!==O.ruta||R.huella===O.huella||((E=O.versionNueva)==null?void 0:E.huella)===R.huella)return;const ne={original:q6(R.texto),huella:R.huella,finDeLinea:Wg(R.texto)};if(O.sucio){S({...O,versionNueva:ne});return}g.current=ne.original,S({...Uf(O),...ne,generacion:O.generacion+1}),A(O.ruta,f)},[R,S,A,f]),$.useEffect(()=>{const O=b.current;if(O!==void 0){if(O.proyecto===t){if(O.proyectoCambiado===!0){const{proyectoCambiado:ne,...E}=O;S(E)}return}O.sucio?O.proyectoCambiado!==!0&&S({...O,proyectoCambiado:!0}):L()}},[t,L,S]),$.useEffect(()=>{const O=b.current;i===!1&&(O==null?void 0:O.guardando)===!0&&S({...O,guardando:!1,error:vre})},[i,S]);const F=(u==null?void 0:u.sucio)===!0;$.useEffect(()=>{if(!F)return;const O=ne=>{ne.preventDefault(),ne.returnValue=""};return window.addEventListener("beforeunload",O),()=>window.removeEventListener("beforeunload",O)},[F]);const U=$.useCallback(()=>{const O=b.current,ne=O==null?void 0:O.versionNueva;O===void 0||ne===void 0||(g.current=ne.original,S({...Uf(O),...ne,sucio:!1,generacion:O.generacion+1}),A(O.ruta,f))},[S,A,f]),Z=$.useCallback(()=>{const O=b.current,ne=O==null?void 0:O.versionNueva;if(O===void 0||ne===void 0)return;const{versionNueva:E,...ue}=O;S({...ue,huella:ne.huella,sobrescribe:!0})},[S]),re=$.useCallback(O=>{var E;h(O);const ne=b.current;m.current=ne===void 0||(E=ee.current)==null?void 0:E[ne.ruta],ne!==void 0&&A(ne.ruta,O)},[A]),le=$.useCallback(()=>{const O=b.current;O!==void 0&&A(O.ruta,f)},[A,f]),ee=$.useRef(r);ee.current=r;const ke=$.useCallback(()=>g.current,[]),_e=$.useCallback(()=>{var O;return((O=b.current)==null?void 0:O.sucio)===!0},[]),ie=u===void 0||r==null?void 0:r[u.ruta],Ne=u==null?void 0:u.ruta;$.useEffect(()=>{Ne===void 0||ie===void 0||ie.base===f||ie===m.current||(m.current=ie,A(Ne,f))},[Ne,ie,f,A]);const B=ie!==void 0&&ie.base===f?ie:void 0;return $.useMemo(()=>({actual:u,base:B,baseElegida:f,textoVivo:ke,haySinGuardar:_e,abrir:M,cerrar:L,descartar:L,cambiar:z,guardar:H,elegirBase:re,pedirBase:le,recargar:U,seguirConLosMios:Z}),[u,B,f,ke,_e,M,L,z,H,re,le,U,Z])}const yre="_boton_xl444_4",xre="_girando_xl444_17",Hf={boton:yre,girando:xre};function _9({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?Hf.boton:`${t} ${Hf.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:Hf.girando,"aria-hidden":"true"}):null,"Subir"]})}const _re="_panel_pnpjv_6",wre="_aviso_pnpjv_14",jre="_cabecera_pnpjv_25",Cre="_proyecto_pnpjv_32",kre="_rama_pnpjv_38",Nre="_recargar_pnpjv_48 _secundario_1l1rx_39",Sre="_cuenta_pnpjv_55",$re="_botones_pnpjv_62",Are="_subir_pnpjv_79",Ere="_bajar_pnpjv_75",Dre="_nota_pnpjv_102",zre="_registro_pnpjv_115",Tre="_operacion_pnpjv_125",Mre="_cabeceraDeOperacion_pnpjv_131",Lre="_accion_pnpjv_138",Ire="_sello_pnpjv_145",Pre="_lineas_pnpjv_155",Sn={panel:_re,aviso:wre,cabecera:jre,proyecto:Cre,rama:kre,recargar:Nre,cuenta:Sre,botones:$re,subir:Are,bajar:Ere,nota:Dre,registro:zre,operacion:Tre,cabeceraDeOperacion:Mre,accion:Lre,sello:Ire,lineas:Pre};function Rre(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 Vf="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.",qre={subir:"Subir",bajar:"Actualizar repo local",estado:"Consultar el estado"};function Fre({operaciones:e}){return e===void 0||e.length===0?null:o.jsx("section",{className:Sn.registro,"aria-label":"Registro de la sincronización",children:e.map((t,n)=>{const r=du(t.cuando);return o.jsxs("details",{className:Sn.operacion,open:n===0,children:[o.jsxs("summary",{className:Sn.cabeceraDeOperacion,children:[o.jsx("span",{className:Sn.accion,children:qre[t.accion]}),r===void 0?null:o.jsx("span",{className:Sn.sello,children:` · ${r}`})]}),o.jsx("pre",{className:Sn.lineas,children:t.lineas.join(`
|
|
505
|
-
`)})]},`${t.accion}-${t.cuando}`)})})}function Ore({sync:e,alPedir:t,subida:n,alRecargar:r,conectado:a}){const i=$.useRef(!0),l=e===void 0;$.useEffect(()=>{if(a===!1)return;const m=i.current;i.current=!1,!(!m&&!l)&&r()},[l,a,r]);const u=uc(e,a);if(e===void 0)return o.jsx("p",{className:Sn.aviso,children:"Consultando la sincronización con CloudStudio…"});if(e.proyecto===void 0||e.rama===void 0)return o.jsxs("div",{className:Sn.panel,children:[o.jsx("p",{className:Sn.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:Sn.aviso,children:e.error})]});const d=e.pendientes===0;return o.jsxs("div",{className:Sn.panel,children:[o.jsxs("div",{className:Sn.cabecera,children:[o.jsx("span",{className:Sn.proyecto,children:e.proyecto}),o.jsxs("span",{className:Sn.rama,children:["rama ",e.rama]}),o.jsxs("button",{type:"button",className:Sn.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(Yi,{}):null,"Refrescar"]})]}),e.error!==void 0?o.jsx("p",{className:Sn.aviso,children:e.error}):e.pendientes===void 0?o.jsx("p",{className:Sn.aviso,children:"No consta cuánto falta por subir."}):o.jsx("p",{className:Sn.cuenta,children:Rre(e)}),o.jsxs("div",{className:Sn.botones,children:[d?null:o.jsx(_9,{subida:n??{esperando:!1,alSubir:()=>t("subir")},className:Sn.subir,apagado:a===!1}),o.jsx("button",{type:"button",className:Sn.bajar,title:Vf,onClick:()=>t("bajar"),children:"Actualizar repo local"})]}),o.jsx("p",{className:Sn.nota,children:d?`«Actualizar repo local» ${Vf} 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» ${Vf} Lo que pasa —lo que sube, lo que no y por qué— queda aquí abajo, en el registro de esta sesión.`})]})}const Bre="_lista_1thq4_9",Ure="_encabezado_1thq4_23",Hre="_rotulo_1thq4_31",Vre="_nueva_1thq4_42 _secundario_1l1rx_39",Gre="_avisoConexion_1thq4_47",Wre="_aviso_1thq4_47",Zre="_filas_1thq4_63",Qre="_fila_1thq4_63",Xre="_punto_1thq4_85",Yre="_cuerpo_1thq4_112",Kre="_cabecera_1thq4_17",Jre="_titulo_1thq4_17",eae="_etiquetaEstado_1thq4_135",tae="_motivo_1thq4_140",nae="_acciones_1thq4_150",rae="_espera_1thq4_158",aae="_contenido_1thq4_165",oae="_adjuntosDeTarea_1thq4_175",sae="_encargo_1thq4_180",Mn={lista:Bre,encabezado:Ure,rotulo:Hre,nueva:Vre,avisoConexion:Gre,aviso:Wre,filas:Zre,fila:Qre,punto:Xre,cuerpo:Yre,cabecera:Kre,titulo:Jre,etiquetaEstado:eae,motivo:tae,acciones:nae,espera:rae,contenido:aae,adjuntosDeTarea:oae,encargo:sae},iae={nuevo:"Nuevo","en-proceso":"En proceso","requiere-atencion":"Esperando feedback",terminada:"Terminada"};function lae({tareas:e,alNuevaTarea:t,corriendoAqui:n,ejecutaOtroProceso:r,alReintentar:a,alDescartar:i,alTerminar:l,alEnviarFeedback:u,alContinuar:d,alArrancarAhora:m,consolaAbierta:f,sesionAbierta:h,trabajandoEnElChat:b,alMirar:y,alDejarDeMirar:g,mirando:_,mirada:j,conectado:C}){const S=C===!1;return o.jsxs("section",{className:Mn.lista,"aria-label":"Tareas del proyecto",children:[o.jsxs("div",{className:Mn.encabezado,children:[o.jsx("span",{className:Mn.rotulo,children:"Tareas en background"}),t===void 0?null:o.jsx("button",{type:"button",className:Mn.nueva,disabled:S,onClick:t,children:"Nueva tarea"})]}),S&&t!==void 0?o.jsx("p",{className:Mn.avisoConexion,children:"Sin conexión: no se puede crear una tarea hasta reconectar."}):null,n===void 0?null:o.jsx(p9,{corriendoAqui:n,...r===void 0?{}:{ejecutaOtroProceso:r},donde:"esta lista"}),e===void 0?o.jsx("p",{className:Mn.aviso,children:"Consultando la cola de tareas de este proyecto…"}):e.length===0?o.jsx("p",{className:Mn.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:Mn.filas,children:e.map(A=>o.jsx(cae,{tarea:A,...A.tras===void 0?{}:{anterior:e.find(M=>M.id===A.tras)},conectado:C,corriendoAqui:n,...a===void 0?{}:{alReintentar:a},...i===void 0?{}:{alDescartar:i},...l===void 0?{}:{alTerminar:l},...u===void 0?{}:{alEnviarFeedback:u},...d===void 0?{}:{alContinuar:d},...m===void 0?{}:{alArrancarAhora:m},puedeArrancar:g_(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:_},...j===void 0?{}:{mirada:j}},A.id))})]})}function cae({tarea:e,anterior:t,enTuChat:n,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l,alContinuar:u,alArrancarAhora:d,puedeArrancar:m,esperaPorTuConsola:f,conectado:h,corriendoAqui:b,alMirar:y,alDejarDeMirar:g,mirando:_,mirada:j}){const[C,S]=$.useState(!1);return o.jsxs("li",{className:Mn.fila,"data-estado":e.estado,children:[o.jsx("span",{className:Mn.punto,"aria-hidden":"true"}),o.jsxs("div",{className:Mn.cuerpo,children:[o.jsxs("div",{className:Mn.cabecera,children:[o.jsx("span",{className:Mn.titulo,children:e.titulo}),o.jsx("span",{className:Mn.etiquetaEstado,children:iae[e.estado]})]}),_===e.id?null:o.jsxs(o.Fragment,{children:[e.motivo===void 0?null:o.jsx("p",{className:Mn.motivo,children:e.motivo}),e.estado==="requiere-atencion"&&n!==void 0?o.jsx("p",{className:Mn.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:Mn.espera,children:`espera a: ${t.titulo}`}):null,o.jsxs("details",{className:Mn.contenido,onToggle:A=>S(A.currentTarget.open),children:[o.jsx("summary",{children:"Ver el encargo"}),C?o.jsxs(o.Fragment,{children:[e.adjuntos.length>0?o.jsx("p",{className:Mn.adjuntosDeTarea,children:`Adjuntos: ${e.adjuntos.map(A=>A.nombre).join(", ")}`}):null,o.jsx("p",{className:Mn.encargo,children:e.encargo})]}):null]}),o.jsx(n1,{tarea:e})]}),o.jsx(X2,{tarea:e,conectado:h,corriendoAqui:b,...y===void 0?{}:{alMirar:y},...g===void 0?{}:{alDejarDeMirar:g},..._===void 0?{}:{mirando:_},...j===void 0?{}:{mirada:j}})]}),o.jsx("div",{className:Mn.acciones,children:o.jsx(Q2,{tarea:e,conectado:h,alReintentar:r,alDescartar:a,alTerminar:i,alEnviarFeedback:l,...u===void 0?{}:{alContinuar:u},...d===void 0?{}:{alArrancarAhora:d},...m===void 0?{}:{puedeArrancar:m},...f===void 0?{}:{esperaPorTuConsola:f}})})]})}function O0(e){const t=e.toLowerCase().replace(/-/g,"");return/^[0-9a-f]{32}$/.test(t)?t.slice(0,8):void 0}const uae="_capa_18fw9_12",dae="_velo_18fw9_18",pae="_tarjeta_18fw9_28",mae="_titulo_18fw9_39",hae="_aviso_18fw9_46",fae="_campo_18fw9_52",gae="_select_18fw9_60",vae="_textarea_18fw9_61",bae="_error_18fw9_76",yae="_acciones_18fw9_82",xae="_principal_18fw9_89 _primario_1l1rx_67 _grande_1l1rx_26",_ae="_accion_18fw9_82 _secundario_1l1rx_39 _grande_1l1rx_26",wae="_cancelar_18fw9_97 _secundario_1l1rx_39 _grande_1l1rx_26",jae="_barraDeTicket_18fw9_103",Cae="_ticket_18fw9_114",kae="_avisoDelGestor_18fw9_123",Nae="_cerrarAviso_18fw9_136 _icono_1l1rx_149",Zt={capa:uae,velo:dae,tarjeta:pae,titulo:mae,aviso:hae,campo:fae,select:gae,textarea:vae,error:bae,acciones:yae,principal:xae,accion:_ae,cancelar:wae,barraDeTicket:jae,ticket:Cae,avisoDelGestor:kae,cerrarAviso:Nae},w9=e=>e??"el gestor",K2=e=>O0(e)??e;function j9(e){const[t,n]=$.useState((e==null?void 0:e.propuesta)??"");return $.useEffect(()=>{n((e==null?void 0:e.propuesta)??"")},[e]),[t,n]}function C9({titulo:e,alCancelar:t,children:n}){return o.jsx(Zn,{open:!0,onClose:t,title:e,headless:!0,className:Zt.capa,children:o.jsx("div",{className:Zt.velo,onClick:r=>{r.target===r.currentTarget&&t()},children:o.jsxs("div",{className:Zt.tarjeta,children:[o.jsx("p",{className:Zt.titulo,children:e}),n]})})})}function Sae({clave:e,nombreDelGestor:t,transiciones:n,errorTransiciones:r,enviando:a,error:i,alConfirmar:l,alCancelar:u}){var g;const[d,m]=j9(n),f=(n==null?void 0:n.lista)??[],h=(g=f.find(_=>_.id===d))==null?void 0:g.destino,b=K2(e),y=h===void 0?`¿Empezar con ${b}?`:`¿Pasar ${b} a ${h}?`;return o.jsxs(C9,{titulo:y,alCancelar:u,children:[n!==void 0?null:r===void 0?o.jsx("p",{className:Zt.aviso,children:`Consultando las transiciones de ${b}…`}):o.jsx("p",{className:Zt.error,role:"alert",children:`No se pudieron consultar las transiciones: ${r}`}),n===void 0?null:f.length===0?o.jsx("p",{className:Zt.aviso,children:`No hay transiciones disponibles para ${b}.`}):o.jsxs("label",{className:Zt.campo,children:["Transición",o.jsxs("select",{className:Zt.select,value:d,onChange:_=>m(_.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),f.map(_=>o.jsx("option",{value:_.id,children:_.nombre},_.id))]})]}),i===void 0?null:o.jsx("p",{className:Zt.error,role:"alert",children:i}),o.jsxs("div",{className:Zt.acciones,children:[f.length===0?null:o.jsx(Re,{type:"button",variant:"primary",className:Zt.principal,disabled:a||d==="",onClick:()=>l(d),children:"Pasar y empezar"}),o.jsx(Re,{type:"button",variant:"outline",className:Zt.accion,disabled:a,onClick:()=>l(void 0),children:`Empezar sin tocar ${w9(t)}`}),o.jsx(Re,{type:"button",variant:"outline",className:Zt.cancelar,onClick:u,children:"Cancelar"})]})]})}function $ae({clave:e,nombreDelGestor:t,comentario:n,transiciones:r,errorTransiciones:a,enviando:i,error:l,alConfirmar:u,alCancelar:d}){var j;const[m,f]=$.useState(n),[h,b]=j9(r),y=(r==null?void 0:r.lista)??[],g=(j=y.find(C=>C.id===h))==null?void 0:j.destino,_=m.trim()==="";return o.jsxs(C9,{titulo:`Cerrar ${K2(e)} en ${w9(t)}`,alCancelar:d,children:[o.jsxs("label",{className:Zt.campo,children:["Comentario",o.jsx("textarea",{className:Zt.textarea,rows:5,value:m,onChange:C=>f(C.target.value)})]}),r!==void 0||a===void 0?null:o.jsx("p",{className:Zt.error,role:"alert",children:`No se pudieron consultar las transiciones: ${a}`}),y.length===0?null:o.jsxs("label",{className:Zt.campo,children:["Transición",o.jsxs("select",{className:Zt.select,value:h,onChange:C=>b(C.target.value),children:[o.jsx("option",{value:"",children:"Ninguna"}),y.map(C=>o.jsx("option",{value:C.id,children:C.nombre},C.id))]})]}),l===void 0?null:o.jsx("p",{className:Zt.error,role:"alert",children:l}),o.jsxs("div",{className:Zt.acciones,children:[g===void 0?null:o.jsx(Re,{type:"button",variant:"primary",className:Zt.principal,disabled:i||_,onClick:()=>u(m,h),children:`Comentar y pasar a ${g}`}),o.jsx(Re,{type:"button",variant:"outline",className:Zt.accion,disabled:i||_,onClick:()=>u(m,void 0),children:"Solo comentar"}),o.jsx(Re,{type:"button",variant:"outline",className:Zt.cancelar,onClick:d,children:"Cancelar"})]})]})}function Aae({ticket:e,nombreDelGestor:t,ocupado:n,conectado:r,alPedir:a}){return o.jsxs("div",{className:Zt.barraDeTicket,children:[o.jsx("span",{className:Zt.ticket,title:e,children:K2(e)}),o.jsx("button",{type:"button",className:Zt.accion,onClick:a,disabled:!r||n,children:n?"Preparando…":t===void 0?"Cerrar la tarea":`Cerrar en ${t}`})]})}function fb({texto:e,alCerrar:t}){return o.jsxs("div",{className:Zt.avisoDelGestor,role:"status",children:[o.jsx("span",{children:e}),o.jsx("button",{type:"button",className:Zt.cerrarAviso,onClick:t,"aria-label":"Descartar el aviso",children:"×"})]})}const Eae="_cabecera_1lp5d_11",Dae="_pastillas_1lp5d_20",zae="_pastilla_1lp5d_20",Tae="_acciones_1lp5d_58",Mae="_secundario_1lp5d_64 _secundario_1l1rx_39",Lae="_primario_1lp5d_69 _primario_1l1rx_67",Iae="_borrar_1lp5d_77 _peligro_1l1rx_18",Pae="_negativa_1lp5d_82",Rae="_tira_1lp5d_92",qae="_textoDeTira_1lp5d_122",Fae="_girando_1lp5d_130 _girando_jnvvl_174",Oae="_bloque_1lp5d_139 _equipo_tqt2p_8",Bae="_tituloDeBloque_1lp5d_148 _titulo_tqt2p_22",Uae="_vacio_1lp5d_156",Hae="_filaDeModo_1lp5d_164",Vae="_notaDeModo_1lp5d_173",ln={cabecera:Eae,pastillas:Dae,pastilla:zae,acciones:Tae,secundario:Mae,primario:Lae,borrar:Iae,negativa:Pae,tira:Rae,textoDeTira:qae,girando:Fae,bloque:Oae,tituloDeBloque:Bae,vacio:Uae,filaDeModo:Hae,notaDeModo:Vae};function Gae({nombre:e,alConfirmar:t,alCerrar:n}){const[r,a]=$.useState(""),[i,l]=$.useState(!1),[u,d]=$.useState(void 0),m=r.trim()===e,f=async()=>{l(!0),d(void 0);const h=await t().catch(()=>"no se pudo hablar con el servidor");l(!1),d(h)};return o.jsx(Zn,{open:!0,onClose:n,title:"Borrar copia local",headless:!0,className:ge.capa,children:o.jsx("div",{className:ge.velo,onClick:h=>{h.target===h.currentTarget&&!i&&n()},children:o.jsxs("div",{className:ge.ventana,role:"alertdialog","aria-label":`Borrar la copia local de ${e}`,children:[o.jsx("h2",{className:ge.titulo,children:"Borrar copia local"}),o.jsxs("p",{className:ge.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:ge.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:ge.etiqueta,htmlFor:"borrar-copia-nombre",children:["Escribe «",e,"» para confirmar"]}),o.jsx("input",{id:"borrar-copia-nombre",className:ge.campo,value:r,autoFocus:!0,autoComplete:"off",spellCheck:!1,onChange:h=>a(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m&&!i&&f()}}),u===void 0?null:o.jsxs("p",{className:ge.fallo,role:"alert",children:["No se ha borrado: ",u]}),o.jsxs("div",{className:ge.acciones,children:[o.jsx(Re,{variant:"outline",className:ge.accion,disabled:i,onClick:n,children:"Cancelar"}),o.jsx(Re,{variant:"primary",className:tt(ge.accion,ge.principal,r1.destructiva),disabled:!m||i,onClick:()=>void f(),children:i?"Borrando…":"Borrar"})]})]})})})}const Wae="_gasto_42egi_6",Zae="_totales_42egi_12",Qae="_total_42egi_12",Xae="_rotulo_42egi_25",Yae="_cifra_42egi_34",Kae="_unidad_42egi_41",Jae="_cache_42egi_42",eoe="_alcance_42egi_48",toe="_leyenda_42egi_54",noe="_muestra_42egi_70",roe="_segmento_42egi_77",aoe="_lienzo_42egi_88",ooe="_maximo_42egi_93",soe="_columnas_42egi_102",ioe="_columna_42egi_102",loe="_pila_42egi_134",coe="_tooltip_42egi_154",uoe="_tituloTooltip_42egi_171",doe="_fechaTooltip_42egi_178",poe="_tabla_42egi_184",en={gasto:Wae,totales:Zae,total:Qae,rotulo:Xae,cifra:Yae,unidad:Kae,cache:Jae,alcance:eoe,leyenda:toe,muestra:noe,segmento:roe,lienzo:aoe,maximo:ooe,columnas:soe,columna:ioe,pila:loe,tooltip:coe,tituloTooltip:uoe,fechaTooltip:doe,tabla:poe};function moe({datos:e}){const[t,n]=$.useState(void 0),{barras:r,total:a,conGasto:i,sinGasto:l,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:en.gasto,children:[o.jsxs("dl",{className:en.totales,children:[o.jsxs("div",{className:en.total,children:[o.jsx("dt",{className:en.rotulo,children:u?"Modelo":"Total"}),o.jsxs("dd",{className:en.cifra,children:[St(a.modelo.tokens)," ",o.jsx("span",{className:en.unidad,children:"tokens"}),a.modelo.cache>0?o.jsxs("span",{className:en.cache,children:[" · ",St(a.modelo.cache)," de caché"]}):null]})]}),u?o.jsxs("div",{className:en.total,children:[o.jsx("dt",{className:en.rotulo,children:"Agente externo"}),o.jsxs("dd",{className:en.cifra,children:[St(a.externo.tokens)," ",o.jsx("span",{className:en.unidad,children:"tokens"}),a.externo.cache>0?o.jsxs("span",{className:en.cache,children:[" · ",St(a.externo.cache)," de caché"]}):null]})]}):null]}),o.jsxs("p",{className:en.alcance,children:["de ",i," ",i===1?"sesión":"sesiones",l>0?` · ${l} sin gasto que conste, fuera del total`:""]}),u?o.jsxs("ul",{className:en.leyenda,"aria-label":"leyenda",children:[o.jsxs("li",{children:[o.jsx("span",{className:en.muestra,"data-serie":"modelo","aria-hidden":"true"}),"Modelo"]}),o.jsxs("li",{children:[o.jsx("span",{className:en.muestra,"data-serie":"externo","aria-hidden":"true"}),"Agente externo"]})]}):null,o.jsxs("div",{className:en.lienzo,children:[o.jsx("span",{className:en.maximo,"aria-hidden":"true",children:St(d)}),o.jsx("div",{className:en.columnas,role:"img","aria-label":`Tokens de las ${r.length} últimas sesiones con gasto: la mayor, ${St(d)}.`,children:r.map(f=>o.jsx(hoe,{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:en.tooltip,role:"status",children:[o.jsx("strong",{className:en.tituloTooltip,children:Jg(m)}),m.ultimoTurno===void 0?null:o.jsx("span",{className:en.fechaTooltip,children:du(m.ultimoTurno)}),o.jsx("span",{children:k9(m,u)})]})]}),o.jsxs("details",{className:en.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:Jg(f)}),o.jsx("td",{children:f.ultimoTurno===void 0?"—":du(f.ultimoTurno)}),o.jsx("td",{children:St(f.modelo.tokens)}),u?o.jsx("td",{children:St(f.externo.tokens)}):null,o.jsx("td",{children:St(f.modelo.cache+f.externo.cache)})]},f.id))})]})]})]})}function Jg(e){return e.titulo===""?"Sin título":e.titulo}function k9(e,t){const n=e.modelo.cache+e.externo.cache;return[...t?[`modelo ${St(e.modelo.tokens)}`,`externo ${St(e.externo.tokens)}`]:[`${St(e.modelo.tokens)} tokens`],...n>0?[`${St(n)} de caché`]:[]].join(" · ")}function hoe({barra:e,maximo:t,hayExterno:n,alEnfocar:r,alSoltar:a}){const i=l=>`${l/t*100}%`;return o.jsx("span",{className:en.columna,tabIndex:0,"aria-label":`${Jg(e)}: ${k9(e,n)}`,onMouseEnter:r,onMouseLeave:a,onFocus:r,onBlur:a,children:o.jsxs("span",{className:en.pila,children:[e.externo.tokens>0?o.jsx("span",{className:en.segmento,"data-serie":"externo",style:{height:i(e.externo.tokens)}}):null,e.modelo.tokens>0?o.jsx("span",{className:en.segmento,"data-serie":"modelo",style:{height:i(e.modelo.tokens)}}):null]})})}const foe=10,gb={entrada:0,salida:0,cache:0};function E0(e,t){const n=e==="modelo"?K0(t.modelo,gb):K0(gb,t.externo);return{tokens:n.nueva+n.salida,cache:n.cache}}const vb=(e,t)=>({tokens:e.tokens+t.tokens,cache:e.cache+t.cache});function goe(e){const t=e.filter(i=>i.consumo!==void 0),n={tokens:0,cache:0},r=t.reduce((i,l)=>({modelo:vb(i.modelo,E0("modelo",l.consumo)),externo:vb(i.externo,E0("externo",l.consumo))}),{modelo:n,externo:n});return{barras:Ly(t).slice(0,foe).reverse().map(i=>({id:i.id,titulo:i.titulo,...i.ultimoTurno===void 0?{}:{ultimoTurno:i.ultimoTurno},modelo:E0("modelo",i.consumo),externo:E0("externo",i.consumo)})),total:r,conGasto:t.length,sinGasto:e.length-t.length,hayExterno:t.some(i=>E0("externo",i.consumo).tokens>0)}}function voe({proyecto:e,conectado:t,alDescargar:n,alAbrirCarpeta:r,alBorrarCopia:a,alPedirResumen:i,alFijarModoDelProyecto:l,modoGlobal:u,subida:d,marcaDeSubida:m,alVerPendientes:f}){var z;const h=t===!1,[b,y]=$.useState(!1),[g,_]=$.useState(void 0),[j,C]=$.useState(void 0),S=$.useRef(e.id);S.current=e.id;const A=()=>{const P=e.id;e.local===!0&&(C({proyecto:P,respondida:!1}),i(P).catch(()=>{}).then(H=>{S.current===P&&C({proyecto:P,respondida:!0,...H===void 0?{}:{foto:H}})}))};$.useEffect(A,[e.id,e.local]);const M=$.useRef(m);$.useEffect(()=>{M.current!==m&&(M.current=m,A())},[m]);const L=(j==null?void 0:j.proyecto)===e.id?j:void 0;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:ln.cabecera,role:"group","aria-label":"Copia local",children:[o.jsxs("div",{className:ln.pastillas,children:[e.local===!0?o.jsxs("span",{className:ln.pastilla,"data-estado":"local",children:[o.jsx(M2,{size:14}),"en tu equipo"]}):o.jsxs("span",{className:ln.pastilla,"data-estado":"sin-descargar",children:[o.jsx(hy,{size:14}),"sin descargar"]}),e.compartido===!0?o.jsxs("span",{className:ln.pastilla,"data-estado":"compartido",children:[o.jsx(q2,{size:14}),"compartido contigo"]}):null]}),e.local===!0?o.jsxs("div",{className:ln.acciones,children:[o.jsx("button",{type:"button",className:ln.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:ln.borrar,disabled:h,onClick:()=>y(!0),children:"Borrar copia local"})]}):o.jsx("div",{className:ln.acciones,children:o.jsx("button",{type:"button",className:ln.primario,disabled:h,onClick:n,children:"Descargar"})})]}),g===void 0?null:o.jsxs("p",{className:ln.negativa,role:"alert",children:["No se ha abierto la carpeta: ",g]}),e.local===!0?o.jsxs(o.Fragment,{children:[o.jsx(xoe,{medida:L,apagado:h,alActualizar:A,...d===void 0?{}:{subida:d},...f===void 0?{}:{alVerPendientes:f}}),((z=L==null?void 0:L.foto)==null?void 0:z.modoDeEscritura)===void 0||l===void 0?null:o.jsx(yoe,{guardado:L.foto.modoDeEscritura.proyecto,...u===void 0?{}:{modoGlobal:u},apagado:h,alFijar:async P=>{const H=e.id,R=await l(H,P).catch(()=>({motivo:"no se pudo hablar con el servidor"}));return"guardado"in R&&S.current===H&&C(F=>(F==null?void 0:F.proyecto)!==H||F.foto===void 0?F:{...F,foto:{...F.foto,modoDeEscritura:R.guardado}}),"motivo"in R?R.motivo:void 0}}),o.jsxs("section",{className:ln.bloque,"aria-label":"Gasto del proyecto",children:[o.jsx("h2",{className:ln.tituloDeBloque,children:"Gasto"}),o.jsx(_oe,{sesiones:e.sesiones??[]})]})]}):null,b?o.jsx(Gae,{nombre:e.nombre,alCerrar:()=>y(!1),alConfirmar:async()=>{const P=await a(e.id);return P===void 0&&y(!1),P}}):null]})}const boe={supervisado:"Supervisado",autonomo:"Autónomo"};function yoe({guardado:e,modoGlobal:t,apagado:n,alFijar:r}){const[a,i]=$.useState(!1),[l,u]=$.useState(void 0);return o.jsxs("section",{className:ln.bloque,"aria-label":"Conversaciones nuevas",children:[o.jsx("h2",{className:ln.tituloDeBloque,children:"Conversaciones nuevas"}),o.jsxs("label",{className:ln.filaDeModo,children:[o.jsx("span",{children:"Empiezan en"}),o.jsxs(gs,{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),i(!0),r(f).then(h=>{i(!1),u(h)})},children:[o.jsx("option",{value:"global",children:t===void 0?"Como el global":`Como el global (${boe[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:ln.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."}),l===void 0?null:o.jsxs("p",{className:ln.negativa,role:"alert",children:["No se ha guardado: ",l]})]})}function xoe({medida:e,apagado:t,alActualizar:n,subida:r,alVerPendientes:a}){var d;const i=(d=e==null?void 0:e.foto)==null?void 0:d.sync;let l,u;return e===void 0||!e.respondida?(u="midiendo",l=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:ln.girando,"aria-hidden":"true"}),"midiendo lo que queda por subir…"]})):e.foto===void 0?(u="error",l="No se ha podido medir lo que queda por subir."):i===void 0||i.proyecto===void 0?(u="sin-vincular",l="No está vinculado a CloudStudio: no hay nada con lo que comparar."):i.error!==void 0?(u="error",l=`No se ha podido medir: ${i.error}`):i.pendientes===void 0?(u="error",l="No se ha podido medir lo que queda por subir."):i.pendientes===0?(u="al-dia",l="Nada por subir: la copia está igual que la rama en CloudStudio."):(u="pendientes",l=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:[i.pendientes," ",i.pendientes===1?"fichero":"ficheros"]})," ","con cambios sin subir",i.rama===void 0?"":` a «${i.rama}»`]})),o.jsxs("div",{className:ln.tira,"data-estado":u,role:"status",children:[o.jsx("span",{className:ln.textoDeTira,children:l}),a!==void 0&&u==="pendientes"?o.jsx("button",{type:"button",className:ln.secundario,onClick:a,children:"Ver cambios"}):null,r!==void 0&&(u==="pendientes"||r.esperando)?o.jsx(_9,{subida:r,className:ln.primario,apagado:t}):null,o.jsxs("button",{type:"button",className:ln.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(Yi,{}):null,"Actualizar"]})]})}function _oe({sesiones:e}){const t=goe(e);return t.conGasto===0?o.jsx("p",{className:ln.vacio,children:"Todavía no consta gasto en este proyecto."}):o.jsx(moe,{datos:t})}const woe="_soporte_11ydl_5",joe="_barra_11ydl_11",Coe="_principal_11ydl_19 _primario_1l1rx_67",koe="_secundario_11ydl_24 _secundario_1l1rx_39",Noe="_filtro_11ydl_33",Soe="_aviso_11ydl_41",$oe="_error_11ydl_48",Aoe="_grupo_11ydl_54",Eoe="_tituloDeGrupo_11ydl_60",Doe="_lista_11ydl_66",zoe="_fila_11ydl_77",Toe="_cabecera_11ydl_81",Moe="_insignia_11ydl_91",Loe="_titulo_11ydl_60",Ioe="_dato_11ydl_140",Poe="_exportar_11ydl_148 _secundario_1l1rx_39",Roe="_hallazgos_11ydl_154",qoe="_turno_11ydl_168",Ln={soporte:woe,barra:joe,principal:Coe,secundario:koe,filtro:Noe,aviso:Soe,error:$oe,grupo:Aoe,tituloDeGrupo:Eoe,lista:Doe,fila:zoe,cabecera:Toe,insignia:Moe,titulo:Loe,dato:Ioe,exportar:Poe,hallazgos:Roe,turno:qoe};function Gf(e,t,n){return`/soporte?${new URLSearchParams({tipo:t,proyecto:e,...n===void 0?{}:{id:n}}).toString()}`}function Foe(e){return e.analisis.hallazgos.filter(t=>t.gravedad!=="info").length}function Ooe(e){const t=Foe(e);return e.analisis.gravedad==="ok"?"sin problemas":e.analisis.gravedad==="error"?`${t} con error`:`${t} aviso${t===1?"":"s"}`}function bb(e){return e.titulo.trim()===""?"Sin título":e.titulo}function Boe(e){const t=e.ultimoTurno??e.creada;return t===void 0?void 0:t.slice(0,16).replace("T"," ")}const Uoe={nuevo:"nueva","en-proceso":"en proceso","requiere-atencion":"requiere atención",terminada:"terminada"};function Hoe({fila:e,url:t}){const[n,r]=$.useState(!1),a=e.analisis.hallazgos.length>0,i=Boe(e);return o.jsxs("li",{className:Ln.fila,children:[o.jsxs("div",{className:Ln.cabecera,children:[o.jsx("span",{className:Ln.insignia,"data-gravedad":e.analisis.gravedad,children:Ooe(e)}),a?o.jsx("button",{type:"button",className:Ln.titulo,"aria-expanded":n,onClick:()=>r(!n),children:bb(e)}):o.jsx("span",{className:Ln.titulo,children:bb(e)}),o.jsxs("span",{className:Ln.dato,children:[e.estado===void 0?null:`${Uoe[e.estado]} · `,e.enVuelo===!0?"en marcha · ":null,i]}),o.jsx("a",{className:Ln.exportar,href:t,download:!0,children:"Exportar"})]}),n&&a?o.jsx("ul",{className:Ln.hallazgos,children:e.analisis.hallazgos.map((l,u)=>o.jsxs("li",{"data-gravedad":l.gravedad,children:[l.turno===void 0?null:o.jsxs("span",{className:Ln.turno,children:["turno ",l.turno]}),l.mensaje]},u))}):null]})}function yb({titulo:e,filas:t,vacio:n,url:r}){return o.jsxs("section",{className:Ln.grupo,"aria-label":e,children:[o.jsx("h2",{className:Ln.tituloDeGrupo,children:e}),t.length===0?o.jsx("p",{className:Ln.aviso,children:n}):o.jsx("ul",{className:Ln.lista,children:t.map(a=>o.jsx(Hoe,{fila:a,url:r(a)},a.id))})]})}function Voe({proyecto:e,conectado:t,alPedir:n}){const[r,a]=$.useState(void 0),[i,l]=$.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=>i?g.filter(_=>_.analisis.gravedad!=="ok"):g;return o.jsxs("div",{className:Ln.soporte,children:[o.jsxs("div",{className:Ln.barra,children:[o.jsx("a",{className:Ln.principal,href:Gf(e,"proyecto"),download:!0,children:"Exportar proyecto"}),o.jsxs("label",{className:Ln.filtro,children:[o.jsx("input",{type:"checkbox",checked:i,onChange:g=>l(g.target.checked)}),"Solo con problemas"]}),o.jsxs("button",{type:"button",className:Ln.secundario,disabled:!t||b,"aria-busy":b,onClick:()=>d(g=>g+1),children:[b?o.jsx(Yi,{}):null,"Actualizar"]})]}),o.jsx("p",{className:Ln.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:Ln.aviso,role:"status",children:"Analizando…"}):h===void 0?o.jsx("p",{className:Ln.error,role:"status",children:"No se pudo pedir el análisis al servidor."}):o.jsxs(o.Fragment,{children:[o.jsx(yb,{titulo:"Chats",filas:y(h.chats),vacio:i?"Ningún chat con problemas.":"Este proyecto no tiene chats.",url:g=>Gf(e,"chat",g.id)}),o.jsx(yb,{titulo:"Tareas",filas:y(h.tareas),vacio:i?"Ninguna tarea con problemas.":"Este proyecto no tiene tareas en background.",url:g=>Gf(e,"tarea",g.id)})]})]})}const Goe="_panel_1jmqz_8",Woe="_cabecera_1jmqz_18",Zoe="_titular_1jmqz_23",Qoe="_iconoDeApp_1jmqz_30",Xoe="_nombre_1jmqz_37",Yoe="_meta_1jmqz_44",Koe="_trabajando_1jmqz_54",Joe="_cuerpo_1jmqz_68",ese="_seccion_1jmqz_75",tse="_encabezado_1jmqz_82",nse="_titulo_1jmqz_90",rse="_aviso_1jmqz_96",ase="_error_1jmqz_103",ose="_nota_1jmqz_109",sse="_lista_1jmqz_114",ise="_plan_1jmqz_146",lse="_nombreDePlan_1jmqz_154",cse="_busqueda_1jmqz_158",use="_campo_1jmqz_164",dse="_tarea_1jmqz_179",pse="_filaDeTarea_1jmqz_183",mse="_datos_1jmqz_197",hse="_lineaPrincipal_1jmqz_205",fse="_lineaSecundaria_1jmqz_212",gse="_clave_1jmqz_219",vse="_abrirFuera_1jmqz_227",bse="_desplegar_1jmqz_239",yse="_estado_1jmqz_255",xse="_accionesDeTarea_1jmqz_268",_se="_ficha_1jmqz_289",wse="_filtros_1jmqz_298",jse="_pastilla_1jmqz_304",Cse="_cuenta_1jmqz_335",kse="_consultado_1jmqz_342",Nse="_icono_1jmqz_30",Sse="_avisoConAcciones_1jmqz_374",$se="_conector_1jmqz_381",Ase="_filaDeConector_1jmqz_389",Ese="_casilla_1jmqz_396",Dse="_interruptor_1jmqz_406",zse="_bolita_1jmqz_433",Tse="_huecoDeInterruptor_1jmqz_449",Mse="_tituloDeConector_1jmqz_454",Lse="_alFinal_1jmqz_459",Ise="_vinculo_1jmqz_467",Pse="_vinculoNotion_1jmqz_477",Rse="_base_1jmqz_486",qse="_esquema_1jmqz_517",Fse="_lineaDelEsquema_1jmqz_523",Ose="_principal_1jmqz_528 _primario_1l1rx_67",Bse="_accion_1jmqz_268 _secundario_1l1rx_39",Use="_peligro_1jmqz_536 _peligro_1l1rx_18",Hse="_sincronizacion_1jmqz_543",Vse="_enCurso_1jmqz_556",fe={panel:Goe,cabecera:Woe,titular:Zoe,iconoDeApp:Qoe,nombre:Xoe,meta:Yoe,trabajando:Koe,cuerpo:Joe,seccion:ese,encabezado:tse,titulo:nse,aviso:rse,error:ase,nota:ose,lista:sse,plan:ise,nombreDePlan:lse,busqueda:cse,campo:use,tarea:dse,filaDeTarea:pse,datos:mse,lineaPrincipal:hse,lineaSecundaria:fse,clave:gse,abrirFuera:vse,desplegar:bse,estado:yse,accionesDeTarea:xse,ficha:_se,filtros:wse,pastilla:jse,cuenta:Cse,consultado:kse,icono:Nse,avisoConAcciones:Sse,conector:$se,filaDeConector:Ase,casilla:Ese,interruptor:Dse,bolita:zse,huecoDeInterruptor:Tse,tituloDeConector:Mse,alFinal:Lse,vinculo:Ise,vinculoNotion:Pse,base:Rse,esquema:qse,lineaDelEsquema:Fse,principal:Ose,accion:Bse,peligro:Use,sincronizacion:Hse,enCurso:Vse};function o1(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 $m(e){return e.proyecto.startsWith("collection://")?e.nombreDelProyecto:e.proyecto}const xb=[{id:"resumen",etiqueta:"Resumen"},{id:"sincronizacion",etiqueta:"Sincronización"},{id:"tareas",etiqueta:"Tareas"},{id:"conectores",etiqueta:"Conectores"},{id:"soporte",etiqueta:"Soporte"}];function _b({nombre:e,entorno:t,rama:n,planes:r,copia:a,tareasEnFondo:i,tareasEnCurso:l,sincronizacion:u,gestor:d,conectores:m,conectado:f,turnoEnVuelo:h=!1,empezarEnVuelo:b,alVolverAlChat:y,alGestor:g,alAutorizarConector:_,alProbarConector:j,alAbrirAjustesDeConectores:C,alPedirSoporte:S}){var ae,be,$e,pe,Le;const[A,M]=$.useState("resumen"),L=a!==void 0&&a.proyecto.local!==!0,z=!L&&a!==void 0&&S!==void 0,P=L?xb.filter(Ae=>Ae.id==="resumen"):xb.filter(Ae=>(Ae.id!=="soporte"||z)&&(Ae.id!=="sincronizacion"||u!==void 0)),H=$.useRef({}),R=$.useRef(new WeakSet),F=(Ae,ut)=>{var Ct;H.current[Ae.accion]=Ae;const yt=(Ct=d==null?void 0:d.errores)==null?void 0:Ct[Ae.accion];yt!==void 0&&R.current.add(yt),ut===void 0?g(Ae):g(Ae,ut)},U=Ae=>{var yt,Ct;if(Ae==="pendientes")return(Ct=(yt=d==null?void 0:d.estado)==null?void 0:yt.vinculo)==null?void 0:Ct.conector;const ut=H.current[Ae];return ut!==void 0&&"conector"in ut?ut.conector:void 0};Kse({gestor:d,conectores:m,conectado:f,ultimas:H.current,repetidos:R.current,conectorDelFallo:U,pedir:F});const[Z,re]=$.useState(void 0),le=(ae=d==null?void 0:d.errores)==null?void 0:ae.empezar,ee=(be=d==null?void 0:d.errores)==null?void 0:be.transiciones,ke=($e=d==null?void 0:d.borrador)==null?void 0:$e.id;$.useEffect(()=>{ke!==void 0&&re(void 0)},[ke]),$.useEffect(()=>{f||re(void 0)},[f]),$.useEffect(()=>{f&&!L&&F({accion:"estado"})},[f]);const _e=$.useRef({}),ie=Ae=>{re(Ae),_e.current={empezar:le,transiciones:ee},F({accion:"transiciones",clave:Ae,para:"empezar"})},Ne=d==null?void 0:d.transiciones,B=Ne!==void 0&&Ne.clave===Z&&Ne.para==="empezar"?Ne:void 0,O=le!==_e.current.empezar?le:void 0,ne=ee!==_e.current.transiciones?ee:void 0,E=Ae=>{var yt;if(Z===void 0)return;const ut=Ae===void 0||(yt=B==null?void 0:B.lista.find(Ct=>Ct.id===Ae))==null?void 0:yt.destino;F({accion:"empezar",clave:Z,...Ae===void 0?{}:{transicion:Ae}},{destino:ut})},ue=o1(m,(Le=(pe=d==null?void 0:d.estado)==null?void 0:pe.vinculo)==null?void 0:Le.conector);return o.jsxs("section",{className:fe.panel,"aria-label":`Proyecto ${e}`,children:[o.jsxs("header",{className:fe.cabecera,children:[(a==null?void 0:a.proyecto.icono)===!0?o.jsxs("div",{className:fe.titular,children:[o.jsx(My,{id:a.proyecto.id,lado:32,className:fe.iconoDeApp}),o.jsx("h1",{className:fe.nombre,children:e})]}):o.jsx("h1",{className:fe.nombre,children:e}),t===void 0&&n===void 0?null:o.jsxs("p",{className:fe.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:fe.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:fe.accion,onClick:y,children:"Volver al chat"})]}):null,o.jsx("div",{className:Ql.cabecera,children:o.jsx("div",{className:tt(_n.tabs,Ql.tira),role:"tablist","aria-label":"Vistas del proyecto",children:P.map(Ae=>o.jsxs("button",{type:"button",role:"tab","aria-selected":A===Ae.id,className:tt(_n.tab,Ql.pestana,A===Ae.id&&_n.tabActive),onClick:()=>M(Ae.id),children:[Ae.etiqueta,Ae.id==="tareas"&&l!==void 0&&l>0?o.jsx("span",{className:fe.enCurso,title:l===1?"Una tarea de fondo se está ejecutando":`${l} tareas de fondo se están ejecutando`,children:` · ${l} en curso`}):null]},Ae.id))})}),o.jsx("div",{className:fe.cuerpo,role:"tabpanel",children:A==="resumen"||L?o.jsxs(o.Fragment,{children:[a===void 0?null:o.jsx(voe,{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:()=>M("sincronizacion")}}),L?o.jsx("p",{className:fe.aviso,children:"Tareas y Conectores aparecen cuando el proyecto está descargado: los dos trabajan sobre la copia abierta."}):o.jsx(Gse,{...r===void 0?{}:{planes:r}})]}):A==="sincronizacion"&&u!==void 0?o.jsx("div",{className:fe.sincronizacion,children:u}):A==="tareas"?o.jsxs(o.Fragment,{children:[i===void 0?null:o.jsxs("section",{className:fe.seccion,"aria-label":"Tareas en background",children:[o.jsx("h2",{className:fe.titulo,children:"Tareas en background"}),i]}),o.jsx(nie,{gestor:d,conectado:f,ocupado:Z!==void 0||b,turnoEnVuelo:h,...m===void 0?{}:{conectores:m},alGestor:F,alAutorizar:_,alEmpezar:ie,alIrAConectores:()=>M("conectores"),alAbrirAjustes:C})]}):A==="soporte"&&z?o.jsx(Voe,{proyecto:a.proyecto.id,conectado:f,alPedir:S}):o.jsx(sie,{gestor:d,conectores:m,conectado:f,alGestor:F,alAutorizar:_,alProbar:j,conectorDelFallo:U,alAbrirAjustes:C})}),Z===void 0?null:o.jsx(Sae,{clave:Z,...ue===void 0?{}:{nombreDelGestor:ue},...B===void 0?{}:{transiciones:B},...ne===void 0?{}:{errorTransiciones:ne.motivo},enviando:b,...b||O===void 0?{}:{error:O.motivo},alConfirmar:E,alCancelar:()=>re(void 0)})]})}function Gse({planes:e}){const t=e==null?void 0:e.filter(Wse);return o.jsx(o.Fragment,{children:t===void 0||t.length===0?null:o.jsxs("section",{className:fe.seccion,"aria-label":"Planes",children:[o.jsx("h2",{className:fe.titulo,children:"Planes"}),o.jsx("ul",{className:fe.lista,children:t.map(n=>{var i,l;const r=((i=n.tareas)==null?void 0:i.tareas)??[],a=r.length>0&&r.every(u=>u.progreso!==void 0);return o.jsxs("li",{className:fe.plan,children:[o.jsx("span",{className:fe.nombreDePlan,children:((l=n.tareas)==null?void 0:l.titulo)??n.nombre}),a?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:fe.nota,children:Ay(r)}),o.jsx(Ey,{tareas:r})]}):null]},n.nombre)})})]})})}function Wse(e){return e.ficheros.includes("PLAN.md")&&e.ficheros.includes("TASKS.md")}const Zse="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 Qse(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:fe.error,role:"alert",children:e.motivo})}const Xse=["sitios","proyectos","buscarProyectos","describir","pendientes"];function J2(e){return/falta autorizar/.test(e)}function Yse(e){return/no está conectado/.test(e)}const s1=e=>{var t;return((t=e.prueba)==null?void 0:t.ok)===!0};function Kse({gestor:e,conectores:t,conectado:n,ultimas:r,repetidos:a,conectorDelFallo:i,pedir:l}){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 Xse){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)||!J2(g.motivo))continue;const j=i(y);j===void 0||!h.includes(j)||l(_)}},[d])}function e4({error:e,conector:t,conectores:n,conectado:r,alAutorizar:a,alAbrirAjustes:i,sinDuplicarLaFila:l=!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&&J2(e.motivo)&&!(l&&!s1(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:fe.avisoConAcciones,children:[o.jsx(N9,{error:e}),m?o.jsx("button",{type:"button",className:fe.accion,onClick:()=>a(d.id),disabled:!r||d.autorizando===!0,children:d.autorizando===!0?"Esperando al navegador…":`Conectar ${f}`}):null,Yse(e.motivo)?o.jsx("button",{type:"button",className:fe.accion,onClick:i,children:"Añádelo en Ajustes"}):null,u]})}const Jse=/PROBAR|PREPROD|REVIS|TEST/i,eie=e=>!Jse.test(e),wb={"por-hacer":0,"en-curso":1,terminada:2};function tie(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)=>wb[n.categoria]-wb[r.categoria]||n.orden-r.orden).map(({estado:n,cuantas:r})=>({estado:n,cuantas:r}))}const jb=100,Cb=(e,t)=>t||e.mias!==!0?e:{...e.texto===void 0?{}:{texto:e.texto}},kb=e=>({accion:"pendientes",...e.texto===void 0||e.texto===""?{}:{texto:e.texto},...e.mias===!0?{mias:!0}:{}});function nie({gestor:e,conectores:t,conectado:n,ocupado:r,turnoEnVuelo:a,alGestor:i,alAutorizar:l,alEmpezar:u,alIrAConectores:d,alAbrirAjustes:m}){var E,ue;const f=(E=e==null?void 0:e.estado)==null?void 0:E.vinculo,[h,b]=$.useState(""),[y,g]=$.useState(!1),[_,j]=$.useState({}),[C,S]=$.useState(void 0),A=$.useRef(void 0),M=$.useRef({}),L=ae=>{M.current=ae,i(kb(ae))},z=f===void 0?void 0:`${f.conector}|${f.sitio}|${f.proyecto}`,P=((ue=e==null?void 0:e.estado)==null?void 0:ue.admiteMias)===!0,H=$.useRef(void 0);$.useEffect(()=>{if(z===void 0)return;const ae=H.current!==void 0&&H.current!==z;H.current=z,ae&&(M.current={},b(""),g(!1),j({}),S(void 0)),i(kb(Cb(M.current,P))),!ae&&C!==void 0&&(A.current=void 0,i({accion:"ficha",clave:C}))},[z]);const R=(e==null?void 0:e.errores)??{},F=uc(R.pendientes===void 0?e==null?void 0:e.pendientes:R.pendientes,n);if((e==null?void 0:e.estado)===void 0)return R.estado===void 0?o.jsx("p",{className:fe.aviso,children:"Consultando el gestor de tareas…"}):o.jsx("p",{className:fe.error,role:"alert",children:`No se ha podido leer el gestor de tareas: ${R.estado.motivo}`});if(f===void 0)return o.jsxs("div",{className:fe.seccion,children:[o.jsx("p",{className:fe.aviso,children:"Este proyecto no tiene gestor de tareas."}),o.jsx("button",{type:"button",className:fe.accion,onClick:d,children:"Vincular en Conectores"})]});const U=e.pendientes,Z=o1(t,f.conector),re=()=>L({texto:h.trim(),mias:P&&y}),le=()=>L(Cb(M.current,P)),ee=()=>{g(!y),L({texto:h.trim(),mias:!y})},ke=ae=>{if(C===ae){S(void 0);return}S(ae),A.current=R.ficha,i({accion:"ficha",clave:ae})},_e=U===void 0?[]:tie(U.lista),ie=ae=>_[ae]??eie(ae),Ne=_e.every(ae=>ie(ae.estado)),B=U===void 0?[]:U.lista.filter(ae=>ie(ae.estado)),O=e.ficha!==void 0&&e.ficha.clave===C?e.ficha:void 0,ne=R.ficha!==void 0&&R.ficha!==A.current&&R.ficha.clave===C?R.ficha:void 0;return o.jsxs("div",{className:fe.seccion,children:[o.jsxs("div",{className:fe.encabezado,children:[o.jsx("h2",{className:fe.titulo,children:`Pendientes de ${$m(f)??"la base vinculada"}`}),U===void 0?null:o.jsxs("span",{className:fe.consultado,children:[o.jsx("span",{className:fe.nota,children:`Consultado a las ${Qse(U.cuando)}`}),o.jsx("button",{type:"button",className:fe.icono,"aria-label":"Actualizar",title:"Volver a consultar las pendientes",onClick:()=>{F.empezar(),le()},disabled:!n||F.esperando,"aria-busy":F.esperando,children:o.jsx("span",{className:F.esperando?`${F0.icono} ${F0.girando}`:F0.icono,children:o.jsx(NF,{})})})]})]}),o.jsxs("form",{className:fe.busqueda,role:"search",onSubmit:ae=>{ae.preventDefault(),re()},children:[o.jsx("input",{type:"search",className:fe.campo,"aria-label":"Buscar tareas",placeholder:"Buscar en las pendientes",value:h,onChange:ae=>b(ae.target.value)}),o.jsx("button",{type:"submit",className:fe.accion,disabled:!n,children:"Buscar"}),P?o.jsx("button",{type:"button",className:fe.pastilla,"aria-pressed":y,title:"Solo las asignadas a la cuenta con la que está conectado el gestor",onClick:ee,disabled:!n,children:"Asignadas a mí"}):null]}),o.jsx(e4,{...R.pendientes===void 0?{}:{error:R.pendientes},conector:f.conector,...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:l,alAbrirAjustes:m,children:o.jsx("button",{type:"button",className:fe.accion,onClick:le,disabled:!n,children:"Reintentar"})}),U===void 0?R.pendientes===void 0?o.jsx("p",{className:fe.aviso,children:"Consultando las tareas…"}):null:U.lista.length===0?o.jsx("p",{className:fe.aviso,children:U.texto===void 0?"No hay tareas pendientes.":`No hay tareas pendientes que coincidan con «${U.texto}».`}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:fe.filtros,role:"group","aria-label":"Filtrar por estado",children:[o.jsxs("button",{type:"button",className:fe.pastilla,"aria-pressed":Ne,onClick:()=>{Ne||j(Object.fromEntries(_e.map(ae=>[ae.estado,!0])))},children:["Todas ",o.jsx("span",{className:fe.cuenta,children:U.lista.length})]}),_e.map(ae=>o.jsxs("button",{type:"button",className:fe.pastilla,"aria-pressed":ie(ae.estado),onClick:()=>j({..._,[ae.estado]:!ie(ae.estado)}),children:[ae.estado," ",o.jsx("span",{className:fe.cuenta,children:ae.cuantas})]},ae.estado))]}),U.lista.length>=jb?o.jsx("p",{className:fe.aviso,children:`Se muestran las ${jb} más recientes; afina con la búsqueda.`}):null,B.length===0?o.jsx("p",{className:fe.aviso,children:"Ninguna pendiente con estos filtros."}):o.jsx("ul",{className:fe.lista,children:B.map(ae=>o.jsx(aie,{tarea:ae,...Z===void 0?{}:{nombreDelGestor:Z},conAsignado:U.mias!==!0,desplegada:C===ae.clave,...C===ae.clave&&O!==void 0?{descripcion:O.descripcion}:{},...C===ae.clave&&ne!==void 0?{errorDeFicha:ne}:{},conectado:n,ocupado:r,turnoEnVuelo:a,alAlternar:()=>ke(ae.clave),alEmpezar:()=>u(ae.clave)},ae.clave))})]})]})}const rie="a, button, input, select, textarea, summary";function aie({tarea:e,nombreDelGestor:t,conAsignado:n,desplegada:r,descripcion:a,errorDeFicha:i,conectado:l,ocupado:u,turnoEnVuelo:d,alAlternar:m,alEmpezar:f}){const h=`ficha-${e.clave}`,b=e.etiqueta??O0(e.clave)??e.clave,y=`Abrir ${b} en ${t??"el gestor"}`,g=_=>{_.target instanceof Element&&_.target.closest(rie)!==null||m()};return o.jsxs("li",{className:fe.tarea,"data-categoria":e.categoria,children:[o.jsxs("div",{className:fe.filaDeTarea,onClick:g,children:[o.jsxs("div",{className:fe.datos,children:[o.jsxs("div",{className:fe.lineaPrincipal,children:[o.jsx("span",{className:fe.clave,children:b}),e.url===void 0?null:o.jsx("a",{className:fe.abrirFuera,href:e.url,target:"_blank",rel:"noreferrer","aria-label":y,title:y,children:o.jsx(kF,{})}),o.jsx("button",{type:"button",className:fe.desplegar,"aria-expanded":r,...r?{"aria-controls":h}:{},title:e.titulo,onClick:m,children:e.titulo})]}),o.jsxs("div",{className:fe.lineaSecundaria,children:[o.jsx("span",{className:fe.estado,children:e.estado}),!n||e.asignado===void 0?null:o.jsx("span",{className:fe.nota,children:e.asignado})]})]}),o.jsx("div",{className:fe.accionesDeTarea,children:o.jsx("button",{type:"button",className:fe.accion,onClick:f,disabled:!l||u||d,...d?{title:Zse}:{},"aria-label":`Nueva sesión con ${b}`,children:"Nueva sesión con esta tarea"})})]}),r?o.jsx("div",{className:fe.ficha,id:h,children:a!==void 0?a.trim()===""?o.jsx("p",{className:fe.aviso,children:"Esta tarea no tiene descripción."}):o.jsx(rc,{text:ac(a),codeLabels:oc}):i!==void 0?o.jsx("p",{className:fe.error,role:"alert",children:`No se pudo leer la descripción: ${i.motivo}`}):o.jsx("p",{className:fe.aviso,children:"Consultando la descripción…"})}):null]})}const Nb=["jira","notion"],oie="notion";function sie({gestor:e,conectores:t,conectado:n,alGestor:r,alAutorizar:a,alProbar:i,conectorDelFallo:l,alAbrirAjustes:u}){iie(t==null?void 0:t.conectores,n,i);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(j=>o.jsx(N9,{...d[j]===void 0?{}:{error:d[j]}},j)),["vincular","sitios","proyectos"].map(j=>{const C=l(j);return o.jsx(e4,{...d[j]===void 0?{}:{error:d[j]},...C===void 0?{}:{conector:C},...t===void 0?{}:{conectores:t},conectado:n,alAutorizar:a,alAbrirAjustes:u,sinDuplicarLaFila:!0},j)})]});if(m===void 0||t===void 0)return o.jsxs("div",{className:fe.seccion,children:[f,d.estado===void 0?o.jsx("p",{className:fe.aviso,children:"Consultando los conectores…"}):null]});const h=j=>o1(t,j)??j,b=m.vinculo,y=j=>t.conectores.find(C=>C.id===j),g=[...Nb].sort((j,C)=>+(C===(b==null?void 0:b.conector))-+(j===(b==null?void 0:b.conector))).filter(j=>j===(b==null?void 0:b.conector)||y(j)!==void 0),_=t.conectores.filter(j=>!Nb.includes(j.id));return o.jsxs("div",{className:fe.seccion,children:[f,o.jsxs("section",{className:fe.seccion,"aria-label":"Gestor de tareas",children:[o.jsx("h2",{className:fe.titulo,children:"Gestor de tareas"}),o.jsx("p",{className:fe.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:fe.aviso,children:"Ni Jira ni Notion están añadidos. Se añaden en Ajustes."}):o.jsx("ul",{className:fe.lista,children:g.map(j=>o.jsx(lie,{id:j,nombre:h(j),...y(j)===void 0?{}:{fila:y(j)},gestor:e,conectores:t,...b===void 0?{}:{vinculo:b,nombreDelVinculado:h(b.conector)},conectado:n,alGestor:r,alAutorizar:a,alProbar:i,alAbrirAjustes:u},j))})]}),o.jsxs("section",{className:fe.seccion,"aria-label":"Conectores para el chat",children:[o.jsx("h2",{className:fe.titulo,children:"Conectores para el chat"}),o.jsx("p",{className:fe.aviso,children:"Los que usará el agente en el chat de este proyecto."}),_.length===0?o.jsx("p",{className:fe.aviso,children:"No hay otros conectores añadidos."}):o.jsx("ul",{className:fe.lista,children:_.map(j=>{const C=m.conectores.includes(j.id),S=s1(j)||C;return o.jsx("li",{className:fe.conector,children:o.jsxs("div",{className:fe.filaDeConector,children:[S?o.jsx("button",{type:"button",role:"switch","aria-checked":C,"aria-label":"Usar en este proyecto",title:C?"Lo usa el agente en este proyecto":"No lo usa el agente en este proyecto",className:fe.interruptor,disabled:!n,onClick:()=>r({accion:"usarConector",conector:j.id,usar:!C}),children:o.jsx("span",{className:fe.bolita,"aria-hidden":"true"})}):o.jsx("span",{className:fe.huecoDeInterruptor,"aria-hidden":"true"}),o.jsx(a1,{id:j.id,nombre:h(j.id)}),o.jsx("span",{className:fe.tituloDeConector,children:h(j.id)}),o.jsx("span",{className:fe.alFinal,children:o.jsx(S9,{fila:j,nombre:h(j.id),conectado:n,alAutorizar:a,alProbar:i})})]})},j.id)})})]}),t.conectores.length===0?o.jsxs("div",{className:fe.encabezado,children:[o.jsx("p",{className:fe.aviso,children:"No hay ningún conector añadido. Se añaden en Ajustes."}),o.jsx("button",{type:"button",className:fe.accion,onClick:u,children:"Abrir Ajustes"})]}):o.jsx("div",{children:o.jsx("button",{type:"button",className:fe.accion,onClick:u,children:"Añadir otro conector en Ajustes"})})]})}function S9({fila:e,nombre:t,conectado:n,alAutorizar:r,alProbar:a}){if(s1(e))return null;const i=e.estado==="falta-autorizar"||e.prueba!==void 0&&!e.prueba.ok&&J2(e.prueba.motivo);return e.autorizando===!0||i?o.jsx("button",{type:"button",className:fe.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:fe.nota,children:"Comprobando…"}):o.jsx("button",{type:"button",className:fe.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 iie(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 lie({id:e,nombre:t,fila:n,gestor:r,conectores:a,vinculo:i,nombreDelVinculado:l,conectado:u,alGestor:d,alAutorizar:m,alProbar:f,alAbrirAjustes:h}){const[b,y]=$.useState(!1),g=(i==null?void 0:i.conector)===e,_=i!==void 0&&!g,j=n!==void 0&&s1(n),C=i===void 0?void 0:`${i.conector}|${i.proyecto}`;$.useEffect(()=>y(!1),[C]);const S=_&&i!==void 0?`Vincular ${t} sustituirá a ${l??i.conector}${$m(i)===void 0?"":` (${$m(i)})`} como gestor de este proyecto.`:void 0,A=e==="jira"?o.jsx(uie,{gestor:r,conectado:u,alGestor:d,...S===void 0?{}:{sustituye:S}}):e==="notion"?o.jsx(pie,{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:fe.conector,children:[o.jsxs("div",{className:fe.filaDeConector,children:[o.jsx(a1,{id:e,nombre:t}),o.jsx("span",{className:fe.tituloDeConector,children:t}),o.jsx("span",{className:fe.alFinal,children:n===void 0?null:o.jsx(S9,{fila:n,nombre:t,conectado:u,alAutorizar:m,alProbar:f})})]}),g&&i!==void 0?o.jsx(cie,{vinculo:i,nombre:t,conectado:u,alGestor:d}):j?_&&!b?o.jsx("div",{className:fe.vinculo,children:o.jsx("button",{type:"button",className:fe.accion,onClick:()=>y(!0),disabled:!u,children:`Vincular ${t} en su lugar…`})}):A:null]})}function cie({vinculo:e,nombre:t,conectado:n,alGestor:r}){const a=$m(e),i=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:fe.vinculo,children:[o.jsx("span",{children:i}),o.jsx("button",{type:"button",className:fe.peligro,onClick:()=>r({accion:"desvincular"}),disabled:!n,children:"Desvincular"})]})}function $9({texto:e}){return e===void 0?null:o.jsx("p",{className:fe.aviso,children:e})}function uie({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,[i,l]=$.useState(""),[u,d]=$.useState(""),m=i!==""?i:(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:fe.vinculo,children:[o.jsxs("label",{className:fe.casilla,children:["Sitio",o.jsxs("select",{className:fe.campo,value:m,onChange:y=>l(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:fe.casilla,children:["Proyecto de Jira",o.jsxs("select",{className:fe.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($9,{...r===void 0?{}:{texto:r}}),o.jsx("button",{type:"button",className:fe.principal,disabled:!t||m===""||u==="",onClick:()=>n({accion:"vincular",conector:"jira",sitio:m,proyecto:u}),children:"Vincular"})]})}function die(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 pie({gestor:e,conectores:t,nombre:n,conectado:r,alGestor:a,alAutorizar:i,alAbrirAjustes:l,sustituye:u}){var z,P;const[d,m]=$.useState(""),[f,h]=$.useState(void 0),[b,y]=$.useState(void 0),g=f!==void 0&&((z=e==null?void 0:e.busqueda)==null?void 0:z.conector)==="notion"&&e.busqueda.texto===f?e.busqueda:void 0,_=b!==void 0&&((P=e==null?void 0:e.descripcion)==null?void 0:P.conector)==="notion"&&e.descripcion.pedido===b?e.descripcion:void 0,j=(e==null?void 0:e.errores)??{},C=f!==void 0&&j.buscarProyectos!==void 0&&j.buscarProyectos.texto===f?j.buscarProyectos:void 0,S=b!==void 0&&j.describir!==void 0&&j.describir.pedido===b?j.describir:void 0,A=H=>o.jsx(e4,{error:H,conector:"notion",...t===void 0?{}:{conectores:t},conectado:r,alAutorizar:i,alAbrirAjustes:l,sinDuplicarLaFila:!0}),M=()=>{const H=d.trim();H!==""&&(h(H),y(void 0),a({accion:"buscarProyectos",conector:"notion",texto:H}))},L=H=>{y(H),a({accion:"describir",conector:"notion",proyecto:H})};return o.jsxs("div",{className:fe.vinculoNotion,children:[o.jsxs("form",{className:fe.busqueda,role:"search",onSubmit:H=>{H.preventDefault(),M()},children:[o.jsx("input",{type:"search",className:fe.campo,"aria-label":`Buscar una base de ${n}`,placeholder:`Nombre de la base de ${n}`,value:d,onChange:H=>m(H.target.value)}),o.jsx("button",{type:"submit",className:fe.accion,disabled:!r||d.trim()==="",children:"Buscar"})]}),f===void 0?null:g===void 0?C===void 0?o.jsx("p",{className:fe.aviso,children:"Buscando…"}):A(C):g.lista.length===0?o.jsx("p",{className:fe.aviso,children:`Ninguna base de ${n} coincide con «${g.texto}».`}):o.jsx("ul",{className:fe.lista,"aria-label":`Bases de ${n}`,children:g.lista.map(H=>o.jsx("li",{children:o.jsxs("button",{type:"button",className:fe.base,"aria-pressed":b===H.proyecto,onClick:()=>L(H.proyecto),disabled:!r,children:[o.jsx("span",{children:H.nombre}),H.ruta===void 0?null:o.jsx("span",{className:fe.nota,children:H.ruta})]})},H.proyecto))}),b===void 0?null:_===void 0?S===void 0?o.jsx("p",{className:fe.aviso,children:"Leyendo el esquema de la base…"}):A(S):"motivo"in _?o.jsx("p",{className:fe.error,children:`Esta base no sirve como gestor de tareas: ${_.motivo}`}):o.jsxs("div",{className:fe.esquema,children:[o.jsx("p",{className:fe.lineaDelEsquema,children:die(_.esquema)}),_.esquema.asignado===void 0?o.jsx("p",{className:fe.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:fe.aviso,children:`La base tiene ${_.esquema.fuentes} orígenes de datos; se usa el primero.`}),o.jsx($9,{...u===void 0?{}:{texto:u}}),o.jsx("div",{children:o.jsx("button",{type:"button",className:fe.principal,disabled:!r,onClick:()=>a({accion:"vincular",conector:"notion",sitio:oie,proyecto:_.esquema.proyecto}),children:"Vincular"})})]})]})}const mie="_panel_1pfcm_9",hie="_aviso_1pfcm_18",fie="_veredicto_1pfcm_27",gie="_cabecera_1pfcm_35",vie="_app_1pfcm_43",bie="_proyecto_1pfcm_49",yie="_sello_1pfcm_56",xie="_listo_1pfcm_63",_ie="_faltas_1pfcm_71",wie="_falta_1pfcm_71",jie="_acciones_1pfcm_85",Cie="_ejecutar_1pfcm_94",kie="_recorrido_1pfcm_113",Nie="_cabeceraDelRecorrido_1pfcm_122",Sie="_fase_1pfcm_131",$ie="_tiempo_1pfcm_137",Aie="_cancelar_1pfcm_149 _secundario_1l1rx_39",Eie="_desenlace_1pfcm_157",Die="_lectura_1pfcm_176",zie="_lineas_1pfcm_188",Tie="_dispositivos_1pfcm_201",Mie="_rotulo_1pfcm_209",Lie="_lista_1pfcm_215",Iie="_fila_1pfcm_224",Pie="_dispositivo_1pfcm_201",Rie="_marca_1pfcm_263",It={panel:mie,aviso:hie,veredicto:fie,cabecera:gie,app:vie,proyecto:bie,sello:yie,listo:xie,faltas:_ie,falta:wie,acciones:jie,ejecutar:Cie,recorrido:kie,cabeceraDelRecorrido:Nie,fase:Sie,tiempo:$ie,cancelar:Aie,desenlace:Eie,lectura:Die,lineas:zie,dispositivos:Tie,rotulo:Mie,lista:Lie,fila:Iie,dispositivo:Pie,marca:Rie};function qie({veredicto:e,lanzamiento:t,dispositivos:n,alActualizarDispositivos:r,elegido:a,conectado:i,alRevisar:l,alLanzar:u,alCancelar:d,alElegirDispositivo:m}){var j;$.useEffect(()=>{i===!1||l===void 0||l()},[i,l,a==null?void 0:a.id]),Y2(i!==!1,r);const f=(t==null?void 0:t.estado)==="corriendo",h=i===!0&&(e==null?void 0:e.listo)===!0&&u!==void 0&&!f,b=(n??[]).filter(Hi),y=n===void 0,g=((j=e==null?void 0:e.dispositivo)==null?void 0:j.nombre)??(a==null?void 0:a.nombre),_=e===void 0?void 0:du(e.medido);return o.jsxs("div",{className:It.panel,children:[i===!1?o.jsx("p",{className:It.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:It.veredicto,children:[o.jsxs("p",{className:It.cabecera,children:[o.jsx("span",{className:It.app,children:e.app??e.proyecto}),e.app===void 0||e.app===e.proyecto?null:o.jsxs("span",{className:It.proyecto,children:["en ",e.proyecto]}),_===void 0?null:o.jsxs("span",{className:It.sello,children:["medido el ",_]})]}),e.listo?o.jsx("p",{className:It.listo,children:"Está todo lo que hace falta: se puede lanzar."}):o.jsx("ul",{className:It.faltas,children:e.faltas.map((C,S)=>o.jsx("li",{className:It.falta,children:C},`${S}:${C}`))})]}):l===void 0?o.jsx("p",{className:It.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:It.aviso,children:"Midiendo si se puede lanzar la app de este proyecto…"}),h?o.jsx("div",{className:It.acciones,children:o.jsx("button",{type:"button",className:It.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(Fie,{lanzamiento:t,...g===void 0?{}:{destino:g},...d===void 0?{}:{alCancelar:d}}),o.jsxs("section",{className:It.dispositivos,"aria-label":"Dispositivos a mano",children:[o.jsx("span",{className:It.rotulo,children:"Dispositivos a mano"}),y?o.jsx("p",{className:It.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:It.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:It.lista,children:b.map(C=>{var L;const S=C.id===((a==null?void 0:a.id)??((L=e==null?void 0:e.dispositivo)==null?void 0:L.id)),A=m!==void 0&&i!==!1,M=`${C.nombre} · ${C.plataforma==="ios"?"iOS":"Android"} · ${Xl(C)}`;return o.jsxs("li",{className:It.fila,children:[A?o.jsx("button",{type:"button",className:It.dispositivo,"aria-current":S?"true":void 0,onClick:()=>m(C.id),children:M}):o.jsx("span",{className:It.dispositivo,children:M}),S?o.jsx("span",{className:It.marca,children:"el de esta sesión"}):null]},C.id)})})]})]})}function Fie({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,i=((u=e.dispositivo)==null?void 0:u.nombre)??t,l=e.estado!=="ok"&&e.lineas.length>0;return o.jsxs("section",{className:It.recorrido,"data-estado":e.estado,children:[o.jsxs("p",{className:It.cabeceraDelRecorrido,children:[o.jsx("span",{className:It.fase,children:Bie[e.fase]}),o.jsx("span",{className:It.tiempo,children:wm(e.ms)}),r&&n!==void 0?o.jsx("button",{type:"button",className:It.cancelar,onClick:n,children:"Cancelar"}):null]}),o.jsx("p",{className:It.desenlace,children:Oie(e,i)}),a===void 0?null:o.jsx("p",{className:It.lectura,children:a}),l?o.jsx("pre",{className:It.lineas,children:e.lineas.join(`
|
|
506
|
-
`)}):null]})}function Oie(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 Bie={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ó"},A9="xonecode.apariencia";function Uie(e){return e==="sistema"||e==="claro"||e==="oscuro"}function Hie(){try{const e=window.localStorage.getItem(A9);return Uie(e)?e:"sistema"}catch{return"sistema"}}function Vie(e){try{window.localStorage.setItem(A9,e)}catch{}}const E9={claro:"xonecode-claro",oscuro:"azul-noche"},D9={claro:"xonecode.tema.claro",oscuro:"xonecode.tema.oscuro"};function Gie(){const e=t=>{try{return g9(window.localStorage.getItem(D9[t])??void 0,t).id}catch{return E9[t]}};return{claro:e("claro"),oscuro:e("oscuro")}}function Wie(e,t){try{window.localStorage.setItem(D9[e],t)}catch{}}function Zie(e,t=E9,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",i=g9(t[a],a);for(const l of Z6)n.style.removeProperty(`--tema-${l}`);if(i.semillas===void 0){n.removeAttribute("data-tema");return}for(const l of Z6)n.style.setProperty(`--tema-${l}`,i.semillas[l]);n.setAttribute("data-tema",i.id)}const z9="xonecode.barraContraida",T9="xonecode.anchoBarra";function Qie(){try{return window.localStorage.getItem(z9)==="1"}catch{return!1}}function Xie(e){try{window.localStorage.setItem(z9,e?"1":"0")}catch{}}function Yie(){try{const e=window.localStorage.getItem(T9);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function Kie(e){try{window.localStorage.setItem(T9,String(Math.round(e)))}catch{}}const M9="xonecode.anchoPanel";function Jie(){try{const e=window.localStorage.getItem(M9);if(e===null)return;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0}catch{return}}function ele(e){try{window.localStorage.setItem(M9,String(Math.round(e)))}catch{}}function tle(){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 nle=3e3;function Sb(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 rle="No encoles las tareas: hazlo aquí, en esta conversación, siguiendo el plan y las decisiones que ya cerramos.";async function Ul(e){const t=await nu(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 nu(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 ale({store:e,enviar:t,subirAdjunto:n,subirAdjuntoDeSesion:r,instalarSkill:a,mirar:i}){var fl,hd,zu,bc,yc,Tu,Mu,Lu,fd,gd,vd,bd,yd,ua,bi,Iu,Pu,Ru,qu,xc,xd,_d,Ls,_c,yi,wc,Fu,gl,Is,jc,Ou,vl,Bu,Uu,Hu,Vu,Gu,Wu,Ao,Cc,kc,wd,jd,xi,Cd,Zu,Qu,Xt,Nc,bl,_i,Xu,Sc,wi,yl,Ps,Yu,kd,Nd,Ku,xl,_l,$c,Ac,Ec,Dc,Sd,Ju,$d,Ad,zc,Eo,e0,Rs,Ea,ji,Ka,Tc,Ed,Dd,rs,Ci,qs,wl,Mc,Fs,Do,Yt,Gt,zo,Yn,_r,as,Os,wr,jl,t0,n0,Cl,r0,Ja,kl,Lc,a0,zd,To,Bs,Us,Nl;const l=$.useSyncExternalStore(e.suscribir,e.leer),u=mre({enviar:t,plataforma:(hd=(fl=l.alta)==null?void 0:fl.dispositivoActivo)==null?void 0:hd.plataforma}),d=bre({enviar:t,proyecto:(zu=l.alta)==null?void 0:zu.proyectoActivo,contenidos:l.contenidos,bases:l.bases,ultimoGuardado:l.ultimoGuardado,conectado:l.conectado,recargarAlGuardar:u.alGuardar}),m=$.useRef(d);m.current=d;const[f,h]=$.useState(void 0),b=$.useCallback(D=>{var Q;if(m.current.haySinGuardar()){h({accion:D,ruta:((Q=m.current.actual)==null?void 0:Q.ruta)??""});return}D()},[]),y=$.useMemo(()=>l.revision===void 0?void 0:new Set(l.revision.lista.filter(D=>D.clase!=="borrado").map(D=>D.ruta)),[l.revision]),g=$.useMemo(()=>({...d,cerrar:()=>b(d.cerrar)}),[d,b]),[_,j]=$.useState(void 0),C=$.useRef("ficheros"),S=$.useRef(_);S.current=_;const A=$.useCallback(D=>{if(S.current==="ficheros"&&m.current.actual!==void 0){b(()=>{m.current.cerrar(),D()});return}D()},[b]),M=$.useCallback(D=>{const Q=()=>{C.current=D,j(D)};D==="ficheros"?Q():A(Q)},[A]),[L,z]=$.useState(void 0),[P,H]=$.useState(void 0),[R,F]=$.useState(void 0),[U,Z]=$.useState(void 0),[re,le]=$.useState(!1),[ee,ke]=$.useState(void 0),_e=D=>{ke(D),le(!0)},[ie,Ne]=$.useState(()=>Qie()),[B,O]=$.useState(()=>Yie()),[ne,E]=$.useState(()=>Jie()),ue=tle(),ae=$.useCallback(()=>{t({clase:"revision"})},[t]),be=$.useCallback(D=>{t({clase:"revision",ruta:D}),D.toLowerCase().endsWith(".xne")&&t({clase:"modeloDelCambio",ruta:D})},[t]),$e=$.useCallback(D=>{z(Q=>new Set([...Q??[],D])),be(D)},[be]),pe=$.useRef(!1),Le=$.useCallback(()=>{pe.current||(pe.current=!0,queueMicrotask(()=>{pe.current=!1}),t({clase:"pendientesDeSubida"}),t({clase:"sync",accion:"estado"}))},[t]),[Ae,ut]=$.useState(void 0),yt=$.useCallback(D=>{ut(Q=>new Set([...Q??[],D])),t({clase:"pendientesDeSubida",ruta:D})},[t]),Ct=$.useCallback(D=>{ut(Q=>{const he=new Set(Q??[]);return he.delete(D),he})},[]),Qt=$.useCallback(D=>{z(Q=>{const he=new Set(Q??[]);return he.delete(D),he})},[]),[An,cn]=$.useState(!1),[ya,In]=$.useState(!1),[gr,qt]=$.useState(void 0),[$r,xa]=$.useState(void 0),or=$.useRef(void 0),Qn=$.useCallback((D,Q,he)=>{var Kt;const Pe=()=>{cn(!1),In(!1),js(void 0),qt(void 0),or.current=l.alta,xa({proyecto:D,...Q===void 0?{}:{sesion:Q}}),he!==void 0&&M(he),t(Q===void 0?{clase:"sesion",proyecto:D}:{clase:"sesion",proyecto:D,sesion:Q})};D!==((Kt=l.alta)==null?void 0:Kt.proyectoActivo)?b(Pe):Pe()},[t,l.alta,M,b]);$.useEffect(()=>{$r!==void 0&&(l.alta!==or.current||l.conectado===!1)&&xa(void 0)},[$r,l.alta,l.conectado]);const ra=l.abriendo??$r,me=$.useCallback(D=>void t({clase:"tarea",accion:"reintentar",id:D}),[t]),Se=$.useCallback(()=>void t({clase:"dispositivos"}),[t]),qe=$.useCallback(D=>void t({clase:"tarea",accion:"descartar",id:D}),[t]),ot=$.useCallback(D=>void t({clase:"tarea",accion:"terminar",id:D}),[t]),gt=$.useCallback((D,Q)=>void t({clase:"tarea",accion:"feedback",id:D,texto:Q}),[t]),[Ht,Br]=$.useState(void 0),sr=$.useCallback(D=>{Br(D),i==null||i(D,!0)},[i]),Ur=$.useCallback(D=>{Br(void 0),e.dejarDeMirar(),i==null||i(D,!1)},[i,e]);$.useEffect(()=>{var D;Ht===void 0||!l.conectado||((D=l.mirada)==null?void 0:D.tarea)!==Ht&&(i==null||i(Ht,!0))},[Ht,l.conectado,(bc=l.mirada)==null?void 0:bc.tarea,i]);const vr=$.useMemo(()=>{const D=new Map;for(const Q of l.actos)Q.tipo==="artefacto"&&(D.delete(Q.ruta),D.set(Q.ruta,{ruta:Q.ruta,nombre:Q.nombre,bytes:Q.bytes,...Q.mime===void 0?{}:{mime:Q.mime}}));return[...D.values()]},[l.actos]),an=$.useMemo(()=>{const D=[];for(const Q of l.actos)Q.tipo==="sincronizacion"&&D.push(Q);return D.reverse()},[l.actos]);$.useEffect(()=>{vr.length===0&&j(D=>D==="artefactos"?void 0:D)},[vr.length]);const Pn=$.useMemo(()=>{var Q;const D=new Map;for(const he of((Q=l.tareas)==null?void 0:Q.lista)??[])he.estado==="en-proceso"&&D.set(he.proyecto,(D.get(he.proyecto)??0)+1);return D},[l.tareas]),En=$.useMemo(()=>{var D,Q;return((D=l.alta)==null?void 0:D.sesionActiva)===void 0||(Q=l.tareas)==null?void 0:Q.lista.find(he=>{var Pe;return he.sesion!==void 0&&he.sesion===((Pe=l.alta)==null?void 0:Pe.sesionActiva)})},[l.tareas,(yc=l.alta)==null?void 0:yc.sesionActiva]),Rn=(En==null?void 0:En.estado)==="requiere-atencion"?En:void 0,[Hr,Ft]=$.useState(void 0),fo=$.useMemo(()=>l.tareas===void 0?void 0:l.tareas.lista.filter(D=>{var Q;return D.proyecto===((Q=l.alta)==null?void 0:Q.proyectoActivo)}),[l.tareas,(Tu=l.alta)==null?void 0:Tu.proyectoActivo]),Dn=(Mu=l.alta)==null?void 0:Mu.proyectoActivo,tl=$.useCallback(D=>{t({clase:"artefacto",nombre:D})},[t]),ui=$.useCallback(D=>{F(D),M("artefactos")},[M]),_a=$.useCallback(()=>{t({clase:"arbol"})},[t]),Ar=$.useCallback(()=>{t({clase:"planes"})},[t]),Zo=$.useCallback(()=>{t({clase:"colecciones"})},[t]),Qo=$.useCallback(()=>{t({clase:"sync",accion:"estado"})},[t]),wa=$.useCallback(D=>{D==="subir"&&Yo(!0),t({clase:"sync",accion:D})},[t]),[Xo,Yo]=$.useState(!1),aa=(Lu=an.find(D=>D.accion==="subir"))==null?void 0:Lu.cuando,Ua=$.useRef(aa);$.useEffect(()=>{var Q,he;const D=Ua.current!==aa;Ua.current=aa,(D||((Q=l.pregunta)==null?void 0:Q.decision)!==void 0||((he=l.sync)==null?void 0:he.error)!==void 0||l.conectado===!1)&&Yo(!1)},[aa,l.pregunta,(fd=l.sync)==null?void 0:fd.error,l.conectado]);const ja=$.useRef(aa);$.useEffect(()=>{ja.current!==aa&&(ja.current=aa,l.conectado===!0&&(ae(),Qo(),Es&&t({clase:"pendientesDeSubida"})))},[aa,l.conectado,ae,Qo]);const[Jt,oa]=$.useState(void 0);$.useEffect(()=>{Jt!==void 0&&l.conectado===!1&&Jt.cableCaido!==!0&&oa({...Jt,cableCaido:!0})},[l.conectado,Jt]);const _s=D=>an.find(Q=>Q.accion===D),Ha=Jt===void 0||((gd=_s(Jt.operacion))==null?void 0:gd.cuando)===Jt.desde?void 0:_s(Jt.operacion),dc=Jt===void 0?void 0:Ha!==void 0?{fase:"terminada",operacion:Jt.operacion,lineas:Ha.lineas,...Ha.resultado===void 0?{}:{resultado:Ha.resultado},...Ha.bajados===void 0?{}:{bajados:Ha.bajados},...Ha.error===void 0?{}:{error:Ha.error}}:Jt.cableCaido===!0?{fase:"terminada",operacion:Jt.operacion,lineas:[],motivo:Jt.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:Jt.operacion},ir=((vd=l.pregunta)==null?void 0:vd.decision)!==void 0?l.pregunta:Jt==null?void 0:Jt.pregunta,go=((bd=l.pregunta)==null?void 0:bd.decision)===void 0?l.pregunta:void 0,ws=(ir==null?void 0:ir.decision)===void 0?null:o.jsx(Gl,{texto:ir.texto,decision:ir.decision,...dc===void 0?{}:{progreso:dc},alCerrar:()=>oa(void 0),alResponder:async(D,Q)=>{var Cn,Da,ki;const he=l.pregunta,Pe=((Cn=he==null?void 0:he.decision)==null?void 0:Cn.operacion)??(((Da=he==null?void 0:he.decision)==null?void 0:Da.seleccionable)===!0?"subir":void 0),Kt=he!==void 0&&Pe!==void 0&&D==="s";Kt&&oa({pregunta:he,operacion:Pe,desde:(ki=_s(Pe))==null?void 0:ki.cuando});try{await t({clase:"respuesta",texto:D,...Q===void 0?{}:{seleccion:Q}})}catch(o0){throw Kt&&oa(void 0),o0}e.contestarPregunta()}}),nl={esperando:Xo,...l.turnoEnVuelo===!0&&!Xo?{motivoParaNo:"Hay un turno en marcha: se podrá subir cuando termine"}:{},alSubir:()=>wa("subir")},pc=$.useCallback(()=>{t({clase:"revisarLanzamiento"})},[t]),vo=$.useCallback(()=>{t({clase:"lanzarApp"})},[t]),qn=$.useCallback(()=>{t({clase:"cancelarLanzamiento"})},[t]),Ko=$.useCallback(D=>{t({clase:"dispositivo",id:D})},[t]),[rl,Jo]=$.useState(void 0),zt=$.useCallback(D=>{var he;const Q=()=>{const Pe=m.current.actual;Pe!==void 0&&Pe.ruta!==D&&m.current.cerrar(),H(D),Jo(void 0),D!==void 0&&t({clase:"fichero",ruta:D})};D!==void 0&&D===((he=m.current.actual)==null?void 0:he.ruta)?Q():b(Q)},[t,b]),al=$.useCallback((D,Q)=>{var Pe;const he=()=>{zt(D),Jo(Q),M("ficheros")};D===((Pe=m.current.actual)==null?void 0:Pe.ruta)?he():b(he)},[zt,M,b]),[sa,di]=$.useState(void 0),[bo,ol]=$.useState(void 0),mc=$.useCallback(D=>{var he;const Q=()=>{var Kt,Cn,Da,ki;((Kt=m.current.actual)==null?void 0:Kt.ruta)!==D&&(m.current.baseElegida!=="sesion"&&m.current.elegirBase("sesion"),di({ruta:D,copia:(Cn=l.contenidos)==null?void 0:Cn[D],proyecto:(Da=l.alta)==null?void 0:Da.proyectoActivo,sesion:(ki=l.alta)==null?void 0:ki.sesionActiva}));const Pe=l.arbol;Pe!==void 0&&Pe.error===void 0&&!Pe.recortado&&!Pe.rutas.includes(D)&&(ol(Pe),_a()),zt(D),M("ficheros")};D===((he=m.current.actual)==null?void 0:he.ruta)?Q():b(Q)},[l.contenidos,l.arbol,(yd=l.alta)==null?void 0:yd.proyectoActivo,(ua=l.alta)==null?void 0:ua.sesionActiva,_a,zt,M,b]),Ca=sa===void 0||(bi=l.contenidos)==null?void 0:bi[sa.ruta];$.useEffect(()=>{var D,Q;if(sa!==void 0){if(P!==sa.ruta||l.conectado===!1||((D=l.alta)==null?void 0:D.proyectoActivo)!==sa.proyecto||((Q=l.alta)==null?void 0:Q.sesionActiva)!==sa.sesion||_!=="ficheros"){di(void 0);return}Ca===void 0||Ca===sa.copia||(di(void 0),J0(Ca)&&d.abrir(Ca))}},[sa,Ca,P,d,l.conectado,(Iu=l.alta)==null?void 0:Iu.proyectoActivo,(Pu=l.alta)==null?void 0:Pu.sesionActiva,_]),$.useEffect(()=>{bo!==void 0&&l.arbol!==bo&&ol(void 0)},[bo,l.arbol]);const[Vr,js]=$.useState(void 0),un=(Ru=l.gestor)==null?void 0:Ru.borrador,es=$.useRef(void 0),ia=$.useRef(void 0),Cs=(xc=(qu=l.gestor)==null?void 0:qu.errores)==null?void 0:xc.empezar;$.useEffect(()=>{Cs!==void 0&&(ia.current=Cs)},[Cs]);const[Va,Ga]=$.useState(void 0),[yo,ka]=$.useState(!1),pi=$.useRef(void 0);$.useEffect(()=>{var D;yo&&ia.current!==void 0&&((D=l.alta)==null?void 0:D.sesionActiva)===pi.current&&ka(!1)},[l.alta]),$.useEffect(()=>{if(un===void 0)return;In(!1),cn(!1),ka(!1),js(Pe=>({texto:un.texto,id:((Pe==null?void 0:Pe.id)??0)+1}));const D=ia.current;ia.current=void 0;const Q=es.current;es.current=void 0;const he=(Q==null?void 0:Q.clave)===un.clave?Q.destino:void 0;Ga(D===void 0?void 0:he===void 0?`No se pudo cambiar el estado de ${O0(un.clave)??un.clave}: ${D.motivo}. La sesión se abrió igual.`:`No se pudo pasar ${O0(un.clave)??un.clave} a ${he}: ${D.motivo}. La sesión se abrió igual.`)},[un==null?void 0:un.id]);const xo=$.useCallback((D,Q)=>{var he;D.accion==="empezar"&&(ia.current=void 0,es.current=D.transicion===void 0||(Q==null?void 0:Q.destino)===void 0?void 0:{clave:D.clave,destino:Q.destino},ka(!0),pi.current=(he=l.alta)==null?void 0:he.sesionActiva),t({clase:"gestor",...D})},[t,(xd=l.alta)==null?void 0:xd.sesionActiva]),Na=(yi=(_c=(Ls=(_d=l.alta)==null?void 0:_d.proyectos.find(D=>D.id===Dn))==null?void 0:Ls.sesiones)==null?void 0:_c.find(D=>{var Q;return D.id===((Q=l.alta)==null?void 0:Q.sesionActiva)}))==null?void 0:yi.ticket,sl=(Is=(gl=(Fu=(wc=l.alta)==null?void 0:wc.proyectos.find(D=>D.id===Dn))==null?void 0:Fu.sesiones)==null?void 0:gl.find(D=>{var Q;return D.id===((Q=l.alta)==null?void 0:Q.sesionActiva)}))==null?void 0:Is.ticketConector,Er=o1(l.conectores,sl),[_o,wo]=$.useState(!1),[il,wt]=$.useState(!1),[At,jo]=$.useState(!1),[mi,ks]=$.useState(void 0),Wa=$.useRef(void 0),Ns=$.useRef({}),Gr=(jc=l.gestor)==null?void 0:jc.cierre,Za=(vl=(Ou=l.gestor)==null?void 0:Ou.errores)==null?void 0:vl.cerrar,la=(Uu=(Bu=l.gestor)==null?void 0:Bu.errores)==null?void 0:Uu.transiciones;$.useEffect(()=>{Gr!==void 0&&(wt(!1),wo(!0))},[Gr]);const Dr=(Vu=(Hu=l.gestor)==null?void 0:Hu.errores)==null?void 0:Vu.borradorDeCierre;$.useEffect(()=>{Dr!==void 0&&(wt(!1),ks(`No se pudo preparar el cierre: ${Dr.motivo}`))},[Dr]),$.useEffect(()=>{Za!==void 0&&jo(!1)},[Za]);const Fn=(Gu=l.gestor)==null?void 0:Gu.cerrado;$.useEffect(()=>{if(Fn===void 0)return;wo(!1),jo(!1);const D=Wa.current;Wa.current=void 0;const Q=Fn.falloDeTransicion,he=O0(Fn.clave)??Fn.clave;ks(Q!==void 0?`${he}: comentado; no se pudo ${D===void 0?"aplicar la transición":`pasar a ${D}`}: ${Q}`:`${he}: comentado${D===void 0?"":` y pasado a ${D}`}`)},[Fn==null?void 0:Fn.id]);const Qa=(Wu=l.alta)==null?void 0:Wu.sesionActiva;$.useEffect(()=>{wt(!1),wo(!1),ks(void 0),Ga(void 0),Wa.current=void 0},[Qa]),$.useEffect(()=>{l.conectado||(ka(!1),wt(!1),jo(!1),wo(!1))},[l.conectado]);const Sa=(Ao=l.gestor)==null?void 0:Ao.transiciones,br=Sa!==void 0&&Gr!==void 0&&Sa.clave===Gr.clave&&Sa.para==="cerrar"?Sa:void 0,ts=Za!==Ns.current.cerrar?Za:void 0,Ss=la!==Ns.current.transiciones?la:void 0,$s=()=>{Na!==void 0&&(wt(!0),Ns.current={cerrar:Za,transiciones:la},xo({accion:"borradorDeCierre"}),xo({accion:"transiciones",clave:Na,para:"cerrar"}))},hc=(D,Q)=>{var he;Wa.current=Q===void 0||(he=br==null?void 0:br.lista.find(Pe=>Pe.id===Q))==null?void 0:he.destino,jo(!0),xo({accion:"cerrar",comentario:D,...Q===void 0?{}:{transicion:Q}})},Co=l.aprobacion!==void 0||go!==void 0||l.secreto!==void 0||l.selector!==void 0;$.useEffect(()=>{Co&&(In(!1),qt(void 0))},[Co]);const As=(Cc=l.revision)==null?void 0:Cc.lista;$.useEffect(()=>{As===void 0&&z(void 0)},[As]);const Es=l.pendientesDeSubida!==void 0;$.useEffect(()=>{Es||ut(void 0)},[Es]);const yr=l.turnoEnVuelo===!0,$a=Wy(yr),lr=$.useRef(yr);$.useEffect(()=>{const D=lr.current&&!yr;if(lr.current=yr,!!D){if(_==="turno"){ae();for(const Q of L??[])be(Q);Qo()}if(_==="ficheros"&&(_a(),ae(),P!==void 0&&t({clase:"fichero",ruta:P}),m.current.pedirBase()),Es){Le();for(const Q of Ae??[])t({clase:"pendientesDeSubida",ruta:Q})}_==="colecciones"&&Zo(),Ar()}},[yr,_,ae,be,_a,Zo,Ar,Qo,t]);const ko=_==="planes";$.useEffect(()=>{if(!yr||!ko||!l.conectado)return;const D=setInterval(Ar,nle);return()=>clearInterval(D)},[yr,ko,l.conectado,Ar]);const Ds=((kc=l.alta)==null?void 0:kc.proyectoAbierto)===!0,fc=l.planes!==void 0;$.useEffect(()=>{!l.conectado||!Ds||fc||Ar()},[l.conectado,Ds,fc,Ar]);const[ns,hi]=$.useState(()=>Hie()),[Xa,ll]=$.useState(()=>Gie()),[zs,Aa]=$.useState("claro");$.useEffect(()=>{const D=()=>{Zie(ns,Xa),Aa(document.body.hasAttribute("data-ds-dark-theme")?"oscuro":"claro")};if(D(),ns!=="sistema"||typeof window.matchMedia!="function")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");return Q.addEventListener("change",D),()=>Q.removeEventListener("change",D)},[ns,Xa]);const No=D=>{hi(D),Vie(D)},Ts=(D,Q)=>{ll(he=>({...he,[D]:Q})),Wie(D,Q),D!==zs&&No(D)},[X,Ue]=$.useState(void 0),xt=$.useRef(void 0),[On,Et]=$.useState(void 0);$.useEffect(()=>{var D,Q;if(On!==void 0){if(l.conectado===!1){Et(void 0);return}if(l.alta!==On.alta){if(((D=l.alta)==null?void 0:D.proyectoAbierto)===!0&&l.alta.proyectoActivo===On.proyecto){Et(void 0),Ue(void 0),qt(void 0),cn(!1);return}l.abriendo===void 0&&((Q=l.alta)==null?void 0:Q.aviso)!==void 0&&Et(void 0)}}},[On,l.alta,l.abriendo,l.conectado]);const[jn,st]=$.useState(void 0),[Vt,dt]=$.useState(!1),Xn=(wd=l.alta)==null?void 0:wd.preparando,cr=l.alta===void 0||l.alta.pasos.length>0||Xn!==void 0,ur=l.selector!==void 0||l.secreto!==void 0||l.pregunta!==void 0,xu=!((((jd=l.alta)==null?void 0:jd.pasos.length)??0)>0)&&!ur,_u=l.alta===void 0||l.selector!==void 0||l.secreto!==void 0,i1=[{id:"modelo",etiqueta:"Modelo",estado:_u?"actual":"hecho"},{id:"entorno",etiqueta:"Entorno de CloudStudio",estado:_u?"pendiente":"actual"}];if(cr)return o.jsxs(o.Fragment,{children:[ws,o.jsxs(AG,{centrada:xu,children:[o.jsx($0,{conectado:l.conectado}),Xn===void 0?null:o.jsx(VG,{texto:Xn}),xu?null:o.jsxs(BG,{nombre:l.nombre??((xi=l.alta)==null?void 0:xi.nombre),pasos:i1,alVolverAPaso:D=>{D==="modelo"&&t({clase:"alta",paso:"cuenta"})},children:[go!==void 0?o.jsx(Gl,{texto:go.texto,anidado:!0,alResponder:async D=>{await t({clase:"respuesta",texto:D}),e.contestarPregunta()}}):null,l.secreto!==void 0?o.jsx(Gl,{texto:l.secreto.pregunta,oculta:!0,anidado:!0,alResponder:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()}}):null,l.selector!==void 0?o.jsx(U6,{titulo:l.selector.titulo,opciones:l.selector.opciones,...l.selector.aviso===void 0?{}:{aviso:l.selector.aviso},anidado:!0,alElegir:async D=>{const Q=l.selector;await t({clase:"eleccion",id:D}),e.contestarSelector(Q)}}):null,!_u&&l.alta!==void 0&&l.alta.pasos.length>0?o.jsx(dG,{pasos:l.alta.pasos,proveedores:l.alta.proveedores,entornos:l.alta.entornos,...l.alta.aviso===void 0?{}:{aviso:l.alta.aviso},alGuardarCredencial:(D,Q)=>void t({clase:"secreto",valor:Q}),alRegistrarEntorno:D=>void t({clase:"alta",paso:"entorno",entorno:D})}):null]})]})]});const cl=((Cd=l.alta)==null?void 0:Cd.proyectoAbierto)??!1,ca=gr===void 0||(Qu=(Zu=l.alta)==null?void 0:Zu.proyectos)==null?void 0:Qu.find(D=>D.id===gr&&D.local!==!0),wu=cl&&!An&&!((ya||ca!==void 0)&&!Co),ju=cl&&!An&&ya&&ca===void 0&&!Co,gc=ca!==void 0&&!An&&!(cl&&Co),cd=wu&&_!==void 0,So=WM({anchoVentana:ue,anchoBarra:B??bm,anchoPanel:Bg(ne??vm),barraPlegadaPorElUsuario:ie,panelAbierto:cd}),Cu=l.actos.find(D=>D.tipo==="usuario"),l1=(((Xt=l.alta)==null?void 0:Xt.sesionActiva)===void 0||(bl=(Nc=l.alta.proyectos)==null?void 0:Nc.flatMap(D=>D.sesiones??[]).find(D=>D.id===l.alta.sesionActiva))==null?void 0:bl.titulo)||(Cu==null?void 0:Cu.texto),$o=(Sc=(Xu=(_i=l.alta)==null?void 0:_i.proyectos)==null?void 0:Xu.find(D=>{var Q;return D.id===((Q=l.alta)==null?void 0:Q.proyectoActivo)}))==null?void 0:Sc.nombre,c1=l.actos.filter(D=>D.tipo==="usuario").length,ku=U2(l.actos),Nu=l.actos.slice().reverse().find(D=>D.tipo==="fin"),Ms=(wi=l.consumo)==null?void 0:wi.ventana,Ya=((yl=l.alta)==null?void 0:yl.entornoActivo)??((Yu=(Ps=l.alta)==null?void 0:Ps.registrados[0])==null?void 0:Yu.id)??"",fi=(Nd=(kd=l.alta)==null?void 0:kd.registrados.find(D=>D.id===Ya))==null?void 0:Nd.fijados,vc=D=>{var he;const Q=(he=l.alta)==null?void 0:he.proyectos.find(Pe=>Pe.id===D);if((Q==null?void 0:Q.local)===!0){Qn(D);return}xt.current=l.alta,Et(void 0),Ue(D),cn(!1),js(void 0),In(!1),t({clase:"alta",paso:"proyecto",proyecto:D})},u1=D=>{var he,Pe;const Q=(he=l.alta)==null?void 0:he.proyectos.find(Kt=>Kt.id===D);if(cn(!1),(Q==null?void 0:Q.local)!==!0){In(!1),qt(D);return}qt(void 0),cl&&((Pe=l.alta)==null?void 0:Pe.proyectoActivo)===D||Qn(D),In(!0)},ud=D=>({proyecto:D,alDescargar:()=>vc(D.id),alAbrirCarpeta:async Q=>nu(await t({clase:"copiaLocal",accion:"abrirCarpeta",proyecto:Q})),alBorrarCopia:async Q=>{const he=await nu(await t({clase:"copiaLocal",accion:"borrar",proyecto:Q}));return he===void 0&&qt(Q),he},alFijarModoDelProyecto:async(Q,he)=>{const Pe=await t({clase:"copiaLocal",accion:"modoDeEscritura",proyecto:Q,...he===void 0?{}:{modo:he}});if(Pe===void 0)return{motivo:"no se pudo hablar con el servidor"};if(!Pe.ok)return{motivo:await nu(Pe)??"el servidor no lo ha guardado"};try{return{guardado:Sb(await Pe.json())??{}}}catch{return{motivo:"el servidor contestó algo que no se entiende"}}},...l.modoPorDefecto===void 0?{}:{modoGlobal:l.modoPorDefecto},alPedirResumen:async Q=>{const he=await t({clase:"copiaLocal",accion:"resumen",proyecto:Q});if(!(he===void 0||!he.ok))try{const Pe=await he.json();if(!Array.isArray(Pe.tareas)||!Pe.tareas.every(Cn=>typeof Cn=="string"))return;const Kt=Sb(Pe.modoDeEscritura);return{tareas:Pe.tareas,...typeof Pe.sync=="object"&&Pe.sync!==null?{sync:Pe.sync}:{},...Kt===void 0?{}:{modoDeEscritura:Kt}}}catch{return}}}),dd=async D=>{const Q=await t({clase:"soporte",accion:"listar",proyecto:D});if(!(Q===void 0||!Q.ok))try{const he=await Q.json();return!Array.isArray(he.chats)||!Array.isArray(he.tareas)?void 0:{chats:he.chats,tareas:he.tareas}}catch{return}},Su=(Ku=l.alta)==null?void 0:Ku.proyectos.find(D=>{var Q;return D.id===((Q=l.alta)==null?void 0:Q.proyectoActivo)}),$u=()=>{if(!ie&&So.barra==="plegada"){A(()=>j(void 0));return}Ne(D=>(Xie(!D),!D))},d1=()=>{_===void 0?j(C.current):A(()=>j(void 0))},Au=(D,Q)=>{O(D),Q&&Kie(D)},ul=(D,Q)=>{E(D),Q&&ele(D)},gi=(xl=l.alta)==null?void 0:xl.registrados.find(D=>D.id===Ya),dl=(_l=l.alta)==null?void 0:_l.proyectos.find(D=>D.id===X),pd=X!==void 0&&dl!==void 0?o.jsx(tQ,{proyecto:{id:dl.id,nombre:dl.nombre},local:dl.local===!0,ramas:(($c=l.alta)==null?void 0:$c.ramasDe)===X?((Ac=l.alta)==null?void 0:Ac.ramas)??[]:[],...((Ec=l.alta)==null?void 0:Ec.aviso)===void 0||l.alta===xt.current||On!==void 0?{}:{aviso:l.alta.aviso},descargando:On!==void 0,alEmpezar:D=>{const Q=X;if(D===void 0){Ue(void 0),cn(!1),Qn(Q);return}b(()=>{Et({proyecto:Q,alta:l.alta}),t({clase:"alta",paso:"proyecto",proyecto:Q,rama:D})})},alCerrar:()=>{Ue(void 0),Et(void 0)}}):null,pl=(Dc=l.alta)==null?void 0:Dc.proyectos.find(D=>D.id===(jn==null?void 0:jn.proyecto)),Eu=D=>{e.limpiarEncargoPropuesto(),dt(!1),st({proyecto:D,borrador:crypto.randomUUID()})},Du=()=>{jn!==void 0&&Vt&&t({clase:"tarea",accion:"descartar",id:jn.borrador}),st(void 0)},vi=jn!==void 0&&pl!==void 0?o.jsx(jQ,{proyecto:{id:pl.id,nombre:pl.nombre},local:pl.local===!0,...l.encargoPropuesto===void 0?{}:{encargoPropuesto:l.encargoPropuesto},alAugmentar:D=>void t({clase:"tarea",accion:"augmentar",proyecto:jn.proyecto,peticion:D,borrador:jn.borrador}),alSubirAdjunto:async(D,Q)=>{const he=await n(jn.borrador,Q,D);return he.ok&&dt(!0),he},alEncolar:({peticion:D,encargo:Q})=>{const{proyecto:he,borrador:Pe}=jn;st(void 0),t({clase:"tarea",accion:"crear",proyecto:he,peticion:D,encargo:Q,...Vt?{borrador:Pe}:{}})},alAbrirProyecto:()=>{const{proyecto:D}=jn;Du(),vc(D)},alCerrar:Du}):null,p1=f===void 0?null:o.jsx(dre,{ruta:f.ruta,alSeguir:()=>h(void 0),alDescartar:()=>{const D=f;h(void 0),d.cerrar(),D.accion()}}),m1=U===void 0?null:o.jsx(NQ,{pendiente:U,esLaAbierta:((Sd=l.alta)==null?void 0:Sd.sesionActiva)===U.sesion,alCerrar:()=>Z(void 0),alConfirmar:D=>{const{proyecto:Q,sesion:he,accion:Pe}=U;Z(void 0),t(Pe==="borrar"?{clase:"sesionAccion",accion:"borrar",proyecto:Q,sesion:he}:{clase:"sesionAccion",accion:"renombrar",proyecto:Q,sesion:he,titulo:D??""})}}),h1=re?o.jsx(Rte,{temas:Xa,modoEnVigor:zs,alCambiarTema:Ts,...ee===void 0?{}:{seccionInicial:ee},...l.modelos===void 0?{}:{proveedores:l.modelos.proveedores},entornos:((Ju=l.alta)==null?void 0:Ju.registrados)??[],proyectos:(($d=l.alta)==null?void 0:$d.proyectos)??[],...Ya===""?{}:{entornoActivo:Ya},...l.agentes===void 0?{}:{agentes:l.agentes},...l.skills===void 0?{}:{skills:l.skills},...l.cuerposDeSkill===void 0?{}:{cuerposDeSkill:l.cuerposDeSkill},hayProyecto:cl,alGuardarAgente:(D,Q,he)=>void t({clase:"agente",accion:"guardar",ambito:Q,agente:D,...he===void 0?{}:{renombrandoDe:he}}),alRestaurarAgente:D=>void t({clase:"agente",accion:"restaurar",ambito:"global",agente:{nombre:D,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alBorrarAgente:(D,Q)=>void t({clase:"agente",accion:"borrar",ambito:Q,agente:{nombre:D,descripcion:"",motor:"modelo",soloLectura:!0,skills:[],instrucciones:""}}),alPedirCuerpoDeSkill:D=>void t({clase:"cuerpoDeSkill",nombre:D}),alGuardarSkill:(D,Q,he)=>void t({clase:"skill",accion:"guardar",ambito:Q,skill:D,...he===void 0?{}:{renombrandoDe:he}}),alBorrarSkill:(D,Q)=>void t({clase:"skill",accion:"borrar",ambito:Q,skill:D}),alInstalarSkill:(D,Q,he)=>a(D,Q,he),...l.conectores===void 0?{}:{conectores:l.conectores},...l.remoto===void 0?{}:{remoto:l.remoto},alRemoto:D=>void t(D),alAccionDeConector:(D,Q)=>void t({clase:"conector",accion:D,id:Q}),alCrearDeConector:D=>void t({clase:"conector",accion:"crear",definicion:D}),...l.secreto===void 0?{}:{secreto:l.secreto.pregunta},...l.dispositivos===void 0?{}:{dispositivos:l.dispositivos},...l.ajustesDeDispositivos===void 0?{}:{ajustesDeDispositivos:l.ajustesDeDispositivos},conectado:l.conectado,alCambiarDispositivos:D=>void t({clase:"dispositivos",ajustes:D}),alActualizarDispositivos:Se,alInstalarHerramienta:D=>void t({clase:"dispositivos",instalar:D}),alAbrirCarpetaDeHerramienta:D=>void t({clase:"dispositivos",abrirRuta:D}),alVerificarDispositivo:D=>void t({clase:"conexion",id:D}),alArrancarEmulador:D=>void t({clase:"arrancarEmulador",avd:D}),alAjustarAvd:(D,Q)=>void t({clase:"ajusteDeAvd",avd:D,...Q}),alPararEmulador:D=>void t({clase:"pararEmulador",id:D}),alCrearEmulador:(D,Q)=>void t({clase:"crearEmulador",nombre:D,...Q??{}}),alEliminarEmulador:D=>void t({clase:"eliminarEmulador",avd:D}),...l.arranqueDeEmulador===void 0?{}:{arranqueDeEmulador:l.arranqueDeEmulador},...l.tareas===void 0?{}:{tareas:{concurrencia:l.tareas.concurrencia}},alCambiarConcurrencia:D=>void t({clase:"tareas",concurrencia:D}),...l.workspace===void 0?{}:{workspace:l.workspace},alCambiarWorkspace:async D=>nu(await t({clase:"workspace",ruta:D,accion:"aplicar"})),alPlanearWorkspace:async D=>{const Q=await t({clase:"workspace",ruta:D,accion:"planear"}),he=await nu(Q);if(he!==void 0)return{proyectos:[],motivo:he};if(!(Q===void 0||!Q.ok))try{const Pe=await Q.json();return Array.isArray(Pe.proyectos)?{proyectos:Pe.proyectos.filter(Cn=>typeof Cn=="object"&&Cn!==null&&typeof Cn.entorno=="string"&&typeof Cn.proyecto=="string"),...typeof Pe.megas=="number"?{megas:Pe.megas}:{},...typeof Pe.motivo=="string"?{motivo:Pe.motivo}:{}}:void 0}catch{return}},...l.mudanzaDeWorkspace===void 0?{}:{mudanzaDeWorkspace:l.mudanzaDeWorkspace},...l.depuracionActiva===void 0?{}:{depuracionActiva:l.depuracionActiva},alCambiarDepuracion:D=>void t({clase:"depuracion",activa:D}),...l.modoPorDefecto===void 0?{}:{modoPorDefecto:l.modoPorDefecto},alCambiarModoPorDefecto:D=>void t({clase:"modoPorDefecto",modo:D}),...l.dispositivoPorDefecto===void 0?{}:{dispositivoPorDefecto:l.dispositivoPorDefecto},alCambiarDispositivoPorDefecto:D=>void t({clase:"dispositivoPorDefecto",...D===void 0?{}:{id:D}}),...l.puedeElegirCarpeta===!0?{alElegirCarpeta:()=>void t({clase:"elegirCarpeta"})}:{},...l.carpetaElegida===void 0?{}:{carpetaElegida:l.carpetaElegida},...l.modelosDeMotor===void 0?{}:{modelosDeMotor:l.modelosDeMotor},alPedirModelosDeMotor:D=>void t({clase:"modelosDeMotor",motor:D}),...l.motoresLocales===void 0?{}:{motoresLocales:l.motoresLocales},alMotorLocal:D=>void t({clase:"motorLocal",...D}),alPedirCatalogo:D=>void t({clase:"catalogo",proveedor:D}),...((Ad=l.modelos)==null?void 0:Ad.porDefecto)===void 0?{}:{modeloPorDefecto:l.modelos.porDefecto},alElegirModelo:D=>void t({clase:"modelo",id:D}),...l.instalacion===void 0?{}:{instalacion:l.instalacion},alEjecutarPaso:(D,Q)=>void t({clase:"receta",id:D,paso:Q,accion:"ejecutar"}),alCancelarPaso:D=>void t({clase:"receta",id:D,paso:0,accion:"cancelar"}),alPedirClave:D=>void t({clase:"credencial",accion:"pedir",proveedor:D}),alBorrarClave:D=>void t({clase:"credencial",accion:"borrar",proveedor:D}),alRegistrarEntorno:D=>void t({clase:"alta",paso:"entorno",entorno:{id:"",nombre:"",url:D}}),alAltaDeProveedor:(D,Q)=>void t({clase:"proveedor",accion:"alta",nombre:D,baseUrl:Q}),alBajaDeProveedor:D=>void t({clase:"proveedor",accion:"baja",slug:D}),...l.proveedor===void 0?{}:{resultadoDeProveedor:l.proveedor},alElegirProyectos:(D,Q)=>void t({clase:"entorno",accion:"visibles",entorno:D,proyectos:Q}),...l.proyectosPorEntorno===void 0?{}:{proyectosPorEntorno:l.proyectosPorEntorno},alPedirProyectosDeEntorno:D=>void t({clase:"entorno",accion:"proyectos",entorno:D}),...((zc=l.alta)==null?void 0:zc.aviso)===void 0?{}:{avisoDelAlta:l.alta.aviso},alQuitarEntorno:async(D,{borrarCopias:Q})=>{const he=await t({clase:"entorno",accion:"olvidar",entorno:D,...Q?{borrarCopias:!0}:{}});if((he==null?void 0:he.status)===409)try{const Pe=await he.json();return typeof Pe.motivo=="string"?Pe.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alRenombrarEntorno:async(D,Q)=>{const he=await t({clase:"entorno",accion:"renombrar",entorno:D,nombre:Q});if((he==null?void 0:he.status)===409)try{const Pe=await he.json();return typeof Pe.motivo=="string"?Pe.motivo:"el servidor se negó"}catch{return"el servidor se negó"}},alResponderSecreto:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()},alCerrar:()=>{l.secreto!==void 0&&(t({clase:"secreto",valor:""}),e.contestarSecreto()),le(!1)}}):null,md=o.jsx(lae,{tareas:fo,alReintentar:me,alDescartar:qe,alTerminar:ot,alEnviarFeedback:gt,alContinuar:async D=>Ul(await t({clase:"tarea",accion:"continuar",id:D})),alArrancarAhora:async D=>Ul(await t({clase:"tarea",accion:"arrancarAhora",id:D})),consolaAbierta:Dn!==void 0,...((Eo=l.alta)==null?void 0:Eo.sesionActiva)===void 0?{}:{sesionAbierta:l.alta.sesionActiva},trabajandoEnElChat:l.turnoEnVuelo===!0,conectado:l.conectado,...l.tareas===void 0?{}:{corriendoAqui:l.tareas.corriendoAqui},...((e0=l.tareas)==null?void 0:e0.ejecutaOtroProceso)===void 0?{}:{ejecutaOtroProceso:l.tareas.ejecutaOtroProceso},...Dn===void 0?{}:{alNuevaTarea:()=>Eu(Dn)},...i===void 0?{}:{alMirar:sr,alDejarDeMirar:Ur},...Ht===void 0?{}:{mirando:Ht},...l.mirada===void 0?{}:{mirada:l.mirada}}),ml=!cd||_===void 0?void 0:o.jsx(DR,{pestana:_,alElegirPestana:M,alCerrar:()=>A(()=>j(void 0)),hayArtefactos:vr.length>0,hayPlanes:(((Ea=(Rs=l.planes)==null?void 0:Rs.lista)==null?void 0:Ea.length)??0)>0,actos:l.actos,...((ji=l.consumo)==null?void 0:ji.ventana.tope)===void 0?{}:{topeDeContexto:l.consumo.ventana.tope},revision:o.jsx(cb,{historica:((Ka=l.alta)==null?void 0:Ka.historica)===!0,...l.revision===void 0?{}:{via:l.revision.via},...((Tc=l.revision)==null?void 0:Tc.mezclados)===void 0?{}:{mezclados:l.revision.mezclados},ficheros:((Ed=l.revision)==null?void 0:Ed.lista)??[],parches:l.parches??{},modelosDelCambio:l.modelosDelCambio??{},desplegados:L??new Set,alDesplegar:$e,alPlegar:Qt,alRecargar:ae,conectado:l.conectado,alEditar:mc,...((Dd=l.arbol)==null?void 0:Dd.rutas)===void 0?{}:{rutasDelProyecto:l.arbol.rutas}}),planes:o.jsx(WT,{...((rs=l.planes)==null?void 0:rs.lista)===void 0?{}:{planes:l.planes.lista},...((Ci=l.planes)==null?void 0:Ci.error)===void 0?{}:{error:l.planes.error}}),colecciones:o.jsx(jM,{...((qs=l.colecciones)==null?void 0:qs.foto)===void 0?{}:{foto:l.colecciones.foto},...((wl=l.colecciones)==null?void 0:wl.error)===void 0?{}:{error:l.colecciones.error},conectado:l.conectado,alPedir:Zo,alAbrirFichero:al}),ficheros:o.jsx(ure,{...l.arbol===void 0||l.arbol===bo?{}:{arbol:l.arbol},contenidos:l.contenidos??{},...P===void 0?{}:{elegido:P},...rl===void 0?{}:{linea:rl},alElegir:zt,alRecargar:_a,conectado:l.conectado,edicion:g,...y===void 0?{}:{cambiados:y},alPedirCambios:ae,aparato:u,...l.ultimaRecarga===void 0?{}:{ultimaRecarga:l.ultimaRecarga}}),artefactos:o.jsx(rO,{lista:vr,contenidos:l.artefactos??{},...R===void 0?{}:{elegido:R},alElegir:F,alPedir:tl,conectado:l.conectado}),ejecutar:o.jsx(qie,{veredicto:l.lanzable,lanzamiento:l.lanzamiento,dispositivos:(Mc=l.dispositivos)==null?void 0:Mc.dispositivos,alActualizarDispositivos:Se,elegido:(Fs=l.alta)==null?void 0:Fs.dispositivoActivo,conectado:l.conectado,alRevisar:pc,alLanzar:vo,alCancelar:qn,alElegirDispositivo:Ko})}),hl=ju||gc?o.jsx(cf,{titulo:(gc?ca==null?void 0:ca.nombre:$o)??"Proyecto",...((Do=l.alta)==null?void 0:Do.modo)===void 0?{}:{modo:l.alta.modo},conectado:l.conectado,barraContraida:So.barra==="plegada",alAlternarBarra:$u,alAbrirAjustes:()=>_e(),apariencia:ns,alCambiarApariencia:No,alIrAlEscritorio:()=>{cn(!0),qt(void 0)}}):wu?o.jsx(cf,{titulo:l1??$o??"Sesión nueva",...$o===void 0?{}:{proyecto:$o},...((Yt=l.alta)==null?void 0:Yt.modo)===void 0?{}:{modo:l.alta.modo},conectado:l.conectado,barraContraida:So.barra==="plegada",alAlternarBarra:$u,panelAbierto:_!==void 0,alAlternarPanel:d1,alAbrirAjustes:()=>_e(),apariencia:ns,alCambiarApariencia:No,alIrAlEscritorio:()=>cn(!0)}):o.jsx(cf,{titulo:"Escritorio",conectado:l.conectado,barraContraida:So.barra==="plegada",alAlternarBarra:$u,alAbrirAjustes:()=>_e(),apariencia:ns,alCambiarApariencia:No}),zr=l.pendientesDeSubida,f1=o.jsx(cb,{modo:"pendientes",...(zr==null?void 0:zr.lista)===void 0?{}:{via:"git"},...(zr==null?void 0:zr.error)===void 0?{}:{error:zr.error},ficheros:(zr==null?void 0:zr.lista)??[],parches:l.parchesDeSubida??{},desplegados:Ae??new Set,alDesplegar:yt,alPlegar:Ct,alRecargar:Le,conectado:l.conectado,...an.length===0?{}:{registro:o.jsx(Fre,{operaciones:an})},cloudstudio:o.jsx(Ore,{...l.sync===void 0?{}:{sync:l.sync},alPedir:wa,subida:nl,alRecargar:Le,conectado:l.conectado})});return o.jsxs(o.Fragment,{children:[o.jsx(eL,{barraContraida:So.barra==="plegada",...B===void 0?{}:{anchoBarra:B},alRedimensionarBarra:Au,...So.panel==="columna"&&ml!==void 0?{panel:ml}:{},...ne===void 0?{}:{anchoPanel:ne},alRedimensionarPanel:ul,cabecera:hl,centro:gc?o.jsxs(o.Fragment,{children:[o.jsx($0,{conectado:l.conectado}),o.jsx(_b,{nombre:ca.nombre,...gi===void 0?{}:{entorno:gi.nombre},copia:ud(ca),conectado:l.conectado,empezarEnVuelo:!1,alGestor:xo,alAutorizarConector:D=>void t({clase:"conector",accion:"autorizar",id:D}),alProbarConector:D=>void t({clase:"conector",accion:"probar",id:D}),alAbrirAjustesDeConectores:()=>_e("conectores"),alPedirSoporte:dd},ca.id)]}):wu?o.jsxs(o.Fragment,{children:[o.jsx($0,{conectado:l.conectado}),Va===void 0?null:o.jsx(fb,{texto:Va,alCerrar:()=>Ga(void 0)}),mi===void 0?null:o.jsx(fb,{texto:mi,alCerrar:()=>ks(void 0)}),Na===void 0||yr?null:o.jsx(Aae,{ticket:Na,...Er===void 0?{}:{nombreDelGestor:Er},ocupado:il,conectado:l.conectado,alPedir:$s}),!_o||Gr===void 0||Gr.clave!==Na?null:o.jsx($ae,{clave:Gr.clave,...Er===void 0?{}:{nombreDelGestor:Er},comentario:Gr.comentario,...br===void 0?{}:{transiciones:br},...Ss===void 0?{}:{errorTransiciones:Ss.motivo},enviando:At,...ts===void 0?{}:{error:ts.motivo},alConfirmar:hc,alCancelar:()=>wo(!1)},Gr.id),So.panel==="centro"&&ml!==void 0?ml:o.jsx($U,{actos:l.actos,turnoEnVuelo:l.turnoEnVuelo===!0,historica:((Gt=l.alta)==null?void 0:Gt.historica)===!0,sinAprobacion:((zo=l.alta)==null?void 0:zo.modoDeEscritura)==="autonomo",...((Yn=l.alta)==null?void 0:Yn.trabajoAlAbrir)===void 0?{}:{trabajoAlAbrir:l.alta.trabajoAlAbrir},...$a===void 0?{}:{segundosEnVuelo:$a},...$o===void 0?{}:{proyecto:$o},...((_r=l.modelos)==null?void 0:_r.actual)===void 0?{}:{modelo:l.modelos.actual},...((as=l.alta)==null?void 0:as.sesionActiva)===void 0?{}:{sesion:l.alta.sesionActiva},alAbrirArtefacto:ui,alAbrirFichero:al,alPedirCorreccion:D=>js(Q=>({texto:D,id:((Q==null?void 0:Q.id)??0)+1})),alResponderConsulta:async D=>Rn!==void 0&&!yr?await new Promise(Q=>Ft({texto:D,adjuntos:[],desdeConsulta:Q})):(await t({clase:"prosa",texto:D}),!0),...Dn===void 0?{}:{alEncolarPropuesta:async(D,Q)=>Ul(await t({clase:"tarea",accion:"crearEncadenadas",proyecto:Dn,propuesta:D,encargos:Q})),alDescartarPropuesta:async D=>Ul(await t({clase:"tarea",accion:"descartarPropuesta",proyecto:Dn,propuesta:D})),alHacerPropuestaEnChat:async D=>{const Q=await Ul(await t({clase:"tarea",accion:"descartarPropuesta",proyecto:Dn,propuesta:D,enChat:!0}));if(Q!==void 0)return Q;await t({clase:"prosa",texto:rle})}}}),go!==void 0?o.jsx(Gl,{texto:go.texto,alResponder:async D=>{await t({clase:"respuesta",texto:D}),e.contestarPregunta()}}):null,l.secreto!==void 0&&!re?o.jsx(Gl,{texto:l.secreto.pregunta,oculta:!0,alResponder:async D=>{await t({clase:"secreto",valor:D}),e.contestarSecreto()}}):null,l.selector!==void 0?o.jsx(U6,{titulo:l.selector.titulo,opciones:l.selector.opciones,...l.selector.aviso===void 0?{}:{aviso:l.selector.aviso},alElegir:async D=>{await t({clase:"eleccion",id:D}),e.contestarSelector()}}):null,Rn===void 0?null:o.jsx(QI,{titulo:Rn.titulo}),o.jsx(lF,{extraAbajo:o.jsx(mH,{remoto:l.remoto,enviar:D=>t(D),alAbrirAjustes:()=>_e("remoto")}),conectado:l.conectado,hayPendiente:l.aprobacion!==void 0||l.pregunta!==void 0||l.selector!==void 0||l.secreto!==void 0,...Vr===void 0?{}:{borrador:Vr},...l.modelos===void 0?{}:{modelos:l.modelos},...l.consumo===void 0?{}:{consumo:l.consumo},alPedirCatalogo:D=>void t({clase:"catalogo",proveedor:D}),alElegirModelo:D=>void t({clase:"modelo",id:D}),alElegirEsfuerzo:D=>void t(D===void 0?{clase:"esfuerzo"}:{clase:"esfuerzo",nivel:D}),alAbrirAjustes:()=>_e(),...((Os=l.alta)==null?void 0:Os.dispositivoActivo)===void 0?{}:{dispositivo:l.alta.dispositivoActivo},...l.dispositivos===void 0?{}:{dispositivos:l.dispositivos},alElegirDispositivo:D=>void t(D===void 0?{clase:"dispositivo"}:{clase:"dispositivo",id:D}),...l.enUsoDeDispositivos===void 0?{}:{dispositivosEnUso:l.enUsoDeDispositivos},...$o===void 0?{}:{proyectoActual:$o},alMedirDispositivos:Se,...((wr=l.alta)==null?void 0:wr.modoDeEscritura)===void 0?{}:{modoDeEscritura:l.alta.modoDeEscritura},alElegirModoDeEscritura:D=>void t({clase:"modoDeEscritura",modo:D}),turnoEnVuelo:l.turnoEnVuelo===!0,oculto:So.panel==="centro",alParar:()=>void t({clase:"cancelar"}),...r===void 0?{}:{alSubirAdjunto:(D,Q)=>r(Q,D)},alEnviar:(D,Q)=>{if(Rn!==void 0&&!yr){Ft({texto:D,adjuntos:Q});return}t({clase:"prosa",texto:D,...Q.length===0?{}:{adjuntos:Q},...yr&&l.turnoDetenible===!0?{detener:!0}:{}})}}),Hr!==void 0&&Rn!==void 0?o.jsx(XI,{titulo:Rn.titulo,conAdjuntos:Hr.adjuntos.length>0,alCancelar:()=>{const{texto:D,desdeConsulta:Q}=Hr;Ft(void 0),Q!==void 0?Q(!1):js(he=>({texto:D,id:((he==null?void 0:he.id)??0)+1}))},alSeguirAqui:()=>{const{texto:D,adjuntos:Q,desdeConsulta:he}=Hr;Ft(void 0),t({clase:"prosa",texto:D,...Q.length===0?{}:{adjuntos:Q}}).then(()=>he==null?void 0:he(!0),()=>he==null?void 0:he(!1))},alContinuarLaTarea:async()=>{var Pe;const D=Rn.id,Q=await Ul(await t({clase:"tarea",accion:"feedback",id:D,texto:Hr.texto}));if(Q!==void 0)return Q;const he=await Ul(await t({clase:"tarea",accion:"arrancarAhora",id:D}));if(he!==void 0)return`tu mensaje ya está en la tarea, pero ${he}`;(Pe=Hr.desdeConsulta)==null||Pe.call(Hr,!0),Ft(void 0)}}):null,o.jsx(bH,{turnos:c1,pasos:ku,ms:Nu==null?void 0:Nu.ms,...Ms===void 0||Ms.usado===0?{}:{contexto:Ms.usado},...(Ms==null?void 0:Ms.tope)===void 0?{}:{tope:Ms.tope},...$a===void 0?{}:{segundosEnVuelo:$a}}),l.aprobacion!==void 0?o.jsx(HV,{pendientes:l.aprobacion.pendientes,ficheros:l.aprobacion.ficheros,diffs:l.aprobacion.diffs,alDecidir:async D=>{await t({clase:"decision",decisiones:D}),e.cerrarAprobacion()}}):null]}):ju?o.jsxs(o.Fragment,{children:[o.jsx($0,{conectado:l.conectado}),o.jsx(_b,{nombre:$o??"Proyecto",...(Pn.get(Dn??"")??0)>0?{tareasEnCurso:Pn.get(Dn??"")}:{},...gi===void 0?{}:{entorno:gi.nombre},...((jl=l.sync)==null?void 0:jl.rama)===void 0?{}:{rama:l.sync.rama},...((t0=l.planes)==null?void 0:t0.lista)===void 0?{}:{planes:l.planes.lista},...Su===void 0?{}:{copia:{...ud(Su),subida:nl,...aa===void 0?{}:{marcaDeSubida:aa}}},tareasEnFondo:md,...Su===void 0?{}:{sincronizacion:f1},...l.gestor===void 0?{}:{gestor:l.gestor},...l.conectores===void 0?{}:{conectores:l.conectores},conectado:l.conectado,turnoEnVuelo:yr,empezarEnVuelo:yo,alVolverAlChat:()=>In(!1),alGestor:xo,alAutorizarConector:D=>void t({clase:"conector",accion:"autorizar",id:D}),alProbarConector:D=>void t({clase:"conector",accion:"probar",id:D}),alAbrirAjustesDeConectores:()=>_e("conectores"),alPedirSoporte:dd},Dn??"")]}):o.jsxs(o.Fragment,{children:[o.jsx($0,{conectado:l.conectado}),o.jsx(eQ,{conectado:l.conectado,...((Cl=(n0=l.alta)==null?void 0:n0.registrados.find(D=>D.id===Ya))==null?void 0:Cl.proyectos)===void 0?{}:{visibles:l.alta.registrados.find(D=>D.id===Ya).proyectos},...fi===void 0?{}:{fijados:fi},...l.nombre===void 0?{}:{nombre:l.nombre},...gi===void 0?{}:{entorno:gi},proyectos:((r0=l.alta)==null?void 0:r0.proyectos)??[],...((Ja=l.modelos)==null?void 0:Ja.actual)===void 0?{}:{modelo:l.modelos.actual},alNuevaSesion:D=>vc(D),alNuevaTarea:D=>Eu(D),alAbrirAjustes:()=>_e(),...l.dispositivos===void 0?{}:{dispositivos:l.dispositivos},alActualizarDispositivos:Se,alVerificarDispositivo:D=>void t({clase:"conexion",id:D}),...l.tareas===void 0?{}:{tareas:l.tareas},alAbrirSesionDeTarea:(D,Q)=>Qn(D,Q),alAbrirRevisionDeTarea:(D,Q)=>Qn(D,Q,"turno"),alReintentarTarea:me,alDescartarTarea:qe,alTerminarTarea:ot,...i===void 0?{}:{alMirarTarea:sr,alDejarDeMirarTarea:Ur},...Ht===void 0?{}:{mirandoTarea:Ht},...l.mirada===void 0?{}:{mirada:l.mirada},alEnviarFeedback:gt,...((kl=l.alta)==null?void 0:kl.proyectoActivo)===void 0?{}:{proyectoActivo:l.alta.proyectoActivo}})]}),barra:o.jsx(TI,{conectado:l.conectado,entornos:((Lc=l.alta)==null?void 0:Lc.registrados)??[],entornoActivo:Ya,...((a0=l.alta)==null?void 0:a0.proyectoActivo)===void 0?{}:{proyectoActivo:l.alta.proyectoActivo},...((zd=l.alta)==null?void 0:zd.sesionActiva)===void 0?{}:{sesionActiva:l.alta.sesionActiva},...((Bs=(To=l.alta)==null?void 0:To.registrados.find(D=>D.id===Ya))==null?void 0:Bs.proyectos)===void 0?{}:{visibles:l.alta.registrados.find(D=>D.id===Ya).proyectos},proyectos:(((Us=l.alta)==null?void 0:Us.proyectos)??[]).map(D=>({...D,sesiones:(D.sesiones??[]).map(Q=>({...Q,historica:!0})),...(Pn.get(D.id)??0)>0?{tareasEnCurso:Pn.get(D.id)}:{}})),alElegirEntorno:D=>b(()=>{qt(void 0),t({clase:"entorno",accion:"activo",entorno:D})}),alAbrirSesion:(D,Q)=>Qn(D,Q),alAbrirProyecto:D=>u1(D),...ju&&Dn!==void 0?{proyectoEnResumen:Dn}:gc?{proyectoEnResumen:ca.id}:{},...fi===void 0?{}:{fijados:fi},alFijar:(D,Q)=>{const he=fi??[],Pe=Q?[...he.filter(Kt=>Kt!==D),D]:he.filter(Kt=>Kt!==D);t({clase:"entorno",accion:"fijados",entorno:Ya,proyectos:Pe})},alNuevaSesion:D=>vc(D),alAccionDeSesion:(D,Q,he,Pe)=>Z({proyecto:D,sesion:Q,titulo:he,accion:Pe}),alAbrirAjustes:()=>_e(),alAbrirAjustesEnEntornos:()=>_e("entornos"),...ra===void 0?{}:{abriendo:ra},...((Nl=l.alta)==null?void 0:Nl.version)===void 0?{}:{version:l.alta.version}})}),h1,pd,vi,m1,p1,ws]})}const L9=O_(),D0=V_(L9);$x.createRoot(document.getElementById("root")).render(o.jsx($.StrictMode,{children:o.jsx(ale,{store:L9,enviar:D0.enviar,subirAdjunto:D0.subirAdjunto,subirAdjuntoDeSesion:D0.subirAdjuntoDeSesion,instalarSkill:D0.instalarSkill,mirar:D0.mirar})}));export{IN as a,o as j,q6 as n,$ as r,MN as s,zN as t};
|